@aws-sdk/client-storage-gateway 3.287.0 → 3.289.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/dist-types/commands/ActivateGatewayCommand.d.ts +22 -0
  2. package/dist-types/commands/AddCacheCommand.d.ts +20 -0
  3. package/dist-types/commands/AddTagsToResourceCommand.d.ts +22 -0
  4. package/dist-types/commands/AddUploadBufferCommand.d.ts +20 -0
  5. package/dist-types/commands/AddWorkingStorageCommand.d.ts +20 -0
  6. package/dist-types/commands/CancelArchivalCommand.d.ts +17 -0
  7. package/dist-types/commands/CancelRetrievalCommand.d.ts +17 -0
  8. package/dist-types/commands/CreateCachediSCSIVolumeCommand.d.ts +22 -0
  9. package/dist-types/commands/CreateSnapshotCommand.d.ts +18 -0
  10. package/dist-types/commands/CreateSnapshotFromVolumeRecoveryPointCommand.d.ts +19 -0
  11. package/dist-types/commands/CreateStorediSCSIVolumeCommand.d.ts +23 -0
  12. package/dist-types/commands/CreateTapeWithBarcodeCommand.d.ts +18 -0
  13. package/dist-types/commands/CreateTapesCommand.d.ts +24 -0
  14. package/dist-types/commands/DeleteBandwidthRateLimitCommand.d.ts +17 -0
  15. package/dist-types/commands/DeleteChapCredentialsCommand.d.ts +18 -0
  16. package/dist-types/commands/DeleteGatewayCommand.d.ts +16 -0
  17. package/dist-types/commands/DeleteSnapshotScheduleCommand.d.ts +16 -0
  18. package/dist-types/commands/DeleteTapeArchiveCommand.d.ts +16 -0
  19. package/dist-types/commands/DeleteTapeCommand.d.ts +17 -0
  20. package/dist-types/commands/DeleteVolumeCommand.d.ts +16 -0
  21. package/dist-types/commands/DescribeBandwidthRateLimitCommand.d.ts +18 -0
  22. package/dist-types/commands/DescribeCacheCommand.d.ts +25 -0
  23. package/dist-types/commands/DescribeCachediSCSIVolumesCommand.d.ts +33 -0
  24. package/dist-types/commands/DescribeChapCredentialsCommand.d.ts +23 -0
  25. package/dist-types/commands/DescribeGatewayInformationCommand.d.ts +28 -0
  26. package/dist-types/commands/DescribeMaintenanceStartTimeCommand.d.ts +20 -0
  27. package/dist-types/commands/DescribeSnapshotScheduleCommand.d.ts +20 -0
  28. package/dist-types/commands/DescribeStorediSCSIVolumesCommand.d.ts +34 -0
  29. package/dist-types/commands/DescribeTapeArchivesCommand.d.ts +37 -0
  30. package/dist-types/commands/DescribeTapeRecoveryPointsCommand.d.ts +27 -0
  31. package/dist-types/commands/DescribeTapesCommand.d.ts +36 -0
  32. package/dist-types/commands/DescribeUploadBufferCommand.d.ts +44 -0
  33. package/dist-types/commands/DescribeVTLDevicesCommand.d.ts +58 -0
  34. package/dist-types/commands/DescribeWorkingStorageCommand.d.ts +22 -0
  35. package/dist-types/commands/DisableGatewayCommand.d.ts +16 -0
  36. package/dist-types/commands/ListGatewaysCommand.d.ts +25 -0
  37. package/dist-types/commands/ListLocalDisksCommand.d.ts +35 -0
  38. package/dist-types/commands/ListTagsForResourceCommand.d.ts +25 -0
  39. package/dist-types/commands/ListVolumeRecoveryPointsCommand.d.ts +23 -0
  40. package/dist-types/commands/ListVolumesCommand.d.ts +37 -0
  41. package/dist-types/commands/RemoveTagsFromResourceCommand.d.ts +20 -0
  42. package/dist-types/commands/ResetCacheCommand.d.ts +16 -0
  43. package/dist-types/commands/RetrieveTapeArchiveCommand.d.ts +17 -0
  44. package/dist-types/commands/RetrieveTapeRecoveryPointCommand.d.ts +17 -0
  45. package/dist-types/commands/SetLocalConsolePasswordCommand.d.ts +17 -0
  46. package/dist-types/commands/ShutdownGatewayCommand.d.ts +16 -0
  47. package/dist-types/commands/StartGatewayCommand.d.ts +16 -0
  48. package/dist-types/commands/UpdateBandwidthRateLimitCommand.d.ts +18 -0
  49. package/dist-types/commands/UpdateChapCredentialsCommand.d.ts +20 -0
  50. package/dist-types/commands/UpdateGatewayInformationCommand.d.ts +19 -0
  51. package/dist-types/commands/UpdateGatewaySoftwareNowCommand.d.ts +16 -0
  52. package/dist-types/commands/UpdateMaintenanceStartTimeCommand.d.ts +19 -0
  53. package/dist-types/commands/UpdateSnapshotScheduleCommand.d.ts +19 -0
  54. package/dist-types/commands/UpdateVTLDeviceTypeCommand.d.ts +17 -0
  55. package/package.json +29 -29
