Using the AWS SDKs
Using the AWS SDK for Java
Note The AWS SDK for Java provides thread-safe clients for accessing S3 Glacier. As a best practice, your applications should create one client and reuse the client between threads.
Note The preceding code segment specifies
AccountIDwhen creating the request. However, when using the AWS SDK for Java, theAccountIdin the request is optional, and therefore all the low-level examples in this guide don't set this value. TheAccountIdis the AWS account ID. This value must match the AWS account ID associated with the credentials used to sign the request. You can specify either the AWS account ID or optionally a '-', in which case S3 Glacier uses the AWS account ID associated with the credentials used to sign the request. If you specify your Account ID, do not include hyphens in it. When using AWS SDK for Java, if you don't provide the account ID, the library sets the account ID to '-'.Note The high-level
ArchiveTransferManagerclass can be constructed with anAmazonGlacierClientinstance or anAWSCredentialsinstance.
Using the AWS SDK for .NET
Note The low-level API and high-level API provide thread-safe clients for accessing S3 Glacier. As a best practice, your applications should create one client and reuse the client between threads.
Note The preceding code segment specifies
AccountIdwhen creating the request. However, when using the AWS SDK for .NET, theAccountIdin the request is optional, and therefore all the low-level examples in this guide don't set this value. TheAccountIdis the AWS account ID. This value must match the AWS account ID associated with the credentials used to sign the request. You can specify either the AWS account ID or optionally a '-', in which case S3 Glacier uses the AWS account ID associated with the credentials used to sign the request. If you specify your Account ID, do not include hyphens in it. When using AWS SDK for .NET, if you don't provide the account ID, the library sets the account ID to '-'.Note The high-level
ArchiveTransferManagerclass still needs the low-levelAmazonGlacierClientclient, which you can pass either explicitly or theArchiveTransferManagercreates the client.
Last updated
Was this helpful?