Skip to content

Commit aeef69f

Browse files
author
awstools
committed
feat(client-storage-gateway): This release adds support for generating cache reports on S3 File Gateways for files that fail to upload.
1 parent 8983d46 commit aeef69f

13 files changed

+1958
-7
lines changed

clients/client-storage-gateway/README.md

+40
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,14 @@ CancelArchival
338338

339339
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/storage-gateway/command/CancelArchivalCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-storage-gateway/Interface/CancelArchivalCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-storage-gateway/Interface/CancelArchivalCommandOutput/)
340340

341+
</details>
342+
<details>
343+
<summary>
344+
CancelCacheReport
345+
</summary>
346+
347+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/storage-gateway/command/CancelCacheReportCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-storage-gateway/Interface/CancelCacheReportCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-storage-gateway/Interface/CancelCacheReportCommandOutput/)
348+
341349
</details>
342350
<details>
343351
<summary>
@@ -434,6 +442,14 @@ DeleteBandwidthRateLimit
434442

435443
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/storage-gateway/command/DeleteBandwidthRateLimitCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-storage-gateway/Interface/DeleteBandwidthRateLimitCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-storage-gateway/Interface/DeleteBandwidthRateLimitCommandOutput/)
436444

445+
</details>
446+
<details>
447+
<summary>
448+
DeleteCacheReport
449+
</summary>
450+
451+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/storage-gateway/command/DeleteCacheReportCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-storage-gateway/Interface/DeleteCacheReportCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-storage-gateway/Interface/DeleteCacheReportCommandOutput/)
452+
437453
</details>
438454
<details>
439455
<summary>
@@ -538,6 +554,14 @@ DescribeCachediSCSIVolumes
538554

539555
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/storage-gateway/command/DescribeCachediSCSIVolumesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-storage-gateway/Interface/DescribeCachediSCSIVolumesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-storage-gateway/Interface/DescribeCachediSCSIVolumesCommandOutput/)
540556

557+
</details>
558+
<details>
559+
<summary>
560+
DescribeCacheReport
561+
</summary>
562+
563+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/storage-gateway/command/DescribeCacheReportCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-storage-gateway/Interface/DescribeCacheReportCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-storage-gateway/Interface/DescribeCacheReportCommandOutput/)
564+
541565
</details>
542566
<details>
543567
<summary>
@@ -698,6 +722,14 @@ ListAutomaticTapeCreationPolicies
698722

699723
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/storage-gateway/command/ListAutomaticTapeCreationPoliciesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-storage-gateway/Interface/ListAutomaticTapeCreationPoliciesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-storage-gateway/Interface/ListAutomaticTapeCreationPoliciesCommandOutput/)
700724

725+
</details>
726+
<details>
727+
<summary>
728+
ListCacheReports
729+
</summary>
730+
731+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/storage-gateway/command/ListCacheReportsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-storage-gateway/Interface/ListCacheReportsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-storage-gateway/Interface/ListCacheReportsCommandOutput/)
732+
701733
</details>
702734
<details>
703735
<summary>
@@ -858,6 +890,14 @@ StartAvailabilityMonitorTest
858890

859891
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/storage-gateway/command/StartAvailabilityMonitorTestCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-storage-gateway/Interface/StartAvailabilityMonitorTestCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-storage-gateway/Interface/StartAvailabilityMonitorTestCommandOutput/)
860892

893+
</details>
894+
<details>
895+
<summary>
896+
StartCacheReport
897+
</summary>
898+
899+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/storage-gateway/command/StartCacheReportCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-storage-gateway/Interface/StartCacheReportCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-storage-gateway/Interface/StartCacheReportCommandOutput/)
900+
861901
</details>
862902
<details>
863903
<summary>

clients/client-storage-gateway/src/StorageGateway.ts