@@ -36,6 +36,28 @@ export interface ActivateGatewayCommandOutput extends ActivateGatewayOutput, __M
36
36
  * @see {@link ActivateGatewayCommandOutput} for command's `response` shape.
37
37
  * @see {@link StorageGatewayClientResolvedConfig | config} for StorageGatewayClient's `config` shape.
38
38
  *
39
+ * @example To activate the gateway
40
+ * ```javascript
41
+ * // Activates the gateway you previously deployed on your host.
42
+ * const input = {
43
+ * "ActivationKey": "29AV1-3OFV9-VVIUB-NKT0I-LRO6V",
44
+ * "GatewayName": "My_Gateway",
45
+ * "GatewayRegion": "us-east-1",
46
+ * "GatewayTimezone": "GMT-12:00",
47
+ * "GatewayType": "STORED",
48
+ * "MediumChangerType": "AWS-Gateway-VTL",
49
+ * "TapeDriveType": "IBM-ULT3580-TD5"
50
+ * };
51
+ * const command = new ActivateGatewayCommand(input);
52
+ * const response = await client.send(command);
53
+ * /* response ==
54
+ * {
55
+ * "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-11A2222B"
56
+ * }
57
+ * *\/
58
+ * // example id: to-activate-the-gateway-1471281611207
59
+ * ```
60
+ *
39
61
  */
