Skip to content

Commit eeb1195

Browse files
author
awstools
committed
feat(client-fis): This release adds support for generating experiment reports with the experiment report configuration
1 parent a201236 commit eeb1195

10 files changed

+6475
-5281
lines changed

clients/client-fis/src/commands/CreateExperimentTemplateCommand.ts

+34
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,23 @@ export interface CreateExperimentTemplateCommandOutput extends CreateExperimentT
122122
* accountTargeting: "single-account" || "multi-account",
123123
* emptyTargetResolutionMode: "fail" || "skip",
124124
* },
125+
* experimentReportConfiguration: { // CreateExperimentTemplateReportConfigurationInput
126+
* outputs: { // ExperimentTemplateReportConfigurationOutputsInput
127+
* s3Configuration: { // ReportConfigurationS3OutputInput
128+
* bucketName: "STRING_VALUE",
129+
* prefix: "STRING_VALUE",
130+
* },
131+
* },
132+
* dataSources: { // ExperimentTemplateReportConfigurationDataSourcesInput
133+
* cloudWatchDashboards: [ // ReportConfigurationCloudWatchDashboardInputList
134+
* { // ReportConfigurationCloudWatchDashboardInput
135+
* dashboardIdentifier: "STRING_VALUE",
136+
* },
137+
* ],
138+
* },
139+
* preExperimentDuration: "STRING_VALUE",
140+
* postExperimentDuration: "STRING_VALUE",
141+
* },
125142
* };
126143
* const command = new CreateExperimentTemplateCommand(input);
127144
* const response = await client.send(command);
@@ -195,6 +212,23 @@ export interface CreateExperimentTemplateCommandOutput extends CreateExperimentT
195212
* // emptyTargetResolutionMode: "fail" || "skip",
196213
* // },
197214
* // targetAccountConfigurationsCount: Number("long"),
215+
* // experimentReportConfiguration: { // ExperimentTemplateReportConfiguration
216+
* // outputs: { // ExperimentTemplateReportConfigurationOutputs
217+
* // s3Configuration: { // ReportConfigurationS3Output
218+
* // bucketName: "STRING_VALUE",
219+
* // prefix: "STRING_VALUE",
220+
* // },
221+
* // },
222+
* // dataSources: { // ExperimentTemplateReportConfigurationDataSources
223+
* // cloudWatchDashboards: [ // ExperimentTemplateReportConfigurationCloudWatchDashboardList
224+
* // { // ExperimentTemplateReportConfigurationCloudWatchDashboard
225+
* // dashboardIdentifier: "STRING_VALUE",
226+
* // },
227+
* // ],
228+
* // },
229+
* // preExperimentDuration: "STRING_VALUE",
230+
* // postExperimentDuration: "STRING_VALUE",
231+
* // },
198232
* // },
199233
* // };
200234
*

clients/client-fis/src/commands/DeleteExperimentTemplateCommand.ts

+17
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,23 @@ export interface DeleteExperimentTemplateCommandOutput extends DeleteExperimentT
110110
* // emptyTargetResolutionMode: "fail" || "skip",
111111
* // },
112112
* // targetAccountConfigurationsCount: Number("long"),
113+
* // experimentReportConfiguration: { // ExperimentTemplateReportConfiguration
114+
* // outputs: { // ExperimentTemplateReportConfigurationOutputs
115+
* // s3Configuration: { // ReportConfigurationS3Output
116+
* // bucketName: "STRING_VALUE",
117+
* // prefix: "STRING_VALUE",
118+
* // },
119+
* // },
120+
* // dataSources: { // ExperimentTemplateReportConfigurationDataSources
121+
* // cloudWatchDashboards: [ // ExperimentTemplateReportConfigurationCloudWatchDashboardList
122+
* // { // ExperimentTemplateReportConfigurationCloudWatchDashboard
123+
* // dashboardIdentifier: "STRING_VALUE",
124+
* // },
125+
* // ],
126+
* // },
127+
* // preExperimentDuration: "STRING_VALUE",
128+
* // postExperimentDuration: "STRING_VALUE",
129+
* // },
113130
* // },
114131
* // };
115132
*

clients/client-fis/src/commands/GetExperimentCommand.ts

