User guide

Allowed Elements (p. 19)
Elements Reference (p. 20)
Declaring an AWS Settings Section
You specify AWS settings in an App.config or Web.config file from within the aws element. Before
you can begin using the aws element, you must cerate a section element (which is a child element of
the configSections element) and set its name attribute to aws and its type attribute to
Amazon.AWSSection, AWSSDK, as shown in the following example:
<?xml version="1.0"?>
<configuration>
...
<configSections>
<section name="aws" type="Amazon.AWSSection, AWSSDK"/>
</configSections>
<aws>
<!-- Add your desired AWS settings declarations here. -->
</aws>
...
</configuration>
Note that the Visual Studio Editor does not provide automatic code completion (IntelliSense) for neither
the aws element nor its child elements.
To assist you in creating a correctly-formatted version of the aws element, call the
Amazon.AWSConfigs.GenerateConfigTemplate method. This outputs a canonical version of the
aws element as a pretty-printed string, which you can adapt to your needs.The following sections describe
the aws element's attributes and child elements.
Allowed Elements
The following is a list of the logical relationships among the allowed elements in an AWS settings section.
You can generate the latest version of this list by calling the
Amazon.AWSConfigs.GenerateConfigTemplate method, which outputs a canonical version of the
aws element as a string that you can adapt to your needs.
...
<aws
endpointDefinition="string value"
region="string value"
profileName="string value"
profilesLocation="string value">
<logging
logTo="None, Log4Net, SystemDiagnostics"
logResponses="Never | OnError | Always"
logMetrics="true | false"
logMetricsFormat="Standard | JSON"
logMetricsCustomFormatter="NameSpace.Class, Assembly" />
<dynamoDB
conversionSchema="V1 | V2">
<dynamoDBContext
tableNamePrefix="string value">
<alias
fromTable="string value"
Version v2.0.0
19
AWS SDK for .NET Developer Guide
Configuration Files Reference