This operation adds an archive to a vault. This is a synchronous operation, and for a
successful upload, your data is durably persisted. Amazon S3 Glacier returns the archive ID in
the x-amz-archive-id header of the response.
<p>AnAWSaccounthasfullpermissiontoperformalloperations (actions). However, AWS IdentityandAccessManagement (IAM) usersdon't have any permissions by default. You must grantthemexplicitpermissiontoperformspecificactions. Formoreinformation, see <ahref="https://docs.aws.amazon.com/amazonglacier/latest/dev/using-iam-with-amazon-glacier.html">AccessControlUsing AWSIdentityandAccessManagement (IAM)</a>.</p> <p> ForconceptualinformationandunderlyingRESTAPI, see <ahref="https://docs.aws.amazon.com/amazonglacier/latest/dev/uploading-an-archive.html">UploadinganArchiveinAmazon Glacier</a> and <ahref="https://docs.aws.amazon.com/amazonglacier/latest/dev/api-archive-post.html">UploadArchive</a> inthe <i>AmazonGlacierDeveloperGuide</i>. </p>
Example
Use a bare-bones client and the command you need to make an API call.
This operation adds an archive to a vault. This is a synchronous operation, and for a successful upload, your data is durably persisted. Amazon S3 Glacier returns the archive ID in the
x-amz-archive-id
header of the response.Example
Use a bare-bones client and the command you need to make an API call.
Param
UploadArchiveCommandInput
Returns
UploadArchiveCommandOutput
See
input
shape.response
shape.config
shape.Throws
InvalidParameterValueException (client fault)
Returned if a parameter of the request is incorrectly specified.
Throws
MissingParameterValueException (client fault)
Returned if a required header or parameter is missing from the request.
Throws
RequestTimeoutException (client fault)
Returned if, when uploading an archive, Amazon S3 Glacier times out while receiving the upload.
Throws
ResourceNotFoundException (client fault)
Returned if the specified resource (such as a vault, upload ID, or job ID) doesn't exist.
Throws
ServiceUnavailableException (server fault)
Returned if the service cannot complete the request.
Throws
GlacierServiceException
Base exception class for all service exceptions from Glacier service.
Example
To upload an archive