Skip to content

Commit 8ca1e67

Browse files
authored
chore: use Array shorthand syntax (#1127)
1 parent 01b8d8c commit 8ca1e67

File tree

421 files changed

+13475
-13614
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

421 files changed

+13475
-13614
lines changed

clients/client-accessanalyzer/models/index.ts

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export interface AnalyzedResource {
2929
* <p>The actions that an external principal is granted permission to use by the policy that
3030
* generated the finding.</p>
3131
*/
32-
actions?: Array<string>;
32+
actions?: string[];
3333

3434
/**
3535
* <p>The time at which the resource was analyzed.</p>
@@ -65,7 +65,7 @@ export interface AnalyzedResource {
6565
/**
6666
* <p>Indicates how the access that generated the finding is granted.</p>
6767
*/
68-
sharedVia?: Array<string>;
68+
sharedVia?: string[];
6969

7070
/**
7171
* <p>The current status of the finding generated from the analyzed resource.</p>
@@ -218,7 +218,7 @@ export interface CreateAnalyzerRequest {
218218
/**
219219
* <p>Specifies the archive rules to add for the analyzer. Archive rules automatically archive findings that meet the criteria you define for the rule.</p>
220220
*/
221-
archiveRules?: Array<InlineArchiveRule>;
221+
archiveRules?: InlineArchiveRule[];
222222

223223
/**
224224
* <p>A client token.</p>
@@ -297,12 +297,12 @@ export interface Criterion {
297297
/**
298298
* <p>A "contains" operator to match for the filter used to create the rule.</p>
299299
*/
300-
contains?: Array<string>;
300+
contains?: string[];
301301

302302
/**
303303
* <p>An "equals" operator to match for the filter used to create the rule.</p>
304304
*/
305-
eq?: Array<string>;
305+
eq?: string[];
306306

307307
/**
308308
* <p>An "exists" operator to match for the filter used to create the rule. </p>
@@ -312,7 +312,7 @@ export interface Criterion {
312312
/**
313313
* <p>A "not equals" operator to match for the filter used to create the rule.</p>
314314
*/
315-
neq?: Array<string>;
315+
neq?: string[];
316316
}
317317

318318
export namespace Criterion {
@@ -375,7 +375,7 @@ export interface Finding {
375375
* <p>The action in the analyzed policy statement that an external principal has permission to
376376
* use.</p>
377377
*/
378-
action?: Array<string>;
378+
action?: string[];
379379

380380
/**
381381
* <p>The time at which the resource was analyzed.</p>
@@ -451,7 +451,7 @@ export interface FindingSummary {
451451
* <p>The action in the analyzed policy statement that an external principal has permission to
452452
* use.</p>
453453
*/
454-
action?: Array<string>;
454+
action?: string[];
455455

456456
/**
457457
* <p>The time at which the resource-based policy that generated the finding was
@@ -742,7 +742,7 @@ export interface ListAnalyzedResourcesResponse {
742742
/**
743743
* <p>A list of resources that were analyzed.</p>
744744
*/
745-
analyzedResources: Array<AnalyzedResourceSummary> | undefined;
745+
analyzedResources: AnalyzedResourceSummary[] | undefined;
746746

747747
/**
748748
* <p>A token used for pagination of results returned.</p>
@@ -789,7 +789,7 @@ export interface ListAnalyzersResponse {
789789
/**
790790
* <p>The analyzers retrieved.</p>
791791
*/
792-
analyzers: Array<AnalyzerSummary> | undefined;
792+
analyzers: AnalyzerSummary[] | undefined;
793793

794794
/**
795795
* <p>A token used for pagination of results returned.</p>
@@ -836,7 +836,7 @@ export interface ListArchiveRulesResponse {
836836
/**
837837
* <p>A list of archive rules created for the specified analyzer.</p>
838838
*/
839-
archiveRules: Array<ArchiveRuleSummary> | undefined;
839+
archiveRules: ArchiveRuleSummary[] | undefined;
840840

841841
/**
842842
* <p>A token used for pagination of results returned.</p>
@@ -894,7 +894,7 @@ export interface ListFindingsResponse {
894894
* <p>A list of findings retrieved from the analyzer that match the filter criteria specified,
895895
* if any.</p>
896896
*/
897-
findings: Array<FindingSummary> | undefined;
897+
findings: FindingSummary[] | undefined;
898898

899899
/**
900900
* <p>A token used for pagination of results returned.</p>
@@ -1109,7 +1109,7 @@ export interface UntagResourceRequest {
11091109
/**
11101110
* <p>The key for the tag to add.</p>
11111111
*/
1112-
tagKeys: Array<string> | undefined;
1112+
tagKeys: string[] | undefined;
11131113
}
11141114

11151115
export namespace UntagResourceRequest {
@@ -1179,7 +1179,7 @@ export interface UpdateFindingsRequest {
11791179
/**
11801180
* <p>The IDs of the findings to update.</p>
11811181
*/
1182-
ids?: Array<string>;
1182+
ids?: string[];
11831183

11841184
/**
11851185
* <p>The ARN of the resource identified in the finding.</p>
@@ -1210,7 +1210,7 @@ export interface ValidationException
12101210
/**
12111211
* <p>A list of fields that didn't validate.</p>
12121212
*/
1213-
fieldList?: Array<ValidationExceptionField>;
1213+
fieldList?: ValidationExceptionField[];
12141214

12151215
message: string | undefined;
12161216
/**

clients/client-accessanalyzer/protocols/Aws_restJson1_1.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2930,7 +2930,7 @@ const serializeAws_restJson1_1FilterCriteriaMap = (
29302930
};
29312931

29322932
const serializeAws_restJson1_1FindingIdList = (
2933-
input: Array<string>,
2933+
input: string[],
29342934
context: __SerdeContext
29352935
): any => {
29362936
const contents = [];
@@ -2958,7 +2958,7 @@ const serializeAws_restJson1_1InlineArchiveRule = (
29582958
};
29592959

29602960
const serializeAws_restJson1_1InlineArchiveRulesList = (
2961-
input: Array<InlineArchiveRule>,
2961+
input: InlineArchiveRule[],
29622962
context: __SerdeContext
29632963
): any => {
29642964
const contents = [];
@@ -2994,7 +2994,7 @@ const serializeAws_restJson1_1TagsMap = (
29942994
};
29952995

29962996
const serializeAws_restJson1_1ValueList = (
2997-
input: Array<string>,
2997+
input: string[],
29982998
context: __SerdeContext
29992999
): any => {
30003000
const contents = [];
@@ -3007,7 +3007,7 @@ const serializeAws_restJson1_1ValueList = (
30073007
const deserializeAws_restJson1_1ActionList = (
30083008
output: any,
30093009
context: __SerdeContext
3010-
): Array<string> => {
3010+
): string[] => {
30113011
return (output || []).map((entry: any) => entry);
30123012
};
30133013

@@ -3088,7 +3088,7 @@ const deserializeAws_restJson1_1AnalyzedResourceSummary = (
30883088
const deserializeAws_restJson1_1AnalyzedResourcesList = (
30893089
output: any,
30903090
context: __SerdeContext
3091-
): Array<AnalyzedResourceSummary> => {
3091+
): AnalyzedResourceSummary[] => {
30923092
return (output || []).map((entry: any) =>
30933093
deserializeAws_restJson1_1AnalyzedResourceSummary(entry, context)
30943094
);
@@ -3141,7 +3141,7 @@ const deserializeAws_restJson1_1AnalyzerSummary = (
31413141
const deserializeAws_restJson1_1AnalyzersList = (
31423142
output: any,
31433143
context: __SerdeContext
3144-
): Array<AnalyzerSummary> => {
3144+
): AnalyzerSummary[] => {
31453145
return (output || []).map((entry: any) =>
31463146
deserializeAws_restJson1_1AnalyzerSummary(entry, context)
31473147
);
@@ -3179,7 +3179,7 @@ const deserializeAws_restJson1_1ArchiveRuleSummary = (
31793179
const deserializeAws_restJson1_1ArchiveRulesList = (
31803180
output: any,
31813181
context: __SerdeContext
3182-
): Array<ArchiveRuleSummary> => {
3182+
): ArchiveRuleSummary[] => {
31833183
return (output || []).map((entry: any) =>
31843184
deserializeAws_restJson1_1ArchiveRuleSummary(entry, context)
31853185
);
@@ -3373,7 +3373,7 @@ const deserializeAws_restJson1_1FindingSummary = (
33733373
const deserializeAws_restJson1_1FindingsList = (
33743374
output: any,
33753375
context: __SerdeContext
3376-
): Array<FindingSummary> => {
3376+
): FindingSummary[] => {
33773377
return (output || []).map((entry: any) =>
33783378
deserializeAws_restJson1_1FindingSummary(entry, context)
33793379
);
@@ -3393,7 +3393,7 @@ const deserializeAws_restJson1_1PrincipalMap = (
33933393
const deserializeAws_restJson1_1SharedViaList = (
33943394
output: any,
33953395
context: __SerdeContext
3396-
): Array<string> => {
3396+
): string[] => {
33973397
return (output || []).map((entry: any) => entry);
33983398
};
33993399

@@ -3429,7 +3429,7 @@ const deserializeAws_restJson1_1ValidationExceptionField = (
34293429
const deserializeAws_restJson1_1ValidationExceptionFieldList = (
34303430
output: any,
34313431
context: __SerdeContext
3432-
): Array<ValidationExceptionField> => {
3432+
): ValidationExceptionField[] => {
34333433
return (output || []).map((entry: any) =>
34343434
deserializeAws_restJson1_1ValidationExceptionField(entry, context)
34353435
);
@@ -3438,7 +3438,7 @@ const deserializeAws_restJson1_1ValidationExceptionFieldList = (
34383438
const deserializeAws_restJson1_1ValueList = (
34393439
output: any,
34403440
context: __SerdeContext
3441-
): Array<string> => {
3441+
): string[] => {
34423442
return (output || []).map((entry: any) => entry);
34433443
};
34443444

clients/client-acm-pca/models/index.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ export interface CreateCertificateAuthorityRequest {
371371
* 50 tags with a private CA. For information using tags with </p>
372372
* <p>IAM to manage permissions, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_iam-tags.html">Controlling Access Using IAM Tags</a>.</p>
373373
*/
374-
Tags?: Array<Tag>;
374+
Tags?: Tag[];
375375
}
376376

377377
export namespace CreateCertificateAuthorityRequest {
@@ -404,7 +404,7 @@ export interface CreatePermissionRequest {
404404
* <code>IssueCertificate</code>, <code>GetCertificate</code>, and
405405
* <code>ListPermissions</code>.</p>
406406
*/
407-
Actions: Array<ActionType | string> | undefined;
407+
Actions: (ActionType | string)[] | undefined;
408408

409409
/**
410410
* <p>The Amazon Resource Name (ARN) of the CA that grants the permissions. You can find the ARN
@@ -1149,7 +1149,7 @@ export interface ListCertificateAuthoritiesResponse {
11491149
/**
11501150
* <p>Summary information about each certificate authority you have created.</p>
11511151
*/
1152-
CertificateAuthorities?: Array<CertificateAuthority>;
1152+
CertificateAuthorities?: CertificateAuthority[];
11531153

11541154
/**
11551155
* <p>When the list is truncated, this value is present and should be used for the
@@ -1207,7 +1207,7 @@ export interface ListPermissionsResponse {
12071207
* <p>Summary information about each permission assigned by the specified private CA,
12081208
* including the action enabled, the policy provided, and the time of creation.</p>
12091209
*/
1210-
Permissions?: Array<Permission>;
1210+
Permissions?: Permission[];
12111211
}
12121212

12131213
export namespace ListPermissionsResponse {
@@ -1258,7 +1258,7 @@ export interface ListTagsResponse {
12581258
/**
12591259
* <p>The tags associated with your private CA.</p>
12601260
*/
1261-
Tags?: Array<Tag>;
1261+
Tags?: Tag[];
12621262
}
12631263

12641264
export namespace ListTagsResponse {
@@ -1310,7 +1310,7 @@ export interface Permission {
13101310
/**
13111311
* <p>The private CA actions that can be performed by the designated AWS service.</p>
13121312
*/
1313-
Actions?: Array<ActionType | string>;
1313+
Actions?: (ActionType | string)[];
13141314

13151315
/**
13161316
* <p>The Amazon Resource Number (ARN) of the private CA from which the permission was
@@ -1557,7 +1557,7 @@ export interface TagCertificateAuthorityRequest {
15571557
/**
15581558
* <p>List of tags to be associated with the CA.</p>
15591559
*/
1560-
Tags: Array<Tag> | undefined;
1560+
Tags: Tag[] | undefined;
15611561
}
15621562

15631563
export namespace TagCertificateAuthorityRequest {
@@ -1596,7 +1596,7 @@ export interface UntagCertificateAuthorityRequest {
15961596
/**
15971597
* <p>List of tags to be removed from the CA.</p>
15981598
*/
1599-
Tags: Array<Tag> | undefined;
1599+
Tags: Tag[] | undefined;
16001600
}
16011601

16021602
export namespace UntagCertificateAuthorityRequest {

clients/client-acm-pca/protocols/Aws_json1_1.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2846,7 +2846,7 @@ const serializeAws_json1_1ASN1Subject = (
28462846
};
28472847

28482848
const serializeAws_json1_1ActionList = (
2849-
input: Array<ActionType | string>,
2849+
input: (ActionType | string)[],
28502850
context: __SerdeContext
28512851
): any => {
28522852
const contents = [];
@@ -3226,7 +3226,7 @@ const serializeAws_json1_1TagCertificateAuthorityRequest = (
32263226
};
32273227

32283228
const serializeAws_json1_1TagList = (
3229-
input: Array<Tag>,
3229+
input: Tag[],
32303230
context: __SerdeContext
32313231
): any => {
32323232
const contents = [];
@@ -3364,14 +3364,14 @@ const deserializeAws_json1_1ASN1Subject = (
33643364
const deserializeAws_json1_1ActionList = (
33653365
output: any,
33663366
context: __SerdeContext
3367-
): Array<ActionType | string> => {
3367+
): (ActionType | string)[] => {
33683368
return (output || []).map((entry: any) => entry);
33693369
};
33703370

33713371
const deserializeAws_json1_1CertificateAuthorities = (
33723372
output: any,
33733373
context: __SerdeContext
3374-
): Array<CertificateAuthority> => {
3374+
): CertificateAuthority[] => {
33753375
return (output || []).map((entry: any) =>
33763376
deserializeAws_json1_1CertificateAuthority(entry, context)
33773377
);
@@ -3953,7 +3953,7 @@ const deserializeAws_json1_1PermissionAlreadyExistsException = (
39533953
const deserializeAws_json1_1PermissionList = (
39543954
output: any,
39553955
context: __SerdeContext
3956-
): Array<Permission> => {
3956+
): Permission[] => {
39573957
return (output || []).map((entry: any) =>
39583958
deserializeAws_json1_1Permission(entry, context)
39593959
);
@@ -4056,7 +4056,7 @@ const deserializeAws_json1_1Tag = (
40564056
const deserializeAws_json1_1TagList = (
40574057
output: any,
40584058
context: __SerdeContext
4059-
): Array<Tag> => {
4059+
): Tag[] => {
40604060
return (output || []).map((entry: any) =>
40614061
deserializeAws_json1_1Tag(entry, context)
40624062
);

0 commit comments

Comments
 (0)