+32
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,38 @@ export interface GetExperimentCommandOutput extends GetExperimentResponse, __Met
127127
* // actionsMode: "skip-all" || "run-all",
128128
* // },
129129
* // targetAccountConfigurationsCount: Number("long"),
130+
* // experimentReportConfiguration: { // ExperimentReportConfiguration
131+
* // outputs: { // ExperimentReportConfigurationOutputs
132+
* // s3Configuration: { // ExperimentReportConfigurationOutputsS3Configuration
133+
* // bucketName: "STRING_VALUE",
134+
* // prefix: "STRING_VALUE",
135+
* // },
136+
* // },
137+
* // dataSources: { // ExperimentReportConfigurationDataSources
138+
* // cloudWatchDashboards: [ // ExperimentReportConfigurationCloudWatchDashboardList
139+
* // { // ExperimentReportConfigurationCloudWatchDashboard
140+
* // dashboardIdentifier: "STRING_VALUE",
141+
* // },
142+
* // ],
143+
* // },
144+
* // preExperimentDuration: "STRING_VALUE",
145+
* // postExperimentDuration: "STRING_VALUE",
146+
* // },
147+
* // experimentReport: { // ExperimentReport
148+
* // state: { // ExperimentReportState
149+
* // status: "pending" || "running" || "completed" || "cancelled" || "failed",
150+
* // reason: "STRING_VALUE",
151+
* // error: { // ExperimentReportError
152+
* // code: "STRING_VALUE",
153+
* // },
154+
* // },
155+
* // s3Reports: [ // ExperimentReportS3ReportList
156+
* // { // ExperimentReportS3Report
157+
* // arn: "STRING_VALUE",
158+
* // reportType: "STRING_VALUE",
159+
* // },
160+
* // ],
161+
* // },
130162
* // },
131163
* // };
132164
*

clients/client-fis/src/commands/GetExperimentTemplateCommand.ts

+17
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,23 @@ export interface GetExperimentTemplateCommandOutput extends GetExperimentTemplat
110110
* // emptyTargetResolutionMode: "fail" || "skip",
111111
* // },
112112
* // targetAccountConfigurationsCount: Number("long"),
113+
* // experimentReportConfiguration: { // ExperimentTemplateReportConfiguration
114+
* // outputs: { // ExperimentTemplateReportConfigurationOutputs
115+
* // s3Configuration: { // ReportConfigurationS3Output
116+
* // bucketName: "STRING_VALUE",
117+
* // prefix: "STRING_VALUE",
118+
* // },
119+
* // },
120+
* // dataSources: { // ExperimentTemplateReportConfigurationDataSources
121+
* // cloudWatchDashboards: [ // ExperimentTemplateReportConfigurationCloudWatchDashboardList
122+
* // { // ExperimentTemplateReportConfigurationCloudWatchDashboard
123+
* // dashboardIdentifier: "STRING_VALUE",
124+
* // },
125+
* // ],
126+
* // },
127+
* // preExperimentDuration: "STRING_VALUE",
128+
* // postExperimentDuration: "STRING_VALUE",
129+
* // },
113130
* // },
114131
* // };
115132
*

clients/client-fis/src/commands/StartExperimentCommand.ts

+32
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,38 @@ export interface StartExperimentCommandOutput extends StartExperimentResponse, _
134134
* // actionsMode: "skip-all" || "run-all",
135135
* // },
136136
* // targetAccountConfigurationsCount: Number("long"),
137+
* // experimentReportConfiguration: { // ExperimentReportConfiguration
138+
* // outputs: { // ExperimentReportConfigurationOutputs
139+
* // s3Configuration: { // ExperimentReportConfigurationOutputsS3Configuration
140+
* // bucketName: "STRING_VALUE",
141+
* // prefix: "STRING_VALUE",
142+
* // },
143+
* // },
144+
* // dataSources: { // ExperimentReportConfigurationDataSources
145+
* // cloudWatchDashboards: [ // ExperimentReportConfigurationCloudWatchDashboardList
146+
* // { // ExperimentReportConfigurationCloudWatchDashboard
147+
* // dashboardIdentifier: "STRING_VALUE",
148+
* // },
149+
* // ],
150+
* // },
151+
* // preExperimentDuration: "STRING_VALUE",
152+
* // postExperimentDuration: "STRING_VALUE",
153+
* // },
154+
* // experimentReport: { // ExperimentReport
155+
* // state: { // ExperimentReportState
156+
* // status: "pending" || "running" || "completed" || "cancelled" || "failed",
157+
* // reason: "STRING_VALUE",
158+
* // error: { // ExperimentReportError
159+
* // code: "STRING_VALUE",
160+
* // },
161+
* // },
162+
* // s3Reports: [ // ExperimentReportS3ReportList
163+
* // { // ExperimentReportS3Report
164+
* // arn: "STRING_VALUE",
165+
* // reportType: "STRING_VALUE",
166+
* // },
167+
* // ],
168+
* // },
137169
* // },
138170
* // };
139171
*

