Configuration for the S3 section of AWS configuration. Changes to some settings may not take effect until a new client is constructed. Example section: <configSections> <section name="aws" type="Amazon.AWSSection, AWSSDK"/> </configSections> <aws> <s3 useSignatureVersion4="true" /> </aws>
Ejemplo n.º 1
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
        }