@aws-sdk/client-glacier 3.287.0 → 3.289.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/dist-types/commands/AbortMultipartUploadCommand.d.ts +13 -0
  2. package/dist-types/commands/AbortVaultLockCommand.d.ts +12 -0
  3. package/dist-types/commands/AddTagsToVaultCommand.d.ts +16 -0
  4. package/dist-types/commands/CompleteMultipartUploadCommand.d.ts +22 -0
  5. package/dist-types/commands/CompleteVaultLockCommand.d.ts +13 -0
  6. package/dist-types/commands/CreateVaultCommand.d.ts +17 -0
  7. package/dist-types/commands/DeleteArchiveCommand.d.ts +13 -0
  8. package/dist-types/commands/DeleteVaultAccessPolicyCommand.d.ts +12 -0
  9. package/dist-types/commands/DeleteVaultCommand.d.ts +12 -0
  10. package/dist-types/commands/DeleteVaultNotificationsCommand.d.ts +12 -0
  11. package/dist-types/commands/DescribeJobCommand.d.ts +26 -0
  12. package/dist-types/commands/DescribeVaultCommand.d.ts +21 -0
  13. package/dist-types/commands/GetDataRetrievalPolicyCommand.d.ts +23 -0
  14. package/dist-types/commands/GetJobOutputCommand.d.ts +22 -0
  15. package/dist-types/commands/GetVaultAccessPolicyCommand.d.ts +19 -0
  16. package/dist-types/commands/GetVaultLockCommand.d.ts +20 -0
  17. package/dist-types/commands/GetVaultNotificationsCommand.d.ts +23 -0
  18. package/dist-types/commands/InitiateJobCommand.d.ts +24 -0
  19. package/dist-types/commands/InitiateMultipartUploadCommand.d.ts +19 -0
  20. package/dist-types/commands/InitiateVaultLockCommand.d.ts +20 -0
  21. package/dist-types/commands/ListJobsCommand.d.ts +44 -0
  22. package/dist-types/commands/ListMultipartUploadsCommand.d.ts +40 -0
  23. package/dist-types/commands/ListPartsCommand.d.ts +33 -0
  24. package/dist-types/commands/ListProvisionedCapacityCommand.d.ts +27 -0
  25. package/dist-types/commands/ListTagsForVaultCommand.d.ts +20 -0
  26. package/dist-types/commands/ListVaultsCommand.d.ts +27 -0
  27. package/dist-types/commands/PurchaseProvisionedCapacityCommand.d.ts +16 -0
  28. package/dist-types/commands/RemoveTagsFromVaultCommand.d.ts +16 -0
  29. package/dist-types/commands/SetDataRetrievalPolicyCommand.d.ts +19 -0
  30. package/dist-types/commands/SetVaultAccessPolicyCommand.d.ts +15 -0
  31. package/dist-types/commands/SetVaultNotificationsCommand.d.ts +19 -0
  32. package/dist-types/commands/UploadArchiveCommand.d.ts +22 -0
  33. package/dist-types/commands/UploadMultipartPartCommand.d.ts +21 -0
  34. package/package.json +35 -35
