Amazon AWS SDK Guide de l'utilisateur Page 21 : AWS Region Selection

/ 155
Table des matières
AWSConfigs.ResponseLogging = ResponseLoggingOption.OnError;
Changes to this setting take effect immediately.
AWS.DynamoDBContext.TableNamePrefix
Configures the default
TableNamePrefix
that the
DynamoDBContext
will use if not manually
configured.
To set the table name prefix in the
.config
file, the recommended approach is to set the
tableNamePrefix
attribute value in the
dynamoDBContext
element, which is a child element of
the
dynamoDB
element, which itself is a child element of the
aws
element:
<dynamoDBContext tableNamePrefix="Test-"/>
Alternatively, set the
AWS.DynamoDBContext.TableNamePrefix
key in the
<appSettings>
section:
<add key="AWS.DynamoDBContext.TableNamePrefix" value="Test-"/>
Alternatively, to set the table name prefix with the SDK for .NET API, set the
AWSConfigs.DynamoDBContextTableNamePrefix
property to the value you want to set:
AWSConfigs.DynamoDBContextTableNamePrefix = "Test-";
Changes to this setting will take effect only in newly-constructed instances of
DynamoDBContextConfig
and
DynamoDBContext
.
AWS.EC2.UseSignatureVersion4
Configures whether or not the Amazon EC2 client should use Signature Version 4 signing with
requests.
To set Signature Version 4 signing for Amazon EC2 in the
.config
file, the recommended approach
is to set the
useSignatureVersion4
attribute of the
ec2
element, which is a child element of the
aws
element:
<ec2 useSignatureVersion4="true"/>
Alternatively, set the
AWS.EC2.UseSignatureVersion4
key to
true
in the
<appSettings>
section:
<add key="AWS.EC2.UseSignatureVersion4" value="true"/>
Alternatively, to set Signature Version 4 signing with the SDK for .NET API, set the
AWSConfigs.EC2UseSignatureVersion4
property to
true
:
AWSConfigs.EC2UseSignatureVersion4 = 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.
AWS.S3.UseSignatureVersion4
Configures whether or not the Amazon S3 client should use Signature Version 4 signing with requests.
Version v2.0.0
17
AWS SDK for .NET Developer Guide
Additional Application Parameters

Fichier PDF · ·

Imprimer

Imprimer le document

Partage

Questions sur Amazon AWS SDK

Pas encore de questions sur ce manuel. Posez la première.

Poser une question

Nous répondons à partir du manuel et indiquons la page. La question est publiée sur le site après vérification.

Toutes les questions et réponses ›

Produits connexes et manuels pour Logiciel Amazon AWS SDK