Skip to content

Commit 458278b

Browse files
author
awstools
committed
feat(client-storage-gateway): Added new ActiveDirectoryStatus value, ListCacheReports paginator, and support for longer pagination tokens.
1 parent be8fc6b commit 458278b

File tree

6 files changed

+53
-10
lines changed

6 files changed

+53
-10
lines changed

clients/client-storage-gateway/src/commands/DescribeSMBSettingsCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export interface DescribeSMBSettingsCommandOutput extends DescribeSMBSettingsOut
4444
* // { // DescribeSMBSettingsOutput
4545
* // GatewayARN: "STRING_VALUE",
4646
* // DomainName: "STRING_VALUE",
47-
* // ActiveDirectoryStatus: "ACCESS_DENIED" || "DETACHED" || "JOINED" || "JOINING" || "NETWORK_ERROR" || "TIMEOUT" || "UNKNOWN_ERROR",
47+
* // ActiveDirectoryStatus: "ACCESS_DENIED" || "DETACHED" || "JOINED" || "JOINING" || "NETWORK_ERROR" || "TIMEOUT" || "UNKNOWN_ERROR" || "INSUFFICIENT_PERMISSIONS",
4848
* // SMBGuestPasswordSet: true || false,
4949
* // SMBSecurityStrategy: "ClientSpecified" || "MandatorySigning" || "MandatoryEncryption" || "MandatoryEncryptionNoAes128",
5050
* // FileSharesVisible: true || false,