@@ -46,6 +46,19 @@ export interface AbortMultipartUploadCommandOutput extends __MetadataBearer {
46
46
  * @see {@link AbortMultipartUploadCommandOutput} for command's `response` shape.
47
47
  * @see {@link GlacierClientResolvedConfig | config} for GlacierClient's `config` shape.
48
48
  *
49
+ * @example To abort a multipart upload identified by the upload ID
50
+ * ```javascript
51
+ * // The example deletes an in-progress multipart upload to a vault named my-vault:
52
+ * const input = {
53
+ * "accountId": "-",
54
+ * "uploadId": "19gaRezEXAMPLES6Ry5YYdqthHOC_kGRCT03L9yetr220UmPtBYKk-OssZtLqyFu7sY1_lR7vgFuJV6NtcV5zpsJ",
55
+ * "vaultName": "my-vault"
56
+ * };
57
+ * const command = new AbortMultipartUploadCommand(input);
58
+ * await client.send(command);
59
+ * // example id: f3d907f6-e71c-420c-8f71-502346a2c48a
60
+ * ```
61
+ *
49
62
  */
50
63
  export declare class AbortMultipartUploadCommand extends $Command<AbortMultipartUploadCommandInput, AbortMultipartUploadCommandOutput, GlacierClientResolvedConfig> {
51
64
  readonly input: AbortMultipartUploadCommandInput;
@@ -42,6 +42,18 @@ export interface AbortVaultLockCommandOutput extends __MetadataBearer {
42
42
  * @see {@link AbortVaultLockCommandOutput} for command's `response` shape.
43
43
  * @see {@link GlacierClientResolvedConfig | config} for GlacierClient's `config` shape.
44
44
  *
45
+ * @example To abort a vault lock
46
+ * ```javascript
47
+ * // The example aborts the vault locking process if the vault lock is not in the Locked state for the vault named examplevault.
48
+ * const input = {
49
+ * "accountId": "-",
50
+ * "vaultName": "examplevault"
51
+ * };
52
+ * const command = new AbortVaultLockCommand(input);
53
+ * await client.send(command);
54
+ * // example id: to-abort-a-vault-lock-1481839357947
55
+ * ```
56
+ *
45
57
  */
46
58
  export declare class AbortVaultLockCommand extends $Command<AbortVaultLockCommandInput, AbortVaultLockCommandOutput, GlacierClientResolvedConfig> {
47
59
  readonly input: AbortVaultLockCommandInput;
@@ -34,6 +34,22 @@ export interface AddTagsToVaultCommandOutput extends __MetadataBearer {
34
34
  * @see {@link AddTagsToVaultCommandOutput} for command's `response` shape.
35
35
  * @see {@link GlacierClientResolvedConfig | config} for GlacierClient's `config` shape.
36
36
  *
37
+ * @example To add tags to a vault
38
+ * ```javascript
39
+ * // The example adds two tags to a my-vault.
40
+ * const input = {
41
+ * "Tags": {
42
+ * "examplekey1": "examplevalue1",
43
+ * "examplekey2": "examplevalue2"
44
+ * },
45
+ * "accountId": "-",
46
+ * "vaultName": "my-vault"
47
+ * };
48
+ * const command = new AddTagsToVaultCommand(input);
49
+ * await client.send(command);
50
+ * // example id: add-tags-to-vault-post-tags-add-1481663457694
51
+ * ```
52
+ *
37
53
  */
38
54
  export declare class AddTagsToVaultCommand extends $Command<AddTagsToVaultCommandInput, AddTagsToVaultCommandOutput, GlacierClientResolvedConfig> {
39
55
  readonly input: AddTagsToVaultCommandInput;
@@ -66,6 +66,28 @@ export interface CompleteMultipartUploadCommandOutput extends ArchiveCreationOut
66
66
  * @see {@link CompleteMultipartUploadCommandOutput} for command's `response` shape.
67
67
  * @see {@link GlacierClientResolvedConfig | config} for GlacierClient's `config` shape.
68
68
  *
69
+ * @example To complete a multipart upload
70
+ * ```javascript
71
+ * // The example completes a multipart upload for a 3 MiB archive.
72
+ * const input = {
73
+ * "accountId": "-",
74
+ * "archiveSize": "3145728",
75
+ * "checksum": "9628195fcdbcbbe76cdde456d4646fa7de5f219fb39823836d81f0cc0e18aa67",
76
+ * "uploadId": "19gaRezEXAMPLES6Ry5YYdqthHOC_kGRCT03L9yetr220UmPtBYKk-OssZtLqyFu7sY1_lR7vgFuJV6NtcV5zpsJ",
77
+ * "vaultName": "my-vault"
78
+ * };
79
+ * const command = new CompleteMultipartUploadCommand(input);
80
+ * const response = await client.send(command);
81
+ * /* response ==
82
+ * {
83
+ * "archiveId": "NkbByEejwEggmBz2fTHgJrg0XBoDfjP4q6iu87-TjhqG6eGoOY9Z8i1_AUyUsuhPAdTqLHy8pTl5nfCFJmDl2yEZONi5L26Omw12vcs01MNGntHEQL8MBfGlqrEXAMPLEArchiveId",
84
+ * "checksum": "9628195fcdbcbbe76cdde456d4646fa7de5f219fb39823836d81f0cc0e18aa67",
85
+ * "location": "/111122223333/vaults/my-vault/archives/NkbByEejwEggmBz2fTHgJrg0XBoDfjP4q6iu87-TjhqG6eGoOY9Z8i1_AUyUsuhPAdTqLHy8pTl5nfCFJmDl2yEZONi5L26Omw12vcs01MNGntHEQL8MBfGlqrEXAMPLEArchiveId"
86
+ * }
87
+ * *\/
88
+ * // example id: 272aa0b8-e44c-4a64-add2-ad905a37984d
89
+ * ```
90
+ *
69
91
  */
70
92
  export declare class CompleteMultipartUploadCommand extends $Command<CompleteMultipartUploadCommandInput, CompleteMultipartUploadCommandOutput, GlacierClientResolvedConfig> {
71
93
  readonly input: CompleteMultipartUploadCommandInput;
@@ -42,6 +42,19 @@ export interface CompleteVaultLockCommandOutput extends __MetadataBearer {
42
42
  * @see {@link CompleteVaultLockCommandOutput} for command's `response` shape.
43
43
  * @see {@link GlacierClientResolvedConfig | config} for GlacierClient's `config` shape.
44
44
  *
45
+ * @example To complete a vault lock
46
+ * ```javascript
47
+ * // The example completes the vault locking process by transitioning the vault lock from the InProgress state to the Locked state.
48
+ * const input = {
49
+ * "accountId": "-",
50
+ * "lockId": "AE863rKkWZU53SLW5be4DUcW",
51
+ * "vaultName": "example-vault"
52
+ * };
53
+ * const command = new CompleteVaultLockCommand(input);
54
+ * await client.send(command);
55
+ * // example id: to-complete-a-vault-lock-1481839721312
56
+ * ```
57
+ *
45
58
  */
46
59
  export declare class CompleteVaultLockCommand extends $Command<CompleteVaultLockCommandInput, CompleteVaultLockCommandOutput, GlacierClientResolvedConfig> {
47
60
  readonly input: CompleteVaultLockCommandInput;
@@ -52,6 +52,23 @@ export interface CreateVaultCommandOutput extends CreateVaultOutput, __MetadataB
52
52
  * @see {@link CreateVaultCommandOutput} for command's `response` shape.
53
53
  * @see {@link GlacierClientResolvedConfig | config} for GlacierClient's `config` shape.
54
54
  *
55
+ * @example To create a new vault
56
+ * ```javascript
57
+ * // The following example creates a new vault named my-vault.
58
+ * const input = {
59
+ * "accountId": "-",
60
+ * "vaultName": "my-vault"
61
+ * };
62
+ * const command = new CreateVaultCommand(input);
63
+ * const response = await client.send(command);
64
+ * /* response ==
65
+ * {
66
+ * "location": "/111122223333/vaults/my-vault"
67
+ * }
68
+ * *\/
69
+ * // example id: 1dc0313d-ace1-4e6c-9d13-1ec7813b14b7
70
+ * ```
71
+ *
55
72
  */
56
73
  export declare class CreateVaultCommand extends $Command<CreateVaultCommandInput, CreateVaultCommandOutput, GlacierClientResolvedConfig> {
57
74
  readonly input: CreateVaultCommandInput;
@@ -55,6 +55,19 @@ export interface DeleteArchiveCommandOutput extends __MetadataBearer {
55
55
  * @see {@link DeleteArchiveCommandOutput} for command's `response` shape.
56
56
  * @see {@link GlacierClientResolvedConfig | config} for GlacierClient's `config` shape.
57
57
  *
58
+ * @example To delete an archive
59
+ * ```javascript
60
+ * // The example deletes the archive specified by the archive ID.
61
+ * const input = {
62
+ * "accountId": "-",
63
+ * "archiveId": "NkbByEejwEggmBz2fTHgJrg0XBoDfjP4q6iu87-TjhqG6eGoOY9Z8i1_AUyUsuhPAdTqLHy8pTl5nfCFJmDl2yEZONi5L26Omw12vcs01MNGntHEQL8MBfGlqrEXAMPLEArchiveId",
64
+ * "vaultName": "examplevault"
65
+ * };
66
+ * const command = new DeleteArchiveCommand(input);
67
+ * await client.send(command);
68
+ * // example id: delete-archive-1481667809463
69
+ * ```
70
+ *
58
71
  */
59
72
  export declare class DeleteArchiveCommand extends $Command<DeleteArchiveCommandInput, DeleteArchiveCommandOutput, GlacierClientResolvedConfig> {
60
73
  readonly input: DeleteArchiveCommandInput;
@@ -35,6 +35,18 @@ export interface DeleteVaultAccessPolicyCommandOutput extends __MetadataBearer {
35
35
  * @see {@link DeleteVaultAccessPolicyCommandOutput} for command's `response` shape.
36
36
  * @see {@link GlacierClientResolvedConfig | config} for GlacierClient's `config` shape.
37
37
  *
38
+ * @example To delete the vault access policy
39
+ * ```javascript
40
+ * // The example deletes the access policy associated with the vault named examplevault.
41
+ * const input = {
42
+ * "accountId": "-",
43
+ * "vaultName": "examplevault"
44
+ * };
45
+ * const command = new DeleteVaultAccessPolicyCommand(input);
46
+ * await client.send(command);
47
+ * // example id: to-delete-the-vault-access-policy-1481840424677
48
+ * ```
49
+ *
38
50
  */
39
51
  export declare class DeleteVaultAccessPolicyCommand extends $Command<DeleteVaultAccessPolicyCommandInput, DeleteVaultAccessPolicyCommandOutput, GlacierClientResolvedConfig> {
40
52
  readonly input: DeleteVaultAccessPolicyCommandInput;
@@ -48,6 +48,18 @@ export interface DeleteVaultCommandOutput extends __MetadataBearer {
48
48
  * @see {@link DeleteVaultCommandOutput} for command's `response` shape.
49
49
  * @see {@link GlacierClientResolvedConfig | config} for GlacierClient's `config` shape.
50
50
  *
51
+ * @example To delete a vault
52
+ * ```javascript
53
+ * // The example deletes a vault named my-vault:
54
+ * const input = {
55
+ * "accountId": "-",
56
+ * "vaultName": "my-vault"
57
+ * };
58
+ * const command = new DeleteVaultCommand(input);
59
+ * await client.send(command);
60
+ * // example id: 7f7f000b-4bdb-40d2-91e6-7c902f60f60f
61
+ * ```
62
+ *
51
63
  */
52
64
  export declare class DeleteVaultCommand extends $Command<DeleteVaultCommandInput, DeleteVaultCommandOutput, GlacierClientResolvedConfig> {
53
65
  readonly input: DeleteVaultCommandInput;
@@ -41,6 +41,18 @@ export interface DeleteVaultNotificationsCommandOutput extends __MetadataBearer
41
41
  * @see {@link DeleteVaultNotificationsCommandOutput} for command's `response` shape.
42
42
  * @see {@link GlacierClientResolvedConfig | config} for GlacierClient's `config` shape.
43
43
  *
44
+ * @example To delete the notification configuration set for a vault
45
+ * ```javascript
46
+ * // The example deletes the notification configuration set for the vault named examplevault.
47
+ * const input = {
48
+ * "accountId": "-",
49
+ * "vaultName": "examplevault"
50
+ * };
51
+ * const command = new DeleteVaultNotificationsCommand(input);
52
+ * await client.send(command);
53
+ * // example id: to-delete-the-notification-configuration-set-for-a-vault-1481840646090
54
+ * ```
55
+ *
44
56
  */
45
57
  export declare class DeleteVaultNotificationsCommand extends $Command<DeleteVaultNotificationsCommandInput, DeleteVaultNotificationsCommandOutput, GlacierClientResolvedConfig> {
46
58
  readonly input: DeleteVaultNotificationsCommandInput;
@@ -52,6 +52,32 @@ export interface DescribeJobCommandOutput extends GlacierJobDescription, __Metad
52
52
  * @see {@link DescribeJobCommandOutput} for command's `response` shape.
53
53
  * @see {@link GlacierClientResolvedConfig | config} for GlacierClient's `config` shape.
54
54
  *
55
+ * @example To get information about a previously initiated job
56
+ * ```javascript
57
+ * // The example returns information about the previously initiated job specified by the job ID.
58
+ * const input = {
59
+ * "accountId": "-",
60
+ * "jobId": "zbxcm3Z_3z5UkoroF7SuZKrxgGoDc3RloGduS7Eg-RO47Yc6FxsdGBgf_Q2DK5Ejh18CnTS5XW4_XqlNHS61dsO4Cn",
61
+ * "vaultName": "my-vault"
62
+ * };
63
+ * const command = new DescribeJobCommand(input);
64
+ * const response = await client.send(command);
65
+ * /* response ==
66
+ * {
67
+ * "Action": "InventoryRetrieval",
68
+ * "Completed": false,
69
+ * "CreationDate": "2015-07-17T20:23:41.616Z",
70
+ * "InventoryRetrievalParameters": {
71
+ * "Format": "JSON"
72
+ * },
73
+ * "JobId": "zbxcm3Z_3z5UkoroF7SuZKrxgGoDc3RloGduS7Eg-RO47Yc6FxsdGBgf_Q2DK5Ejh18CnTS5XW4_XqlNHS61dsO4CnMW",
74
+ * "StatusCode": "InProgress",
75
+ * "VaultARN": "arn:aws:glacier:us-west-2:0123456789012:vaults/my-vault"
76
+ * }
77
+ * *\/
78
+ * // example id: to-get-information-about-a-job-you-previously-initiated-1481840928592
79
+ * ```
80
+ *
55
81
  */
56
82
  export declare class DescribeJobCommand extends $Command<DescribeJobCommandInput, DescribeJobCommandOutput, GlacierClientResolvedConfig> {
57
83
  readonly input: DescribeJobCommandInput;
@@ -46,6 +46,27 @@ export interface DescribeVaultCommandOutput extends DescribeVaultOutput, __Metad
46
46
  * @see {@link DescribeVaultCommandOutput} for command's `response` shape.
47
47
  * @see {@link GlacierClientResolvedConfig | config} for GlacierClient's `config` shape.
48
48
  *
49
+ * @example To retrieve information about a vault
50
+ * ```javascript
51
+ * // The example retrieves data about a vault named my-vault.
52
+ * const input = {
53
+ * "accountId": "-",
54
+ * "vaultName": "my-vault"
55
+ * };
56
+ * const command = new DescribeVaultCommand(input);
57
+ * const response = await client.send(command);
58
+ * /* response ==
59
+ * {
60
+ * "CreationDate": "2016-09-23T19:27:18.665Z",
61
+ * "NumberOfArchives": 0,
62
+ * "SizeInBytes": 0,
63
+ * "VaultARN": "arn:aws:glacier:us-west-2:111122223333:vaults/my-vault",
64
+ * "VaultName": "my-vault"
65
+ * }
66
+ * *\/
67
+ * // example id: 3c1c6e9d-f5a2-427a-aa6a-f439eacfc05f
68
+ * ```
69
+ *
49
70
  */
50
71
  export declare class DescribeVaultCommand extends $Command<DescribeVaultCommandInput, DescribeVaultCommandOutput, GlacierClientResolvedConfig> {
51
72
  readonly input: DescribeVaultCommandInput;
@@ -31,6 +31,29 @@ export interface GetDataRetrievalPolicyCommandOutput extends GetDataRetrievalPol
31
31
  * @see {@link GetDataRetrievalPolicyCommandOutput} for command's `response` shape.
32
32
  * @see {@link GlacierClientResolvedConfig | config} for GlacierClient's `config` shape.
33
33
  *
34
+ * @example To get the current data retrieval policy for an account
35
+ * ```javascript
36
+ * // The example returns the current data retrieval policy for the account.
37
+ * const input = {
38
+ * "accountId": "-"
39
+ * };
40
+ * const command = new GetDataRetrievalPolicyCommand(input);
41
+ * const response = await client.send(command);
42
+ * /* response ==
43
+ * {
44
+ * "Policy": {
45
+ * "Rules": [
46
+ * {
47
+ * "BytesPerHour": 10737418240,
48
+ * "Strategy": "BytesPerHour"
49
+ * }
50
+ * ]
51
+ * }
52
+ * }
53
+ * *\/
54
+ * // example id: to-get-the-current-data-retrieval-policy-for-the-account-1481851580439
55
+ * ```
56
+ *
34
57
  */
35
58
  export declare class GetDataRetrievalPolicyCommand extends $Command<GetDataRetrievalPolicyCommandInput, GetDataRetrievalPolicyCommandOutput, GlacierClientResolvedConfig> {
36
59
  readonly input: GetDataRetrievalPolicyCommandInput;
@@ -65,6 +65,28 @@ export interface GetJobOutputCommandOutput extends __WithSdkStreamMixin<GetJobOu
65
65
  * @see {@link GetJobOutputCommandOutput} for command's `response` shape.
66
66
  * @see {@link GlacierClientResolvedConfig | config} for GlacierClient's `config` shape.
67
67
  *
68
+ * @example To get the output of a previously initiated job
69
+ * ```javascript
70
+ * // The example downloads the output of a previously initiated inventory retrieval job that is identified by the job ID.
71
+ * const input = {
72
+ * "accountId": "-",
73
+ * "jobId": "zbxcm3Z_3z5UkoroF7SuZKrxgGoDc3RloGduS7Eg-RO47Yc6FxsdGBgf_Q2DK5Ejh18CnTS5XW4_XqlNHS61dsO4CnMW",
74
+ * "range": "",
75
+ * "vaultName": "my-vaul"
76
+ * };
77
+ * const command = new GetJobOutputCommand(input);
78
+ * const response = await client.send(command);
79
+ * /* response ==
80
+ * {
81
+ * "acceptRanges": "bytes",
82
+ * "body": "inventory-data",
83
+ * "contentType": "application/json",
84
+ * "status": 200
85
+ * }
86
+ * *\/
87
+ * // example id: to-get-the-output-of-a-previously-initiated-job-1481848550859
88
+ * ```
89
+ *
68
90
  */
69
91
  export declare class GetJobOutputCommand extends $Command<GetJobOutputCommandInput, GetJobOutputCommandOutput, GlacierClientResolvedConfig> {
70
92
  readonly input: GetJobOutputCommandInput;
@@ -34,6 +34,25 @@ export interface GetVaultAccessPolicyCommandOutput extends GetVaultAccessPolicyO
34
34
  * @see {@link GetVaultAccessPolicyCommandOutput} for command's `response` shape.
35
35
  * @see {@link GlacierClientResolvedConfig | config} for GlacierClient's `config` shape.
36
36
  *
37
+ * @example To get the access-policy set on the vault
38
+ * ```javascript
39
+ * // The example retrieves the access-policy set on the vault named example-vault.
40
+ * const input = {
41
+ * "accountId": "-",
42
+ * "vaultName": "example-vault"
43
+ * };
44
+ * const command = new GetVaultAccessPolicyCommand(input);
45
+ * const response = await client.send(command);
46
+ * /* response ==
47
+ * {
48
+ * "policy": {
49
+ * "Policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Sid\":\"Define-owner-access-rights\",\"Effect\":\"Allow\",\"Principal\":{\"AWS\":\"arn:aws:iam::999999999999:root\"},\"Action\":\"glacier:DeleteArchive\",\"Resource\":\"arn:aws:glacier:us-west-2:999999999999:vaults/examplevault\"}]}"
50
+ * }
51
+ * }
52
+ * *\/
53
+ * // example id: to--get-the-access-policy-set-on-the-vault-1481936004590
54
+ * ```
55
+ *
37
56
  */
38
57
  export declare class GetVaultAccessPolicyCommand extends $Command<GetVaultAccessPolicyCommandInput, GetVaultAccessPolicyCommandOutput, GlacierClientResolvedConfig> {
39
58
  readonly input: GetVaultAccessPolicyCommandInput;
@@ -56,6 +56,26 @@ export interface GetVaultLockCommandOutput extends GetVaultLockOutput, __Metadat
56
56
  * @see {@link GetVaultLockCommandOutput} for command's `response` shape.
57
57
  * @see {@link GlacierClientResolvedConfig | config} for GlacierClient's `config` shape.
58
58
  *
59
+ * @example To retrieve vault lock-policy related attributes that are set on a vault
60
+ * ```javascript
61
+ * // The example retrieves the attributes from the lock-policy subresource set on the vault named examplevault.
62
+ * const input = {
63
+ * "accountId": "-",
64
+ * "vaultName": "examplevault"
65
+ * };
66
+ * const command = new GetVaultLockCommand(input);
67
+ * const response = await client.send(command);
68
+ * /* response ==
69
+ * {
70
+ * "CreationDate": "exampledate",
71
+ * "ExpirationDate": "exampledate",
72
+ * "Policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Sid\":\"Define-vault-lock\",\"Effect\":\"Deny\",\"Principal\":{\"AWS\":\"arn:aws:iam::999999999999:root\"},\"Action\":\"glacier:DeleteArchive\",\"Resource\":\"arn:aws:glacier:us-west-2:999999999999:vaults/examplevault\",\"Condition\":{\"NumericLessThanEquals\":{\"glacier:ArchiveAgeinDays\":\"365\"}}}]}",
73
+ * "State": "InProgress"
74
+ * }
75
+ * *\/
76
+ * // example id: to-retrieve-vault-lock-policy-related-attributes-that-are-set-on-a-vault-1481851363097
77
+ * ```
78
+ *
59
79
  */
60
80
  export declare class GetVaultLockCommand extends $Command<GetVaultLockCommandInput, GetVaultLockCommandOutput, GlacierClientResolvedConfig> {
61
81
  readonly input: GetVaultLockCommandInput;
@@ -44,6 +44,29 @@ export interface GetVaultNotificationsCommandOutput extends GetVaultNotification
44
44
  * @see {@link GetVaultNotificationsCommandOutput} for command's `response` shape.
45
45
  * @see {@link GlacierClientResolvedConfig | config} for GlacierClient's `config` shape.
46
46
  *
47
+ * @example To get the notification-configuration for the specified vault
48
+ * ```javascript
49
+ * // The example retrieves the notification-configuration for the vault named my-vault.
50
+ * const input = {
51
+ * "accountId": "-",
52
+ * "vaultName": "my-vault"
53
+ * };
54
+ * const command = new GetVaultNotificationsCommand(input);
55
+ * const response = await client.send(command);
56
+ * /* response ==
57
+ * {
58
+ * "vaultNotificationConfig": {
59
+ * "Events": [
60
+ * "InventoryRetrievalCompleted",
61
+ * "ArchiveRetrievalCompleted"
62
+ * ],
63
+ * "SNSTopic": "arn:aws:sns:us-west-2:0123456789012:my-vault"
64
+ * }
65
+ * }
66
+ * *\/
67
+ * // example id: to-get-the-notification-configuration-for-the-specified-vault-1481918746677
68
+ * ```
69
+ *
47
70
  */
48
71
  export declare class GetVaultNotificationsCommand extends $Command<GetVaultNotificationsCommandInput, GetVaultNotificationsCommandOutput, GlacierClientResolvedConfig> {
49
72
  readonly input: GetVaultNotificationsCommandInput;
@@ -33,6 +33,30 @@ export interface InitiateJobCommandOutput extends InitiateJobOutput, __MetadataB
33
33
  * @see {@link InitiateJobCommandOutput} for command's `response` shape.
34
34
  * @see {@link GlacierClientResolvedConfig | config} for GlacierClient's `config` shape.
35
35
  *
36
+ * @example To initiate an inventory-retrieval job
37
+ * ```javascript
38
+ * // The example initiates an inventory-retrieval job for the vault named examplevault.
39
+ * const input = {
40
+ * "accountId": "-",
41
+ * "jobParameters": {
42
+ * "Description": "My inventory job",
43
+ * "Format": "CSV",
44
+ * "SNSTopic": "arn:aws:sns:us-west-2:111111111111:Glacier-InventoryRetrieval-topic-Example",
45
+ * "Type": "inventory-retrieval"
46
+ * },
47
+ * "vaultName": "examplevault"
48
+ * };
49
+ * const command = new InitiateJobCommand(input);
50
+ * const response = await client.send(command);
51
+ * /* response ==
52
+ * {
53
+ * "jobId": " HkF9p6o7yjhFx-K3CGl6fuSm6VzW9T7esGQfco8nUXVYwS0jlb5gq1JZ55yHgt5vP54ZShjoQzQVVh7vEXAMPLEjobID",
54
+ * "location": "/111122223333/vaults/examplevault/jobs/HkF9p6o7yjhFx-K3CGl6fuSm6VzW9T7esGQfco8nUXVYwS0jlb5gq1JZ55yHgt5vP54ZShjoQzQVVh7vEXAMPLEjobID"
55
+ * }
56
+ * *\/
57
+ * // example id: to-initiate-an-inventory-retrieval-job-1482186883826
58
+ * ```
59
+ *
36
60
  */
37
61
  export declare class InitiateJobCommand extends $Command<InitiateJobCommandInput, InitiateJobCommandOutput, GlacierClientResolvedConfig> {
38
62
  readonly input: InitiateJobCommandInput;
@@ -62,6 +62,25 @@ export interface InitiateMultipartUploadCommandOutput extends InitiateMultipartU
62
62
  * @see {@link InitiateMultipartUploadCommandOutput} for command's `response` shape.
63
63
  * @see {@link GlacierClientResolvedConfig | config} for GlacierClient's `config` shape.
64
64
  *
65
+ * @example To initiate a multipart upload
66
+ * ```javascript
67
+ * // The example initiates a multipart upload to a vault named my-vault with a part size of 1 MiB (1024 x 1024 bytes) per file.
68
+ * const input = {
69
+ * "accountId": "-",
70
+ * "partSize": "1048576",
71
+ * "vaultName": "my-vault"
72
+ * };
73
+ * const command = new InitiateMultipartUploadCommand(input);
74
+ * const response = await client.send(command);
75
+ * /* response ==
76
+ * {
77
+ * "location": "/111122223333/vaults/my-vault/multipart-uploads/19gaRezEXAMPLES6Ry5YYdqthHOC_kGRCT03L9yetr220UmPtBYKk-OssZtLqyFu7sY1_lR7vgFuJV6NtcV5zpsJ",
78
+ * "uploadId": "19gaRezEXAMPLES6Ry5YYdqthHOC_kGRCT03L9yetr220UmPtBYKk-OssZtLqyFu7sY1_lR7vgFuJV6NtcV5zpsJ"
79
+ * }
80
+ * *\/
81
+ * // example id: 72f2db19-3d93-4c74-b2ed-38703baacf49
82
+ * ```
83
+ *
65
84
  */
66
85
  export declare class InitiateMultipartUploadCommand extends $Command<InitiateMultipartUploadCommandInput, InitiateMultipartUploadCommandOutput, GlacierClientResolvedConfig> {
67
86
  readonly input: InitiateMultipartUploadCommandInput;
@@ -63,6 +63,26 @@ export interface InitiateVaultLockCommandOutput extends InitiateVaultLockOutput,
63
63
  * @see {@link InitiateVaultLockCommandOutput} for command's `response` shape.
64
64
  * @see {@link GlacierClientResolvedConfig | config} for GlacierClient's `config` shape.
65
65
  *
66
+ * @example To initiate the vault locking process
67
+ * ```javascript
68
+ * // The example initiates the vault locking process for the vault named my-vault.
69
+ * const input = {
70
+ * "accountId": "-",
71
+ * "policy": {
72
+ * "Policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Sid\":\"Define-vault-lock\",\"Effect\":\"Deny\",\"Principal\":{\"AWS\":\"arn:aws:iam::999999999999:root\"},\"Action\":\"glacier:DeleteArchive\",\"Resource\":\"arn:aws:glacier:us-west-2:999999999999:vaults/examplevault\",\"Condition\":{\"NumericLessThanEquals\":{\"glacier:ArchiveAgeinDays\":\"365\"}}}]}"
73
+ * },
74
+ * "vaultName": "my-vault"
75
+ * };
76
+ * const command = new InitiateVaultLockCommand(input);
77
+ * const response = await client.send(command);
78
+ * /* response ==
79
+ * {
80
+ * "lockId": "AE863rKkWZU53SLW5be4DUcW"
81
+ * }
82
+ * *\/
83
+ * // example id: to-initiate-the-vault-locking-process-1481919693394
84
+ * ```
85
+ *
66
86
  */
67
87
  export declare class InitiateVaultLockCommand extends $Command<InitiateVaultLockCommandInput, InitiateVaultLockCommandOutput, GlacierClientResolvedConfig> {
68
88
  readonly input: InitiateVaultLockCommandInput;
@@ -64,6 +64,50 @@ export interface ListJobsCommandOutput extends ListJobsOutput, __MetadataBearer
64
64
  * @see {@link ListJobsCommandOutput} for command's `response` shape.
65
65
  * @see {@link GlacierClientResolvedConfig | config} for GlacierClient's `config` shape.
66
66
  *
67
+ * @example To list jobs for a vault
68
+ * ```javascript
69
+ * // The example lists jobs for the vault named my-vault.
70
+ * const input = {
71
+ * "accountId": "-",
72
+ * "vaultName": "my-vault"
73
+ * };
74
+ * const command = new ListJobsCommand(input);
75
+ * const response = await client.send(command);
76
+ * /* response ==
77
+ * {
78
+ * "JobList": [
79
+ * {
80
+ * "Action": "ArchiveRetrieval",
81
+ * "ArchiveId": "kKB7ymWJVpPSwhGP6ycSOAekp9ZYe_--zM_mw6k76ZFGEIWQX-ybtRDvc2VkPSDtfKmQrj0IRQLSGsNuDp-AJVlu2ccmDSyDUmZwKbwbpAdGATGDiB3hHO0bjbGehXTcApVud_wyDw",
82
+ * "ArchiveSHA256TreeHash": "9628195fcdbcbbe76cdde932d4646fa7de5f219fb39823836d81f0cc0e18aa67",
83
+ * "ArchiveSizeInBytes": 3145728,
84
+ * "Completed": false,
85
+ * "CreationDate": "2015-07-17T21:16:13.840Z",
86
+ * "JobDescription": "Retrieve archive on 2015-07-17",
87
+ * "JobId": "l7IL5-EkXyEY9Ws95fClzIbk2O5uLYaFdAYOi-azsX_Z8V6NH4yERHzars8wTKYQMX6nBDI9cMNHzyZJO59-8N9aHWav",
88
+ * "RetrievalByteRange": "0-3145727",
89
+ * "SHA256TreeHash": "9628195fcdbcbbe76cdde932d4646fa7de5f219fb39823836d81f0cc0e18aa67",
90
+ * "SNSTopic": "arn:aws:sns:us-west-2:0123456789012:my-vault",
91
+ * "StatusCode": "InProgress",
92
+ * "VaultARN": "arn:aws:glacier:us-west-2:0123456789012:vaults/my-vault"
93
+ * },
94
+ * {
95
+ * "Action": "InventoryRetrieval",
96
+ * "Completed": false,
97
+ * "CreationDate": "2015-07-17T20:23:41.616Z",
98
+ * "InventoryRetrievalParameters": {
99
+ * "Format": "JSON"
100
+ * },
101
+ * "JobId": "zbxcm3Z_3z5UkoroF7SuZKrxgGoDc3RloGduS7Eg-RO47Yc6FxsdGBgf_Q2DK5Ejh18CnTS5XW4_XqlNHS61dsO4CnMW",
102
+ * "StatusCode": "InProgress",
103
+ * "VaultARN": "arn:aws:glacier:us-west-2:0123456789012:vaults/my-vault"
104
+ * }
105
+ * ]
106
+ * }
107
+ * *\/
108
+ * // example id: to-list-jobs-for-a-vault-1481920530537
109
+ * ```
110
+ *
67
111
  */
68
112
  export declare class ListJobsCommand extends $Command<ListJobsCommandInput, ListJobsCommandOutput, GlacierClientResolvedConfig> {
69
113
  readonly input: ListJobsCommandInput;
@@ -54,6 +54,46 @@ export interface ListMultipartUploadsCommandOutput extends ListMultipartUploadsO
54
54
  * @see {@link ListMultipartUploadsCommandOutput} for command's `response` shape.
55
55
  * @see {@link GlacierClientResolvedConfig | config} for GlacierClient's `config` shape.
56
56
  *
57
+ * @example To list all the in-progress multipart uploads for a vault
58
+ * ```javascript
59
+ * // The example lists all the in-progress multipart uploads for the vault named examplevault.
60
+ * const input = {
61
+ * "accountId": "-",
62
+ * "vaultName": "examplevault"
63
+ * };
64
+ * const command = new ListMultipartUploadsCommand(input);
65
+ * const response = await client.send(command);
66
+ * /* response ==
67
+ * {
68
+ * "Marker": "null",
69
+ * "UploadsList": [
70
+ * {
71
+ * "ArchiveDescription": "archive 1",
72
+ * "CreationDate": "2012-03-19T23:20:59.130Z",
73
+ * "MultipartUploadId": "xsQdFIRsfJr20CW2AbZBKpRZAFTZSJIMtL2hYf8mvp8dM0m4RUzlaqoEye6g3h3ecqB_zqwB7zLDMeSWhwo65re4C4Ev",
74
+ * "PartSizeInBytes": 4194304,
75
+ * "VaultARN": "arn:aws:glacier:us-west-2:012345678901:vaults/examplevault"
76
+ * },
77
+ * {
78
+ * "ArchiveDescription": "archive 2",
79
+ * "CreationDate": "2012-04-01T15:00:00.000Z",
80
+ * "MultipartUploadId": "nPyGOnyFcx67qqX7E-0tSGiRi88hHMOwOxR-_jNyM6RjVMFfV29lFqZ3rNsSaWBugg6OP92pRtufeHdQH7ClIpSF6uJc",
81
+ * "PartSizeInBytes": 4194304,
82
+ * "VaultARN": "arn:aws:glacier:us-west-2:012345678901:vaults/examplevault"
83
+ * },
84
+ * {
85
+ * "ArchiveDescription": "archive 3",
86
+ * "CreationDate": "2012-03-20T17:03:43.221Z",
87
+ * "MultipartUploadId": "qt-RBst_7yO8gVIonIBsAxr2t-db0pE4s8MNeGjKjGdNpuU-cdSAcqG62guwV9r5jh5mLyFPzFEitTpNE7iQfHiu1XoV",
88
+ * "PartSizeInBytes": 4194304,
89
+ * "VaultARN": "arn:aws:glacier:us-west-2:012345678901:vaults/examplevault"
90
+ * }
91
+ * ]
92
+ * }
93
+ * *\/
94
+ * // example id: to-list-all-the-in-progress-multipart-uploads-for-a-vault-1481935250590
95
+ * ```
96
+ *
57
97
  */
58
98
  export declare class ListMultipartUploadsCommand extends $Command<ListMultipartUploadsCommandInput, ListMultipartUploadsCommandOutput, GlacierClientResolvedConfig> {
59
99
  readonly input: ListMultipartUploadsCommandInput;
@@ -50,6 +50,39 @@ export interface ListPartsCommandOutput extends ListPartsOutput, __MetadataBeare
50
50
  * @see {@link ListPartsCommandOutput} for command's `response` shape.
51
51
  * @see {@link GlacierClientResolvedConfig | config} for GlacierClient's `config` shape.
52
52
  *
53
+ * @example To list the parts of an archive that have been uploaded in a multipart upload
54
+ * ```javascript
55
+ * // The example lists all the parts of a multipart upload.
56
+ * const input = {
57
+ * "accountId": "-",
58
+ * "uploadId": "OW2fM5iVylEpFEMM9_HpKowRapC3vn5sSL39_396UW9zLFUWVrnRHaPjUJddQ5OxSHVXjYtrN47NBZ-khxOjyEXAMPLE",
59
+ * "vaultName": "examplevault"
60
+ * };
61
+ * const command = new ListPartsCommand(input);
62
+ * const response = await client.send(command);
63
+ * /* response ==
64
+ * {
65
+ * "ArchiveDescription": "archive description",
66
+ * "CreationDate": "2012-03-20T17:03:43.221Z",
67
+ * "Marker": "null",
68
+ * "MultipartUploadId": "OW2fM5iVylEpFEMM9_HpKowRapC3vn5sSL39_396UW9zLFUWVrnRHaPjUJddQ5OxSHVXjYtrN47NBZ-khxOjyEXAMPLE",
69
+ * "PartSizeInBytes": 4194304,
70
+ * "Parts": [
71
+ * {
72
+ * "RangeInBytes": "0-4194303",
73
+ * "SHA256TreeHash": "01d34dabf7be316472c93b1ef80721f5d4"
74
+ * },
75
+ * {
76
+ * "RangeInBytes": "4194304-8388607",
77
+ * "SHA256TreeHash": "0195875365afda349fc21c84c099987164"
78
+ * }
79
+ * ],
80
+ * "VaultARN": "arn:aws:glacier:us-west-2:012345678901:vaults/demo1-vault"
81
+ * }
82
+ * *\/
83
+ * // example id: to-list-the-parts-of-an-archive-that-have-been-uploaded-in-a-multipart-upload-1481921767590
84
+ * ```
85
+ *
53
86
  */
54
87
  export declare class ListPartsCommand extends $Command<ListPartsCommandInput, ListPartsCommandOutput, GlacierClientResolvedConfig> {
55
88
  readonly input: ListPartsCommandInput;
@@ -30,6 +30,33 @@ export interface ListProvisionedCapacityCommandOutput extends ListProvisionedCap
30
30
  * @see {@link ListProvisionedCapacityCommandOutput} for command's `response` shape.
31
31
  * @see {@link GlacierClientResolvedConfig | config} for GlacierClient's `config` shape.
32
32
  *
33
+ * @example To list the provisioned capacity units for an account
34
+ * ```javascript
35
+ * // The example lists the provisioned capacity units for an account.
36
+ * const input = {
37
+ * "accountId": "-"
38
+ * };
39
+ * const command = new ListProvisionedCapacityCommand(input);
40
+ * const response = await client.send(command);
41
+ * /* response ==
42
+ * {
43
+ * "ProvisionedCapacityList": [
44
+ * {
45
+ * "CapacityId": "zSaq7NzHFQDANTfQkDen4V7z",
46
+ * "ExpirationDate": "2016-12-12T00:00:00.000Z",
47
+ * "StartDate": "2016-11-11T20:11:51.095Z"
48
+ * },
49
+ * {
50
+ * "CapacityId": "yXaq7NzHFQNADTfQkDen4V7z",
51
+ * "ExpirationDate": "2017-01-15T00:00:00.000Z",
52
+ * "StartDate": "2016-12-13T20:11:51.095Z"
53
+ * }
54
+ * ]
55
+ * }
56
+ * *\/
57
+ * // example id: to-list-the-provisioned-capacity-units-for-an-account-1481923656130
58
+ * ```
59
+ *
33
60
  */
34
61
  export declare class ListProvisionedCapacityCommand extends $Command<ListProvisionedCapacityCommandInput, ListProvisionedCapacityCommandOutput, GlacierClientResolvedConfig> {
35
62
  readonly input: ListProvisionedCapacityCommandInput;
@@ -31,6 +31,26 @@ export interface ListTagsForVaultCommandOutput extends ListTagsForVaultOutput, _
31
31
  * @see {@link ListTagsForVaultCommandOutput} for command's `response` shape.
32
32
  * @see {@link GlacierClientResolvedConfig | config} for GlacierClient's `config` shape.
33
33
  *
34
+ * @example To list the tags for a vault
35
+ * ```javascript
36
+ * // The example lists all the tags attached to the vault examplevault.
37
+ * const input = {
38
+ * "accountId": "-",
39
+ * "vaultName": "examplevault"
40
+ * };
41
+ * const command = new ListTagsForVaultCommand(input);
42
+ * const response = await client.send(command);
43
+ * /* response ==
44
+ * {
45
+ * "Tags": {
46
+ * "date": "july2015",
47
+ * "id": "1234"
48
+ * }
49
+ * }
50
+ * *\/
51
+ * // example id: list-tags-for-vault-1481755839720
52
+ * ```
53
+ *
34
54
  */
35
55
  export declare class ListTagsForVaultCommand extends $Command<ListTagsForVaultCommandInput, ListTagsForVaultCommandOutput, GlacierClientResolvedConfig> {
36
56
  readonly input: ListTagsForVaultCommandInput;
@@ -47,6 +47,33 @@ export interface ListVaultsCommandOutput extends ListVaultsOutput, __MetadataBea
47
47
  * @see {@link ListVaultsCommandOutput} for command's `response` shape.
48
48
  * @see {@link GlacierClientResolvedConfig | config} for GlacierClient's `config` shape.
49
49
  *
50
+ * @example To list all vaults owned by the calling user's account
51
+ * ```javascript
52
+ * // The example lists all vaults owned by the specified AWS account.
53
+ * const input = {
54
+ * "accountId": "-",
55
+ * "limit": "",
56
+ * "marker": ""
57
+ * };
58
+ * const command = new ListVaultsCommand(input);
59
+ * const response = await client.send(command);
60
+ * /* response ==
61
+ * {
62
+ * "VaultList": [
63
+ * {
64
+ * "CreationDate": "2015-04-06T21:23:45.708Z",
65
+ * "LastInventoryDate": "2015-04-07T00:26:19.028Z",
66
+ * "NumberOfArchives": 1,
67
+ * "SizeInBytes": 3178496,
68
+ * "VaultARN": "arn:aws:glacier:us-west-2:0123456789012:vaults/my-vault",
69
+ * "VaultName": "my-vault"
70
+ * }
71
+ * ]
72
+ * }
73
+ * *\/
74
+ * // example id: list-vaults-1481753006990
75
+ * ```
76
+ *
50
77
  */
51
78
  export declare class ListVaultsCommand extends $Command<ListVaultsCommandInput, ListVaultsCommandOutput, GlacierClientResolvedConfig> {
52
79
  readonly input: ListVaultsCommandInput;
@@ -29,6 +29,22 @@ export interface PurchaseProvisionedCapacityCommandOutput extends PurchaseProvis
29
29
  * @see {@link PurchaseProvisionedCapacityCommandOutput} for command's `response` shape.
30
30
  * @see {@link GlacierClientResolvedConfig | config} for GlacierClient's `config` shape.
31
31
  *
32
+ * @example To purchases a provisioned capacity unit for an AWS account
33
+ * ```javascript
34
+ * // The example purchases provisioned capacity unit for an AWS account.
35
+ * const input = {
36
+ * "accountId": "-"
37
+ * };
38
+ * const command = new PurchaseProvisionedCapacityCommand(input);
39
+ * const response = await client.send(command);
40
+ * /* response ==
41
+ * {
42
+ * "capacityId": "zSaq7NzHFQDANTfQkDen4V7z"
43
+ * }
44
+ * *\/
45
+ * // example id: to-purchases-a-provisioned-capacity-unit-for-an-aws-account-1481927446662
46
+ * ```
47
+ *
32
48
  */
33
49
  export declare class PurchaseProvisionedCapacityCommand extends $Command<PurchaseProvisionedCapacityCommandInput, PurchaseProvisionedCapacityCommandOutput, GlacierClientResolvedConfig> {
34
50
  readonly input: PurchaseProvisionedCapacityCommandInput;
@@ -32,6 +32,22 @@ export interface RemoveTagsFromVaultCommandOutput extends __MetadataBearer {
32
32
  * @see {@link RemoveTagsFromVaultCommandOutput} for command's `response` shape.
33
33
  * @see {@link GlacierClientResolvedConfig | config} for GlacierClient's `config` shape.
34
34
  *
35
+ * @example To remove tags from a vault
36
+ * ```javascript
37
+ * // The example removes two tags from the vault named examplevault.
38
+ * const input = {
39
+ * "TagKeys": [
40
+ * "examplekey1",
41
+ * "examplekey2"
42
+ * ],
43
+ * "accountId": "-",
44
+ * "vaultName": "examplevault"
45
+ * };
46
+ * const command = new RemoveTagsFromVaultCommand(input);
47
+ * await client.send(command);
48
+ * // example id: remove-tags-from-vault-1481754998801
49
+ * ```
50
+ *
35
51
  */
36
52
  export declare class RemoveTagsFromVaultCommand extends $Command<RemoveTagsFromVaultCommandInput, RemoveTagsFromVaultCommandOutput, GlacierClientResolvedConfig> {
37
53
  readonly input: RemoveTagsFromVaultCommandInput;
@@ -34,6 +34,25 @@ export interface SetDataRetrievalPolicyCommandOutput extends __MetadataBearer {
34
34
  * @see {@link SetDataRetrievalPolicyCommandOutput} for command's `response` shape.
35
35
  * @see {@link GlacierClientResolvedConfig | config} for GlacierClient's `config` shape.
36
36
  *
37
+ * @example To set and then enact a data retrieval policy
38
+ * ```javascript
39
+ * // The example sets and then enacts a data retrieval policy.
40
+ * const input = {
41
+ * "Policy": {
42
+ * "Rules": [
43
+ * {
44
+ * "BytesPerHour": 10737418240,
45
+ * "Strategy": "BytesPerHour"
46
+ * }
47
+ * ]
48
+ * },
49
+ * "accountId": "-"
50
+ * };
51
+ * const command = new SetDataRetrievalPolicyCommand(input);
52
+ * await client.send(command);
53
+ * // example id: to-set-and-then-enact-a-data-retrieval-policy--1481928352408
54
+ * ```
55
+ *
37
56
  */
38
57
  export declare class SetDataRetrievalPolicyCommand extends $Command<SetDataRetrievalPolicyCommandInput, SetDataRetrievalPolicyCommandOutput, GlacierClientResolvedConfig> {
39
58
  readonly input: SetDataRetrievalPolicyCommandInput;
@@ -34,6 +34,21 @@ export interface SetVaultAccessPolicyCommandOutput extends __MetadataBearer {
34
34
  * @see {@link SetVaultAccessPolicyCommandOutput} for command's `response` shape.
35
35
  * @see {@link GlacierClientResolvedConfig | config} for GlacierClient's `config` shape.
36
36
  *
37
+ * @example To set the access-policy on a vault
38
+ * ```javascript
39
+ * // The example configures an access policy for the vault named examplevault.
40
+ * const input = {
41
+ * "accountId": "-",
42
+ * "policy": {
43
+ * "Policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Sid\":\"Define-owner-access-rights\",\"Effect\":\"Allow\",\"Principal\":{\"AWS\":\"arn:aws:iam::999999999999:root\"},\"Action\":\"glacier:DeleteArchive\",\"Resource\":\"arn:aws:glacier:us-west-2:999999999999:vaults/examplevault\"}]}"
44
+ * },
45
+ * "vaultName": "examplevault"
46
+ * };
47
+ * const command = new SetVaultAccessPolicyCommand(input);
48
+ * await client.send(command);
49
+ * // example id: to--set-the-access-policy-on-a-vault-1482185872517
50
+ * ```
51
+ *
37
52
  */
38
53
  export declare class SetVaultAccessPolicyCommand extends $Command<SetVaultAccessPolicyCommandInput, SetVaultAccessPolicyCommandOutput, GlacierClientResolvedConfig> {
39
54
  readonly input: SetVaultAccessPolicyCommandInput;
@@ -66,6 +66,25 @@ export interface SetVaultNotificationsCommandOutput extends __MetadataBearer {
66
66
  * @see {@link SetVaultNotificationsCommandOutput} for command's `response` shape.
67
67
  * @see {@link GlacierClientResolvedConfig | config} for GlacierClient's `config` shape.
68
68
  *
69
+ * @example To configure a vault to post a message to an Amazon SNS topic when jobs complete
70
+ * ```javascript
71
+ * // The example sets the examplevault notification configuration.
72
+ * const input = {
73
+ * "accountId": "-",
74
+ * "vaultName": "examplevault",
75
+ * "vaultNotificationConfig": {
76
+ * "Events": [
77
+ * "ArchiveRetrievalCompleted",
78
+ * "InventoryRetrievalCompleted"
79
+ * ],
80
+ * "SNSTopic": "arn:aws:sns:us-west-2:012345678901:mytopic"
81
+ * }
82
+ * };
83
+ * const command = new SetVaultNotificationsCommand(input);
84
+ * await client.send(command);
85
+ * // example id: to-configure-a-vault-to-post-a-message-to-an-amazon-simple-notification-service-amazon-sns-topic-when-jobs-complete-1482186397475
86
+ * ```
87
+ *
69
88
  */
70
89
  export declare class SetVaultNotificationsCommand extends $Command<SetVaultNotificationsCommandInput, SetVaultNotificationsCommandOutput, GlacierClientResolvedConfig> {
71
90
  readonly input: SetVaultNotificationsCommandInput;
@@ -70,6 +70,28 @@ export interface UploadArchiveCommandOutput extends ArchiveCreationOutput, __Met
70
70
  * @see {@link UploadArchiveCommandOutput} for command's `response` shape.
71
71
  * @see {@link GlacierClientResolvedConfig | config} for GlacierClient's `config` shape.
72
72
  *
73
+ * @example To upload an archive
74
+ * ```javascript
75
+ * // The example adds an archive to a vault.
76
+ * const input = {
77
+ * "accountId": "-",
78
+ * "archiveDescription": "",
79
+ * "body": "example-data-to-upload",
80
+ * "checksum": "",
81
+ * "vaultName": "my-vault"
82
+ * };
83
+ * const command = new UploadArchiveCommand(input);
84
+ * const response = await client.send(command);
85
+ * /* response ==
86
+ * {
87
+ * "archiveId": "kKB7ymWJVpPSwhGP6ycSOAekp9ZYe_--zM_mw6k76ZFGEIWQX-ybtRDvc2VkPSDtfKmQrj0IRQLSGsNuDp-AJVlu2ccmDSyDUmZwKbwbpAdGATGDiB3hHO0bjbGehXTcApVud_wyDw",
88
+ * "checksum": "969fb39823836d81f0cc028195fcdbcbbe76cdde932d4646fa7de5f21e18aa67",
89
+ * "location": "/0123456789012/vaults/my-vault/archives/kKB7ymWJVpPSwhGP6ycSOAekp9ZYe_--zM_mw6k76ZFGEIWQX-ybtRDvc2VkPSDtfKmQrj0IRQLSGsNuDp-AJVlu2ccmDSyDUmZwKbwbpAdGATGDiB3hHO0bjbGehXTcApVud_wyDw"
90
+ * }
91
+ * *\/
92
+ * // example id: upload-archive-1481668510494
93
+ * ```
94
+ *
73
95
  */
74
96
  export declare class UploadArchiveCommand extends $Command<UploadArchiveCommandInput, UploadArchiveCommandOutput, GlacierClientResolvedConfig> {
75
97
  readonly input: UploadArchiveCommandInput;
@@ -89,6 +89,27 @@ export interface UploadMultipartPartCommandOutput extends UploadMultipartPartOut
89
89
  * @see {@link UploadMultipartPartCommandOutput} for command's `response` shape.
90
90
  * @see {@link GlacierClientResolvedConfig | config} for GlacierClient's `config` shape.
91
91
  *
92
+ * @example To upload the first part of an archive
93
+ * ```javascript
94
+ * // The example uploads the first 1 MiB (1024 x 1024 bytes) part of an archive.
95
+ * const input = {
96
+ * "accountId": "-",
97
+ * "body": "part1",
98
+ * "checksum": "c06f7cd4baacb087002a99a5f48bf953",
99
+ * "range": "bytes 0-1048575/*",
100
+ * "uploadId": "19gaRezEXAMPLES6Ry5YYdqthHOC_kGRCT03L9yetr220UmPtBYKk-OssZtLqyFu7sY1_lR7vgFuJV6NtcV5zpsJ",
101
+ * "vaultName": "examplevault"
102
+ * };
103
+ * const command = new UploadMultipartPartCommand(input);
104
+ * const response = await client.send(command);
105
+ * /* response ==
106
+ * {
107
+ * "checksum": "c06f7cd4baacb087002a99a5f48bf953"
108
+ * }
109
+ * *\/
110
+ * // example id: to-upload-the-first-part-of-an-archive-1481835899519
111
+ * ```
112
+ *
92
113
  */
93
114
  export declare class UploadMultipartPartCommand extends $Command<UploadMultipartPartCommandInput, UploadMultipartPartCommandOutput, GlacierClientResolvedConfig> {
94
115
  readonly input: UploadMultipartPartCommandInput;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-glacier",
3
3
  "description": "AWS SDK for JavaScript Glacier Client for Node.js, Browser and React Native",
4
- "version": "3.287.0",
4
+ "version": "3.289.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,44 +20,44 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/body-checksum-browser": "3.282.0",
24
- "@aws-sdk/body-checksum-node": "3.282.0",
25
- "@aws-sdk/client-sts": "3.287.0",
26
- "@aws-sdk/config-resolver": "3.287.0",
27
- "@aws-sdk/credential-provider-node": "3.287.0",
28
- "@aws-sdk/fetch-http-handler": "3.282.0",
29
- "@aws-sdk/hash-node": "3.272.0",
30
- "@aws-sdk/invalid-dependency": "3.272.0",
31
- "@aws-sdk/middleware-content-length": "3.282.0",
32
- "@aws-sdk/middleware-endpoint": "3.282.0",
33
- "@aws-sdk/middleware-host-header": "3.282.0",
34
- "@aws-sdk/middleware-logger": "3.287.0",
35
- "@aws-sdk/middleware-recursion-detection": "3.282.0",
36
- "@aws-sdk/middleware-retry": "3.287.0",
37
- "@aws-sdk/middleware-sdk-glacier": "3.282.0",
38
- "@aws-sdk/middleware-serde": "3.272.0",
39
- "@aws-sdk/middleware-signing": "3.282.0",
40
- "@aws-sdk/middleware-stack": "3.272.0",
41
- "@aws-sdk/middleware-user-agent": "3.282.0",
42
- "@aws-sdk/node-config-provider": "3.287.0",
43
- "@aws-sdk/node-http-handler": "3.282.0",
44
- "@aws-sdk/protocol-http": "3.282.0",
45
- "@aws-sdk/smithy-client": "3.279.0",
46
- "@aws-sdk/types": "3.272.0",
47
- "@aws-sdk/url-parser": "3.272.0",
23
+ "@aws-sdk/body-checksum-browser": "3.289.0",
24
+ "@aws-sdk/body-checksum-node": "3.289.0",
25
+ "@aws-sdk/client-sts": "3.289.0",
26
+ "@aws-sdk/config-resolver": "3.289.0",
27
+ "@aws-sdk/credential-provider-node": "3.289.0",
28
+ "@aws-sdk/fetch-http-handler": "3.289.0",
29
+ "@aws-sdk/hash-node": "3.289.0",
30
+ "@aws-sdk/invalid-dependency": "3.289.0",
31
+ "@aws-sdk/middleware-content-length": "3.289.0",
32
+ "@aws-sdk/middleware-endpoint": "3.289.0",
33
+ "@aws-sdk/middleware-host-header": "3.289.0",
34
+ "@aws-sdk/middleware-logger": "3.289.0",
35
+ "@aws-sdk/middleware-recursion-detection": "3.289.0",
36
+ "@aws-sdk/middleware-retry": "3.289.0",
37
+ "@aws-sdk/middleware-sdk-glacier": "3.289.0",
38
+ "@aws-sdk/middleware-serde": "3.289.0",
39
+ "@aws-sdk/middleware-signing": "3.289.0",
40
+ "@aws-sdk/middleware-stack": "3.289.0",
41
+ "@aws-sdk/middleware-user-agent": "3.289.0",
42
+ "@aws-sdk/node-config-provider": "3.289.0",
43
+ "@aws-sdk/node-http-handler": "3.289.0",
44
+ "@aws-sdk/protocol-http": "3.289.0",
45
+ "@aws-sdk/smithy-client": "3.289.0",
46
+ "@aws-sdk/types": "3.289.0",
47
+ "@aws-sdk/url-parser": "3.289.0",
48
48
  "@aws-sdk/util-base64": "3.208.0",
49
49
  "@aws-sdk/util-body-length-browser": "3.188.0",
50
50
  "@aws-sdk/util-body-length-node": "3.208.0",
51
- "@aws-sdk/util-defaults-mode-browser": "3.279.0",
52
- "@aws-sdk/util-defaults-mode-node": "3.287.0",
53
- "@aws-sdk/util-endpoints": "3.272.0",
54
- "@aws-sdk/util-retry": "3.272.0",
55
- "@aws-sdk/util-stream-browser": "3.282.0",
56
- "@aws-sdk/util-stream-node": "3.282.0",
57
- "@aws-sdk/util-user-agent-browser": "3.282.0",
58
- "@aws-sdk/util-user-agent-node": "3.287.0",
51
+ "@aws-sdk/util-defaults-mode-browser": "3.289.0",
52
+ "@aws-sdk/util-defaults-mode-node": "3.289.0",
53
+ "@aws-sdk/util-endpoints": "3.289.0",
54
+ "@aws-sdk/util-retry": "3.289.0",
55
+ "@aws-sdk/util-stream-browser": "3.289.0",
56
+ "@aws-sdk/util-stream-node": "3.289.0",
57
+ "@aws-sdk/util-user-agent-browser": "3.289.0",
58
+ "@aws-sdk/util-user-agent-node": "3.289.0",
59
59
  "@aws-sdk/util-utf8": "3.254.0",
60
- "@aws-sdk/util-waiter": "3.272.0",
60
+ "@aws-sdk/util-waiter": "3.289.0",
61
61
  "tslib": "^2.3.1"
62
62
  },
63
63
  "devDependencies": {