40
62
  export declare class ActivateGatewayCommand extends $Command<ActivateGatewayCommandInput, ActivateGatewayCommandOutput, StorageGatewayClientResolvedConfig> {
41
63
  readonly input: ActivateGatewayCommandInput;
@@ -33,6 +33,26 @@ export interface AddCacheCommandOutput extends AddCacheOutput, __MetadataBearer
33
33
  * @see {@link AddCacheCommandOutput} for command's `response` shape.
34
34
  * @see {@link StorageGatewayClientResolvedConfig | config} for StorageGatewayClient's `config` shape.
35
35
  *
36
+ * @example To add a cache
37
+ * ```javascript
38
+ * // The following example shows a request that activates a gateway-stored volume.
39
+ * const input = {
40
+ * "DiskIds": [
41
+ * "pci-0000:03:00.0-scsi-0:0:0:0",
42
+ * "pci-0000:03:00.0-scsi-0:0:1:0"
43
+ * ],
44
+ * "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B"
45
+ * };
46
+ * const command = new AddCacheCommand(input);
47
+ * const response = await client.send(command);
48
+ * /* response ==
49
+ * {
50
+ * "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B"
51
+ * }
52
+ * *\/
53
+ * // example id: to-add-a-cache-1471043606854
54
+ * ```
55
+ *
36
56
  */
37
57
  export declare class AddCacheCommand extends $Command<AddCacheCommandInput, AddCacheCommandOutput, StorageGatewayClientResolvedConfig> {
38
58
  readonly input: AddCacheCommandInput;
@@ -53,6 +53,28 @@ export interface AddTagsToResourceCommandOutput extends AddTagsToResourceOutput,
53
53
  * @see {@link AddTagsToResourceCommandOutput} for command's `response` shape.
54
54
  * @see {@link StorageGatewayClientResolvedConfig | config} for StorageGatewayClient's `config` shape.
55
55
  *
56
+ * @example To add tags to resource
57
+ * ```javascript
58
+ * // Adds one or more tags to the specified resource.
59
+ * const input = {
60
+ * "ResourceARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-11A2222B",
61
+ * "Tags": [
62
+ * {
63
+ * "Key": "Dev Gatgeway Region",
64
+ * "Value": "East Coast"
65
+ * }
66
+ * ]
67
+ * };
68
+ * const command = new AddTagsToResourceCommand(input);
69
+ * const response = await client.send(command);
70
+ * /* response ==
71
+ * {
72
+ * "ResourceARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-11A2222B"
73
+ * }
74
+ * *\/
75
+ * // example id: to-add-tags-to-resource-1471283689460
76
+ * ```
77
+ *
56
78
  */
57
79
  export declare class AddTagsToResourceCommand extends $Command<AddTagsToResourceCommandInput, AddTagsToResourceCommandOutput, StorageGatewayClientResolvedConfig> {
58
80
  readonly input: AddTagsToResourceCommandInput;
@@ -35,6 +35,26 @@ export interface AddUploadBufferCommandOutput extends AddUploadBufferOutput, __M
35
35
  * @see {@link AddUploadBufferCommandOutput} for command's `response` shape.
36
36
  * @see {@link StorageGatewayClientResolvedConfig | config} for StorageGatewayClient's `config` shape.
37
37
  *
38
+ * @example To add upload buffer on local disk
39
+ * ```javascript
40
+ * // Configures one or more gateway local disks as upload buffer for a specified gateway.
41
+ * const input = {
42
+ * "DiskIds": [
43
+ * "pci-0000:03:00.0-scsi-0:0:0:0",
44
+ * "pci-0000:03:00.0-scsi-0:0:1:0"
45
+ * ],
46
+ * "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B"
47
+ * };
48
+ * const command = new AddUploadBufferCommand(input);
49
+ * const response = await client.send(command);
50
+ * /* response ==
51
+ * {
52
+ * "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B"
53
+ * }
54
+ * *\/
55
+ * // example id: to-add-upload-buffer-on-local-disk-1471293902847
56
+ * ```
57
+ *
38
58
  */
39
59
  export declare class AddUploadBufferCommand extends $Command<AddUploadBufferCommandInput, AddUploadBufferCommandOutput, StorageGatewayClientResolvedConfig> {
40
60
  readonly input: AddUploadBufferCommandInput;
@@ -41,6 +41,26 @@ export interface AddWorkingStorageCommandOutput extends AddWorkingStorageOutput,
41
41
  * @see {@link AddWorkingStorageCommandOutput} for command's `response` shape.
42
42
  * @see {@link StorageGatewayClientResolvedConfig | config} for StorageGatewayClient's `config` shape.
43
43
  *
44
+ * @example To add storage on local disk
45
+ * ```javascript
46
+ * // Configures one or more gateway local disks as working storage for a gateway. (Working storage is also referred to as upload buffer.)
47
+ * const input = {
48
+ * "DiskIds": [
49
+ * "pci-0000:03:00.0-scsi-0:0:0:0",
50
+ * "pci-0000:03:00.0-scsi-0:0:1:0"
51
+ * ],
52
+ * "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B"
53
+ * };
54
+ * const command = new AddWorkingStorageCommand(input);
55
+ * const response = await client.send(command);
56
+ * /* response ==
57
+ * {
58
+ * "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B"
59
+ * }
60
+ * *\/
61
+ * // example id: to-add-storage-on-local-disk-1471294305401
62
+ * ```
63
+ *
44
64
  */
45
65
  export declare class AddWorkingStorageCommand extends $Command<AddWorkingStorageCommandInput, AddWorkingStorageCommandOutput, StorageGatewayClientResolvedConfig> {
46
66
  readonly input: AddWorkingStorageCommandInput;
@@ -30,6 +30,23 @@ export interface CancelArchivalCommandOutput extends CancelArchivalOutput, __Met
30
30
  * @see {@link CancelArchivalCommandOutput} for command's `response` shape.
31
31
  * @see {@link StorageGatewayClientResolvedConfig | config} for StorageGatewayClient's `config` shape.
32
32
  *
33
+ * @example To cancel virtual tape archiving
34
+ * ```javascript
35
+ * // Cancels archiving of a virtual tape to the virtual tape shelf (VTS) after the archiving process is initiated.
36
+ * const input = {
37
+ * "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B",
38
+ * "TapeARN": "arn:aws:storagegateway:us-east-1:999999999999:tape/AMZN01A2A4"
39
+ * };
40
+ * const command = new CancelArchivalCommand(input);
41
+ * const response = await client.send(command);
42
+ * /* response ==
43
+ * {
44
+ * "TapeARN": "arn:aws:storagegateway:us-east-1:999999999999:tape/AMZN01A2A4"
45
+ * }
46
+ * *\/
47
+ * // example id: to-cancel-virtual-tape-archiving-1471294865203
48
+ * ```
49
+ *
33
50
  */
34
51
  export declare class CancelArchivalCommand extends $Command<CancelArchivalCommandInput, CancelArchivalCommandOutput, StorageGatewayClientResolvedConfig> {
35
52
  readonly input: CancelArchivalCommandInput;
@@ -31,6 +31,23 @@ export interface CancelRetrievalCommandOutput extends CancelRetrievalOutput, __M
31
31
  * @see {@link CancelRetrievalCommandOutput} for command's `response` shape.
32
32
  * @see {@link StorageGatewayClientResolvedConfig | config} for StorageGatewayClient's `config` shape.
33
33
  *
34
+ * @example To cancel virtual tape retrieval
35
+ * ```javascript
36
+ * // Cancels retrieval of a virtual tape from the virtual tape shelf (VTS) to a gateway after the retrieval process is initiated.
37
+ * const input = {
38
+ * "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B",
39
+ * "TapeARN": "arn:aws:storagegateway:us-east-1:999999999999:tape/AMZN01A2A4"
40
+ * };
41
+ * const command = new CancelRetrievalCommand(input);
42
+ * const response = await client.send(command);
43
+ * /* response ==
44
+ * {
45
+ * "TapeARN": "arn:aws:storagegateway:us-east-1:999999999999:tape/AMZN01A2A4"
46
+ * }
47
+ * *\/
48
+ * // example id: to-cancel-virtual-tape-retrieval-1471295704491
49
+ * ```
50
+ *
34
51
  */
35
52
  export declare class CancelRetrievalCommand extends $Command<CancelRetrievalCommandInput, CancelRetrievalCommandOutput, StorageGatewayClientResolvedConfig> {
36
53
  readonly input: CancelRetrievalCommandInput;
@@ -46,6 +46,28 @@ export interface CreateCachediSCSIVolumeCommandOutput extends CreateCachediSCSIV
46
46
  * @see {@link CreateCachediSCSIVolumeCommandOutput} for command's `response` shape.
47
47
  * @see {@link StorageGatewayClientResolvedConfig | config} for StorageGatewayClient's `config` shape.
48
48
  *
49
+ * @example To create a cached iSCSI volume
50
+ * ```javascript
51
+ * // Creates a cached volume on a specified cached gateway.
52
+ * const input = {
53
+ * "ClientToken": "cachedvol112233",
54
+ * "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B",
55
+ * "NetworkInterfaceId": "10.1.1.1",
56
+ * "SnapshotId": "snap-f47b7b94",
57
+ * "TargetName": "my-volume",
58
+ * "VolumeSizeInBytes": 536870912000
59
+ * };
60
+ * const command = new CreateCachediSCSIVolumeCommand(input);
61
+ * const response = await client.send(command);
62
+ * /* response ==
63
+ * {
64
+ * "TargetARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/target/iqn.1997-05.com.amazon:myvolume",
65
+ * "VolumeARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABB"
66
+ * }
67
+ * *\/
68
+ * // example id: to-create-a-cached-iscsi-volume-1471296661787
69
+ * ```
70
+ *
49
71
  */
50
72
  export declare class CreateCachediSCSIVolumeCommand extends $Command<CreateCachediSCSIVolumeCommandInput, CreateCachediSCSIVolumeCommandOutput, StorageGatewayClientResolvedConfig> {
51
73
  readonly input: CreateCachediSCSIVolumeCommandInput;
@@ -56,6 +56,24 @@ export interface CreateSnapshotCommandOutput extends CreateSnapshotOutput, __Met
56
56
  * @see {@link CreateSnapshotCommandOutput} for command's `response` shape.
57
57
  * @see {@link StorageGatewayClientResolvedConfig | config} for StorageGatewayClient's `config` shape.
58
58
  *
59
+ * @example To create a snapshot of a gateway volume
60
+ * ```javascript
61
+ * // Initiates an ad-hoc snapshot of a gateway volume.
62
+ * const input = {
63
+ * "SnapshotDescription": "My root volume snapshot as of 10/03/2017",
64
+ * "VolumeARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABB"
65
+ * };
66
+ * const command = new CreateSnapshotCommand(input);
67
+ * const response = await client.send(command);
68
+ * /* response ==
69
+ * {
70
+ * "SnapshotId": "snap-78e22663",
71
+ * "VolumeARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABB"
72
+ * }
73
+ * *\/
74
+ * // example id: to-create-a-snapshot-of-a-gateway-volume-1471301469561
75
+ * ```
76
+ *
59
77
  */
60
78
  export declare class CreateSnapshotCommand extends $Command<CreateSnapshotCommandInput, CreateSnapshotCommandOutput, StorageGatewayClientResolvedConfig> {
61
79
  readonly input: CreateSnapshotCommandInput;
@@ -49,6 +49,25 @@ export interface CreateSnapshotFromVolumeRecoveryPointCommandOutput extends Crea
49
49
  * @see {@link CreateSnapshotFromVolumeRecoveryPointCommandOutput} for command's `response` shape.
50
50
  * @see {@link StorageGatewayClientResolvedConfig | config} for StorageGatewayClient's `config` shape.
51
51
  *
52
+ * @example To create a snapshot of a gateway volume
53
+ * ```javascript
54
+ * // Initiates a snapshot of a gateway from a volume recovery point.
55
+ * const input = {
56
+ * "SnapshotDescription": "My root volume snapshot as of 2017-06-30T10:10:10.000Z",
57
+ * "VolumeARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABB"
58
+ * };
59
+ * const command = new CreateSnapshotFromVolumeRecoveryPointCommand(input);
60
+ * const response = await client.send(command);
61
+ * /* response ==
62
+ * {
63
+ * "SnapshotId": "snap-78e22663",
64
+ * "VolumeARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABB",
65
+ * "VolumeRecoveryPointTime": "2017-06-30T10:10:10.000Z"
66
+ * }
67
+ * *\/
68
+ * // example id: to-create-a-snapshot-of-a-gateway-volume-1471301469561
69
+ * ```
70
+ *
52
71
  */
53
72
  export declare class CreateSnapshotFromVolumeRecoveryPointCommand extends $Command<CreateSnapshotFromVolumeRecoveryPointCommandInput, CreateSnapshotFromVolumeRecoveryPointCommandOutput, StorageGatewayClientResolvedConfig> {
54
73
  readonly input: CreateSnapshotFromVolumeRecoveryPointCommandInput;
@@ -40,6 +40,29 @@ export interface CreateStorediSCSIVolumeCommandOutput extends CreateStorediSCSIV
40
40
  * @see {@link CreateStorediSCSIVolumeCommandOutput} for command's `response` shape.
41
41
  * @see {@link StorageGatewayClientResolvedConfig | config} for StorageGatewayClient's `config` shape.
42
42
  *
43
+ * @example To create a stored iSCSI volume
44
+ * ```javascript
45
+ * // Creates a stored volume on a specified stored gateway.
46
+ * const input = {
47
+ * "DiskId": "pci-0000:03:00.0-scsi-0:0:0:0",
48
+ * "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B",
49
+ * "NetworkInterfaceId": "10.1.1.1",
50
+ * "PreserveExistingData": true,
51
+ * "SnapshotId": "snap-f47b7b94",
52
+ * "TargetName": "my-volume"
53
+ * };
54
+ * const command = new CreateStorediSCSIVolumeCommand(input);
55
+ * const response = await client.send(command);
56
+ * /* response ==
57
+ * {
58
+ * "TargetARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/target/iqn.1997-05.com.amazon:myvolume",
59
+ * "VolumeARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABB",
60
+ * "VolumeSizeInBytes": 1099511627776
61
+ * }
62
+ * *\/
63
+ * // example id: to-create-a-stored-iscsi-volume-1471367662813
64
+ * ```
65
+ *
43
66
  */
44
67
  export declare class CreateStorediSCSIVolumeCommand extends $Command<CreateStorediSCSIVolumeCommandInput, CreateStorediSCSIVolumeCommandOutput, StorageGatewayClientResolvedConfig> {
45
68
  readonly input: CreateStorediSCSIVolumeCommandInput;
@@ -37,6 +37,24 @@ export interface CreateTapeWithBarcodeCommandOutput extends CreateTapeWithBarcod
37
37
  * @see {@link CreateTapeWithBarcodeCommandOutput} for command's `response` shape.
38
38
  * @see {@link StorageGatewayClientResolvedConfig | config} for StorageGatewayClient's `config` shape.
39
39
  *
40
+ * @example To create a virtual tape using a barcode
41
+ * ```javascript
42
+ * // Creates a virtual tape by using your own barcode.
43
+ * const input = {
44
+ * "GatewayARN": "arn:aws:storagegateway:us-east-1:999999999999:gateway/sgw-12A3456B",
45
+ * "TapeBarcode": "TEST12345",
46
+ * "TapeSizeInBytes": 107374182400
47
+ * };
48
+ * const command = new CreateTapeWithBarcodeCommand(input);
49
+ * const response = await client.send(command);
50
+ * /* response ==
51
+ * {
52
+ * "TapeARN": "arn:aws:storagegateway:us-east-1:999999999999:tape/TEST12345"
53
+ * }
54
+ * *\/
55
+ * // example id: to-create-a-virtual-tape-using-a-barcode-1471371842452
56
+ * ```
57
+ *
40
58
  */
41
59
  export declare class CreateTapeWithBarcodeCommand extends $Command<CreateTapeWithBarcodeCommandInput, CreateTapeWithBarcodeCommandOutput, StorageGatewayClientResolvedConfig> {
42
60
  readonly input: CreateTapeWithBarcodeCommandInput;
@@ -35,6 +35,30 @@ export interface CreateTapesCommandOutput extends CreateTapesOutput, __MetadataB
35
35
  * @see {@link CreateTapesCommandOutput} for command's `response` shape.
36
36
  * @see {@link StorageGatewayClientResolvedConfig | config} for StorageGatewayClient's `config` shape.
37
37
  *
38
+ * @example To create a virtual tape
39
+ * ```javascript
40
+ * // Creates one or more virtual tapes.
41
+ * const input = {
42
+ * "ClientToken": "77777",
43
+ * "GatewayARN": "arn:aws:storagegateway:us-east-1:999999999999:gateway/sgw-12A3456B",
44
+ * "NumTapesToCreate": 3,
45
+ * "TapeBarcodePrefix": "TEST",
46
+ * "TapeSizeInBytes": 107374182400
47
+ * };
48
+ * const command = new CreateTapesCommand(input);
49
+ * const response = await client.send(command);
50
+ * /* response ==
51
+ * {
52
+ * "TapeARNs": [
53
+ * "arn:aws:storagegateway:us-east-1:999999999999:tape/TEST38A29D",
54
+ * "arn:aws:storagegateway:us-east-1:204469490176:tape/TEST3AA29F",
55
+ * "arn:aws:storagegateway:us-east-1:204469490176:tape/TEST3BA29E"
56
+ * ]
57
+ * }
58
+ * *\/
59
+ * // example id: to-create-a-virtual-tape-1471372061659
60
+ * ```
61
+ *
38
62
  */
39
63
  export declare class CreateTapesCommand extends $Command<CreateTapesCommandInput, CreateTapesCommandOutput, StorageGatewayClientResolvedConfig> {
40
64
  readonly input: CreateTapesCommandInput;
@@ -33,6 +33,23 @@ export interface DeleteBandwidthRateLimitCommandOutput extends DeleteBandwidthRa
33
33
  * @see {@link DeleteBandwidthRateLimitCommandOutput} for command's `response` shape.
34
34
  * @see {@link StorageGatewayClientResolvedConfig | config} for StorageGatewayClient's `config` shape.
35
35
  *
36
+ * @example To delete bandwidth rate limits of gateway
37
+ * ```javascript
38
+ * // Deletes the bandwidth rate limits of a gateway; either the upload or download limit, or both.
39
+ * const input = {
40
+ * "BandwidthType": "All",
41
+ * "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B"
42
+ * };
43
+ * const command = new DeleteBandwidthRateLimitCommand(input);
44
+ * const response = await client.send(command);
45
+ * /* response ==
46
+ * {
47
+ * "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B"
48
+ * }
49
+ * *\/
50
+ * // example id: to-delete-bandwidth-rate-limits-of-gateway-1471373225520
51
+ * ```
52
+ *
36
53
  */
37
54
  export declare class DeleteBandwidthRateLimitCommand extends $Command<DeleteBandwidthRateLimitCommandInput, DeleteBandwidthRateLimitCommandOutput, StorageGatewayClientResolvedConfig> {
38
55
  readonly input: DeleteBandwidthRateLimitCommandInput;
@@ -31,6 +31,24 @@ export interface DeleteChapCredentialsCommandOutput extends DeleteChapCredential
31
31
  * @see {@link DeleteChapCredentialsCommandOutput} for command's `response` shape.
32
32
  * @see {@link StorageGatewayClientResolvedConfig | config} for StorageGatewayClient's `config` shape.
33
33
  *
34
+ * @example To delete CHAP credentials
35
+ * ```javascript
36
+ * // Deletes Challenge-Handshake Authentication Protocol (CHAP) credentials for a specified iSCSI target and initiator pair.
37
+ * const input = {
38
+ * "InitiatorName": "iqn.1991-05.com.microsoft:computername.domain.example.com",
39
+ * "TargetARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/target/iqn.1997-05.com.amazon:myvolume"
40
+ * };
41
+ * const command = new DeleteChapCredentialsCommand(input);
42
+ * const response = await client.send(command);
43
+ * /* response ==
44
+ * {
45
+ * "InitiatorName": "iqn.1991-05.com.microsoft:computername.domain.example.com",
46
+ * "TargetARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/target/iqn.1997-05.com.amazon:myvolume"
47
+ * }
48
+ * *\/
49
+ * // example id: to-delete-chap-credentials-1471375025612
50
+ * ```
51
+ *
34
52
  */
35
53
  export declare class DeleteChapCredentialsCommand extends $Command<DeleteChapCredentialsCommandInput, DeleteChapCredentialsCommandOutput, StorageGatewayClientResolvedConfig> {
36
54
  readonly input: DeleteChapCredentialsCommandInput;
@@ -46,6 +46,22 @@ export interface DeleteGatewayCommandOutput extends DeleteGatewayOutput, __Metad
46
46
  * @see {@link DeleteGatewayCommandOutput} for command's `response` shape.
47
47
  * @see {@link StorageGatewayClientResolvedConfig | config} for StorageGatewayClient's `config` shape.
48
48
  *
49
+ * @example To delete a gatgeway
50
+ * ```javascript
51
+ * // This operation deletes the gateway, but not the gateway's VM from the host computer.
52
+ * const input = {
53
+ * "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B"
54
+ * };
55
+ * const command = new DeleteGatewayCommand(input);
56
+ * const response = await client.send(command);
57
+ * /* response ==
58
+ * {
59
+ * "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B"
60
+ * }
61
+ * *\/
62
+ * // example id: to-delete-a-gatgeway-1471381697333
63
+ * ```
64
+ *
49
65
  */
50
66
  export declare class DeleteGatewayCommand extends $Command<DeleteGatewayCommandInput, DeleteGatewayCommandOutput, StorageGatewayClientResolvedConfig> {
51
67
  readonly input: DeleteGatewayCommandInput;
@@ -43,6 +43,22 @@ export interface DeleteSnapshotScheduleCommandOutput extends DeleteSnapshotSched
43
43
  * @see {@link DeleteSnapshotScheduleCommandOutput} for command's `response` shape.
44
44
  * @see {@link StorageGatewayClientResolvedConfig | config} for StorageGatewayClient's `config` shape.
45
45
  *
46
+ * @example To delete a snapshot of a volume
47
+ * ```javascript
48
+ * // This action enables you to delete a snapshot schedule for a volume.
49
+ * const input = {
50
+ * "VolumeARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABB"
51
+ * };
52
+ * const command = new DeleteSnapshotScheduleCommand(input);
53
+ * const response = await client.send(command);
54
+ * /* response ==
55
+ * {
56
+ * "VolumeARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABB"
57
+ * }
58
+ * *\/
59
+ * // example id: to-delete-a-snapshot-of-a-volume-1471382234377
60
+ * ```
61
+ *
46
62
  */
47
63
  export declare class DeleteSnapshotScheduleCommand extends $Command<DeleteSnapshotScheduleCommandInput, DeleteSnapshotScheduleCommandOutput, StorageGatewayClientResolvedConfig> {
48
64
  readonly input: DeleteSnapshotScheduleCommandInput;
@@ -30,6 +30,22 @@ export interface DeleteTapeArchiveCommandOutput extends DeleteTapeArchiveOutput,
30
30
  * @see {@link DeleteTapeArchiveCommandOutput} for command's `response` shape.
31
31
  * @see {@link StorageGatewayClientResolvedConfig | config} for StorageGatewayClient's `config` shape.
32
32
  *
33
+ * @example To delete a virtual tape from the shelf (VTS)
34
+ * ```javascript
35
+ * // Deletes the specified virtual tape from the virtual tape shelf (VTS).
36
+ * const input = {
37
+ * "TapeARN": "arn:aws:storagegateway:us-east-1:204469490176:tape/TEST05A2A0"
38
+ * };
39
+ * const command = new DeleteTapeArchiveCommand(input);
40
+ * const response = await client.send(command);
41
+ * /* response ==
42
+ * {
43
+ * "TapeARN": "arn:aws:storagegateway:us-east-1:204469490176:tape/TEST05A2A0"
44
+ * }
45
+ * *\/
46
+ * // example id: to-delete-a-virtual-tape-from-the-shelf-vts-1471383964329
47
+ * ```
48
+ *
33
49
  */
34
50
  export declare class DeleteTapeArchiveCommand extends $Command<DeleteTapeArchiveCommandInput, DeleteTapeArchiveCommandOutput, StorageGatewayClientResolvedConfig> {
35
51
  readonly input: DeleteTapeArchiveCommandInput;
@@ -30,6 +30,23 @@ export interface DeleteTapeCommandOutput extends DeleteTapeOutput, __MetadataBea
30
30
  * @see {@link DeleteTapeCommandOutput} for command's `response` shape.
31
31
  * @see {@link StorageGatewayClientResolvedConfig | config} for StorageGatewayClient's `config` shape.
32
32
  *
33
+ * @example To delete a virtual tape
34
+ * ```javascript
35
+ * // This example deletes the specified virtual tape.
36
+ * const input = {
37
+ * "GatewayARN": "arn:aws:storagegateway:us-east-1:204469490176:gateway/sgw-12A3456B",
38
+ * "TapeARN": "arn:aws:storagegateway:us-east-1:204469490176:tape/TEST05A2A0"
39
+ * };
40
+ * const command = new DeleteTapeCommand(input);
41
+ * const response = await client.send(command);
42
+ * /* response ==
43
+ * {
44
+ * "TapeARN": "arn:aws:storagegateway:us-east-1:204469490176:tape/TEST05A2A0"
45
+ * }
46
+ * *\/
47
+ * // example id: to-delete-a-virtual-tape-1471382444157
48
+ * ```
49
+ *
33
50
  */
34
51
  export declare class DeleteTapeCommand extends $Command<DeleteTapeCommandInput, DeleteTapeCommandOutput, StorageGatewayClientResolvedConfig> {
35
52
  readonly input: DeleteTapeCommandInput;
@@ -41,6 +41,22 @@ export interface DeleteVolumeCommandOutput extends DeleteVolumeOutput, __Metadat
41
41
  * @see {@link DeleteVolumeCommandOutput} for command's `response` shape.
42
42
  * @see {@link StorageGatewayClientResolvedConfig | config} for StorageGatewayClient's `config` shape.
43
43
  *
44
+ * @example To delete a gateway volume
45
+ * ```javascript
46
+ * // Deletes the specified gateway volume that you previously created using the CreateCachediSCSIVolume or CreateStorediSCSIVolume API.
47
+ * const input = {
48
+ * "VolumeARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABB"
49
+ * };
50
+ * const command = new DeleteVolumeCommand(input);
51
+ * const response = await client.send(command);
52
+ * /* response ==
53
+ * {
54
+ * "VolumeARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABB"
55
+ * }
56
+ * *\/
57
+ * // example id: to-delete-a-gateway-volume-1471384418416
58
+ * ```
59
+ *
44
60
  */
45
61
  export declare class DeleteVolumeCommand extends $Command<DeleteVolumeCommandInput, DeleteVolumeCommandOutput, StorageGatewayClientResolvedConfig> {
46
62
  readonly input: DeleteVolumeCommandInput;
@@ -37,6 +37,24 @@ export interface DescribeBandwidthRateLimitCommandOutput extends DescribeBandwid
37
37
  * @see {@link DescribeBandwidthRateLimitCommandOutput} for command's `response` shape.
38
38
  * @see {@link StorageGatewayClientResolvedConfig | config} for StorageGatewayClient's `config` shape.
39
39
  *
40
+ * @example To describe the bandwidth rate limits of a gateway
41
+ * ```javascript
42
+ * // Returns a value for a bandwidth rate limit if set. If not set, then only the gateway ARN is returned.
43
+ * const input = {
44
+ * "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B"
45
+ * };
46
+ * const command = new DescribeBandwidthRateLimitCommand(input);
47
+ * const response = await client.send(command);
48
+ * /* response ==
49
+ * {
50
+ * "AverageDownloadRateLimitInBitsPerSec": 204800,
51
+ * "AverageUploadRateLimitInBitsPerSec": 102400,
52
+ * "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B"
53
+ * }
54
+ * *\/
55
+ * // example id: to-describe-the-bandwidth-rate-limits-of-a-gateway-1471384826404
56
+ * ```
57
+ *
40
58
  */
41
59
  export declare class DescribeBandwidthRateLimitCommand extends $Command<DescribeBandwidthRateLimitCommandInput, DescribeBandwidthRateLimitCommandOutput, StorageGatewayClientResolvedConfig> {
42
60
  readonly input: DescribeBandwidthRateLimitCommandInput;
@@ -33,6 +33,31 @@ export interface DescribeCacheCommandOutput extends DescribeCacheOutput, __Metad
33
33
  * @see {@link DescribeCacheCommandOutput} for command's `response` shape.
34
34
  * @see {@link StorageGatewayClientResolvedConfig | config} for StorageGatewayClient's `config` shape.
35
35
  *
36
+ * @example To describe cache information
37
+ * ```javascript
38
+ * // Returns information about the cache of a gateway.
39
+ * const input = {
40
+ * "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B"
41
+ * };
42
+ * const command = new DescribeCacheCommand(input);
43
+ * const response = await client.send(command);
44
+ * /* response ==
45
+ * {
46
+ * "CacheAllocatedInBytes": 2199023255552,
47
+ * "CacheDirtyPercentage": 0.07,
48
+ * "CacheHitPercentage": 99.68,
49
+ * "CacheMissPercentage": 0.32,
50
+ * "CacheUsedPercentage": 0.07,
51
+ * "DiskIds": [
52
+ * "pci-0000:03:00.0-scsi-0:0:0:0",
53
+ * "pci-0000:04:00.0-scsi-0:1:0:0"
54
+ * ],
55
+ * "GatewayARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B"
56
+ * }
57
+ * *\/
58
+ * // example id: to-describe-cache-information-1471385756036
59
+ * ```
60
+ *
36
61
  */
37
62
  export declare class DescribeCacheCommand extends $Command<DescribeCacheCommandInput, DescribeCacheCommandOutput, StorageGatewayClientResolvedConfig> {
38
63
  readonly input: DescribeCacheCommandInput;
@@ -34,6 +34,39 @@ export interface DescribeCachediSCSIVolumesCommandOutput extends DescribeCachedi
34
34
  * @see {@link DescribeCachediSCSIVolumesCommandOutput} for command's `response` shape.
35
35
  * @see {@link StorageGatewayClientResolvedConfig | config} for StorageGatewayClient's `config` shape.
36
36
  *
37
+ * @example To describe gateway cached iSCSI volumes
38
+ * ```javascript
39
+ * // Returns a description of the gateway cached iSCSI volumes specified in the request.
40
+ * const input = {
41
+ * "VolumeARNs": [
42
+ * "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABB"
43
+ * ]
44
+ * };
45
+ * const command = new DescribeCachediSCSIVolumesCommand(input);
46
+ * const response = await client.send(command);
47
+ * /* response ==
48
+ * {
49
+ * "CachediSCSIVolumes": [
50
+ * {
51
+ * "VolumeARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABB",
52
+ * "VolumeId": "vol-1122AABB",
53
+ * "VolumeSizeInBytes": 1099511627776,
54
+ * "VolumeStatus": "AVAILABLE",
55
+ * "VolumeType": "CACHED iSCSI",
56
+ * "VolumeiSCSIAttributes": {
57
+ * "ChapEnabled": true,
58
+ * "LunNumber": 1,
59
+ * "NetworkInterfaceId": "10.243.43.207",
60
+ * "NetworkInterfacePort": 3260,
61
+ * "TargetARN": "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/target/iqn.1997-05.com.amazon:myvolume"
62
+ * }
63
+ * }
64
+ * ]
65
+ * }
66
+ * *\/
67
+ * // example id: to-describe-gateway-cached-iscsi-volumes-1471458094649
68
+ * ```
69
+ *
37
70
  */
38
71
  export declare class DescribeCachediSCSIVolumesCommand extends $Command<DescribeCachediSCSIVolumesCommandInput, DescribeCachediSCSIVolumesCommandOutput, StorageGatewayClientResolvedConfig> {
39
72
  readonly input: DescribeCachediSCSIVolumesCommandInput;