@aws-sdk/client-storage-gateway 3.774.0 → 3.777.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/dist-cjs/auth/httpAuthSchemeProvider.js +1 -3
- package/dist-cjs/index.js +17 -18
- package/dist-es/StorageGatewayClient.js +2 -1
- package/dist-es/auth/httpAuthSchemeProvider.js +1 -3
- package/dist-es/endpoint/EndpointParameters.js +2 -3
- package/dist-es/runtimeExtensions.js +2 -14
- package/dist-types/commands/ActivateGatewayCommand.d.ts +11 -11
- package/dist-types/commands/AddCacheCommand.d.ts +6 -6
- package/dist-types/commands/AddTagsToResourceCommand.d.ts +8 -8
- package/dist-types/commands/AddUploadBufferCommand.d.ts +6 -6
- package/dist-types/commands/AddWorkingStorageCommand.d.ts +6 -6
- package/dist-types/commands/AssignTapePoolCommand.d.ts +1 -0
- package/dist-types/commands/AssociateFileSystemCommand.d.ts +1 -0
- package/dist-types/commands/AttachVolumeCommand.d.ts +1 -0
- package/dist-types/commands/CancelArchivalCommand.d.ts +6 -6
- package/dist-types/commands/CancelCacheReportCommand.d.ts +1 -0
- package/dist-types/commands/CancelRetrievalCommand.d.ts +6 -6
- package/dist-types/commands/CreateCachediSCSIVolumeCommand.d.ts +11 -11
- package/dist-types/commands/CreateNFSFileShareCommand.d.ts +1 -0
- package/dist-types/commands/CreateSMBFileShareCommand.d.ts +1 -0
- package/dist-types/commands/CreateSnapshotCommand.d.ts +7 -7
- package/dist-types/commands/CreateSnapshotFromVolumeRecoveryPointCommand.d.ts +8 -8
- package/dist-types/commands/CreateStorediSCSIVolumeCommand.d.ts +12 -12
- package/dist-types/commands/CreateTapePoolCommand.d.ts +1 -0
- package/dist-types/commands/CreateTapeWithBarcodeCommand.d.ts +7 -7
- package/dist-types/commands/CreateTapesCommand.d.ts +9 -9
- package/dist-types/commands/DeleteAutomaticTapeCreationPolicyCommand.d.ts +1 -0
- package/dist-types/commands/DeleteBandwidthRateLimitCommand.d.ts +6 -6
- package/dist-types/commands/DeleteCacheReportCommand.d.ts +1 -0
- package/dist-types/commands/DeleteChapCredentialsCommand.d.ts +7 -7
- package/dist-types/commands/DeleteFileShareCommand.d.ts +1 -0
- package/dist-types/commands/DeleteGatewayCommand.d.ts +5 -5
- package/dist-types/commands/DeleteSnapshotScheduleCommand.d.ts +5 -5
- package/dist-types/commands/DeleteTapeArchiveCommand.d.ts +5 -5
- package/dist-types/commands/DeleteTapeCommand.d.ts +6 -6
- package/dist-types/commands/DeleteTapePoolCommand.d.ts +1 -0
- package/dist-types/commands/DeleteVolumeCommand.d.ts +5 -5
- package/dist-types/commands/DescribeAvailabilityMonitorTestCommand.d.ts +1 -0
- package/dist-types/commands/DescribeBandwidthRateLimitCommand.d.ts +7 -7
- package/dist-types/commands/DescribeBandwidthRateLimitScheduleCommand.d.ts +1 -0
- package/dist-types/commands/DescribeCacheCommand.d.ts +11 -11
- package/dist-types/commands/DescribeCacheReportCommand.d.ts +1 -0
- package/dist-types/commands/DescribeCachediSCSIVolumesCommand.d.ts +16 -16
- package/dist-types/commands/DescribeChapCredentialsCommand.d.ts +9 -9
- package/dist-types/commands/DescribeFileSystemAssociationsCommand.d.ts +1 -0
- package/dist-types/commands/DescribeGatewayInformationCommand.d.ts +14 -14
- package/dist-types/commands/DescribeMaintenanceStartTimeCommand.d.ts +9 -9
- package/dist-types/commands/DescribeNFSFileSharesCommand.d.ts +1 -0
- package/dist-types/commands/DescribeSMBFileSharesCommand.d.ts +1 -0
- package/dist-types/commands/DescribeSMBSettingsCommand.d.ts +1 -0
- package/dist-types/commands/DescribeSnapshotScheduleCommand.d.ts +9 -9
- package/dist-types/commands/DescribeStorediSCSIVolumesCommand.d.ts +17 -17
- package/dist-types/commands/DescribeTapeArchivesCommand.d.ts +1 -37
- package/dist-types/commands/DescribeTapeRecoveryPointsCommand.d.ts +1 -27
- package/dist-types/commands/DescribeTapesCommand.d.ts +17 -17
- package/dist-types/commands/DescribeUploadBufferCommand.d.ts +18 -19
- package/dist-types/commands/DescribeVTLDevicesCommand.d.ts +37 -37
- package/dist-types/commands/DescribeWorkingStorageCommand.d.ts +8 -8
- package/dist-types/commands/DetachVolumeCommand.d.ts +1 -0
- package/dist-types/commands/DisableGatewayCommand.d.ts +5 -5
- package/dist-types/commands/DisassociateFileSystemCommand.d.ts +1 -0
- package/dist-types/commands/EvictFilesFailingUploadCommand.d.ts +1 -0
- package/dist-types/commands/JoinDomainCommand.d.ts +1 -0
- package/dist-types/commands/ListAutomaticTapeCreationPoliciesCommand.d.ts +1 -0
- package/dist-types/commands/ListCacheReportsCommand.d.ts +1 -0
- package/dist-types/commands/ListFileSharesCommand.d.ts +1 -0
- package/dist-types/commands/ListFileSystemAssociationsCommand.d.ts +1 -0
- package/dist-types/commands/ListGatewaysCommand.d.ts +9 -9
- package/dist-types/commands/ListLocalDisksCommand.d.ts +19 -19
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +11 -11
- package/dist-types/commands/ListTapePoolsCommand.d.ts +1 -0
- package/dist-types/commands/ListTapesCommand.d.ts +1 -0
- package/dist-types/commands/ListVolumeInitiatorsCommand.d.ts +1 -0
- package/dist-types/commands/ListVolumeRecoveryPointsCommand.d.ts +9 -9
- package/dist-types/commands/ListVolumesCommand.d.ts +21 -21
- package/dist-types/commands/NotifyWhenUploadedCommand.d.ts +1 -0
- package/dist-types/commands/RefreshCacheCommand.d.ts +1 -0
- package/dist-types/commands/RemoveTagsFromResourceCommand.d.ts +6 -6
- package/dist-types/commands/ResetCacheCommand.d.ts +5 -5
- package/dist-types/commands/RetrieveTapeArchiveCommand.d.ts +6 -6
- package/dist-types/commands/RetrieveTapeRecoveryPointCommand.d.ts +6 -6
- package/dist-types/commands/SetLocalConsolePasswordCommand.d.ts +6 -6
- package/dist-types/commands/SetSMBGuestPasswordCommand.d.ts +1 -0
- package/dist-types/commands/ShutdownGatewayCommand.d.ts +5 -5
- package/dist-types/commands/StartAvailabilityMonitorTestCommand.d.ts +1 -0
- package/dist-types/commands/StartCacheReportCommand.d.ts +1 -0
- package/dist-types/commands/StartGatewayCommand.d.ts +5 -5
- package/dist-types/commands/UpdateAutomaticTapeCreationPolicyCommand.d.ts +1 -0
- package/dist-types/commands/UpdateBandwidthRateLimitCommand.d.ts +7 -7
- package/dist-types/commands/UpdateBandwidthRateLimitScheduleCommand.d.ts +1 -0
- package/dist-types/commands/UpdateChapCredentialsCommand.d.ts +9 -9
- package/dist-types/commands/UpdateFileSystemAssociationCommand.d.ts +1 -0
- package/dist-types/commands/UpdateGatewayInformationCommand.d.ts +8 -8
- package/dist-types/commands/UpdateGatewaySoftwareNowCommand.d.ts +5 -5
- package/dist-types/commands/UpdateMaintenanceStartTimeCommand.d.ts +8 -8
- package/dist-types/commands/UpdateNFSFileShareCommand.d.ts +1 -0
- package/dist-types/commands/UpdateSMBFileShareCommand.d.ts +1 -0
- package/dist-types/commands/UpdateSMBFileShareVisibilityCommand.d.ts +1 -0
- package/dist-types/commands/UpdateSMBLocalGroupsCommand.d.ts +1 -0
- package/dist-types/commands/UpdateSMBSecurityStrategyCommand.d.ts +1 -0
- package/dist-types/commands/UpdateSnapshotScheduleCommand.d.ts +8 -8
- package/dist-types/commands/UpdateVTLDeviceTypeCommand.d.ts +6 -6
- package/package.json +33 -33
|
@@ -40,8 +40,6 @@ const defaultStorageGatewayHttpAuthSchemeProvider = (authParameters) => {
|
|
|
40
40
|
exports.defaultStorageGatewayHttpAuthSchemeProvider = defaultStorageGatewayHttpAuthSchemeProvider;
|
|
41
41
|
const resolveHttpAuthSchemeConfig = (config) => {
|
|
42
42
|
const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
|
|
43
|
-
return {
|
|
44
|
-
...config_0,
|
|
45
|
-
};
|
|
43
|
+
return Object.assign(config_0, {});
|
|
46
44
|
};
|
|
47
45
|
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
package/dist-cjs/index.js
CHANGED
|
@@ -179,12 +179,11 @@ var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
|
|
|
179
179
|
|
|
180
180
|
// src/endpoint/EndpointParameters.ts
|
|
181
181
|
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
182
|
-
return {
|
|
183
|
-
...options,
|
|
182
|
+
return Object.assign(options, {
|
|
184
183
|
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
185
184
|
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
186
185
|
defaultSigningName: "storagegateway"
|
|
187
|
-
};
|
|
186
|
+
});
|
|
188
187
|
}, "resolveClientEndpointParameters");
|
|
189
188
|
var commonParams = {
|
|
190
189
|
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
@@ -241,22 +240,21 @@ var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
|
|
|
241
240
|
}, "resolveHttpAuthRuntimeConfig");
|
|
242
241
|
|
|
243
242
|
// src/runtimeExtensions.ts
|
|
244
|
-
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
245
243
|
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
246
|
-
const extensionConfiguration =
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
244
|
+
const extensionConfiguration = Object.assign(
|
|
245
|
+
(0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
|
|
246
|
+
(0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
|
|
247
|
+
(0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
|
|
248
|
+
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
249
|
+
);
|
|
252
250
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
253
|
-
return
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
251
|
+
return Object.assign(
|
|
252
|
+
runtimeConfig,
|
|
253
|
+
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
254
|
+
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
255
|
+
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
256
|
+
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
257
|
+
);
|
|
260
258
|
}, "resolveRuntimeExtensions");
|
|
261
259
|
|
|
262
260
|
// src/StorageGatewayClient.ts
|
|
@@ -270,6 +268,8 @@ var StorageGatewayClient = class extends import_smithy_client.Client {
|
|
|
270
268
|
config;
|
|
271
269
|
constructor(...[configuration]) {
|
|
272
270
|
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
271
|
+
super(_config_0);
|
|
272
|
+
this.initConfig = _config_0;
|
|
273
273
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
274
274
|
const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
|
|
275
275
|
const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
|
|
@@ -278,7 +278,6 @@ var StorageGatewayClient = class extends import_smithy_client.Client {
|
|
|
278
278
|
const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
|
|
279
279
|
const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
|
|
280
280
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
281
|
-
super(_config_8);
|
|
282
281
|
this.config = _config_8;
|
|
283
282
|
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
284
283
|
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
@@ -17,6 +17,8 @@ export class StorageGatewayClient extends __Client {
|
|
|
17
17
|
config;
|
|
18
18
|
constructor(...[configuration]) {
|
|
19
19
|
const _config_0 = __getRuntimeConfig(configuration || {});
|
|
20
|
+
super(_config_0);
|
|
21
|
+
this.initConfig = _config_0;
|
|
20
22
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
21
23
|
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
22
24
|
const _config_3 = resolveRetryConfig(_config_2);
|
|
@@ -25,7 +27,6 @@ export class StorageGatewayClient extends __Client {
|
|
|
25
27
|
const _config_6 = resolveEndpointConfig(_config_5);
|
|
26
28
|
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
27
29
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
28
|
-
super(_config_8);
|
|
29
30
|
this.config = _config_8;
|
|
30
31
|
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
31
32
|
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
@@ -35,7 +35,5 @@ export const defaultStorageGatewayHttpAuthSchemeProvider = (authParameters) => {
|
|
|
35
35
|
};
|
|
36
36
|
export const resolveHttpAuthSchemeConfig = (config) => {
|
|
37
37
|
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
38
|
-
return {
|
|
39
|
-
...config_0,
|
|
40
|
-
};
|
|
38
|
+
return Object.assign(config_0, {});
|
|
41
39
|
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
export const resolveClientEndpointParameters = (options) => {
|
|
2
|
-
return {
|
|
3
|
-
...options,
|
|
2
|
+
return Object.assign(options, {
|
|
4
3
|
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
5
4
|
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
6
5
|
defaultSigningName: "storagegateway",
|
|
7
|
-
};
|
|
6
|
+
});
|
|
8
7
|
};
|
|
9
8
|
export const commonParams = {
|
|
10
9
|
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
@@ -2,20 +2,8 @@ import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfigurat
|
|
|
2
2
|
import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http";
|
|
3
3
|
import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
|
|
4
4
|
import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration";
|
|
5
|
-
const asPartial = (t) => t;
|
|
6
5
|
export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
7
|
-
const extensionConfiguration =
|
|
8
|
-
...asPartial(getAwsRegionExtensionConfiguration(runtimeConfig)),
|
|
9
|
-
...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),
|
|
10
|
-
...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)),
|
|
11
|
-
...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig)),
|
|
12
|
-
};
|
|
6
|
+
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
13
7
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
14
|
-
return
|
|
15
|
-
...runtimeConfig,
|
|
16
|
-
...resolveAwsRegionExtensionConfiguration(extensionConfiguration),
|
|
17
|
-
...resolveDefaultRuntimeConfig(extensionConfiguration),
|
|
18
|
-
...resolveHttpHandlerRuntimeConfig(extensionConfiguration),
|
|
19
|
-
...resolveHttpAuthRuntimeConfig(extensionConfiguration),
|
|
20
|
-
};
|
|
8
|
+
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
21
9
|
};
|
|
@@ -81,29 +81,29 @@ declare const ActivateGatewayCommand_base: {
|
|
|
81
81
|
* @throws {@link StorageGatewayServiceException}
|
|
82
82
|
* <p>Base exception class for all service exceptions from StorageGateway service.</p>
|
|
83
83
|
*
|
|
84
|
-
*
|
|
84
|
+
*
|
|
85
85
|
* @example To activate the gateway
|
|
86
86
|
* ```javascript
|
|
87
87
|
* // Activates the gateway you previously deployed on your host.
|
|
88
88
|
* const input = {
|
|
89
|
-
*
|
|
90
|
-
*
|
|
91
|
-
*
|
|
92
|
-
*
|
|
93
|
-
*
|
|
94
|
-
*
|
|
95
|
-
*
|
|
89
|
+
* ActivationKey: "29AV1-3OFV9-VVIUB-NKT0I-LRO6V",
|
|
90
|
+
* GatewayName: "My_Gateway",
|
|
91
|
+
* GatewayRegion: "us-east-1",
|
|
92
|
+
* GatewayTimezone: "GMT-12:00",
|
|
93
|
+
* GatewayType: "STORED",
|
|
94
|
+
* MediumChangerType: "AWS-Gateway-VTL",
|
|
95
|
+
* TapeDriveType: "IBM-ULT3580-TD5"
|
|
96
96
|
* };
|
|
97
97
|
* const command = new ActivateGatewayCommand(input);
|
|
98
98
|
* const response = await client.send(command);
|
|
99
|
-
* /* response
|
|
99
|
+
* /* response is
|
|
100
100
|
* {
|
|
101
|
-
*
|
|
101
|
+
* GatewayARN: "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-11A2222B"
|
|
102
102
|
* }
|
|
103
103
|
* *\/
|
|
104
|
-
* // example id: to-activate-the-gateway-1471281611207
|
|
105
104
|
* ```
|
|
106
105
|
*
|
|
106
|
+
* @public
|
|
107
107
|
*/
|
|
108
108
|
export declare class ActivateGatewayCommand extends ActivateGatewayCommand_base {
|
|
109
109
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -68,27 +68,27 @@ declare const AddCacheCommand_base: {
|
|
|
68
68
|
* @throws {@link StorageGatewayServiceException}
|
|
69
69
|
* <p>Base exception class for all service exceptions from StorageGateway service.</p>
|
|
70
70
|
*
|
|
71
|
-
*
|
|
71
|
+
*
|
|
72
72
|
* @example To add a cache
|
|
73
73
|
* ```javascript
|
|
74
74
|
* // The following example shows a request that activates a gateway-stored volume.
|
|
75
75
|
* const input = {
|
|
76
|
-
*
|
|
76
|
+
* DiskIds: [
|
|
77
77
|
* "pci-0000:03:00.0-scsi-0:0:0:0",
|
|
78
78
|
* "pci-0000:03:00.0-scsi-0:0:1:0"
|
|
79
79
|
* ],
|
|
80
|
-
*
|
|
80
|
+
* GatewayARN: "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B"
|
|
81
81
|
* };
|
|
82
82
|
* const command = new AddCacheCommand(input);
|
|
83
83
|
* const response = await client.send(command);
|
|
84
|
-
* /* response
|
|
84
|
+
* /* response is
|
|
85
85
|
* {
|
|
86
|
-
*
|
|
86
|
+
* GatewayARN: "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B"
|
|
87
87
|
* }
|
|
88
88
|
* *\/
|
|
89
|
-
* // example id: to-add-a-cache-1471043606854
|
|
90
89
|
* ```
|
|
91
90
|
*
|
|
91
|
+
* @public
|
|
92
92
|
*/
|
|
93
93
|
export declare class AddCacheCommand extends AddCacheCommand_base {
|
|
94
94
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -90,29 +90,29 @@ declare const AddTagsToResourceCommand_base: {
|
|
|
90
90
|
* @throws {@link StorageGatewayServiceException}
|
|
91
91
|
* <p>Base exception class for all service exceptions from StorageGateway service.</p>
|
|
92
92
|
*
|
|
93
|
-
*
|
|
93
|
+
*
|
|
94
94
|
* @example To add tags to resource
|
|
95
95
|
* ```javascript
|
|
96
96
|
* // Adds one or more tags to the specified resource.
|
|
97
97
|
* const input = {
|
|
98
|
-
*
|
|
99
|
-
*
|
|
98
|
+
* ResourceARN: "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-11A2222B",
|
|
99
|
+
* Tags: [
|
|
100
100
|
* {
|
|
101
|
-
*
|
|
102
|
-
*
|
|
101
|
+
* Key: "Dev Gatgeway Region",
|
|
102
|
+
* Value: "East Coast"
|
|
103
103
|
* }
|
|
104
104
|
* ]
|
|
105
105
|
* };
|
|
106
106
|
* const command = new AddTagsToResourceCommand(input);
|
|
107
107
|
* const response = await client.send(command);
|
|
108
|
-
* /* response
|
|
108
|
+
* /* response is
|
|
109
109
|
* {
|
|
110
|
-
*
|
|
110
|
+
* ResourceARN: "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-11A2222B"
|
|
111
111
|
* }
|
|
112
112
|
* *\/
|
|
113
|
-
* // example id: to-add-tags-to-resource-1471283689460
|
|
114
113
|
* ```
|
|
115
114
|
*
|
|
115
|
+
* @public
|
|
116
116
|
*/
|
|
117
117
|
export declare class AddTagsToResourceCommand extends AddTagsToResourceCommand_base {
|
|
118
118
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -70,27 +70,27 @@ declare const AddUploadBufferCommand_base: {
|
|
|
70
70
|
* @throws {@link StorageGatewayServiceException}
|
|
71
71
|
* <p>Base exception class for all service exceptions from StorageGateway service.</p>
|
|
72
72
|
*
|
|
73
|
-
*
|
|
73
|
+
*
|
|
74
74
|
* @example To add upload buffer on local disk
|
|
75
75
|
* ```javascript
|
|
76
76
|
* // Configures one or more gateway local disks as upload buffer for a specified gateway.
|
|
77
77
|
* const input = {
|
|
78
|
-
*
|
|
78
|
+
* DiskIds: [
|
|
79
79
|
* "pci-0000:03:00.0-scsi-0:0:0:0",
|
|
80
80
|
* "pci-0000:03:00.0-scsi-0:0:1:0"
|
|
81
81
|
* ],
|
|
82
|
-
*
|
|
82
|
+
* GatewayARN: "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B"
|
|
83
83
|
* };
|
|
84
84
|
* const command = new AddUploadBufferCommand(input);
|
|
85
85
|
* const response = await client.send(command);
|
|
86
|
-
* /* response
|
|
86
|
+
* /* response is
|
|
87
87
|
* {
|
|
88
|
-
*
|
|
88
|
+
* GatewayARN: "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B"
|
|
89
89
|
* }
|
|
90
90
|
* *\/
|
|
91
|
-
* // example id: to-add-upload-buffer-on-local-disk-1471293902847
|
|
92
91
|
* ```
|
|
93
92
|
*
|
|
93
|
+
* @public
|
|
94
94
|
*/
|
|
95
95
|
export declare class AddUploadBufferCommand extends AddUploadBufferCommand_base {
|
|
96
96
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -75,27 +75,27 @@ declare const AddWorkingStorageCommand_base: {
|
|
|
75
75
|
* @throws {@link StorageGatewayServiceException}
|
|
76
76
|
* <p>Base exception class for all service exceptions from StorageGateway service.</p>
|
|
77
77
|
*
|
|
78
|
-
*
|
|
78
|
+
*
|
|
79
79
|
* @example To add storage on local disk
|
|
80
80
|
* ```javascript
|
|
81
81
|
* // Configures one or more gateway local disks as working storage for a gateway. (Working storage is also referred to as upload buffer.)
|
|
82
82
|
* const input = {
|
|
83
|
-
*
|
|
83
|
+
* DiskIds: [
|
|
84
84
|
* "pci-0000:03:00.0-scsi-0:0:0:0",
|
|
85
85
|
* "pci-0000:03:00.0-scsi-0:0:1:0"
|
|
86
86
|
* ],
|
|
87
|
-
*
|
|
87
|
+
* GatewayARN: "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B"
|
|
88
88
|
* };
|
|
89
89
|
* const command = new AddWorkingStorageCommand(input);
|
|
90
90
|
* const response = await client.send(command);
|
|
91
|
-
* /* response
|
|
91
|
+
* /* response is
|
|
92
92
|
* {
|
|
93
|
-
*
|
|
93
|
+
* GatewayARN: "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B"
|
|
94
94
|
* }
|
|
95
95
|
* *\/
|
|
96
|
-
* // example id: to-add-storage-on-local-disk-1471294305401
|
|
97
96
|
* ```
|
|
98
97
|
*
|
|
98
|
+
* @public
|
|
99
99
|
*/
|
|
100
100
|
export declare class AddWorkingStorageCommand extends AddWorkingStorageCommand_base {
|
|
101
101
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -67,6 +67,7 @@ declare const AssignTapePoolCommand_base: {
|
|
|
67
67
|
* @throws {@link StorageGatewayServiceException}
|
|
68
68
|
* <p>Base exception class for all service exceptions from StorageGateway service.</p>
|
|
69
69
|
*
|
|
70
|
+
*
|
|
70
71
|
* @public
|
|
71
72
|
*/
|
|
72
73
|
export declare class AssignTapePoolCommand extends AssignTapePoolCommand_base {
|
|
@@ -84,6 +84,7 @@ declare const AssociateFileSystemCommand_base: {
|
|
|
84
84
|
* @throws {@link StorageGatewayServiceException}
|
|
85
85
|
* <p>Base exception class for all service exceptions from StorageGateway service.</p>
|
|
86
86
|
*
|
|
87
|
+
*
|
|
87
88
|
* @public
|
|
88
89
|
*/
|
|
89
90
|
export declare class AssociateFileSystemCommand extends AssociateFileSystemCommand_base {
|
|
@@ -70,6 +70,7 @@ declare const AttachVolumeCommand_base: {
|
|
|
70
70
|
* @throws {@link StorageGatewayServiceException}
|
|
71
71
|
* <p>Base exception class for all service exceptions from StorageGateway service.</p>
|
|
72
72
|
*
|
|
73
|
+
*
|
|
73
74
|
* @public
|
|
74
75
|
*/
|
|
75
76
|
export declare class AttachVolumeCommand extends AttachVolumeCommand_base {
|
|
@@ -64,24 +64,24 @@ declare const CancelArchivalCommand_base: {
|
|
|
64
64
|
* @throws {@link StorageGatewayServiceException}
|
|
65
65
|
* <p>Base exception class for all service exceptions from StorageGateway service.</p>
|
|
66
66
|
*
|
|
67
|
-
*
|
|
67
|
+
*
|
|
68
68
|
* @example To cancel virtual tape archiving
|
|
69
69
|
* ```javascript
|
|
70
70
|
* // Cancels archiving of a virtual tape to the virtual tape shelf (VTS) after the archiving process is initiated.
|
|
71
71
|
* const input = {
|
|
72
|
-
*
|
|
73
|
-
*
|
|
72
|
+
* GatewayARN: "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B",
|
|
73
|
+
* TapeARN: "arn:aws:storagegateway:us-east-1:999999999999:tape/AMZN01A2A4"
|
|
74
74
|
* };
|
|
75
75
|
* const command = new CancelArchivalCommand(input);
|
|
76
76
|
* const response = await client.send(command);
|
|
77
|
-
* /* response
|
|
77
|
+
* /* response is
|
|
78
78
|
* {
|
|
79
|
-
*
|
|
79
|
+
* TapeARN: "arn:aws:storagegateway:us-east-1:999999999999:tape/AMZN01A2A4"
|
|
80
80
|
* }
|
|
81
81
|
* *\/
|
|
82
|
-
* // example id: to-cancel-virtual-tape-archiving-1471294865203
|
|
83
82
|
* ```
|
|
84
83
|
*
|
|
84
|
+
* @public
|
|
85
85
|
*/
|
|
86
86
|
export declare class CancelArchivalCommand extends CancelArchivalCommand_base {
|
|
87
87
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -66,6 +66,7 @@ declare const CancelCacheReportCommand_base: {
|
|
|
66
66
|
* @throws {@link StorageGatewayServiceException}
|
|
67
67
|
* <p>Base exception class for all service exceptions from StorageGateway service.</p>
|
|
68
68
|
*
|
|
69
|
+
*
|
|
69
70
|
* @public
|
|
70
71
|
*/
|
|
71
72
|
export declare class CancelCacheReportCommand extends CancelCacheReportCommand_base {
|
|
@@ -65,24 +65,24 @@ declare const CancelRetrievalCommand_base: {
|
|
|
65
65
|
* @throws {@link StorageGatewayServiceException}
|
|
66
66
|
* <p>Base exception class for all service exceptions from StorageGateway service.</p>
|
|
67
67
|
*
|
|
68
|
-
*
|
|
68
|
+
*
|
|
69
69
|
* @example To cancel virtual tape retrieval
|
|
70
70
|
* ```javascript
|
|
71
71
|
* // Cancels retrieval of a virtual tape from the virtual tape shelf (VTS) to a gateway after the retrieval process is initiated.
|
|
72
72
|
* const input = {
|
|
73
|
-
*
|
|
74
|
-
*
|
|
73
|
+
* GatewayARN: "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B",
|
|
74
|
+
* TapeARN: "arn:aws:storagegateway:us-east-1:999999999999:tape/AMZN01A2A4"
|
|
75
75
|
* };
|
|
76
76
|
* const command = new CancelRetrievalCommand(input);
|
|
77
77
|
* const response = await client.send(command);
|
|
78
|
-
* /* response
|
|
78
|
+
* /* response is
|
|
79
79
|
* {
|
|
80
|
-
*
|
|
80
|
+
* TapeARN: "arn:aws:storagegateway:us-east-1:999999999999:tape/AMZN01A2A4"
|
|
81
81
|
* }
|
|
82
82
|
* *\/
|
|
83
|
-
* // example id: to-cancel-virtual-tape-retrieval-1471295704491
|
|
84
83
|
* ```
|
|
85
84
|
*
|
|
85
|
+
* @public
|
|
86
86
|
*/
|
|
87
87
|
export declare class CancelRetrievalCommand extends CancelRetrievalCommand_base {
|
|
88
88
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -91,29 +91,29 @@ declare const CreateCachediSCSIVolumeCommand_base: {
|
|
|
91
91
|
* @throws {@link StorageGatewayServiceException}
|
|
92
92
|
* <p>Base exception class for all service exceptions from StorageGateway service.</p>
|
|
93
93
|
*
|
|
94
|
-
*
|
|
94
|
+
*
|
|
95
95
|
* @example To create a cached iSCSI volume
|
|
96
96
|
* ```javascript
|
|
97
97
|
* // Creates a cached volume on a specified cached gateway.
|
|
98
98
|
* const input = {
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
*
|
|
102
|
-
*
|
|
103
|
-
*
|
|
104
|
-
*
|
|
99
|
+
* ClientToken: "cachedvol112233",
|
|
100
|
+
* GatewayARN: "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B",
|
|
101
|
+
* NetworkInterfaceId: "10.1.1.1",
|
|
102
|
+
* SnapshotId: "snap-f47b7b94",
|
|
103
|
+
* TargetName: "my-volume",
|
|
104
|
+
* VolumeSizeInBytes: 536870912000
|
|
105
105
|
* };
|
|
106
106
|
* const command = new CreateCachediSCSIVolumeCommand(input);
|
|
107
107
|
* const response = await client.send(command);
|
|
108
|
-
* /* response
|
|
108
|
+
* /* response is
|
|
109
109
|
* {
|
|
110
|
-
*
|
|
111
|
-
*
|
|
110
|
+
* TargetARN: "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/target/iqn.1997-05.com.amazon:myvolume",
|
|
111
|
+
* VolumeARN: "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABB"
|
|
112
112
|
* }
|
|
113
113
|
* *\/
|
|
114
|
-
* // example id: to-create-a-cached-iscsi-volume-1471296661787
|
|
115
114
|
* ```
|
|
116
115
|
*
|
|
116
|
+
* @public
|
|
117
117
|
*/
|
|
118
118
|
export declare class CreateCachediSCSIVolumeCommand extends CreateCachediSCSIVolumeCommand_base {
|
|
119
119
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -111,6 +111,7 @@ declare const CreateNFSFileShareCommand_base: {
|
|
|
111
111
|
* @throws {@link StorageGatewayServiceException}
|
|
112
112
|
* <p>Base exception class for all service exceptions from StorageGateway service.</p>
|
|
113
113
|
*
|
|
114
|
+
*
|
|
114
115
|
* @public
|
|
115
116
|
*/
|
|
116
117
|
export declare class CreateNFSFileShareCommand extends CreateNFSFileShareCommand_base {
|
|
@@ -115,6 +115,7 @@ declare const CreateSMBFileShareCommand_base: {
|
|
|
115
115
|
* @throws {@link StorageGatewayServiceException}
|
|
116
116
|
* <p>Base exception class for all service exceptions from StorageGateway service.</p>
|
|
117
117
|
*
|
|
118
|
+
*
|
|
118
119
|
* @public
|
|
119
120
|
*/
|
|
120
121
|
export declare class CreateSMBFileShareCommand extends CreateSMBFileShareCommand_base {
|
|
@@ -97,25 +97,25 @@ declare const CreateSnapshotCommand_base: {
|
|
|
97
97
|
* @throws {@link StorageGatewayServiceException}
|
|
98
98
|
* <p>Base exception class for all service exceptions from StorageGateway service.</p>
|
|
99
99
|
*
|
|
100
|
-
*
|
|
100
|
+
*
|
|
101
101
|
* @example To create a snapshot of a gateway volume
|
|
102
102
|
* ```javascript
|
|
103
103
|
* // Initiates an ad-hoc snapshot of a gateway volume.
|
|
104
104
|
* const input = {
|
|
105
|
-
*
|
|
106
|
-
*
|
|
105
|
+
* SnapshotDescription: "My root volume snapshot as of 10/03/2017",
|
|
106
|
+
* VolumeARN: "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABB"
|
|
107
107
|
* };
|
|
108
108
|
* const command = new CreateSnapshotCommand(input);
|
|
109
109
|
* const response = await client.send(command);
|
|
110
|
-
* /* response
|
|
110
|
+
* /* response is
|
|
111
111
|
* {
|
|
112
|
-
*
|
|
113
|
-
*
|
|
112
|
+
* SnapshotId: "snap-78e22663",
|
|
113
|
+
* VolumeARN: "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABB"
|
|
114
114
|
* }
|
|
115
115
|
* *\/
|
|
116
|
-
* // example id: to-create-a-snapshot-of-a-gateway-volume-1471301469561
|
|
117
116
|
* ```
|
|
118
117
|
*
|
|
118
|
+
* @public
|
|
119
119
|
*/
|
|
120
120
|
export declare class CreateSnapshotCommand extends CreateSnapshotCommand_base {
|
|
121
121
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -92,26 +92,26 @@ declare const CreateSnapshotFromVolumeRecoveryPointCommand_base: {
|
|
|
92
92
|
* @throws {@link StorageGatewayServiceException}
|
|
93
93
|
* <p>Base exception class for all service exceptions from StorageGateway service.</p>
|
|
94
94
|
*
|
|
95
|
-
*
|
|
95
|
+
*
|
|
96
96
|
* @example To create a snapshot of a gateway volume
|
|
97
97
|
* ```javascript
|
|
98
98
|
* // Initiates a snapshot of a gateway from a volume recovery point.
|
|
99
99
|
* const input = {
|
|
100
|
-
*
|
|
101
|
-
*
|
|
100
|
+
* SnapshotDescription: "My root volume snapshot as of 2017-06-30T10:10:10.000Z",
|
|
101
|
+
* VolumeARN: "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABB"
|
|
102
102
|
* };
|
|
103
103
|
* const command = new CreateSnapshotFromVolumeRecoveryPointCommand(input);
|
|
104
104
|
* const response = await client.send(command);
|
|
105
|
-
* /* response
|
|
105
|
+
* /* response is
|
|
106
106
|
* {
|
|
107
|
-
*
|
|
108
|
-
*
|
|
109
|
-
*
|
|
107
|
+
* SnapshotId: "snap-78e22663",
|
|
108
|
+
* VolumeARN: "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABB",
|
|
109
|
+
* VolumeRecoveryPointTime: "2017-06-30T10:10:10.000Z"
|
|
110
110
|
* }
|
|
111
111
|
* *\/
|
|
112
|
-
* // example id: to-create-a-snapshot-of-a-gateway-volume-1471301469561
|
|
113
112
|
* ```
|
|
114
113
|
*
|
|
114
|
+
* @public
|
|
115
115
|
*/
|
|
116
116
|
export declare class CreateSnapshotFromVolumeRecoveryPointCommand extends CreateSnapshotFromVolumeRecoveryPointCommand_base {
|
|
117
117
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -86,30 +86,30 @@ declare const CreateStorediSCSIVolumeCommand_base: {
|
|
|
86
86
|
* @throws {@link StorageGatewayServiceException}
|
|
87
87
|
* <p>Base exception class for all service exceptions from StorageGateway service.</p>
|
|
88
88
|
*
|
|
89
|
-
*
|
|
89
|
+
*
|
|
90
90
|
* @example To create a stored iSCSI volume
|
|
91
91
|
* ```javascript
|
|
92
92
|
* // Creates a stored volume on a specified stored gateway.
|
|
93
93
|
* const input = {
|
|
94
|
-
*
|
|
95
|
-
*
|
|
96
|
-
*
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
-
*
|
|
94
|
+
* DiskId: "pci-0000:03:00.0-scsi-0:0:0:0",
|
|
95
|
+
* GatewayARN: "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B",
|
|
96
|
+
* NetworkInterfaceId: "10.1.1.1",
|
|
97
|
+
* PreserveExistingData: true,
|
|
98
|
+
* SnapshotId: "snap-f47b7b94",
|
|
99
|
+
* TargetName: "my-volume"
|
|
100
100
|
* };
|
|
101
101
|
* const command = new CreateStorediSCSIVolumeCommand(input);
|
|
102
102
|
* const response = await client.send(command);
|
|
103
|
-
* /* response
|
|
103
|
+
* /* response is
|
|
104
104
|
* {
|
|
105
|
-
*
|
|
106
|
-
*
|
|
107
|
-
*
|
|
105
|
+
* TargetARN: "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/target/iqn.1997-05.com.amazon:myvolume",
|
|
106
|
+
* VolumeARN: "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABB",
|
|
107
|
+
* VolumeSizeInBytes: 1099511627776
|
|
108
108
|
* }
|
|
109
109
|
* *\/
|
|
110
|
-
* // example id: to-create-a-stored-iscsi-volume-1471367662813
|
|
111
110
|
* ```
|
|
112
111
|
*
|
|
112
|
+
* @public
|
|
113
113
|
*/
|
|
114
114
|
export declare class CreateStorediSCSIVolumeCommand extends CreateStorediSCSIVolumeCommand_base {
|
|
115
115
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -72,6 +72,7 @@ declare const CreateTapePoolCommand_base: {
|
|
|
72
72
|
* @throws {@link StorageGatewayServiceException}
|
|
73
73
|
* <p>Base exception class for all service exceptions from StorageGateway service.</p>
|
|
74
74
|
*
|
|
75
|
+
*
|
|
75
76
|
* @public
|
|
76
77
|
*/
|
|
77
78
|
export declare class CreateTapePoolCommand extends CreateTapePoolCommand_base {
|