clients/client-fis/src/commands/StopExperimentCommand.ts

+32
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,38 @@ export interface StopExperimentCommandOutput extends StopExperimentResponse, __M
127127
* // actionsMode: "skip-all" || "run-all",
128128
* // },
129129
* // targetAccountConfigurationsCount: Number("long"),
130+
* // experimentReportConfiguration: { // ExperimentReportConfiguration
131+
* // outputs: { // ExperimentReportConfigurationOutputs
132+
* // s3Configuration: { // ExperimentReportConfigurationOutputsS3Configuration
133+
* // bucketName: "STRING_VALUE",
134+
* // prefix: "STRING_VALUE",
135+
* // },
136+
* // },
137+
* // dataSources: { // ExperimentReportConfigurationDataSources
138+
* // cloudWatchDashboards: [ // ExperimentReportConfigurationCloudWatchDashboardList
139+
* // { // ExperimentReportConfigurationCloudWatchDashboard
140+
* // dashboardIdentifier: "STRING_VALUE",
141+
* // },
142+
* // ],
143+
* // },
144+
* // preExperimentDuration: "STRING_VALUE",
145+
* // postExperimentDuration: "STRING_VALUE",
146+
* // },
147+
* // experimentReport: { // ExperimentReport
148+
* // state: { // ExperimentReportState
149+
* // status: "pending" || "running" || "completed" || "cancelled" || "failed",
150+
* // reason: "STRING_VALUE",
151+
* // error: { // ExperimentReportError
152+
* // code: "STRING_VALUE",
153+
* // },
154+
* // },
155+
* // s3Reports: [ // ExperimentReportS3ReportList
156+
* // { // ExperimentReportS3Report
157+
* // arn: "STRING_VALUE",
158+
* // reportType: "STRING_VALUE",
159+
* // },
160+
* // ],
161+
* // },
130162
* // },
131163
* // };
132164
*

clients/client-fis/src/commands/UpdateExperimentTemplateCommand.ts

+34
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,23 @@ export interface UpdateExperimentTemplateCommandOutput extends UpdateExperimentT
9696
* experimentOptions: { // UpdateExperimentTemplateExperimentOptionsInput
9797
* emptyTargetResolutionMode: "fail" || "skip",
9898
* },
99+
* experimentReportConfiguration: { // UpdateExperimentTemplateReportConfigurationInput
100+
* outputs: { // ExperimentTemplateReportConfigurationOutputsInput
101+
* s3Configuration: { // ReportConfigurationS3OutputInput
102+
* bucketName: "STRING_VALUE",
103+
* prefix: "STRING_VALUE",
104+
* },
105+
* },
106+
* dataSources: { // ExperimentTemplateReportConfigurationDataSourcesInput
107+
* cloudWatchDashboards: [ // ReportConfigurationCloudWatchDashboardInputList
108+
* { // ReportConfigurationCloudWatchDashboardInput
109+
* dashboardIdentifier: "STRING_VALUE",
110+
* },
111+
* ],
112+
* },
113+
* preExperimentDuration: "STRING_VALUE",
114+
* postExperimentDuration: "STRING_VALUE",
115+
* },
99116
* };
100117
* const command = new UpdateExperimentTemplateCommand(input);
101118
* const response = await client.send(command);
@@ -169,6 +186,23 @@ export interface UpdateExperimentTemplateCommandOutput extends UpdateExperimentT
169186
* // emptyTargetResolutionMode: "fail" || "skip",
170187
* // },
171188
* // targetAccountConfigurationsCount: Number("long"),
189+
* // experimentReportConfiguration: { // ExperimentTemplateReportConfiguration
190+
* // outputs: { // ExperimentTemplateReportConfigurationOutputs
191+
* // s3Configuration: { // ReportConfigurationS3Output
192+
* // bucketName: "STRING_VALUE",
193+
* // prefix: "STRING_VALUE",
194+
* // },
195+
* // },
196+
* // dataSources: { // ExperimentTemplateReportConfigurationDataSources
197+
* // cloudWatchDashboards: [ // ExperimentTemplateReportConfigurationCloudWatchDashboardList
198+
* // { // ExperimentTemplateReportConfigurationCloudWatchDashboard
199+
* // dashboardIdentifier: "STRING_VALUE",
200+
* // },
201+
* // ],
202+
* // },
203+
* // preExperimentDuration: "STRING_VALUE",
204+
* // postExperimentDuration: "STRING_VALUE",
205+
* // },
172206
* // },
173207
* // };
174208
*

0 commit comments

Comments
 (0)