clients/client-storage-gateway/src/commands/JoinDomainCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export interface JoinDomainCommandOutput extends JoinDomainOutput, __MetadataBea
6060
* const response = await client.send(command);
6161
* // { // JoinDomainOutput
6262
* // GatewayARN: "STRING_VALUE",
63-
* // ActiveDirectoryStatus: "ACCESS_DENIED" || "DETACHED" || "JOINED" || "JOINING" || "NETWORK_ERROR" || "TIMEOUT" || "UNKNOWN_ERROR",
63+
* // ActiveDirectoryStatus: "ACCESS_DENIED" || "DETACHED" || "JOINED" || "JOINING" || "NETWORK_ERROR" || "TIMEOUT" || "UNKNOWN_ERROR" || "INSUFFICIENT_PERMISSIONS",
6464
* // };
6565
*
6666
* ```

clients/client-storage-gateway/src/models/models_0.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,7 @@ export class InvalidGatewayRequestException extends __BaseException {
340340
export const ActiveDirectoryStatus = {
341341
ACCESS_DENIED: "ACCESS_DENIED",
342342
DETACHED: "DETACHED",
343+
INSUFFICIENT_PERMISSIONS: "INSUFFICIENT_PERMISSIONS",
343344
JOINED: "JOINED",
344345
JOINING: "JOINING",
345346
NETWORK_ERROR: "NETWORK_ERROR",
@@ -6085,6 +6086,12 @@ export interface JoinDomainOutput {
60856086
* </li>
60866087
* <li>
60876088
* <p>
6089+
* <code>INSUFFICIENT_PERMISSIONS</code>: Indicates that the <code>JoinDomain</code>
6090+
* operation failed because the specified user lacks the necessary permissions to join
6091+
* the domain.</p>
6092+
* </li>
6093+
* <li>
6094+
* <p>
60886095
* <code>NETWORK_ERROR</code>: Indicates that <code>JoinDomain</code> operation
60896096
* failed due to a network or connectivity error.</p>
60906097
* </li>
@@ -7225,7 +7232,7 @@ export interface StartCacheReportInput {
72257232
Role: string | undefined;
72267233

72277234
/**
7228-
* <p>The ARN of the Amazon S3 bucket where the cache report will be saved.</p>
7235+
* <p>The ARN of the Amazon S3 bucket where you want to save the cache report.</p>
72297236
* <note>
72307237
* <p>We do not recommend saving the cache report to the same Amazon S3 bucket for
72317238
* which you are generating the report.</p>
@@ -7236,8 +7243,8 @@ export interface StartCacheReportInput {
72367243
LocationARN: string | undefined;
72377244

72387245
/**
7239-
* <p>The Amazon Web Services Region of the Amazon S3 bucket associated with the file
7240-
* share for which you want to generate the cache report.</p>
7246+
* <p>The Amazon Web Services Region of the Amazon S3 bucket where you want to save the
7247+
* cache report.</p>
72417248
* @public
72427249
*/
72437250
BucketRegion: string | undefined;
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// smithy-typescript generated code
2+
import { createPaginator } from "@smithy/core";
3+
import { Paginator } from "@smithy/types";
4+
5+
import {
6+
ListCacheReportsCommand,
7+
ListCacheReportsCommandInput,
8+
ListCacheReportsCommandOutput,
9+
} from "../commands/ListCacheReportsCommand";
10+
import { StorageGatewayClient } from "../StorageGatewayClient";
11+
import { StorageGatewayPaginationConfiguration } from "./Interfaces";
12+
13+
/**
14+
* @public
15+
*/
16+
export const paginateListCacheReports: (
17+
config: StorageGatewayPaginationConfiguration,
18+
input: ListCacheReportsCommandInput,
19+
...rest: any[]
20+
) => Paginator<ListCacheReportsCommandOutput> = createPaginator<
21+
StorageGatewayPaginationConfiguration,
22+
ListCacheReportsCommandInput,
23+
ListCacheReportsCommandOutput
24+
>(StorageGatewayClient, ListCacheReportsCommand, "Marker", "Marker", "");

clients/client-storage-gateway/src/pagination/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export * from "./DescribeTapesPaginator";
77
export * from "./DescribeVTLDevicesPaginator";
88
// smithy-typescript generated code
99
export * from "./Interfaces";
10+
export * from "./ListCacheReportsPaginator";
1011
export * from "./ListFileSharesPaginator";
1112
export * from "./ListFileSystemAssociationsPaginator";
1213
export * from "./ListGatewaysPaginator";

codegen/sdk-codegen/aws-models/storage-gateway.json

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,12 @@
193193
"traits": {
194194
"smithy.api#enumValue": "UNKNOWN_ERROR"
195195
}
196+
},
197+
"INSUFFICIENT_PERMISSIONS": {
198+
"target": "smithy.api#Unit",
199+
"traits": {
200+
"smithy.api#enumValue": "INSUFFICIENT_PERMISSIONS"
201+
}
196202
}
197203
}
198204
},
@@ -6750,7 +6756,7 @@
67506756
"ActiveDirectoryStatus": {
67516757
"target": "com.amazonaws.storagegateway#ActiveDirectoryStatus",
67526758
"traits": {
6753-
"smithy.api#documentation": "<p>Indicates the status of the gateway as a member of the Active Directory domain.</p>\n <note>\n <p>This field is only used as part of a <code>JoinDomain</code> request. It is not\n affected by Active Directory connectivity changes that occur after the\n <code>JoinDomain</code> request succeeds.</p>\n </note>\n <ul>\n <li>\n <p>\n <code>ACCESS_DENIED</code>: Indicates that the <code>JoinDomain</code> operation\n failed due to an authentication error.</p>\n </li>\n <li>\n <p>\n <code>DETACHED</code>: Indicates that gateway is not joined to a domain.</p>\n </li>\n <li>\n <p>\n <code>JOINED</code>: Indicates that the gateway has successfully joined a\n domain.</p>\n </li>\n <li>\n <p>\n <code>JOINING</code>: Indicates that a <code>JoinDomain</code> operation is in\n progress.</p>\n </li>\n <li>\n <p>\n <code>NETWORK_ERROR</code>: Indicates that <code>JoinDomain</code> operation\n failed due to a network or connectivity error.</p>\n </li>\n <li>\n <p>\n <code>TIMEOUT</code>: Indicates that the <code>JoinDomain</code> operation failed\n because the operation didn't complete within the allotted time.</p>\n </li>\n <li>\n <p>\n <code>UNKNOWN_ERROR</code>: Indicates that the <code>JoinDomain</code> operation\n failed due to another type of error.</p>\n </li>\n </ul>"
6759+
"smithy.api#documentation": "<p>Indicates the status of the gateway as a member of the Active Directory domain.</p>\n <note>\n <p>This field is only used as part of a <code>JoinDomain</code> request. It is not\n affected by Active Directory connectivity changes that occur after the\n <code>JoinDomain</code> request succeeds.</p>\n </note>\n <ul>\n <li>\n <p>\n <code>ACCESS_DENIED</code>: Indicates that the <code>JoinDomain</code> operation\n failed due to an authentication error.</p>\n </li>\n <li>\n <p>\n <code>DETACHED</code>: Indicates that gateway is not joined to a domain.</p>\n </li>\n <li>\n <p>\n <code>JOINED</code>: Indicates that the gateway has successfully joined a\n domain.</p>\n </li>\n <li>\n <p>\n <code>JOINING</code>: Indicates that a <code>JoinDomain</code> operation is in\n progress.</p>\n </li>\n <li>\n <p>\n <code>INSUFFICIENT_PERMISSIONS</code>: Indicates that the <code>JoinDomain</code>\n operation failed because the specified user lacks the necessary permissions to join\n the domain.</p>\n </li>\n <li>\n <p>\n <code>NETWORK_ERROR</code>: Indicates that <code>JoinDomain</code> operation\n failed due to a network or connectivity error.</p>\n </li>\n <li>\n <p>\n <code>TIMEOUT</code>: Indicates that the <code>JoinDomain</code> operation failed\n because the operation didn't complete within the allotted time.</p>\n </li>\n <li>\n <p>\n <code>UNKNOWN_ERROR</code>: Indicates that the <code>JoinDomain</code> operation\n failed due to another type of error.</p>\n </li>\n </ul>"
67546760
}
67556761
}
67566762
},
@@ -6841,7 +6847,12 @@
68416847
}
68426848
],
68436849
"traits": {
6844-
"smithy.api#documentation": "<p>Returns a list of existing cache reports for all file shares associated with your\n Amazon Web Services account. This list includes all information provided by the\n <code>DescribeCacheReport</code> action, such as report name, status, completion\n progress, start time, end time, filters, and tags.</p>"
6850+
"smithy.api#documentation": "<p>Returns a list of existing cache reports for all file shares associated with your\n Amazon Web Services account. This list includes all information provided by the\n <code>DescribeCacheReport</code> action, such as report name, status, completion\n progress, start time, end time, filters, and tags.</p>",
6851+
"smithy.api#paginated": {
6852+
"inputToken": "Marker",
6853+
"outputToken": "Marker",
6854+
"items": "CacheReportList"
6855+
}
68456856
}
68466857
},
68476858
"com.amazonaws.storagegateway#ListCacheReportsInput": {
@@ -7700,7 +7711,7 @@
77007711
"traits": {
77017712
"smithy.api#length": {
77027713
"min": 1,
7703-
"max": 1000
7714+
"max": 2000
77047715
}
77057716
}
77067717
},
@@ -9179,14 +9190,14 @@
91799190
"LocationARN": {
91809191
"target": "com.amazonaws.storagegateway#LocationARN",
91819192
"traits": {
9182-
"smithy.api#documentation": "<p>The ARN of the Amazon S3 bucket where the cache report will be saved.</p>\n <note>\n <p>We do not recommend saving the cache report to the same Amazon S3 bucket for\n which you are generating the report.</p>\n <p>This field does not accept access point ARNs.</p>\n </note>",
9193+
"smithy.api#documentation": "<p>The ARN of the Amazon S3 bucket where you want to save the cache report.</p>\n <note>\n <p>We do not recommend saving the cache report to the same Amazon S3 bucket for\n which you are generating the report.</p>\n <p>This field does not accept access point ARNs.</p>\n </note>",
91839194
"smithy.api#required": {}
91849195
}
91859196
},
91869197
"BucketRegion": {
91879198
"target": "com.amazonaws.storagegateway#RegionId",
91889199
"traits": {
9189-
"smithy.api#documentation": "<p>The Amazon Web Services Region of the Amazon S3 bucket associated with the file\n share for which you want to generate the cache report.</p>",
9200+
"smithy.api#documentation": "<p>The Amazon Web Services Region of the Amazon S3 bucket where you want to save the\n cache report.</p>",
91909201
"smithy.api#required": {}
91919202
}
91929203
},

0 commit comments

Comments
 (0)