@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
package/src/GlacierClient.ts
DELETED
|
@@ -1,432 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
EndpointsInputConfig,
|
|
3
|
-
EndpointsResolvedConfig,
|
|
4
|
-
RegionInputConfig,
|
|
5
|
-
RegionResolvedConfig,
|
|
6
|
-
resolveEndpointsConfig,
|
|
7
|
-
resolveRegionConfig,
|
|
8
|
-
} from "@aws-sdk/config-resolver";
|
|
9
|
-
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
10
|
-
import {
|
|
11
|
-
getHostHeaderPlugin,
|
|
12
|
-
HostHeaderInputConfig,
|
|
13
|
-
HostHeaderResolvedConfig,
|
|
14
|
-
resolveHostHeaderConfig,
|
|
15
|
-
} from "@aws-sdk/middleware-host-header";
|
|
16
|
-
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
|
17
|
-
import { getRetryPlugin, resolveRetryConfig, RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
|
|
18
|
-
import { getGlacierPlugin } from "@aws-sdk/middleware-sdk-glacier";
|
|
19
|
-
import {
|
|
20
|
-
AwsAuthInputConfig,
|
|
21
|
-
AwsAuthResolvedConfig,
|
|
22
|
-
getAwsAuthPlugin,
|
|
23
|
-
resolveAwsAuthConfig,
|
|
24
|
-
} from "@aws-sdk/middleware-signing";
|
|
25
|
-
import {
|
|
26
|
-
getUserAgentPlugin,
|
|
27
|
-
resolveUserAgentConfig,
|
|
28
|
-
UserAgentInputConfig,
|
|
29
|
-
UserAgentResolvedConfig,
|
|
30
|
-
} from "@aws-sdk/middleware-user-agent";
|
|
31
|
-
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
32
|
-
import {
|
|
33
|
-
Client as __Client,
|
|
34
|
-
SmithyConfiguration as __SmithyConfiguration,
|
|
35
|
-
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
|
|
36
|
-
} from "@aws-sdk/smithy-client";
|
|
37
|
-
import {
|
|
38
|
-
Credentials as __Credentials,
|
|
39
|
-
Decoder as __Decoder,
|
|
40
|
-
Encoder as __Encoder,
|
|
41
|
-
Hash as __Hash,
|
|
42
|
-
HashConstructor as __HashConstructor,
|
|
43
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
44
|
-
HttpRequest as __HttpRequest,
|
|
45
|
-
Logger as __Logger,
|
|
46
|
-
Provider as __Provider,
|
|
47
|
-
Provider,
|
|
48
|
-
RegionInfoProvider,
|
|
49
|
-
StreamCollector as __StreamCollector,
|
|
50
|
-
UrlParser as __UrlParser,
|
|
51
|
-
UserAgent as __UserAgent,
|
|
52
|
-
} from "@aws-sdk/types";
|
|
53
|
-
|
|
54
|
-
import {
|
|
55
|
-
AbortMultipartUploadCommandInput,
|
|
56
|
-
AbortMultipartUploadCommandOutput,
|
|
57
|
-
} from "./commands/AbortMultipartUploadCommand";
|
|
58
|
-
import { AbortVaultLockCommandInput, AbortVaultLockCommandOutput } from "./commands/AbortVaultLockCommand";
|
|
59
|
-
import { AddTagsToVaultCommandInput, AddTagsToVaultCommandOutput } from "./commands/AddTagsToVaultCommand";
|
|
60
|
-
import {
|
|
61
|
-
CompleteMultipartUploadCommandInput,
|
|
62
|
-
CompleteMultipartUploadCommandOutput,
|
|
63
|
-
} from "./commands/CompleteMultipartUploadCommand";
|
|
64
|
-
import { CompleteVaultLockCommandInput, CompleteVaultLockCommandOutput } from "./commands/CompleteVaultLockCommand";
|
|
65
|
-
import { CreateVaultCommandInput, CreateVaultCommandOutput } from "./commands/CreateVaultCommand";
|
|
66
|
-
import { DeleteArchiveCommandInput, DeleteArchiveCommandOutput } from "./commands/DeleteArchiveCommand";
|
|
67
|
-
import {
|
|
68
|
-
DeleteVaultAccessPolicyCommandInput,
|
|
69
|
-
DeleteVaultAccessPolicyCommandOutput,
|
|
70
|
-
} from "./commands/DeleteVaultAccessPolicyCommand";
|
|
71
|
-
import { DeleteVaultCommandInput, DeleteVaultCommandOutput } from "./commands/DeleteVaultCommand";
|
|
72
|
-
import {
|
|
73
|
-
DeleteVaultNotificationsCommandInput,
|
|
74
|
-
DeleteVaultNotificationsCommandOutput,
|
|
75
|
-
} from "./commands/DeleteVaultNotificationsCommand";
|
|
76
|
-
import { DescribeJobCommandInput, DescribeJobCommandOutput } from "./commands/DescribeJobCommand";
|
|
77
|
-
import { DescribeVaultCommandInput, DescribeVaultCommandOutput } from "./commands/DescribeVaultCommand";
|
|
78
|
-
import {
|
|
79
|
-
GetDataRetrievalPolicyCommandInput,
|
|
80
|
-
GetDataRetrievalPolicyCommandOutput,
|
|
81
|
-
} from "./commands/GetDataRetrievalPolicyCommand";
|
|
82
|
-
import { GetJobOutputCommandInput, GetJobOutputCommandOutput } from "./commands/GetJobOutputCommand";
|
|
83
|
-
import {
|
|
84
|
-
GetVaultAccessPolicyCommandInput,
|
|
85
|
-
GetVaultAccessPolicyCommandOutput,
|
|
86
|
-
} from "./commands/GetVaultAccessPolicyCommand";
|
|
87
|
-
import { GetVaultLockCommandInput, GetVaultLockCommandOutput } from "./commands/GetVaultLockCommand";
|
|
88
|
-
import {
|
|
89
|
-
GetVaultNotificationsCommandInput,
|
|
90
|
-
GetVaultNotificationsCommandOutput,
|
|
91
|
-
} from "./commands/GetVaultNotificationsCommand";
|
|
92
|
-
import { InitiateJobCommandInput, InitiateJobCommandOutput } from "./commands/InitiateJobCommand";
|
|
93
|
-
import {
|
|
94
|
-
InitiateMultipartUploadCommandInput,
|
|
95
|
-
InitiateMultipartUploadCommandOutput,
|
|
96
|
-
} from "./commands/InitiateMultipartUploadCommand";
|
|
97
|
-
import { InitiateVaultLockCommandInput, InitiateVaultLockCommandOutput } from "./commands/InitiateVaultLockCommand";
|
|
98
|
-
import { ListJobsCommandInput, ListJobsCommandOutput } from "./commands/ListJobsCommand";
|
|
99
|
-
import {
|
|
100
|
-
ListMultipartUploadsCommandInput,
|
|
101
|
-
ListMultipartUploadsCommandOutput,
|
|
102
|
-
} from "./commands/ListMultipartUploadsCommand";
|
|
103
|
-
import { ListPartsCommandInput, ListPartsCommandOutput } from "./commands/ListPartsCommand";
|
|
104
|
-
import {
|
|
105
|
-
ListProvisionedCapacityCommandInput,
|
|
106
|
-
ListProvisionedCapacityCommandOutput,
|
|
107
|
-
} from "./commands/ListProvisionedCapacityCommand";
|
|
108
|
-
import { ListTagsForVaultCommandInput, ListTagsForVaultCommandOutput } from "./commands/ListTagsForVaultCommand";
|
|
109
|
-
import { ListVaultsCommandInput, ListVaultsCommandOutput } from "./commands/ListVaultsCommand";
|
|
110
|
-
import {
|
|
111
|
-
PurchaseProvisionedCapacityCommandInput,
|
|
112
|
-
PurchaseProvisionedCapacityCommandOutput,
|
|
113
|
-
} from "./commands/PurchaseProvisionedCapacityCommand";
|
|
114
|
-
import {
|
|
115
|
-
RemoveTagsFromVaultCommandInput,
|
|
116
|
-
RemoveTagsFromVaultCommandOutput,
|
|
117
|
-
} from "./commands/RemoveTagsFromVaultCommand";
|
|
118
|
-
import {
|
|
119
|
-
SetDataRetrievalPolicyCommandInput,
|
|
120
|
-
SetDataRetrievalPolicyCommandOutput,
|
|
121
|
-
} from "./commands/SetDataRetrievalPolicyCommand";
|
|
122
|
-
import {
|
|
123
|
-
SetVaultAccessPolicyCommandInput,
|
|
124
|
-
SetVaultAccessPolicyCommandOutput,
|
|
125
|
-
} from "./commands/SetVaultAccessPolicyCommand";
|
|
126
|
-
import {
|
|
127
|
-
SetVaultNotificationsCommandInput,
|
|
128
|
-
SetVaultNotificationsCommandOutput,
|
|
129
|
-
} from "./commands/SetVaultNotificationsCommand";
|
|
130
|
-
import { UploadArchiveCommandInput, UploadArchiveCommandOutput } from "./commands/UploadArchiveCommand";
|
|
131
|
-
import {
|
|
132
|
-
UploadMultipartPartCommandInput,
|
|
133
|
-
UploadMultipartPartCommandOutput,
|
|
134
|
-
} from "./commands/UploadMultipartPartCommand";
|
|
135
|
-
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
136
|
-
|
|
137
|
-
export type ServiceInputTypes =
|
|
138
|
-
| AbortMultipartUploadCommandInput
|
|
139
|
-
| AbortVaultLockCommandInput
|
|
140
|
-
| AddTagsToVaultCommandInput
|
|
141
|
-
| CompleteMultipartUploadCommandInput
|
|
142
|
-
| CompleteVaultLockCommandInput
|
|
143
|
-
| CreateVaultCommandInput
|
|
144
|
-
| DeleteArchiveCommandInput
|
|
145
|
-
| DeleteVaultAccessPolicyCommandInput
|
|
146
|
-
| DeleteVaultCommandInput
|
|
147
|
-
| DeleteVaultNotificationsCommandInput
|
|
148
|
-
| DescribeJobCommandInput
|
|
149
|
-
| DescribeVaultCommandInput
|
|
150
|
-
| GetDataRetrievalPolicyCommandInput
|
|
151
|
-
| GetJobOutputCommandInput
|
|
152
|
-
| GetVaultAccessPolicyCommandInput
|
|
153
|
-
| GetVaultLockCommandInput
|
|
154
|
-
| GetVaultNotificationsCommandInput
|
|
155
|
-
| InitiateJobCommandInput
|
|
156
|
-
| InitiateMultipartUploadCommandInput
|
|
157
|
-
| InitiateVaultLockCommandInput
|
|
158
|
-
| ListJobsCommandInput
|
|
159
|
-
| ListMultipartUploadsCommandInput
|
|
160
|
-
| ListPartsCommandInput
|
|
161
|
-
| ListProvisionedCapacityCommandInput
|
|
162
|
-
| ListTagsForVaultCommandInput
|
|
163
|
-
| ListVaultsCommandInput
|
|
164
|
-
| PurchaseProvisionedCapacityCommandInput
|
|
165
|
-
| RemoveTagsFromVaultCommandInput
|
|
166
|
-
| SetDataRetrievalPolicyCommandInput
|
|
167
|
-
| SetVaultAccessPolicyCommandInput
|
|
168
|
-
| SetVaultNotificationsCommandInput
|
|
169
|
-
| UploadArchiveCommandInput
|
|
170
|
-
| UploadMultipartPartCommandInput;
|
|
171
|
-
|
|
172
|
-
export type ServiceOutputTypes =
|
|
173
|
-
| AbortMultipartUploadCommandOutput
|
|
174
|
-
| AbortVaultLockCommandOutput
|
|
175
|
-
| AddTagsToVaultCommandOutput
|
|
176
|
-
| CompleteMultipartUploadCommandOutput
|
|
177
|
-
| CompleteVaultLockCommandOutput
|
|
178
|
-
| CreateVaultCommandOutput
|
|
179
|
-
| DeleteArchiveCommandOutput
|
|
180
|
-
| DeleteVaultAccessPolicyCommandOutput
|
|
181
|
-
| DeleteVaultCommandOutput
|
|
182
|
-
| DeleteVaultNotificationsCommandOutput
|
|
183
|
-
| DescribeJobCommandOutput
|
|
184
|
-
| DescribeVaultCommandOutput
|
|
185
|
-
| GetDataRetrievalPolicyCommandOutput
|
|
186
|
-
| GetJobOutputCommandOutput
|
|
187
|
-
| GetVaultAccessPolicyCommandOutput
|
|
188
|
-
| GetVaultLockCommandOutput
|
|
189
|
-
| GetVaultNotificationsCommandOutput
|
|
190
|
-
| InitiateJobCommandOutput
|
|
191
|
-
| InitiateMultipartUploadCommandOutput
|
|
192
|
-
| InitiateVaultLockCommandOutput
|
|
193
|
-
| ListJobsCommandOutput
|
|
194
|
-
| ListMultipartUploadsCommandOutput
|
|
195
|
-
| ListPartsCommandOutput
|
|
196
|
-
| ListProvisionedCapacityCommandOutput
|
|
197
|
-
| ListTagsForVaultCommandOutput
|
|
198
|
-
| ListVaultsCommandOutput
|
|
199
|
-
| PurchaseProvisionedCapacityCommandOutput
|
|
200
|
-
| RemoveTagsFromVaultCommandOutput
|
|
201
|
-
| SetDataRetrievalPolicyCommandOutput
|
|
202
|
-
| SetVaultAccessPolicyCommandOutput
|
|
203
|
-
| SetVaultNotificationsCommandOutput
|
|
204
|
-
| UploadArchiveCommandOutput
|
|
205
|
-
| UploadMultipartPartCommandOutput;
|
|
206
|
-
|
|
207
|
-
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
208
|
-
/**
|
|
209
|
-
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
210
|
-
*/
|
|
211
|
-
requestHandler?: __HttpHandler;
|
|
212
|
-
|
|
213
|
-
/**
|
|
214
|
-
* A constructor for a class implementing the {@link __Hash} interface
|
|
215
|
-
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
216
|
-
* @internal
|
|
217
|
-
*/
|
|
218
|
-
sha256?: __HashConstructor;
|
|
219
|
-
|
|
220
|
-
/**
|
|
221
|
-
* The function that will be used to convert strings into HTTP endpoints.
|
|
222
|
-
* @internal
|
|
223
|
-
*/
|
|
224
|
-
urlParser?: __UrlParser;
|
|
225
|
-
|
|
226
|
-
/**
|
|
227
|
-
* A function that can calculate the length of a request body.
|
|
228
|
-
* @internal
|
|
229
|
-
*/
|
|
230
|
-
bodyLengthChecker?: (body: any) => number | undefined;
|
|
231
|
-
|
|
232
|
-
/**
|
|
233
|
-
* A function that converts a stream into an array of bytes.
|
|
234
|
-
* @internal
|
|
235
|
-
*/
|
|
236
|
-
streamCollector?: __StreamCollector;
|
|
237
|
-
|
|
238
|
-
/**
|
|
239
|
-
* The function that will be used to convert a base64-encoded string to a byte array.
|
|
240
|
-
* @internal
|
|
241
|
-
*/
|
|
242
|
-
base64Decoder?: __Decoder;
|
|
243
|
-
|
|
244
|
-
/**
|
|
245
|
-
* The function that will be used to convert binary data to a base64-encoded string.
|
|
246
|
-
* @internal
|
|
247
|
-
*/
|
|
248
|
-
base64Encoder?: __Encoder;
|
|
249
|
-
|
|
250
|
-
/**
|
|
251
|
-
* The function that will be used to convert a UTF8-encoded string to a byte array.
|
|
252
|
-
* @internal
|
|
253
|
-
*/
|
|
254
|
-
utf8Decoder?: __Decoder;
|
|
255
|
-
|
|
256
|
-
/**
|
|
257
|
-
* The function that will be used to convert binary data to a UTF-8 encoded string.
|
|
258
|
-
* @internal
|
|
259
|
-
*/
|
|
260
|
-
utf8Encoder?: __Encoder;
|
|
261
|
-
|
|
262
|
-
/**
|
|
263
|
-
* The runtime environment.
|
|
264
|
-
* @internal
|
|
265
|
-
*/
|
|
266
|
-
runtime?: string;
|
|
267
|
-
|
|
268
|
-
/**
|
|
269
|
-
* Disable dyanamically changing the endpoint of the client based on the hostPrefix
|
|
270
|
-
* trait of an operation.
|
|
271
|
-
*/
|
|
272
|
-
disableHostPrefix?: boolean;
|
|
273
|
-
|
|
274
|
-
/**
|
|
275
|
-
* Value for how many times a request will be made at most in case of retry.
|
|
276
|
-
*/
|
|
277
|
-
maxAttempts?: number | __Provider<number>;
|
|
278
|
-
|
|
279
|
-
/**
|
|
280
|
-
* Specifies which retry algorithm to use.
|
|
281
|
-
*/
|
|
282
|
-
retryMode?: string | __Provider<string>;
|
|
283
|
-
|
|
284
|
-
/**
|
|
285
|
-
* Optional logger for logging debug/info/warn/error.
|
|
286
|
-
*/
|
|
287
|
-
logger?: __Logger;
|
|
288
|
-
|
|
289
|
-
/**
|
|
290
|
-
* Unique service identifier.
|
|
291
|
-
* @internal
|
|
292
|
-
*/
|
|
293
|
-
serviceId?: string;
|
|
294
|
-
|
|
295
|
-
/**
|
|
296
|
-
* The AWS region to which this client will send requests
|
|
297
|
-
*/
|
|
298
|
-
region?: string | __Provider<string>;
|
|
299
|
-
|
|
300
|
-
/**
|
|
301
|
-
* Default credentials provider; Not available in browser runtime.
|
|
302
|
-
* @internal
|
|
303
|
-
*/
|
|
304
|
-
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
|
|
305
|
-
|
|
306
|
-
/**
|
|
307
|
-
* Fetch related hostname, signing name or signing region with given region.
|
|
308
|
-
* @internal
|
|
309
|
-
*/
|
|
310
|
-
regionInfoProvider?: RegionInfoProvider;
|
|
311
|
-
|
|
312
|
-
/**
|
|
313
|
-
* Function that returns body checksums.
|
|
314
|
-
* @internal
|
|
315
|
-
*/
|
|
316
|
-
bodyChecksumGenerator?: (
|
|
317
|
-
request: __HttpRequest,
|
|
318
|
-
options: { sha256: __HashConstructor; utf8Decoder: __Decoder }
|
|
319
|
-
) => Promise<[string, string]>;
|
|
320
|
-
|
|
321
|
-
/**
|
|
322
|
-
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
323
|
-
* @internal
|
|
324
|
-
*/
|
|
325
|
-
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
type GlacierClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
|
|
329
|
-
ClientDefaults &
|
|
330
|
-
RegionInputConfig &
|
|
331
|
-
EndpointsInputConfig &
|
|
332
|
-
RetryInputConfig &
|
|
333
|
-
HostHeaderInputConfig &
|
|
334
|
-
AwsAuthInputConfig &
|
|
335
|
-
UserAgentInputConfig;
|
|
336
|
-
/**
|
|
337
|
-
* The configuration interface of GlacierClient class constructor that set the region, credentials and other options.
|
|
338
|
-
*/
|
|
339
|
-
export interface GlacierClientConfig extends GlacierClientConfigType {}
|
|
340
|
-
|
|
341
|
-
type GlacierClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
|
|
342
|
-
Required<ClientDefaults> &
|
|
343
|
-
RegionResolvedConfig &
|
|
344
|
-
EndpointsResolvedConfig &
|
|
345
|
-
RetryResolvedConfig &
|
|
346
|
-
HostHeaderResolvedConfig &
|
|
347
|
-
AwsAuthResolvedConfig &
|
|
348
|
-
UserAgentResolvedConfig;
|
|
349
|
-
/**
|
|
350
|
-
* The resolved configuration interface of GlacierClient class. This is resolved and normalized from the {@link GlacierClientConfig | constructor configuration interface}.
|
|
351
|
-
*/
|
|
352
|
-
export interface GlacierClientResolvedConfig extends GlacierClientResolvedConfigType {}
|
|
353
|
-
|
|
354
|
-
/**
|
|
355
|
-
* <p> Amazon S3 Glacier (Glacier) is a storage solution for "cold data."</p>
|
|
356
|
-
*
|
|
357
|
-
* <p>Glacier is an extremely low-cost storage service that provides secure,
|
|
358
|
-
* durable, and easy-to-use storage for data backup and archival. With Glacier,
|
|
359
|
-
* customers can store their data cost effectively for months, years, or decades.
|
|
360
|
-
* Glacier also enables customers to offload the administrative burdens of operating and
|
|
361
|
-
* scaling storage to AWS, so they don't have to worry about capacity planning, hardware
|
|
362
|
-
* provisioning, data replication, hardware failure and recovery, or time-consuming hardware
|
|
363
|
-
* migrations.</p>
|
|
364
|
-
*
|
|
365
|
-
* <p>Glacier is a great storage choice when low storage cost is paramount and your
|
|
366
|
-
* data is rarely retrieved. If your
|
|
367
|
-
* application requires fast or frequent access to your data, consider using Amazon S3. For
|
|
368
|
-
* more information, see <a href="http://aws.amazon.com/s3/">Amazon Simple Storage Service
|
|
369
|
-
* (Amazon S3)</a>.</p>
|
|
370
|
-
*
|
|
371
|
-
* <p>You can store any kind of data in any format. There is no maximum limit on the total
|
|
372
|
-
* amount of data you can store in Glacier.</p>
|
|
373
|
-
*
|
|
374
|
-
* <p>If you are a first-time user of Glacier, we recommend that you begin by
|
|
375
|
-
* reading the following sections in the <i>Amazon S3 Glacier Developer
|
|
376
|
-
* Guide</i>:</p>
|
|
377
|
-
* <ul>
|
|
378
|
-
* <li>
|
|
379
|
-
* <p>
|
|
380
|
-
* <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/introduction.html">What is
|
|
381
|
-
* Amazon S3 Glacier</a> - This section of the Developer Guide describes the
|
|
382
|
-
* underlying data model, the operations it supports, and the AWS SDKs that you can use
|
|
383
|
-
* to interact with the service.</p>
|
|
384
|
-
* </li>
|
|
385
|
-
* <li>
|
|
386
|
-
* <p>
|
|
387
|
-
* <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/amazon-glacier-getting-started.html">Getting Started
|
|
388
|
-
* with Amazon S3 Glacier</a> - The Getting Started section walks you through the
|
|
389
|
-
* process of creating a vault, uploading archives, creating jobs to download archives,
|
|
390
|
-
* retrieving the job output, and deleting archives.</p>
|
|
391
|
-
* </li>
|
|
392
|
-
* </ul>
|
|
393
|
-
*/
|
|
394
|
-
export class GlacierClient extends __Client<
|
|
395
|
-
__HttpHandlerOptions,
|
|
396
|
-
ServiceInputTypes,
|
|
397
|
-
ServiceOutputTypes,
|
|
398
|
-
GlacierClientResolvedConfig
|
|
399
|
-
> {
|
|
400
|
-
/**
|
|
401
|
-
* The resolved configuration of GlacierClient class. This is resolved and normalized from the {@link GlacierClientConfig | constructor configuration interface}.
|
|
402
|
-
*/
|
|
403
|
-
readonly config: GlacierClientResolvedConfig;
|
|
404
|
-
|
|
405
|
-
constructor(configuration: GlacierClientConfig) {
|
|
406
|
-
const _config_0 = __getRuntimeConfig(configuration);
|
|
407
|
-
const _config_1 = resolveRegionConfig(_config_0);
|
|
408
|
-
const _config_2 = resolveEndpointsConfig(_config_1);
|
|
409
|
-
const _config_3 = resolveRetryConfig(_config_2);
|
|
410
|
-
const _config_4 = resolveHostHeaderConfig(_config_3);
|
|
411
|
-
const _config_5 = resolveAwsAuthConfig(_config_4);
|
|
412
|
-
const _config_6 = resolveUserAgentConfig(_config_5);
|
|
413
|
-
super(_config_6);
|
|
414
|
-
this.config = _config_6;
|
|
415
|
-
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
416
|
-
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
417
|
-
this.middlewareStack.use(getGlacierPlugin(this.config));
|
|
418
|
-
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
419
|
-
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
420
|
-
this.middlewareStack.use(getAwsAuthPlugin(this.config));
|
|
421
|
-
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
/**
|
|
425
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
426
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
427
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
428
|
-
*/
|
|
429
|
-
destroy(): void {
|
|
430
|
-
super.destroy();
|
|
431
|
-
}
|
|
432
|
-
}
|
|
@@ -1,112 +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 { AbortMultipartUploadInput } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_restJson1AbortMultipartUploadCommand,
|
|
18
|
-
serializeAws_restJson1AbortMultipartUploadCommand,
|
|
19
|
-
} from "../protocols/Aws_restJson1";
|
|
20
|
-
|
|
21
|
-
export interface AbortMultipartUploadCommandInput extends AbortMultipartUploadInput {}
|
|
22
|
-
export interface AbortMultipartUploadCommandOutput extends __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>This operation aborts a multipart upload identified by the upload ID.</p>
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
* <p>After the Abort Multipart Upload request succeeds, you cannot upload any more parts
|
|
29
|
-
* to the multipart upload or complete the multipart upload. Aborting a completed upload
|
|
30
|
-
* fails. However, aborting an already-aborted upload will succeed, for a short time. For more
|
|
31
|
-
* information about uploading a part and completing a multipart upload, see <a>UploadMultipartPart</a> and <a>CompleteMultipartUpload</a>.</p>
|
|
32
|
-
*
|
|
33
|
-
* <p>This operation is idempotent.</p>
|
|
34
|
-
*
|
|
35
|
-
* <p>An AWS account has full permission to perform all operations (actions). However, AWS
|
|
36
|
-
* Identity and Access Management (IAM) users don't have any permissions by default. You must
|
|
37
|
-
* grant them explicit permission to perform specific actions. For more information, see
|
|
38
|
-
* <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/using-iam-with-amazon-glacier.html">Access Control Using
|
|
39
|
-
* AWS Identity and Access Management (IAM)</a>.</p>
|
|
40
|
-
* <p> For conceptual information and underlying REST API, see <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/working-with-archives.html">Working with Archives in
|
|
41
|
-
* Amazon S3 Glacier</a> and <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/api-multipart-abort-upload.html">Abort Multipart
|
|
42
|
-
* Upload</a> in the <i>Amazon Glacier Developer Guide</i>. </p>
|
|
43
|
-
* @example
|
|
44
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
45
|
-
* ```javascript
|
|
46
|
-
* import { GlacierClient, AbortMultipartUploadCommand } from "@aws-sdk/client-glacier"; // ES Modules import
|
|
47
|
-
* // const { GlacierClient, AbortMultipartUploadCommand } = require("@aws-sdk/client-glacier"); // CommonJS import
|
|
48
|
-
* const client = new GlacierClient(config);
|
|
49
|
-
* const command = new AbortMultipartUploadCommand(input);
|
|
50
|
-
* const response = await client.send(command);
|
|
51
|
-
* ```
|
|
52
|
-
*
|
|
53
|
-
* @see {@link AbortMultipartUploadCommandInput} for command's `input` shape.
|
|
54
|
-
* @see {@link AbortMultipartUploadCommandOutput} for command's `response` shape.
|
|
55
|
-
* @see {@link GlacierClientResolvedConfig | config} for command's `input` shape.
|
|
56
|
-
*
|
|
57
|
-
*/
|
|
58
|
-
export class AbortMultipartUploadCommand extends $Command<
|
|
59
|
-
AbortMultipartUploadCommandInput,
|
|
60
|
-
AbortMultipartUploadCommandOutput,
|
|
61
|
-
GlacierClientResolvedConfig
|
|
62
|
-
> {
|
|
63
|
-
// Start section: command_properties
|
|
64
|
-
// End section: command_properties
|
|
65
|
-
|
|
66
|
-
constructor(readonly input: AbortMultipartUploadCommandInput) {
|
|
67
|
-
// Start section: command_constructor
|
|
68
|
-
super();
|
|
69
|
-
// End section: command_constructor
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* @internal
|
|
74
|
-
*/
|
|
75
|
-
resolveMiddleware(
|
|
76
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
77
|
-
configuration: GlacierClientResolvedConfig,
|
|
78
|
-
options?: __HttpHandlerOptions
|
|
79
|
-
): Handler<AbortMultipartUploadCommandInput, AbortMultipartUploadCommandOutput> {
|
|
80
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
81
|
-
|
|
82
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
83
|
-
|
|
84
|
-
const { logger } = configuration;
|
|
85
|
-
const clientName = "GlacierClient";
|
|
86
|
-
const commandName = "AbortMultipartUploadCommand";
|
|
87
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
88
|
-
logger,
|
|
89
|
-
clientName,
|
|
90
|
-
commandName,
|
|
91
|
-
inputFilterSensitiveLog: AbortMultipartUploadInput.filterSensitiveLog,
|
|
92
|
-
outputFilterSensitiveLog: (output: any) => output,
|
|
93
|
-
};
|
|
94
|
-
const { requestHandler } = configuration;
|
|
95
|
-
return stack.resolve(
|
|
96
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
97
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
98
|
-
handlerExecutionContext
|
|
99
|
-
);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
private serialize(input: AbortMultipartUploadCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
103
|
-
return serializeAws_restJson1AbortMultipartUploadCommand(input, context);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<AbortMultipartUploadCommandOutput> {
|
|
107
|
-
return deserializeAws_restJson1AbortMultipartUploadCommand(output, context);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
// Start section: command_body_extra
|
|
111
|
-
// End section: command_body_extra
|
|
112
|
-
}
|
|
@@ -1,108 +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 { AbortVaultLockInput } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_restJson1AbortVaultLockCommand,
|
|
18
|
-
serializeAws_restJson1AbortVaultLockCommand,
|
|
19
|
-
} from "../protocols/Aws_restJson1";
|
|
20
|
-
|
|
21
|
-
export interface AbortVaultLockCommandInput extends AbortVaultLockInput {}
|
|
22
|
-
export interface AbortVaultLockCommandOutput extends __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>This operation aborts the vault locking process if the vault lock is not in the
|
|
26
|
-
* <code>Locked</code> state. If the vault lock is in the <code>Locked</code> state when
|
|
27
|
-
* this operation is requested, the operation returns an <code>AccessDeniedException</code>
|
|
28
|
-
* error. Aborting the vault locking process removes the vault lock policy from the specified
|
|
29
|
-
* vault. </p>
|
|
30
|
-
* <p>A vault lock is put into the <code>InProgress</code> state by calling <a>InitiateVaultLock</a>. A vault lock is put into the <code>Locked</code> state by
|
|
31
|
-
* calling <a>CompleteVaultLock</a>. You can get the state of a vault lock by
|
|
32
|
-
* calling <a>GetVaultLock</a>. For more information about the vault locking
|
|
33
|
-
* process, see <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/vault-lock.html">Amazon Glacier Vault Lock</a>. For more information about vault lock policies, see
|
|
34
|
-
* <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/vault-lock-policy.html">Amazon
|
|
35
|
-
* Glacier Access Control with Vault Lock Policies</a>. </p>
|
|
36
|
-
* <p>This operation is idempotent. You can successfully invoke this operation multiple
|
|
37
|
-
* times, if the vault lock is in the <code>InProgress</code> state or if there is no policy
|
|
38
|
-
* associated with the vault.</p>
|
|
39
|
-
* @example
|
|
40
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
41
|
-
* ```javascript
|
|
42
|
-
* import { GlacierClient, AbortVaultLockCommand } from "@aws-sdk/client-glacier"; // ES Modules import
|
|
43
|
-
* // const { GlacierClient, AbortVaultLockCommand } = require("@aws-sdk/client-glacier"); // CommonJS import
|
|
44
|
-
* const client = new GlacierClient(config);
|
|
45
|
-
* const command = new AbortVaultLockCommand(input);
|
|
46
|
-
* const response = await client.send(command);
|
|
47
|
-
* ```
|
|
48
|
-
*
|
|
49
|
-
* @see {@link AbortVaultLockCommandInput} for command's `input` shape.
|
|
50
|
-
* @see {@link AbortVaultLockCommandOutput} for command's `response` shape.
|
|
51
|
-
* @see {@link GlacierClientResolvedConfig | config} for command's `input` shape.
|
|
52
|
-
*
|
|
53
|
-
*/
|
|
54
|
-
export class AbortVaultLockCommand extends $Command<
|
|
55
|
-
AbortVaultLockCommandInput,
|
|
56
|
-
AbortVaultLockCommandOutput,
|
|
57
|
-
GlacierClientResolvedConfig
|
|
58
|
-
> {
|
|
59
|
-
// Start section: command_properties
|
|
60
|
-
// End section: command_properties
|
|
61
|
-
|
|
62
|
-
constructor(readonly input: AbortVaultLockCommandInput) {
|
|
63
|
-
// Start section: command_constructor
|
|
64
|
-
super();
|
|
65
|
-
// End section: command_constructor
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* @internal
|
|
70
|
-
*/
|
|
71
|
-
resolveMiddleware(
|
|
72
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
73
|
-
configuration: GlacierClientResolvedConfig,
|
|
74
|
-
options?: __HttpHandlerOptions
|
|
75
|
-
): Handler<AbortVaultLockCommandInput, AbortVaultLockCommandOutput> {
|
|
76
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
77
|
-
|
|
78
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
79
|
-
|
|
80
|
-
const { logger } = configuration;
|
|
81
|
-
const clientName = "GlacierClient";
|
|
82
|
-
const commandName = "AbortVaultLockCommand";
|
|
83
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
84
|
-
logger,
|
|
85
|
-
clientName,
|
|
86
|
-
commandName,
|
|
87
|
-
inputFilterSensitiveLog: AbortVaultLockInput.filterSensitiveLog,
|
|
88
|
-
outputFilterSensitiveLog: (output: any) => output,
|
|
89
|
-
};
|
|
90
|
-
const { requestHandler } = configuration;
|
|
91
|
-
return stack.resolve(
|
|
92
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
93
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
94
|
-
handlerExecutionContext
|
|
95
|
-
);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
private serialize(input: AbortVaultLockCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
99
|
-
return serializeAws_restJson1AbortVaultLockCommand(input, context);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<AbortVaultLockCommandOutput> {
|
|
103
|
-
return deserializeAws_restJson1AbortVaultLockCommand(output, context);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
// Start section: command_body_extra
|
|
107
|
-
// End section: command_body_extra
|
|
108
|
-
}
|