User guide

To set Signature Version 4 signing for Amazon S3 in the .config file, the recommended approach
is to set the useSignatureVersion4 attribute of the s3 element, which is a child element of the
aws element:
<s3 useSignatureVersion4="true"/>
Alternatively, set the AWS.S3.UseSignatureVersion4 key to true in the <appSettings> section:
<add key="AWS.S3.UseSignatureVersion4" value="true"/>
Alternatively, to set Signature Version 4 signing with the SDK for .NET API, set the
AWSConfigs.S3UseSignatureVersion4 property to true:
AWSConfigs.S3UseSignatureVersion4 = true;
By default, this setting is false, though Signature Version 4 may be used by default in some cases
or with some regions. When the setting is true, Signature Version 4 will be used for all requests.
Changes to this setting take effect only for new Amazon EC2 client instances.
Configuration Files Reference for AWS SDK for
.NET
You can use a .NET project's App.config or Web.config file to specify certain AWS settings such as
AWS credentials, logging options, AWS service endopoints, and AWS regions, as well as certain settings
for AWS services such as Amazon DynamoDB, Amazon EC2, and Amazon S3.The following information
describes how to properly format an App.config or Web.config file to specify these types of settings.
Note
Although you can continue to use the appSettings element in an App.config or Web.config
file to specify AWS settings, we recommend that you use the configSections and aws elements
as described later in this topic. (For more information about the appSettings element, see the
appSettings element examples in Configuring Your AWS SDK for .NET Application (p. 8).)
Although you can continue to use the following AWSConfigs class properties in a code file to
specify AWS settings, the following properties are deprecated and may not be supported in
future releases:
DynamoDBContextTableNamePrefix
EC2UseSignatureVersion4
LoggingOptions
LogMetrics
ResponseLoggingOption
S3UseSignatureVersion4
In general, we recommend that instead of using AWSConfigs class properties in a code file to
specify AWS settings, you should use the configSections and aws elements in an App.config
or Web.config file to specify AWS settings, as described later in this topic. (For more information
about the preceding properties, see the AWSConfigs code examples in Configuring Your AWS
SDK for .NET Application (p. 8).)
Topics
Declaring an AWS Settings Section (p. 19)
Version v2.0.0
18
AWS SDK for .NET Developer Guide
Configuration Files Reference