Esempio n. 1
0
        static AWSConfigsS3()
        {
            _useSignatureVersion4 = true;
            UseSigV4SetExplicitly = false;

#if BCL
            var appSettingValue = AWSConfigs.GetConfig(S3UseSignatureVersion4Key);
            if (!string.IsNullOrEmpty(appSettingValue))
            {
                UseSignatureVersion4 = bool.Parse(appSettingValue);
            }

            var root    = new RootConfig();
            var section = root.GetServiceSection(s3Key);
            if (section == null)
            {
                return;
            }

            var rootSection = new V4ClientSectionRoot(section);
            if (rootSection.S3 != null)
            {
                var s3Section = rootSection.S3;
                if (s3Section.ElementInformation.IsPresent)
                {
                    if (s3Section.UseSignatureVersion4.HasValue)
                    {
                        UseSignatureVersion4 = s3Section.UseSignatureVersion4.Value;
                    }
                }
            }
#endif
        }
Esempio n. 2
0
        static AWSConfigsMobileAnalytics()
        {
#if BCL || AWSSDK_UNITY
            var root    = new RootConfig();
            var section = root.GetServiceSection(mobileAnalyticsKey);
            if (section == null)
            {
                return;
            }

            var rootSection = new MobileAnalyticsConfigSectionRoot(section);
            if (rootSection.MobileAnalytics != null)
            {
                AWSConfigsMobileAnalytics.Configure(rootSection.MobileAnalytics);
            }
#endif
        }
        static AWSConfigsDynamoDB()
        {
            Context          = new DynamoDBContextConfig();
            ConversionSchema = ConversionSchema.V1;

#if BCL || AWSSDK_UNITY
            var root    = new RootConfig();
            var section = root.GetServiceSection(dynamoDBKey);
            if (section == null)
            {
                return;
            }

            var rootSection = new DynamoDBSectionRoot(section);
            if (rootSection.DynamoDB != null)
            {
                AWSConfigsDynamoDB.Configure(rootSection.DynamoDB);
            }
#endif
        }
Esempio n. 4
0
        static AWSConfigsS3()
        {
#if BCL
            var appSettingValue = AWSConfigs.GetConfig(S3UseSignatureVersion4Key);
            if (!string.IsNullOrEmpty(appSettingValue))
            {
                UseSignatureVersion4 = bool.Parse(appSettingValue);
            }

            var root    = new RootConfig();
            var section = root.GetServiceSection(s3Key);
            if (section == null)
            {
                return;
            }

            var rootSection = new V4ClientSectionRoot(section);
            if (rootSection.S3 != null)
            {
                AWSConfigsS3.Configure(rootSection.S3);
            }
#endif
        }