Skip to content

Commit 8e91378

Browse files
author
AWS
committed
AWS Fault Injection Simulator Update: Adds auto-pagination for the following operations: ListActions, ListExperimentTemplates, ListTargetAccountConfigurations, ListExperiments, ListExperimentResolvedTargets, ListTargetResourceTypes. Reduces length constraints of prefixes for logConfiguration and experimentReportConfiguration.
1 parent 08e703e commit 8e91378

File tree

3 files changed

+27
-10
lines changed

3 files changed

+27
-10
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "AWS Fault Injection Simulator",
4+
"contributor": "",
5+
"description": "Adds auto-pagination for the following operations: ListActions, ListExperimentTemplates, ListTargetAccountConfigurations, ListExperiments, ListExperimentResolvedTargets, ListTargetResourceTypes. Reduces length constraints of prefixes for logConfiguration and experimentReportConfiguration."
6+
}

services/fis/src/main/resources/codegen-resources/paginators-1.json

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,32 +3,38 @@
33
"ListActions": {
44
"input_token": "nextToken",
55
"output_token": "nextToken",
6-
"limit_key": "maxResults"
6+
"limit_key": "maxResults",
7+
"result_key": "actions"
78
},
89
"ListExperimentResolvedTargets": {
910
"input_token": "nextToken",
1011
"output_token": "nextToken",
11-
"limit_key": "maxResults"
12+
"limit_key": "maxResults",
13+
"result_key": "resolvedTargets"
1214
},
1315
"ListExperimentTemplates": {
1416
"input_token": "nextToken",
1517
"output_token": "nextToken",
16-
"limit_key": "maxResults"
18+
"limit_key": "maxResults",
19+
"result_key": "experimentTemplates"
1720
},
1821
"ListExperiments": {
1922
"input_token": "nextToken",
2023
"output_token": "nextToken",
21-
"limit_key": "maxResults"
24+
"limit_key": "maxResults",
25+
"result_key": "experiments"
2226
},
2327
"ListTargetAccountConfigurations": {
2428
"input_token": "nextToken",
2529
"output_token": "nextToken",
26-
"limit_key": "maxResults"
30+
"limit_key": "maxResults",
31+
"result_key": "targetAccountConfigurations"
2732
},
2833
"ListTargetResourceTypes": {
2934
"input_token": "nextToken",
3035
"output_token": "nextToken",
31-
"limit_key": "maxResults"
36+
"limit_key": "maxResults",
37+
"result_key": "targetResourceTypes"
3238
}
3339
}
3440
}

services/fis/src/main/resources/codegen-resources/service-2.json

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1220,7 +1220,7 @@
12201220
"documentation":"<p>The name of the S3 bucket where the experiment report will be stored.</p>"
12211221
},
12221222
"prefix":{
1223-
"shape":"S3ObjectKey",
1223+
"shape":"ReportConfigurationS3OutputPrefix",
12241224
"documentation":"<p>The prefix of the S3 bucket where the experiment report will be stored.</p>"
12251225
}
12261226
},
@@ -2510,7 +2510,7 @@
25102510
"documentation":"<p>The name of the S3 bucket where the experiment report will be stored.</p>"
25112511
},
25122512
"prefix":{
2513-
"shape":"S3ObjectKey",
2513+
"shape":"ReportConfigurationS3OutputPrefix",
25142514
"documentation":"<p>The prefix of the S3 bucket where the experiment report will be stored.</p>"
25152515
}
25162516
},
@@ -2524,12 +2524,17 @@
25242524
"documentation":"<p>The name of the S3 bucket where the experiment report will be stored.</p>"
25252525
},
25262526
"prefix":{
2527-
"shape":"S3ObjectKey",
2527+
"shape":"ReportConfigurationS3OutputPrefix",
25282528
"documentation":"<p>The prefix of the S3 bucket where the experiment report will be stored.</p>"
25292529
}
25302530
},
25312531
"documentation":"<p>Specifies the S3 destination for the experiment report.</p>"
25322532
},
2533+
"ReportConfigurationS3OutputPrefix":{
2534+
"type":"string",
2535+
"max":256,
2536+
"pattern":"[\\S]+"
2537+
},
25332538
"ResolvedTarget":{
25342539
"type":"structure",
25352540
"members":{
@@ -2586,7 +2591,7 @@
25862591
},
25872592
"S3ObjectKey":{
25882593
"type":"string",
2589-
"max":1024,
2594+
"max":700,
25902595
"min":1,
25912596
"pattern":"[\\s\\S]+"
25922597
},

0 commit comments

Comments
 (0)