+116
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ import {
4343
CancelArchivalCommandInput,
4444
CancelArchivalCommandOutput,
4545
} from "./commands/CancelArchivalCommand";
46+
import {
47+
CancelCacheReportCommand,
48+
CancelCacheReportCommandInput,
49+
CancelCacheReportCommandOutput,
50+
} from "./commands/CancelCacheReportCommand";
4651
import {
4752
CancelRetrievalCommand,
4853
CancelRetrievalCommandInput,
@@ -99,6 +104,11 @@ import {
99104
DeleteBandwidthRateLimitCommandInput,
100105
DeleteBandwidthRateLimitCommandOutput,
101106
} from "./commands/DeleteBandwidthRateLimitCommand";
107+
import {
108+
DeleteCacheReportCommand,
109+
DeleteCacheReportCommandInput,
110+
DeleteCacheReportCommandOutput,
111+
} from "./commands/DeleteCacheReportCommand";
102112
import {
103113
DeleteChapCredentialsCommand,
104114
DeleteChapCredentialsCommandInput,
@@ -160,6 +170,11 @@ import {
160170
DescribeCachediSCSIVolumesCommandInput,
161171
DescribeCachediSCSIVolumesCommandOutput,
162172
} from "./commands/DescribeCachediSCSIVolumesCommand";
173+
import {
174+
DescribeCacheReportCommand,
175+
DescribeCacheReportCommandInput,
176+
DescribeCacheReportCommandOutput,
177+
} from "./commands/DescribeCacheReportCommand";
163178
import {
164179
DescribeChapCredentialsCommand,
165180
DescribeChapCredentialsCommandInput,
@@ -256,6 +271,11 @@ import {
256271
ListAutomaticTapeCreationPoliciesCommandInput,
257272
ListAutomaticTapeCreationPoliciesCommandOutput,
258273
} from "./commands/ListAutomaticTapeCreationPoliciesCommand";
274+
import {
275+
ListCacheReportsCommand,
276+
ListCacheReportsCommandInput,
277+
ListCacheReportsCommandOutput,
278+
} from "./commands/ListCacheReportsCommand";
259279
import {
260280
ListFileSharesCommand,
261281
ListFileSharesCommandInput,
@@ -344,6 +364,11 @@ import {
344364
StartAvailabilityMonitorTestCommandInput,
345365
StartAvailabilityMonitorTestCommandOutput,
346366
} from "./commands/StartAvailabilityMonitorTestCommand";
367+
import {
368+
StartCacheReportCommand,
369+
StartCacheReportCommandInput,
370+
StartCacheReportCommandOutput,
371+
} from "./commands/StartCacheReportCommand";
347372
import {
348373
StartGatewayCommand,
349374
StartGatewayCommandInput,
@@ -436,6 +461,7 @@ const commands = {
436461
AssociateFileSystemCommand,
437462
AttachVolumeCommand,
438463
CancelArchivalCommand,
464+
CancelCacheReportCommand,
439465
CancelRetrievalCommand,
440466
CreateCachediSCSIVolumeCommand,
441467
CreateNFSFileShareCommand,
@@ -448,6 +474,7 @@ const commands = {
448474
CreateTapeWithBarcodeCommand,
449475
DeleteAutomaticTapeCreationPolicyCommand,
450476
DeleteBandwidthRateLimitCommand,
477+
DeleteCacheReportCommand,
451478
DeleteChapCredentialsCommand,
452479
DeleteFileShareCommand,
453480
DeleteGatewayCommand,
@@ -461,6 +488,7 @@ const commands = {
461488
DescribeBandwidthRateLimitScheduleCommand,
462489
DescribeCacheCommand,
463490
DescribeCachediSCSIVolumesCommand,
491+
DescribeCacheReportCommand,
464492
DescribeChapCredentialsCommand,
465493
DescribeFileSystemAssociationsCommand,
466494
DescribeGatewayInformationCommand,
@@ -481,6 +509,7 @@ const commands = {
481509
DisassociateFileSystemCommand,
482510
JoinDomainCommand,
483511
ListAutomaticTapeCreationPoliciesCommand,
512+
ListCacheReportsCommand,
484513
ListFileSharesCommand,
485514
ListFileSystemAssociationsCommand,
486515
ListGatewaysCommand,
@@ -501,6 +530,7 @@ const commands = {
501530
SetSMBGuestPasswordCommand,
502531
ShutdownGatewayCommand,
503532
StartAvailabilityMonitorTestCommand,
533+
StartCacheReportCommand,
504534
StartGatewayCommand,
505535
UpdateAutomaticTapeCreationPolicyCommand,
506536
UpdateBandwidthRateLimitCommand,
@@ -649,6 +679,23 @@ export interface StorageGateway {
649679
cb: (err: any, data?: CancelArchivalCommandOutput) => void
650680
): void;
651681

682+
/**
683+
* @see {@link CancelCacheReportCommand}
684+
*/
685+
cancelCacheReport(
686+
args: CancelCacheReportCommandInput,
687+
options?: __HttpHandlerOptions
688+
): Promise<CancelCacheReportCommandOutput>;
689+
cancelCacheReport(
690+
args: CancelCacheReportCommandInput,
691+
cb: (err: any, data?: CancelCacheReportCommandOutput) => void
692+
): void;
693+
cancelCacheReport(
694+
args: CancelCacheReportCommandInput,
695+
options: __HttpHandlerOptions,
696+
cb: (err: any, data?: CancelCacheReportCommandOutput) => void
697+
): void;
698+
652699
/**
653700
* @see {@link CancelRetrievalCommand}
654701
*/
@@ -838,6 +885,23 @@ export interface StorageGateway {
838885
cb: (err: any, data?: DeleteBandwidthRateLimitCommandOutput) => void
839886
): void;
840887

888+
/**
889+
* @see {@link DeleteCacheReportCommand}
890+
*/
891+
deleteCacheReport(
892+
args: DeleteCacheReportCommandInput,
893+
options?: __HttpHandlerOptions
894+
): Promise<DeleteCacheReportCommandOutput>;
895+
deleteCacheReport(
896+
args: DeleteCacheReportCommandInput,
897+
cb: (err: any, data?: DeleteCacheReportCommandOutput) => void
898+
): void;
899+
deleteCacheReport(
900+
args: DeleteCacheReportCommandInput,
901+
options: __HttpHandlerOptions,
902+
cb: (err: any, data?: DeleteCacheReportCommandOutput) => void
903+
): void;
904+
841905
/**
842906
* @see {@link DeleteChapCredentialsCommand}
843907
*/
@@ -1029,6 +1093,23 @@ export interface StorageGateway {
10291093
cb: (err: any, data?: DescribeCachediSCSIVolumesCommandOutput) => void
10301094
): void;
10311095

1096+
/**
1097+
* @see {@link DescribeCacheReportCommand}
1098+
*/
1099+
describeCacheReport(
1100+
args: DescribeCacheReportCommandInput,
1101+
options?: __HttpHandlerOptions
1102+
): Promise<DescribeCacheReportCommandOutput>;
1103+
describeCacheReport(
1104+
args: DescribeCacheReportCommandInput,
1105+
cb: (err: any, data?: DescribeCacheReportCommandOutput) => void
1106+
): void;
1107+
describeCacheReport(
1108+
args: DescribeCacheReportCommandInput,
1109+
options: __HttpHandlerOptions,
1110+
cb: (err: any, data?: DescribeCacheReportCommandOutput) => void
1111+
): void;
1112+
10321113
/**
10331114
* @see {@link DescribeChapCredentialsCommand}
10341115
*/
@@ -1350,6 +1431,24 @@ export interface StorageGateway {
13501431
cb: (err: any, data?: ListAutomaticTapeCreationPoliciesCommandOutput) => void
13511432
): void;
13521433

1434+
/**
1435+
* @see {@link ListCacheReportsCommand}
1436+
*/
1437+
listCacheReports(): Promise<ListCacheReportsCommandOutput>;
1438+
listCacheReports(
1439+
args: ListCacheReportsCommandInput,
1440+
options?: __HttpHandlerOptions
1441+
): Promise<ListCacheReportsCommandOutput>;
1442+
listCacheReports(
1443+
args: ListCacheReportsCommandInput,
1444+
cb: (err: any, data?: ListCacheReportsCommandOutput) => void
1445+
): void;
1446+
listCacheReports(
1447+
args: ListCacheReportsCommandInput,
1448+
options: __HttpHandlerOptions,
1449+
cb: (err: any, data?: ListCacheReportsCommandOutput) => void
1450+
): void;
1451+
13531452
/**
13541453
* @see {@link ListFileSharesCommand}
13551454
*/
@@ -1651,6 +1750,23 @@ export interface StorageGateway {
16511750
cb: (err: any, data?: StartAvailabilityMonitorTestCommandOutput) => void
16521751
): void;
16531752

1753+
/**
1754+
* @see {@link StartCacheReportCommand}
1755+
*/
1756+
startCacheReport(
1757+
args: StartCacheReportCommandInput,
1758+
options?: __HttpHandlerOptions
1759+
): Promise<StartCacheReportCommandOutput>;
1760+
startCacheReport(
1761+
args: StartCacheReportCommandInput,
1762+
cb: (err: any, data?: StartCacheReportCommandOutput) => void
1763+
): void;
1764+
startCacheReport(
1765+
args: StartCacheReportCommandInput,
1766+
options: __HttpHandlerOptions,
1767+
cb: (err: any, data?: StartCacheReportCommandOutput) => void
1768+
): void;
1769+
16541770
/**
16551771
* @see {@link StartGatewayCommand}
16561772
*/

0 commit comments

Comments
 (0)