@aws-sdk/client-glacier 3.35.0 → 3.36.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.
- package/CHANGELOG.md +13 -0
- package/dist-cjs/Glacier.js +0 -1
- package/dist-cjs/GlacierClient.js +0 -1
- package/dist-cjs/commands/AbortMultipartUploadCommand.js +0 -1
- package/dist-cjs/commands/AbortVaultLockCommand.js +0 -1
- package/dist-cjs/commands/AddTagsToVaultCommand.js +0 -1
- package/dist-cjs/commands/CompleteMultipartUploadCommand.js +0 -1
- package/dist-cjs/commands/CompleteVaultLockCommand.js +0 -1
- package/dist-cjs/commands/CreateVaultCommand.js +0 -1
- package/dist-cjs/commands/DeleteArchiveCommand.js +0 -1
- package/dist-cjs/commands/DeleteVaultAccessPolicyCommand.js +0 -1
- package/dist-cjs/commands/DeleteVaultCommand.js +0 -1
- package/dist-cjs/commands/DeleteVaultNotificationsCommand.js +0 -1
- package/dist-cjs/commands/DescribeJobCommand.js +0 -1
- package/dist-cjs/commands/DescribeVaultCommand.js +0 -1
- package/dist-cjs/commands/GetDataRetrievalPolicyCommand.js +0 -1
- package/dist-cjs/commands/GetJobOutputCommand.js +0 -1
- package/dist-cjs/commands/GetVaultAccessPolicyCommand.js +0 -1
- package/dist-cjs/commands/GetVaultLockCommand.js +0 -1
- package/dist-cjs/commands/GetVaultNotificationsCommand.js +0 -1
- package/dist-cjs/commands/InitiateJobCommand.js +0 -1
- package/dist-cjs/commands/InitiateMultipartUploadCommand.js +0 -1
- package/dist-cjs/commands/InitiateVaultLockCommand.js +0 -1
- package/dist-cjs/commands/ListJobsCommand.js +0 -1
- package/dist-cjs/commands/ListMultipartUploadsCommand.js +0 -1
- package/dist-cjs/commands/ListPartsCommand.js +0 -1
- package/dist-cjs/commands/ListProvisionedCapacityCommand.js +0 -1
- package/dist-cjs/commands/ListTagsForVaultCommand.js +0 -1
- package/dist-cjs/commands/ListVaultsCommand.js +0 -1
- package/dist-cjs/commands/PurchaseProvisionedCapacityCommand.js +0 -1
- package/dist-cjs/commands/RemoveTagsFromVaultCommand.js +0 -1
- package/dist-cjs/commands/SetDataRetrievalPolicyCommand.js +0 -1
- package/dist-cjs/commands/SetVaultAccessPolicyCommand.js +0 -1
- package/dist-cjs/commands/SetVaultNotificationsCommand.js +0 -1
- package/dist-cjs/commands/UploadArchiveCommand.js +0 -1
- package/dist-cjs/commands/UploadMultipartPartCommand.js +0 -1
- package/dist-cjs/endpoints.js +0 -1
- package/dist-cjs/index.js +0 -1
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -1
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListJobsPaginator.js +0 -1
- package/dist-cjs/pagination/ListMultipartUploadsPaginator.js +0 -1
- package/dist-cjs/pagination/ListPartsPaginator.js +0 -1
- package/dist-cjs/pagination/ListVaultsPaginator.js +0 -1
- package/dist-cjs/protocols/Aws_restJson1.js +0 -1
- package/dist-cjs/runtimeConfig.browser.js +2 -3
- package/dist-cjs/runtimeConfig.js +3 -4
- package/dist-cjs/runtimeConfig.native.js +0 -1
- package/dist-cjs/runtimeConfig.shared.js +0 -1
- package/dist-cjs/waiters/waitForVaultExists.js +0 -1
- package/dist-cjs/waiters/waitForVaultNotExists.js +0 -1
- package/dist-es/Glacier.js +0 -1
- package/dist-es/GlacierClient.js +0 -1
- package/dist-es/commands/AbortMultipartUploadCommand.js +0 -1
- package/dist-es/commands/AbortVaultLockCommand.js +0 -1
- package/dist-es/commands/AddTagsToVaultCommand.js +0 -1
- package/dist-es/commands/CompleteMultipartUploadCommand.js +0 -1
- package/dist-es/commands/CompleteVaultLockCommand.js +0 -1
- package/dist-es/commands/CreateVaultCommand.js +0 -1
- package/dist-es/commands/DeleteArchiveCommand.js +0 -1
- package/dist-es/commands/DeleteVaultAccessPolicyCommand.js +0 -1
- package/dist-es/commands/DeleteVaultCommand.js +0 -1
- package/dist-es/commands/DeleteVaultNotificationsCommand.js +0 -1
- package/dist-es/commands/DescribeJobCommand.js +0 -1
- package/dist-es/commands/DescribeVaultCommand.js +0 -1
- package/dist-es/commands/GetDataRetrievalPolicyCommand.js +0 -1
- package/dist-es/commands/GetJobOutputCommand.js +0 -1
- package/dist-es/commands/GetVaultAccessPolicyCommand.js +0 -1
- package/dist-es/commands/GetVaultLockCommand.js +0 -1
- package/dist-es/commands/GetVaultNotificationsCommand.js +0 -1
- package/dist-es/commands/InitiateJobCommand.js +0 -1
- package/dist-es/commands/InitiateMultipartUploadCommand.js +0 -1
- package/dist-es/commands/InitiateVaultLockCommand.js +0 -1
- package/dist-es/commands/ListJobsCommand.js +0 -1
- package/dist-es/commands/ListMultipartUploadsCommand.js +0 -1
- package/dist-es/commands/ListPartsCommand.js +0 -1
- package/dist-es/commands/ListProvisionedCapacityCommand.js +0 -1
- package/dist-es/commands/ListTagsForVaultCommand.js +0 -1
- package/dist-es/commands/ListVaultsCommand.js +0 -1
- package/dist-es/commands/PurchaseProvisionedCapacityCommand.js +0 -1
- package/dist-es/commands/RemoveTagsFromVaultCommand.js +0 -1
- package/dist-es/commands/SetDataRetrievalPolicyCommand.js +0 -1
- package/dist-es/commands/SetVaultAccessPolicyCommand.js +0 -1
- package/dist-es/commands/SetVaultNotificationsCommand.js +0 -1
- package/dist-es/commands/UploadArchiveCommand.js +0 -1
- package/dist-es/commands/UploadMultipartPartCommand.js +0 -1
- package/dist-es/endpoints.js +0 -1
- package/dist-es/index.js +0 -1
- package/dist-es/models/index.js +0 -1
- package/dist-es/models/models_0.js +0 -1
- package/dist-es/pagination/Interfaces.js +0 -1
- package/dist-es/pagination/ListJobsPaginator.js +0 -1
- package/dist-es/pagination/ListMultipartUploadsPaginator.js +0 -1
- package/dist-es/pagination/ListPartsPaginator.js +0 -1
- package/dist-es/pagination/ListVaultsPaginator.js +0 -1
- package/dist-es/protocols/Aws_restJson1.js +0 -1
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +2 -3
- package/dist-es/runtimeConfig.native.js +0 -1
- package/dist-es/runtimeConfig.shared.js +0 -1
- package/dist-es/waiters/waitForVaultExists.js +0 -1
- package/dist-es/waiters/waitForVaultNotExists.js +0 -1
- package/package.json +37 -34
- package/dist-cjs/Glacier.js.map +0 -1
- package/dist-cjs/GlacierClient.js.map +0 -1
- package/dist-cjs/commands/AbortMultipartUploadCommand.js.map +0 -1
- package/dist-cjs/commands/AbortVaultLockCommand.js.map +0 -1
- package/dist-cjs/commands/AddTagsToVaultCommand.js.map +0 -1
- package/dist-cjs/commands/CompleteMultipartUploadCommand.js.map +0 -1
- package/dist-cjs/commands/CompleteVaultLockCommand.js.map +0 -1
- package/dist-cjs/commands/CreateVaultCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteArchiveCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteVaultAccessPolicyCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteVaultCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteVaultNotificationsCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeJobCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeVaultCommand.js.map +0 -1
- package/dist-cjs/commands/GetDataRetrievalPolicyCommand.js.map +0 -1
- package/dist-cjs/commands/GetJobOutputCommand.js.map +0 -1
- package/dist-cjs/commands/GetVaultAccessPolicyCommand.js.map +0 -1
- package/dist-cjs/commands/GetVaultLockCommand.js.map +0 -1
- package/dist-cjs/commands/GetVaultNotificationsCommand.js.map +0 -1
- package/dist-cjs/commands/InitiateJobCommand.js.map +0 -1
- package/dist-cjs/commands/InitiateMultipartUploadCommand.js.map +0 -1
- package/dist-cjs/commands/InitiateVaultLockCommand.js.map +0 -1
- package/dist-cjs/commands/ListJobsCommand.js.map +0 -1
- package/dist-cjs/commands/ListMultipartUploadsCommand.js.map +0 -1
- package/dist-cjs/commands/ListPartsCommand.js.map +0 -1
- package/dist-cjs/commands/ListProvisionedCapacityCommand.js.map +0 -1
- package/dist-cjs/commands/ListTagsForVaultCommand.js.map +0 -1
- package/dist-cjs/commands/ListVaultsCommand.js.map +0 -1
- package/dist-cjs/commands/PurchaseProvisionedCapacityCommand.js.map +0 -1
- package/dist-cjs/commands/RemoveTagsFromVaultCommand.js.map +0 -1
- package/dist-cjs/commands/SetDataRetrievalPolicyCommand.js.map +0 -1
- package/dist-cjs/commands/SetVaultAccessPolicyCommand.js.map +0 -1
- package/dist-cjs/commands/SetVaultNotificationsCommand.js.map +0 -1
- package/dist-cjs/commands/UploadArchiveCommand.js.map +0 -1
- package/dist-cjs/commands/UploadMultipartPartCommand.js.map +0 -1
- package/dist-cjs/endpoints.js.map +0 -1
- package/dist-cjs/index.js.map +0 -1
- package/dist-cjs/models/index.js.map +0 -1
- package/dist-cjs/models/models_0.js.map +0 -1
- package/dist-cjs/pagination/Interfaces.js.map +0 -1
- package/dist-cjs/pagination/ListJobsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListMultipartUploadsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListPartsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListVaultsPaginator.js.map +0 -1
- package/dist-cjs/protocols/Aws_restJson1.js.map +0 -1
- package/dist-cjs/runtimeConfig.browser.js.map +0 -1
- package/dist-cjs/runtimeConfig.js.map +0 -1
- package/dist-cjs/runtimeConfig.native.js.map +0 -1
- package/dist-cjs/runtimeConfig.shared.js.map +0 -1
- package/dist-cjs/waiters/waitForVaultExists.js.map +0 -1
- package/dist-cjs/waiters/waitForVaultNotExists.js.map +0 -1
- package/dist-es/Glacier.js.map +0 -1
- package/dist-es/GlacierClient.js.map +0 -1
- package/dist-es/commands/AbortMultipartUploadCommand.js.map +0 -1
- package/dist-es/commands/AbortVaultLockCommand.js.map +0 -1
- package/dist-es/commands/AddTagsToVaultCommand.js.map +0 -1
- package/dist-es/commands/CompleteMultipartUploadCommand.js.map +0 -1
- package/dist-es/commands/CompleteVaultLockCommand.js.map +0 -1
- package/dist-es/commands/CreateVaultCommand.js.map +0 -1
- package/dist-es/commands/DeleteArchiveCommand.js.map +0 -1
- package/dist-es/commands/DeleteVaultAccessPolicyCommand.js.map +0 -1
- package/dist-es/commands/DeleteVaultCommand.js.map +0 -1
- package/dist-es/commands/DeleteVaultNotificationsCommand.js.map +0 -1
- package/dist-es/commands/DescribeJobCommand.js.map +0 -1
- package/dist-es/commands/DescribeVaultCommand.js.map +0 -1
- package/dist-es/commands/GetDataRetrievalPolicyCommand.js.map +0 -1
- package/dist-es/commands/GetJobOutputCommand.js.map +0 -1
- package/dist-es/commands/GetVaultAccessPolicyCommand.js.map +0 -1
- package/dist-es/commands/GetVaultLockCommand.js.map +0 -1
- package/dist-es/commands/GetVaultNotificationsCommand.js.map +0 -1
- package/dist-es/commands/InitiateJobCommand.js.map +0 -1
- package/dist-es/commands/InitiateMultipartUploadCommand.js.map +0 -1
- package/dist-es/commands/InitiateVaultLockCommand.js.map +0 -1
- package/dist-es/commands/ListJobsCommand.js.map +0 -1
- package/dist-es/commands/ListMultipartUploadsCommand.js.map +0 -1
- package/dist-es/commands/ListPartsCommand.js.map +0 -1
- package/dist-es/commands/ListProvisionedCapacityCommand.js.map +0 -1
- package/dist-es/commands/ListTagsForVaultCommand.js.map +0 -1
- package/dist-es/commands/ListVaultsCommand.js.map +0 -1
- package/dist-es/commands/PurchaseProvisionedCapacityCommand.js.map +0 -1
- package/dist-es/commands/RemoveTagsFromVaultCommand.js.map +0 -1
- package/dist-es/commands/SetDataRetrievalPolicyCommand.js.map +0 -1
- package/dist-es/commands/SetVaultAccessPolicyCommand.js.map +0 -1
- package/dist-es/commands/SetVaultNotificationsCommand.js.map +0 -1
- package/dist-es/commands/UploadArchiveCommand.js.map +0 -1
- package/dist-es/commands/UploadMultipartPartCommand.js.map +0 -1
- package/dist-es/endpoints.js.map +0 -1
- package/dist-es/index.js.map +0 -1
- package/dist-es/models/index.js.map +0 -1
- package/dist-es/models/models_0.js.map +0 -1
- package/dist-es/pagination/Interfaces.js.map +0 -1
- package/dist-es/pagination/ListJobsPaginator.js.map +0 -1
- package/dist-es/pagination/ListMultipartUploadsPaginator.js.map +0 -1
- package/dist-es/pagination/ListPartsPaginator.js.map +0 -1
- package/dist-es/pagination/ListVaultsPaginator.js.map +0 -1
- package/dist-es/protocols/Aws_restJson1.js.map +0 -1
- package/dist-es/runtimeConfig.browser.js.map +0 -1
- package/dist-es/runtimeConfig.js.map +0 -1
- package/dist-es/runtimeConfig.native.js.map +0 -1
- package/dist-es/runtimeConfig.shared.js.map +0 -1
- package/dist-es/waiters/waitForVaultExists.js.map +0 -1
- package/dist-es/waiters/waitForVaultNotExists.js.map +0 -1
- package/jest.config.js +0 -4
- package/src/Glacier.ts +0 -1790
- package/src/GlacierClient.ts +0 -432
- package/src/commands/AbortMultipartUploadCommand.ts +0 -112
- package/src/commands/AbortVaultLockCommand.ts +0 -108
- package/src/commands/AddTagsToVaultCommand.ts +0 -100
- package/src/commands/CompleteMultipartUploadCommand.ts +0 -132
- package/src/commands/CompleteVaultLockCommand.ts +0 -108
- package/src/commands/CreateVaultCommand.ts +0 -118
- package/src/commands/DeleteArchiveCommand.ts +0 -121
- package/src/commands/DeleteVaultAccessPolicyCommand.ts +0 -101
- package/src/commands/DeleteVaultCommand.ts +0 -114
- package/src/commands/DeleteVaultNotificationsCommand.ts +0 -107
- package/src/commands/DescribeJobCommand.ts +0 -118
- package/src/commands/DescribeVaultCommand.ts +0 -112
- package/src/commands/GetDataRetrievalPolicyCommand.ts +0 -97
- package/src/commands/GetJobOutputCommand.ts +0 -131
- package/src/commands/GetVaultAccessPolicyCommand.ts +0 -100
- package/src/commands/GetVaultLockCommand.ts +0 -122
- package/src/commands/GetVaultNotificationsCommand.ts +0 -110
- package/src/commands/InitiateJobCommand.ts +0 -99
- package/src/commands/InitiateMultipartUploadCommand.ts +0 -128
- package/src/commands/InitiateVaultLockCommand.ts +0 -129
- package/src/commands/ListJobsCommand.ts +0 -130
- package/src/commands/ListMultipartUploadsCommand.ts +0 -120
- package/src/commands/ListPartsCommand.ts +0 -116
- package/src/commands/ListProvisionedCapacityCommand.ts +0 -96
- package/src/commands/ListTagsForVaultCommand.ts +0 -97
- package/src/commands/ListVaultsCommand.ts +0 -113
- package/src/commands/PurchaseProvisionedCapacityCommand.ts +0 -98
- package/src/commands/RemoveTagsFromVaultCommand.ts +0 -98
- package/src/commands/SetDataRetrievalPolicyCommand.ts +0 -100
- package/src/commands/SetVaultAccessPolicyCommand.ts +0 -100
- package/src/commands/SetVaultNotificationsCommand.ts +0 -132
- package/src/commands/UploadArchiveCommand.ts +0 -135
- package/src/commands/UploadMultipartPartCommand.ts +0 -154
- package/src/endpoints.ts +0 -91
- package/src/index.ts +0 -43
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -2898
- package/src/pagination/Interfaces.ts +0 -8
- package/src/pagination/ListJobsPaginator.ts +0 -55
- package/src/pagination/ListMultipartUploadsPaginator.ts +0 -59
- package/src/pagination/ListPartsPaginator.ts +0 -55
- package/src/pagination/ListVaultsPaginator.ts +0 -55
- package/src/protocols/Aws_restJson1.ts +0 -5189
- package/src/runtimeConfig.browser.ts +0 -43
- package/src/runtimeConfig.native.ts +0 -17
- package/src/runtimeConfig.shared.ts +0 -17
- package/src/runtimeConfig.ts +0 -48
- package/src/waiters/waitForVaultExists.ts +0 -43
- package/src/waiters/waitForVaultNotExists.ts +0 -43
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -33
- package/tsconfig.types.json +0 -9
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { GlacierClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GlacierClient";
|
|
15
|
-
import { ListProvisionedCapacityInput, ListProvisionedCapacityOutput } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_restJson1ListProvisionedCapacityCommand,
|
|
18
|
-
serializeAws_restJson1ListProvisionedCapacityCommand,
|
|
19
|
-
} from "../protocols/Aws_restJson1";
|
|
20
|
-
|
|
21
|
-
export interface ListProvisionedCapacityCommandInput extends ListProvisionedCapacityInput {}
|
|
22
|
-
export interface ListProvisionedCapacityCommandOutput extends ListProvisionedCapacityOutput, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>This operation lists the provisioned capacity units for the specified AWS
|
|
26
|
-
* account.</p>
|
|
27
|
-
* @example
|
|
28
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
-
* ```javascript
|
|
30
|
-
* import { GlacierClient, ListProvisionedCapacityCommand } from "@aws-sdk/client-glacier"; // ES Modules import
|
|
31
|
-
* // const { GlacierClient, ListProvisionedCapacityCommand } = require("@aws-sdk/client-glacier"); // CommonJS import
|
|
32
|
-
* const client = new GlacierClient(config);
|
|
33
|
-
* const command = new ListProvisionedCapacityCommand(input);
|
|
34
|
-
* const response = await client.send(command);
|
|
35
|
-
* ```
|
|
36
|
-
*
|
|
37
|
-
* @see {@link ListProvisionedCapacityCommandInput} for command's `input` shape.
|
|
38
|
-
* @see {@link ListProvisionedCapacityCommandOutput} for command's `response` shape.
|
|
39
|
-
* @see {@link GlacierClientResolvedConfig | config} for command's `input` shape.
|
|
40
|
-
*
|
|
41
|
-
*/
|
|
42
|
-
export class ListProvisionedCapacityCommand extends $Command<
|
|
43
|
-
ListProvisionedCapacityCommandInput,
|
|
44
|
-
ListProvisionedCapacityCommandOutput,
|
|
45
|
-
GlacierClientResolvedConfig
|
|
46
|
-
> {
|
|
47
|
-
// Start section: command_properties
|
|
48
|
-
// End section: command_properties
|
|
49
|
-
|
|
50
|
-
constructor(readonly input: ListProvisionedCapacityCommandInput) {
|
|
51
|
-
// Start section: command_constructor
|
|
52
|
-
super();
|
|
53
|
-
// End section: command_constructor
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* @internal
|
|
58
|
-
*/
|
|
59
|
-
resolveMiddleware(
|
|
60
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
61
|
-
configuration: GlacierClientResolvedConfig,
|
|
62
|
-
options?: __HttpHandlerOptions
|
|
63
|
-
): Handler<ListProvisionedCapacityCommandInput, ListProvisionedCapacityCommandOutput> {
|
|
64
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
65
|
-
|
|
66
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
67
|
-
|
|
68
|
-
const { logger } = configuration;
|
|
69
|
-
const clientName = "GlacierClient";
|
|
70
|
-
const commandName = "ListProvisionedCapacityCommand";
|
|
71
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
72
|
-
logger,
|
|
73
|
-
clientName,
|
|
74
|
-
commandName,
|
|
75
|
-
inputFilterSensitiveLog: ListProvisionedCapacityInput.filterSensitiveLog,
|
|
76
|
-
outputFilterSensitiveLog: ListProvisionedCapacityOutput.filterSensitiveLog,
|
|
77
|
-
};
|
|
78
|
-
const { requestHandler } = configuration;
|
|
79
|
-
return stack.resolve(
|
|
80
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
81
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
82
|
-
handlerExecutionContext
|
|
83
|
-
);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
private serialize(input: ListProvisionedCapacityCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
87
|
-
return serializeAws_restJson1ListProvisionedCapacityCommand(input, context);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListProvisionedCapacityCommandOutput> {
|
|
91
|
-
return deserializeAws_restJson1ListProvisionedCapacityCommand(output, context);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
// Start section: command_body_extra
|
|
95
|
-
// End section: command_body_extra
|
|
96
|
-
}
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { GlacierClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GlacierClient";
|
|
15
|
-
import { ListTagsForVaultInput, ListTagsForVaultOutput } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_restJson1ListTagsForVaultCommand,
|
|
18
|
-
serializeAws_restJson1ListTagsForVaultCommand,
|
|
19
|
-
} from "../protocols/Aws_restJson1";
|
|
20
|
-
|
|
21
|
-
export interface ListTagsForVaultCommandInput extends ListTagsForVaultInput {}
|
|
22
|
-
export interface ListTagsForVaultCommandOutput extends ListTagsForVaultOutput, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>This operation lists all the tags attached to a vault. The operation returns an empty
|
|
26
|
-
* map if there are no tags. For more information about tags, see <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/tagging.html">Tagging Amazon S3 Glacier
|
|
27
|
-
* Resources</a>.</p>
|
|
28
|
-
* @example
|
|
29
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
-
* ```javascript
|
|
31
|
-
* import { GlacierClient, ListTagsForVaultCommand } from "@aws-sdk/client-glacier"; // ES Modules import
|
|
32
|
-
* // const { GlacierClient, ListTagsForVaultCommand } = require("@aws-sdk/client-glacier"); // CommonJS import
|
|
33
|
-
* const client = new GlacierClient(config);
|
|
34
|
-
* const command = new ListTagsForVaultCommand(input);
|
|
35
|
-
* const response = await client.send(command);
|
|
36
|
-
* ```
|
|
37
|
-
*
|
|
38
|
-
* @see {@link ListTagsForVaultCommandInput} for command's `input` shape.
|
|
39
|
-
* @see {@link ListTagsForVaultCommandOutput} for command's `response` shape.
|
|
40
|
-
* @see {@link GlacierClientResolvedConfig | config} for command's `input` shape.
|
|
41
|
-
*
|
|
42
|
-
*/
|
|
43
|
-
export class ListTagsForVaultCommand extends $Command<
|
|
44
|
-
ListTagsForVaultCommandInput,
|
|
45
|
-
ListTagsForVaultCommandOutput,
|
|
46
|
-
GlacierClientResolvedConfig
|
|
47
|
-
> {
|
|
48
|
-
// Start section: command_properties
|
|
49
|
-
// End section: command_properties
|
|
50
|
-
|
|
51
|
-
constructor(readonly input: ListTagsForVaultCommandInput) {
|
|
52
|
-
// Start section: command_constructor
|
|
53
|
-
super();
|
|
54
|
-
// End section: command_constructor
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* @internal
|
|
59
|
-
*/
|
|
60
|
-
resolveMiddleware(
|
|
61
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
62
|
-
configuration: GlacierClientResolvedConfig,
|
|
63
|
-
options?: __HttpHandlerOptions
|
|
64
|
-
): Handler<ListTagsForVaultCommandInput, ListTagsForVaultCommandOutput> {
|
|
65
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
66
|
-
|
|
67
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
68
|
-
|
|
69
|
-
const { logger } = configuration;
|
|
70
|
-
const clientName = "GlacierClient";
|
|
71
|
-
const commandName = "ListTagsForVaultCommand";
|
|
72
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
73
|
-
logger,
|
|
74
|
-
clientName,
|
|
75
|
-
commandName,
|
|
76
|
-
inputFilterSensitiveLog: ListTagsForVaultInput.filterSensitiveLog,
|
|
77
|
-
outputFilterSensitiveLog: ListTagsForVaultOutput.filterSensitiveLog,
|
|
78
|
-
};
|
|
79
|
-
const { requestHandler } = configuration;
|
|
80
|
-
return stack.resolve(
|
|
81
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
82
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
83
|
-
handlerExecutionContext
|
|
84
|
-
);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
private serialize(input: ListTagsForVaultCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
88
|
-
return serializeAws_restJson1ListTagsForVaultCommand(input, context);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListTagsForVaultCommandOutput> {
|
|
92
|
-
return deserializeAws_restJson1ListTagsForVaultCommand(output, context);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
// Start section: command_body_extra
|
|
96
|
-
// End section: command_body_extra
|
|
97
|
-
}
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { GlacierClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GlacierClient";
|
|
15
|
-
import { ListVaultsInput, ListVaultsOutput } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_restJson1ListVaultsCommand,
|
|
18
|
-
serializeAws_restJson1ListVaultsCommand,
|
|
19
|
-
} from "../protocols/Aws_restJson1";
|
|
20
|
-
|
|
21
|
-
export interface ListVaultsCommandInput extends ListVaultsInput {}
|
|
22
|
-
export interface ListVaultsCommandOutput extends ListVaultsOutput, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>This operation lists all vaults owned by the calling user's account. The list
|
|
26
|
-
* returned in the response is ASCII-sorted by vault name.</p>
|
|
27
|
-
*
|
|
28
|
-
* <p>By default, this operation returns up to 10 items. If there are more vaults to
|
|
29
|
-
* list, the response <code>marker</code> field contains the vault Amazon Resource Name (ARN)
|
|
30
|
-
* at which to continue the list with a new List Vaults request; otherwise, the
|
|
31
|
-
* <code>marker</code> field is <code>null</code>. To return a list of vaults that begins
|
|
32
|
-
* at a specific vault, set the <code>marker</code> request parameter to the vault ARN you
|
|
33
|
-
* obtained from a previous List Vaults request. You can also limit the number of vaults
|
|
34
|
-
* returned in the response by specifying the <code>limit</code> parameter in the request. </p>
|
|
35
|
-
*
|
|
36
|
-
* <p>An AWS account has full permission to perform all operations (actions). However, AWS
|
|
37
|
-
* Identity and Access Management (IAM) users don't have any permissions by default. You must
|
|
38
|
-
* grant them explicit permission to perform specific actions. For more information, see
|
|
39
|
-
* <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/using-iam-with-amazon-glacier.html">Access Control Using
|
|
40
|
-
* AWS Identity and Access Management (IAM)</a>.</p>
|
|
41
|
-
* <p>For conceptual information and underlying REST API, see <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/retrieving-vault-info.html">Retrieving Vault Metadata in
|
|
42
|
-
* Amazon S3 Glacier</a> and <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/api-vaults-get.html">List Vaults </a> in the
|
|
43
|
-
* <i>Amazon Glacier Developer Guide</i>. </p>
|
|
44
|
-
* @example
|
|
45
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
46
|
-
* ```javascript
|
|
47
|
-
* import { GlacierClient, ListVaultsCommand } from "@aws-sdk/client-glacier"; // ES Modules import
|
|
48
|
-
* // const { GlacierClient, ListVaultsCommand } = require("@aws-sdk/client-glacier"); // CommonJS import
|
|
49
|
-
* const client = new GlacierClient(config);
|
|
50
|
-
* const command = new ListVaultsCommand(input);
|
|
51
|
-
* const response = await client.send(command);
|
|
52
|
-
* ```
|
|
53
|
-
*
|
|
54
|
-
* @see {@link ListVaultsCommandInput} for command's `input` shape.
|
|
55
|
-
* @see {@link ListVaultsCommandOutput} for command's `response` shape.
|
|
56
|
-
* @see {@link GlacierClientResolvedConfig | config} for command's `input` shape.
|
|
57
|
-
*
|
|
58
|
-
*/
|
|
59
|
-
export class ListVaultsCommand extends $Command<
|
|
60
|
-
ListVaultsCommandInput,
|
|
61
|
-
ListVaultsCommandOutput,
|
|
62
|
-
GlacierClientResolvedConfig
|
|
63
|
-
> {
|
|
64
|
-
// Start section: command_properties
|
|
65
|
-
// End section: command_properties
|
|
66
|
-
|
|
67
|
-
constructor(readonly input: ListVaultsCommandInput) {
|
|
68
|
-
// Start section: command_constructor
|
|
69
|
-
super();
|
|
70
|
-
// End section: command_constructor
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* @internal
|
|
75
|
-
*/
|
|
76
|
-
resolveMiddleware(
|
|
77
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
78
|
-
configuration: GlacierClientResolvedConfig,
|
|
79
|
-
options?: __HttpHandlerOptions
|
|
80
|
-
): Handler<ListVaultsCommandInput, ListVaultsCommandOutput> {
|
|
81
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
82
|
-
|
|
83
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
84
|
-
|
|
85
|
-
const { logger } = configuration;
|
|
86
|
-
const clientName = "GlacierClient";
|
|
87
|
-
const commandName = "ListVaultsCommand";
|
|
88
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
89
|
-
logger,
|
|
90
|
-
clientName,
|
|
91
|
-
commandName,
|
|
92
|
-
inputFilterSensitiveLog: ListVaultsInput.filterSensitiveLog,
|
|
93
|
-
outputFilterSensitiveLog: ListVaultsOutput.filterSensitiveLog,
|
|
94
|
-
};
|
|
95
|
-
const { requestHandler } = configuration;
|
|
96
|
-
return stack.resolve(
|
|
97
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
98
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
99
|
-
handlerExecutionContext
|
|
100
|
-
);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
private serialize(input: ListVaultsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
104
|
-
return serializeAws_restJson1ListVaultsCommand(input, context);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListVaultsCommandOutput> {
|
|
108
|
-
return deserializeAws_restJson1ListVaultsCommand(output, context);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
// Start section: command_body_extra
|
|
112
|
-
// End section: command_body_extra
|
|
113
|
-
}
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { GlacierClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GlacierClient";
|
|
15
|
-
import { PurchaseProvisionedCapacityInput, PurchaseProvisionedCapacityOutput } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_restJson1PurchaseProvisionedCapacityCommand,
|
|
18
|
-
serializeAws_restJson1PurchaseProvisionedCapacityCommand,
|
|
19
|
-
} from "../protocols/Aws_restJson1";
|
|
20
|
-
|
|
21
|
-
export interface PurchaseProvisionedCapacityCommandInput extends PurchaseProvisionedCapacityInput {}
|
|
22
|
-
export interface PurchaseProvisionedCapacityCommandOutput extends PurchaseProvisionedCapacityOutput, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>This operation purchases a provisioned capacity unit for an AWS account. </p>
|
|
26
|
-
* @example
|
|
27
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
-
* ```javascript
|
|
29
|
-
* import { GlacierClient, PurchaseProvisionedCapacityCommand } from "@aws-sdk/client-glacier"; // ES Modules import
|
|
30
|
-
* // const { GlacierClient, PurchaseProvisionedCapacityCommand } = require("@aws-sdk/client-glacier"); // CommonJS import
|
|
31
|
-
* const client = new GlacierClient(config);
|
|
32
|
-
* const command = new PurchaseProvisionedCapacityCommand(input);
|
|
33
|
-
* const response = await client.send(command);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @see {@link PurchaseProvisionedCapacityCommandInput} for command's `input` shape.
|
|
37
|
-
* @see {@link PurchaseProvisionedCapacityCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link GlacierClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
export class PurchaseProvisionedCapacityCommand extends $Command<
|
|
42
|
-
PurchaseProvisionedCapacityCommandInput,
|
|
43
|
-
PurchaseProvisionedCapacityCommandOutput,
|
|
44
|
-
GlacierClientResolvedConfig
|
|
45
|
-
> {
|
|
46
|
-
// Start section: command_properties
|
|
47
|
-
// End section: command_properties
|
|
48
|
-
|
|
49
|
-
constructor(readonly input: PurchaseProvisionedCapacityCommandInput) {
|
|
50
|
-
// Start section: command_constructor
|
|
51
|
-
super();
|
|
52
|
-
// End section: command_constructor
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* @internal
|
|
57
|
-
*/
|
|
58
|
-
resolveMiddleware(
|
|
59
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
60
|
-
configuration: GlacierClientResolvedConfig,
|
|
61
|
-
options?: __HttpHandlerOptions
|
|
62
|
-
): Handler<PurchaseProvisionedCapacityCommandInput, PurchaseProvisionedCapacityCommandOutput> {
|
|
63
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
64
|
-
|
|
65
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
66
|
-
|
|
67
|
-
const { logger } = configuration;
|
|
68
|
-
const clientName = "GlacierClient";
|
|
69
|
-
const commandName = "PurchaseProvisionedCapacityCommand";
|
|
70
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
-
logger,
|
|
72
|
-
clientName,
|
|
73
|
-
commandName,
|
|
74
|
-
inputFilterSensitiveLog: PurchaseProvisionedCapacityInput.filterSensitiveLog,
|
|
75
|
-
outputFilterSensitiveLog: PurchaseProvisionedCapacityOutput.filterSensitiveLog,
|
|
76
|
-
};
|
|
77
|
-
const { requestHandler } = configuration;
|
|
78
|
-
return stack.resolve(
|
|
79
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
80
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
81
|
-
handlerExecutionContext
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
private serialize(input: PurchaseProvisionedCapacityCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
-
return serializeAws_restJson1PurchaseProvisionedCapacityCommand(input, context);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private deserialize(
|
|
90
|
-
output: __HttpResponse,
|
|
91
|
-
context: __SerdeContext
|
|
92
|
-
): Promise<PurchaseProvisionedCapacityCommandOutput> {
|
|
93
|
-
return deserializeAws_restJson1PurchaseProvisionedCapacityCommand(output, context);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
// Start section: command_body_extra
|
|
97
|
-
// End section: command_body_extra
|
|
98
|
-
}
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { GlacierClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GlacierClient";
|
|
15
|
-
import { RemoveTagsFromVaultInput } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_restJson1RemoveTagsFromVaultCommand,
|
|
18
|
-
serializeAws_restJson1RemoveTagsFromVaultCommand,
|
|
19
|
-
} from "../protocols/Aws_restJson1";
|
|
20
|
-
|
|
21
|
-
export interface RemoveTagsFromVaultCommandInput extends RemoveTagsFromVaultInput {}
|
|
22
|
-
export interface RemoveTagsFromVaultCommandOutput extends __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>This operation removes one or more tags from the set of tags attached to a vault. For
|
|
26
|
-
* more information about tags, see <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/tagging.html">Tagging Amazon S3 Glacier Resources</a>.
|
|
27
|
-
* This operation is idempotent. The operation will be successful, even if there are no tags
|
|
28
|
-
* attached to the vault. </p>
|
|
29
|
-
* @example
|
|
30
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
31
|
-
* ```javascript
|
|
32
|
-
* import { GlacierClient, RemoveTagsFromVaultCommand } from "@aws-sdk/client-glacier"; // ES Modules import
|
|
33
|
-
* // const { GlacierClient, RemoveTagsFromVaultCommand } = require("@aws-sdk/client-glacier"); // CommonJS import
|
|
34
|
-
* const client = new GlacierClient(config);
|
|
35
|
-
* const command = new RemoveTagsFromVaultCommand(input);
|
|
36
|
-
* const response = await client.send(command);
|
|
37
|
-
* ```
|
|
38
|
-
*
|
|
39
|
-
* @see {@link RemoveTagsFromVaultCommandInput} for command's `input` shape.
|
|
40
|
-
* @see {@link RemoveTagsFromVaultCommandOutput} for command's `response` shape.
|
|
41
|
-
* @see {@link GlacierClientResolvedConfig | config} for command's `input` shape.
|
|
42
|
-
*
|
|
43
|
-
*/
|
|
44
|
-
export class RemoveTagsFromVaultCommand extends $Command<
|
|
45
|
-
RemoveTagsFromVaultCommandInput,
|
|
46
|
-
RemoveTagsFromVaultCommandOutput,
|
|
47
|
-
GlacierClientResolvedConfig
|
|
48
|
-
> {
|
|
49
|
-
// Start section: command_properties
|
|
50
|
-
// End section: command_properties
|
|
51
|
-
|
|
52
|
-
constructor(readonly input: RemoveTagsFromVaultCommandInput) {
|
|
53
|
-
// Start section: command_constructor
|
|
54
|
-
super();
|
|
55
|
-
// End section: command_constructor
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* @internal
|
|
60
|
-
*/
|
|
61
|
-
resolveMiddleware(
|
|
62
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
63
|
-
configuration: GlacierClientResolvedConfig,
|
|
64
|
-
options?: __HttpHandlerOptions
|
|
65
|
-
): Handler<RemoveTagsFromVaultCommandInput, RemoveTagsFromVaultCommandOutput> {
|
|
66
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
67
|
-
|
|
68
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
69
|
-
|
|
70
|
-
const { logger } = configuration;
|
|
71
|
-
const clientName = "GlacierClient";
|
|
72
|
-
const commandName = "RemoveTagsFromVaultCommand";
|
|
73
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
74
|
-
logger,
|
|
75
|
-
clientName,
|
|
76
|
-
commandName,
|
|
77
|
-
inputFilterSensitiveLog: RemoveTagsFromVaultInput.filterSensitiveLog,
|
|
78
|
-
outputFilterSensitiveLog: (output: any) => output,
|
|
79
|
-
};
|
|
80
|
-
const { requestHandler } = configuration;
|
|
81
|
-
return stack.resolve(
|
|
82
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
83
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
84
|
-
handlerExecutionContext
|
|
85
|
-
);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
private serialize(input: RemoveTagsFromVaultCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
89
|
-
return serializeAws_restJson1RemoveTagsFromVaultCommand(input, context);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<RemoveTagsFromVaultCommandOutput> {
|
|
93
|
-
return deserializeAws_restJson1RemoveTagsFromVaultCommand(output, context);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
// Start section: command_body_extra
|
|
97
|
-
// End section: command_body_extra
|
|
98
|
-
}
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { GlacierClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GlacierClient";
|
|
15
|
-
import { SetDataRetrievalPolicyInput } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_restJson1SetDataRetrievalPolicyCommand,
|
|
18
|
-
serializeAws_restJson1SetDataRetrievalPolicyCommand,
|
|
19
|
-
} from "../protocols/Aws_restJson1";
|
|
20
|
-
|
|
21
|
-
export interface SetDataRetrievalPolicyCommandInput extends SetDataRetrievalPolicyInput {}
|
|
22
|
-
export interface SetDataRetrievalPolicyCommandOutput extends __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>This operation sets and then enacts a data retrieval policy in the region specified
|
|
26
|
-
* in the PUT request. You can set one policy per region for an AWS account. The policy is
|
|
27
|
-
* enacted within a few minutes of a successful PUT operation.</p>
|
|
28
|
-
* <p>The set policy operation does not affect retrieval jobs that were in progress before
|
|
29
|
-
* the policy was enacted. For more information about data retrieval policies, see <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/data-retrieval-policy.html">Amazon
|
|
30
|
-
* Glacier Data Retrieval Policies</a>. </p>
|
|
31
|
-
* @example
|
|
32
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
-
* ```javascript
|
|
34
|
-
* import { GlacierClient, SetDataRetrievalPolicyCommand } from "@aws-sdk/client-glacier"; // ES Modules import
|
|
35
|
-
* // const { GlacierClient, SetDataRetrievalPolicyCommand } = require("@aws-sdk/client-glacier"); // CommonJS import
|
|
36
|
-
* const client = new GlacierClient(config);
|
|
37
|
-
* const command = new SetDataRetrievalPolicyCommand(input);
|
|
38
|
-
* const response = await client.send(command);
|
|
39
|
-
* ```
|
|
40
|
-
*
|
|
41
|
-
* @see {@link SetDataRetrievalPolicyCommandInput} for command's `input` shape.
|
|
42
|
-
* @see {@link SetDataRetrievalPolicyCommandOutput} for command's `response` shape.
|
|
43
|
-
* @see {@link GlacierClientResolvedConfig | config} for command's `input` shape.
|
|
44
|
-
*
|
|
45
|
-
*/
|
|
46
|
-
export class SetDataRetrievalPolicyCommand extends $Command<
|
|
47
|
-
SetDataRetrievalPolicyCommandInput,
|
|
48
|
-
SetDataRetrievalPolicyCommandOutput,
|
|
49
|
-
GlacierClientResolvedConfig
|
|
50
|
-
> {
|
|
51
|
-
// Start section: command_properties
|
|
52
|
-
// End section: command_properties
|
|
53
|
-
|
|
54
|
-
constructor(readonly input: SetDataRetrievalPolicyCommandInput) {
|
|
55
|
-
// Start section: command_constructor
|
|
56
|
-
super();
|
|
57
|
-
// End section: command_constructor
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* @internal
|
|
62
|
-
*/
|
|
63
|
-
resolveMiddleware(
|
|
64
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
65
|
-
configuration: GlacierClientResolvedConfig,
|
|
66
|
-
options?: __HttpHandlerOptions
|
|
67
|
-
): Handler<SetDataRetrievalPolicyCommandInput, SetDataRetrievalPolicyCommandOutput> {
|
|
68
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
69
|
-
|
|
70
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
71
|
-
|
|
72
|
-
const { logger } = configuration;
|
|
73
|
-
const clientName = "GlacierClient";
|
|
74
|
-
const commandName = "SetDataRetrievalPolicyCommand";
|
|
75
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
76
|
-
logger,
|
|
77
|
-
clientName,
|
|
78
|
-
commandName,
|
|
79
|
-
inputFilterSensitiveLog: SetDataRetrievalPolicyInput.filterSensitiveLog,
|
|
80
|
-
outputFilterSensitiveLog: (output: any) => output,
|
|
81
|
-
};
|
|
82
|
-
const { requestHandler } = configuration;
|
|
83
|
-
return stack.resolve(
|
|
84
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
85
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
86
|
-
handlerExecutionContext
|
|
87
|
-
);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
private serialize(input: SetDataRetrievalPolicyCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
91
|
-
return serializeAws_restJson1SetDataRetrievalPolicyCommand(input, context);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<SetDataRetrievalPolicyCommandOutput> {
|
|
95
|
-
return deserializeAws_restJson1SetDataRetrievalPolicyCommand(output, context);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
// Start section: command_body_extra
|
|
99
|
-
// End section: command_body_extra
|
|
100
|
-
}
|