aws-sdk-synthetics 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,495 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws::Synthetics
9
+ # @api private
10
+ module ClientApi
11
+
12
+ include Seahorse::Model
13
+
14
+ Arn = Shapes::StringShape.new(name: 'Arn')
15
+ Blob = Shapes::BlobShape.new(name: 'Blob')
16
+ Canaries = Shapes::ListShape.new(name: 'Canaries')
17
+ CanariesLastRun = Shapes::ListShape.new(name: 'CanariesLastRun')
18
+ Canary = Shapes::StructureShape.new(name: 'Canary')
19
+ CanaryCodeInput = Shapes::StructureShape.new(name: 'CanaryCodeInput')
20
+ CanaryCodeOutput = Shapes::StructureShape.new(name: 'CanaryCodeOutput')
21
+ CanaryLastRun = Shapes::StructureShape.new(name: 'CanaryLastRun')
22
+ CanaryName = Shapes::StringShape.new(name: 'CanaryName')
23
+ CanaryRun = Shapes::StructureShape.new(name: 'CanaryRun')
24
+ CanaryRunConfigInput = Shapes::StructureShape.new(name: 'CanaryRunConfigInput')
25
+ CanaryRunConfigOutput = Shapes::StructureShape.new(name: 'CanaryRunConfigOutput')
26
+ CanaryRunState = Shapes::StringShape.new(name: 'CanaryRunState')
27
+ CanaryRunStateReasonCode = Shapes::StringShape.new(name: 'CanaryRunStateReasonCode')
28
+ CanaryRunStatus = Shapes::StructureShape.new(name: 'CanaryRunStatus')
29
+ CanaryRunTimeline = Shapes::StructureShape.new(name: 'CanaryRunTimeline')
30
+ CanaryRuns = Shapes::ListShape.new(name: 'CanaryRuns')
31
+ CanaryScheduleInput = Shapes::StructureShape.new(name: 'CanaryScheduleInput')
32
+ CanaryScheduleOutput = Shapes::StructureShape.new(name: 'CanaryScheduleOutput')
33
+ CanaryState = Shapes::StringShape.new(name: 'CanaryState')
34
+ CanaryStateReasonCode = Shapes::StringShape.new(name: 'CanaryStateReasonCode')
35
+ CanaryStatus = Shapes::StructureShape.new(name: 'CanaryStatus')
36
+ CanaryTimeline = Shapes::StructureShape.new(name: 'CanaryTimeline')
37
+ ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
38
+ CreateCanaryRequest = Shapes::StructureShape.new(name: 'CreateCanaryRequest')
39
+ CreateCanaryResponse = Shapes::StructureShape.new(name: 'CreateCanaryResponse')
40
+ DeleteCanaryRequest = Shapes::StructureShape.new(name: 'DeleteCanaryRequest')
41
+ DeleteCanaryResponse = Shapes::StructureShape.new(name: 'DeleteCanaryResponse')
42
+ DescribeCanariesLastRunRequest = Shapes::StructureShape.new(name: 'DescribeCanariesLastRunRequest')
43
+ DescribeCanariesLastRunResponse = Shapes::StructureShape.new(name: 'DescribeCanariesLastRunResponse')
44
+ DescribeCanariesRequest = Shapes::StructureShape.new(name: 'DescribeCanariesRequest')
45
+ DescribeCanariesResponse = Shapes::StructureShape.new(name: 'DescribeCanariesResponse')
46
+ DescribeRuntimeVersionsRequest = Shapes::StructureShape.new(name: 'DescribeRuntimeVersionsRequest')
47
+ DescribeRuntimeVersionsResponse = Shapes::StructureShape.new(name: 'DescribeRuntimeVersionsResponse')
48
+ ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
49
+ GetCanaryRequest = Shapes::StructureShape.new(name: 'GetCanaryRequest')
50
+ GetCanaryResponse = Shapes::StructureShape.new(name: 'GetCanaryResponse')
51
+ GetCanaryRunsRequest = Shapes::StructureShape.new(name: 'GetCanaryRunsRequest')
52
+ GetCanaryRunsResponse = Shapes::StructureShape.new(name: 'GetCanaryRunsResponse')
53
+ InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
54
+ ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
55
+ ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
56
+ MaxCanaryResults = Shapes::IntegerShape.new(name: 'MaxCanaryResults')
57
+ MaxFifteenMinutesInSeconds = Shapes::IntegerShape.new(name: 'MaxFifteenMinutesInSeconds')
58
+ MaxOneYearInSeconds = Shapes::IntegerShape.new(name: 'MaxOneYearInSeconds')
59
+ MaxSize100 = Shapes::IntegerShape.new(name: 'MaxSize100')
60
+ MaxSize1024 = Shapes::IntegerShape.new(name: 'MaxSize1024')
61
+ ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
62
+ RuntimeVersion = Shapes::StructureShape.new(name: 'RuntimeVersion')
63
+ RuntimeVersionList = Shapes::ListShape.new(name: 'RuntimeVersionList')
64
+ SecurityGroupId = Shapes::StringShape.new(name: 'SecurityGroupId')
65
+ SecurityGroupIds = Shapes::ListShape.new(name: 'SecurityGroupIds')
66
+ StartCanaryRequest = Shapes::StructureShape.new(name: 'StartCanaryRequest')
67
+ StartCanaryResponse = Shapes::StructureShape.new(name: 'StartCanaryResponse')
68
+ StopCanaryRequest = Shapes::StructureShape.new(name: 'StopCanaryRequest')
69
+ StopCanaryResponse = Shapes::StructureShape.new(name: 'StopCanaryResponse')
70
+ String = Shapes::StringShape.new(name: 'String')
71
+ SubnetId = Shapes::StringShape.new(name: 'SubnetId')
72
+ SubnetIds = Shapes::ListShape.new(name: 'SubnetIds')
73
+ TagKey = Shapes::StringShape.new(name: 'TagKey')
74
+ TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
75
+ TagMap = Shapes::MapShape.new(name: 'TagMap')
76
+ TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
77
+ TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
78
+ TagValue = Shapes::StringShape.new(name: 'TagValue')
79
+ Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
80
+ Token = Shapes::StringShape.new(name: 'Token')
81
+ UUID = Shapes::StringShape.new(name: 'UUID')
82
+ UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
83
+ UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
84
+ UpdateCanaryRequest = Shapes::StructureShape.new(name: 'UpdateCanaryRequest')
85
+ UpdateCanaryResponse = Shapes::StructureShape.new(name: 'UpdateCanaryResponse')
86
+ ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
87
+ VpcConfigInput = Shapes::StructureShape.new(name: 'VpcConfigInput')
88
+ VpcConfigOutput = Shapes::StructureShape.new(name: 'VpcConfigOutput')
89
+ VpcId = Shapes::StringShape.new(name: 'VpcId')
90
+
91
+ Canaries.member = Shapes::ShapeRef.new(shape: Canary)
92
+
93
+ CanariesLastRun.member = Shapes::ShapeRef.new(shape: CanaryLastRun)
94
+
95
+ Canary.add_member(:id, Shapes::ShapeRef.new(shape: UUID, location_name: "Id"))
96
+ Canary.add_member(:name, Shapes::ShapeRef.new(shape: CanaryName, location_name: "Name"))
97
+ Canary.add_member(:code, Shapes::ShapeRef.new(shape: CanaryCodeOutput, location_name: "Code"))
98
+ Canary.add_member(:execution_role_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "ExecutionRoleArn"))
99
+ Canary.add_member(:schedule, Shapes::ShapeRef.new(shape: CanaryScheduleOutput, location_name: "Schedule"))
100
+ Canary.add_member(:run_config, Shapes::ShapeRef.new(shape: CanaryRunConfigOutput, location_name: "RunConfig"))
101
+ Canary.add_member(:success_retention_period_in_days, Shapes::ShapeRef.new(shape: MaxSize1024, location_name: "SuccessRetentionPeriodInDays"))
102
+ Canary.add_member(:failure_retention_period_in_days, Shapes::ShapeRef.new(shape: MaxSize1024, location_name: "FailureRetentionPeriodInDays"))
103
+ Canary.add_member(:status, Shapes::ShapeRef.new(shape: CanaryStatus, location_name: "Status"))
104
+ Canary.add_member(:timeline, Shapes::ShapeRef.new(shape: CanaryTimeline, location_name: "Timeline"))
105
+ Canary.add_member(:artifact_s3_location, Shapes::ShapeRef.new(shape: String, location_name: "ArtifactS3Location"))
106
+ Canary.add_member(:engine_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "EngineArn"))
107
+ Canary.add_member(:runtime_version, Shapes::ShapeRef.new(shape: String, location_name: "RuntimeVersion"))
108
+ Canary.add_member(:vpc_config, Shapes::ShapeRef.new(shape: VpcConfigOutput, location_name: "VpcConfig"))
109
+ Canary.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
110
+ Canary.struct_class = Types::Canary
111
+
112
+ CanaryCodeInput.add_member(:s3_bucket, Shapes::ShapeRef.new(shape: String, location_name: "S3Bucket"))
113
+ CanaryCodeInput.add_member(:s3_key, Shapes::ShapeRef.new(shape: String, location_name: "S3Key"))
114
+ CanaryCodeInput.add_member(:s3_version, Shapes::ShapeRef.new(shape: String, location_name: "S3Version"))
115
+ CanaryCodeInput.add_member(:zip_file, Shapes::ShapeRef.new(shape: Blob, location_name: "ZipFile"))
116
+ CanaryCodeInput.add_member(:handler, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Handler"))
117
+ CanaryCodeInput.struct_class = Types::CanaryCodeInput
118
+
119
+ CanaryCodeOutput.add_member(:source_location_arn, Shapes::ShapeRef.new(shape: String, location_name: "SourceLocationArn"))
120
+ CanaryCodeOutput.add_member(:handler, Shapes::ShapeRef.new(shape: String, location_name: "Handler"))
121
+ CanaryCodeOutput.struct_class = Types::CanaryCodeOutput
122
+
123
+ CanaryLastRun.add_member(:canary_name, Shapes::ShapeRef.new(shape: CanaryName, location_name: "CanaryName"))
124
+ CanaryLastRun.add_member(:last_run, Shapes::ShapeRef.new(shape: CanaryRun, location_name: "LastRun"))
125
+ CanaryLastRun.struct_class = Types::CanaryLastRun
126
+
127
+ CanaryRun.add_member(:name, Shapes::ShapeRef.new(shape: CanaryName, location_name: "Name"))
128
+ CanaryRun.add_member(:status, Shapes::ShapeRef.new(shape: CanaryRunStatus, location_name: "Status"))
129
+ CanaryRun.add_member(:timeline, Shapes::ShapeRef.new(shape: CanaryRunTimeline, location_name: "Timeline"))
130
+ CanaryRun.add_member(:artifact_s3_location, Shapes::ShapeRef.new(shape: String, location_name: "ArtifactS3Location"))
131
+ CanaryRun.struct_class = Types::CanaryRun
132
+
133
+ CanaryRunConfigInput.add_member(:timeout_in_seconds, Shapes::ShapeRef.new(shape: MaxFifteenMinutesInSeconds, required: true, location_name: "TimeoutInSeconds"))
134
+ CanaryRunConfigInput.struct_class = Types::CanaryRunConfigInput
135
+
136
+ CanaryRunConfigOutput.add_member(:timeout_in_seconds, Shapes::ShapeRef.new(shape: MaxFifteenMinutesInSeconds, location_name: "TimeoutInSeconds"))
137
+ CanaryRunConfigOutput.struct_class = Types::CanaryRunConfigOutput
138
+
139
+ CanaryRunStatus.add_member(:state, Shapes::ShapeRef.new(shape: CanaryRunState, location_name: "State"))
140
+ CanaryRunStatus.add_member(:state_reason, Shapes::ShapeRef.new(shape: String, location_name: "StateReason"))
141
+ CanaryRunStatus.add_member(:state_reason_code, Shapes::ShapeRef.new(shape: CanaryRunStateReasonCode, location_name: "StateReasonCode"))
142
+ CanaryRunStatus.struct_class = Types::CanaryRunStatus
143
+
144
+ CanaryRunTimeline.add_member(:started, Shapes::ShapeRef.new(shape: Timestamp, location_name: "Started"))
145
+ CanaryRunTimeline.add_member(:completed, Shapes::ShapeRef.new(shape: Timestamp, location_name: "Completed"))
146
+ CanaryRunTimeline.struct_class = Types::CanaryRunTimeline
147
+
148
+ CanaryRuns.member = Shapes::ShapeRef.new(shape: CanaryRun)
149
+
150
+ CanaryScheduleInput.add_member(:expression, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Expression"))
151
+ CanaryScheduleInput.add_member(:duration_in_seconds, Shapes::ShapeRef.new(shape: MaxOneYearInSeconds, location_name: "DurationInSeconds"))
152
+ CanaryScheduleInput.struct_class = Types::CanaryScheduleInput
153
+
154
+ CanaryScheduleOutput.add_member(:expression, Shapes::ShapeRef.new(shape: String, location_name: "Expression"))
155
+ CanaryScheduleOutput.add_member(:duration_in_seconds, Shapes::ShapeRef.new(shape: MaxOneYearInSeconds, location_name: "DurationInSeconds"))
156
+ CanaryScheduleOutput.struct_class = Types::CanaryScheduleOutput
157
+
158
+ CanaryStatus.add_member(:state, Shapes::ShapeRef.new(shape: CanaryState, location_name: "State"))
159
+ CanaryStatus.add_member(:state_reason, Shapes::ShapeRef.new(shape: String, location_name: "StateReason"))
160
+ CanaryStatus.add_member(:state_reason_code, Shapes::ShapeRef.new(shape: CanaryStateReasonCode, location_name: "StateReasonCode"))
161
+ CanaryStatus.struct_class = Types::CanaryStatus
162
+
163
+ CanaryTimeline.add_member(:created, Shapes::ShapeRef.new(shape: Timestamp, location_name: "Created"))
164
+ CanaryTimeline.add_member(:last_modified, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LastModified"))
165
+ CanaryTimeline.add_member(:last_started, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LastStarted"))
166
+ CanaryTimeline.add_member(:last_stopped, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LastStopped"))
167
+ CanaryTimeline.struct_class = Types::CanaryTimeline
168
+
169
+ ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
170
+ ConflictException.struct_class = Types::ConflictException
171
+
172
+ CreateCanaryRequest.add_member(:name, Shapes::ShapeRef.new(shape: CanaryName, required: true, location_name: "Name"))
173
+ CreateCanaryRequest.add_member(:code, Shapes::ShapeRef.new(shape: CanaryCodeInput, required: true, location_name: "Code"))
174
+ CreateCanaryRequest.add_member(:artifact_s3_location, Shapes::ShapeRef.new(shape: String, required: true, location_name: "ArtifactS3Location"))
175
+ CreateCanaryRequest.add_member(:execution_role_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "ExecutionRoleArn"))
176
+ CreateCanaryRequest.add_member(:schedule, Shapes::ShapeRef.new(shape: CanaryScheduleInput, required: true, location_name: "Schedule"))
177
+ CreateCanaryRequest.add_member(:run_config, Shapes::ShapeRef.new(shape: CanaryRunConfigInput, location_name: "RunConfig"))
178
+ CreateCanaryRequest.add_member(:success_retention_period_in_days, Shapes::ShapeRef.new(shape: MaxSize1024, location_name: "SuccessRetentionPeriodInDays"))
179
+ CreateCanaryRequest.add_member(:failure_retention_period_in_days, Shapes::ShapeRef.new(shape: MaxSize1024, location_name: "FailureRetentionPeriodInDays"))
180
+ CreateCanaryRequest.add_member(:runtime_version, Shapes::ShapeRef.new(shape: String, required: true, location_name: "RuntimeVersion"))
181
+ CreateCanaryRequest.add_member(:vpc_config, Shapes::ShapeRef.new(shape: VpcConfigInput, location_name: "VpcConfig"))
182
+ CreateCanaryRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
183
+ CreateCanaryRequest.struct_class = Types::CreateCanaryRequest
184
+
185
+ CreateCanaryResponse.add_member(:canary, Shapes::ShapeRef.new(shape: Canary, location_name: "Canary"))
186
+ CreateCanaryResponse.struct_class = Types::CreateCanaryResponse
187
+
188
+ DeleteCanaryRequest.add_member(:name, Shapes::ShapeRef.new(shape: CanaryName, required: true, location: "uri", location_name: "name"))
189
+ DeleteCanaryRequest.struct_class = Types::DeleteCanaryRequest
190
+
191
+ DeleteCanaryResponse.struct_class = Types::DeleteCanaryResponse
192
+
193
+ DescribeCanariesLastRunRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
194
+ DescribeCanariesLastRunRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxSize100, location_name: "MaxResults"))
195
+ DescribeCanariesLastRunRequest.struct_class = Types::DescribeCanariesLastRunRequest
196
+
197
+ DescribeCanariesLastRunResponse.add_member(:canaries_last_run, Shapes::ShapeRef.new(shape: CanariesLastRun, location_name: "CanariesLastRun"))
198
+ DescribeCanariesLastRunResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
199
+ DescribeCanariesLastRunResponse.struct_class = Types::DescribeCanariesLastRunResponse
200
+
201
+ DescribeCanariesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
202
+ DescribeCanariesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxCanaryResults, location_name: "MaxResults"))
203
+ DescribeCanariesRequest.struct_class = Types::DescribeCanariesRequest
204
+
205
+ DescribeCanariesResponse.add_member(:canaries, Shapes::ShapeRef.new(shape: Canaries, location_name: "Canaries"))
206
+ DescribeCanariesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
207
+ DescribeCanariesResponse.struct_class = Types::DescribeCanariesResponse
208
+
209
+ DescribeRuntimeVersionsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
210
+ DescribeRuntimeVersionsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxSize100, location_name: "MaxResults"))
211
+ DescribeRuntimeVersionsRequest.struct_class = Types::DescribeRuntimeVersionsRequest
212
+
213
+ DescribeRuntimeVersionsResponse.add_member(:runtime_versions, Shapes::ShapeRef.new(shape: RuntimeVersionList, location_name: "RuntimeVersions"))
214
+ DescribeRuntimeVersionsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
215
+ DescribeRuntimeVersionsResponse.struct_class = Types::DescribeRuntimeVersionsResponse
216
+
217
+ GetCanaryRequest.add_member(:name, Shapes::ShapeRef.new(shape: CanaryName, required: true, location: "uri", location_name: "name"))
218
+ GetCanaryRequest.struct_class = Types::GetCanaryRequest
219
+
220
+ GetCanaryResponse.add_member(:canary, Shapes::ShapeRef.new(shape: Canary, location_name: "Canary"))
221
+ GetCanaryResponse.struct_class = Types::GetCanaryResponse
222
+
223
+ GetCanaryRunsRequest.add_member(:name, Shapes::ShapeRef.new(shape: CanaryName, required: true, location: "uri", location_name: "name"))
224
+ GetCanaryRunsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
225
+ GetCanaryRunsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxSize100, location_name: "MaxResults"))
226
+ GetCanaryRunsRequest.struct_class = Types::GetCanaryRunsRequest
227
+
228
+ GetCanaryRunsResponse.add_member(:canary_runs, Shapes::ShapeRef.new(shape: CanaryRuns, location_name: "CanaryRuns"))
229
+ GetCanaryRunsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
230
+ GetCanaryRunsResponse.struct_class = Types::GetCanaryRunsResponse
231
+
232
+ InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
233
+ InternalServerException.struct_class = Types::InternalServerException
234
+
235
+ ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location: "uri", location_name: "resourceArn"))
236
+ ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
237
+
238
+ ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
239
+ ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
240
+
241
+ ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
242
+ ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
243
+
244
+ RuntimeVersion.add_member(:version_name, Shapes::ShapeRef.new(shape: String, location_name: "VersionName"))
245
+ RuntimeVersion.add_member(:description, Shapes::ShapeRef.new(shape: String, location_name: "Description"))
246
+ RuntimeVersion.add_member(:release_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "ReleaseDate"))
247
+ RuntimeVersion.add_member(:deprecation_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "DeprecationDate"))
248
+ RuntimeVersion.struct_class = Types::RuntimeVersion
249
+
250
+ RuntimeVersionList.member = Shapes::ShapeRef.new(shape: RuntimeVersion)
251
+
252
+ SecurityGroupIds.member = Shapes::ShapeRef.new(shape: SecurityGroupId)
253
+
254
+ StartCanaryRequest.add_member(:name, Shapes::ShapeRef.new(shape: CanaryName, required: true, location: "uri", location_name: "name"))
255
+ StartCanaryRequest.struct_class = Types::StartCanaryRequest
256
+
257
+ StartCanaryResponse.struct_class = Types::StartCanaryResponse
258
+
259
+ StopCanaryRequest.add_member(:name, Shapes::ShapeRef.new(shape: CanaryName, required: true, location: "uri", location_name: "name"))
260
+ StopCanaryRequest.struct_class = Types::StopCanaryRequest
261
+
262
+ StopCanaryResponse.struct_class = Types::StopCanaryResponse
263
+
264
+ SubnetIds.member = Shapes::ShapeRef.new(shape: SubnetId)
265
+
266
+ TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
267
+
268
+ TagMap.key = Shapes::ShapeRef.new(shape: TagKey)
269
+ TagMap.value = Shapes::ShapeRef.new(shape: TagValue)
270
+
271
+ TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location: "uri", location_name: "resourceArn"))
272
+ TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, required: true, location_name: "Tags"))
273
+ TagResourceRequest.struct_class = Types::TagResourceRequest
274
+
275
+ TagResourceResponse.struct_class = Types::TagResourceResponse
276
+
277
+ UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location: "uri", location_name: "resourceArn"))
278
+ UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location: "querystring", location_name: "tagKeys"))
279
+ UntagResourceRequest.struct_class = Types::UntagResourceRequest
280
+
281
+ UntagResourceResponse.struct_class = Types::UntagResourceResponse
282
+
283
+ UpdateCanaryRequest.add_member(:name, Shapes::ShapeRef.new(shape: CanaryName, required: true, location: "uri", location_name: "name"))
284
+ UpdateCanaryRequest.add_member(:code, Shapes::ShapeRef.new(shape: CanaryCodeInput, location_name: "Code"))
285
+ UpdateCanaryRequest.add_member(:execution_role_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "ExecutionRoleArn"))
286
+ UpdateCanaryRequest.add_member(:runtime_version, Shapes::ShapeRef.new(shape: String, location_name: "RuntimeVersion"))
287
+ UpdateCanaryRequest.add_member(:schedule, Shapes::ShapeRef.new(shape: CanaryScheduleInput, location_name: "Schedule"))
288
+ UpdateCanaryRequest.add_member(:run_config, Shapes::ShapeRef.new(shape: CanaryRunConfigInput, location_name: "RunConfig"))
289
+ UpdateCanaryRequest.add_member(:success_retention_period_in_days, Shapes::ShapeRef.new(shape: MaxSize1024, location_name: "SuccessRetentionPeriodInDays"))
290
+ UpdateCanaryRequest.add_member(:failure_retention_period_in_days, Shapes::ShapeRef.new(shape: MaxSize1024, location_name: "FailureRetentionPeriodInDays"))
291
+ UpdateCanaryRequest.add_member(:vpc_config, Shapes::ShapeRef.new(shape: VpcConfigInput, location_name: "VpcConfig"))
292
+ UpdateCanaryRequest.struct_class = Types::UpdateCanaryRequest
293
+
294
+ UpdateCanaryResponse.struct_class = Types::UpdateCanaryResponse
295
+
296
+ ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
297
+ ValidationException.struct_class = Types::ValidationException
298
+
299
+ VpcConfigInput.add_member(:subnet_ids, Shapes::ShapeRef.new(shape: SubnetIds, location_name: "SubnetIds"))
300
+ VpcConfigInput.add_member(:security_group_ids, Shapes::ShapeRef.new(shape: SecurityGroupIds, location_name: "SecurityGroupIds"))
301
+ VpcConfigInput.struct_class = Types::VpcConfigInput
302
+
303
+ VpcConfigOutput.add_member(:vpc_id, Shapes::ShapeRef.new(shape: VpcId, location_name: "VpcId"))
304
+ VpcConfigOutput.add_member(:subnet_ids, Shapes::ShapeRef.new(shape: SubnetIds, location_name: "SubnetIds"))
305
+ VpcConfigOutput.add_member(:security_group_ids, Shapes::ShapeRef.new(shape: SecurityGroupIds, location_name: "SecurityGroupIds"))
306
+ VpcConfigOutput.struct_class = Types::VpcConfigOutput
307
+
308
+
309
+ # @api private
310
+ API = Seahorse::Model::Api.new.tap do |api|
311
+
312
+ api.version = "2017-10-11"
313
+
314
+ api.metadata = {
315
+ "apiVersion" => "2017-10-11",
316
+ "endpointPrefix" => "synthetics",
317
+ "jsonVersion" => "1.1",
318
+ "protocol" => "rest-json",
319
+ "serviceAbbreviation" => "Synthetics",
320
+ "serviceFullName" => "Synthetics",
321
+ "serviceId" => "synthetics",
322
+ "signatureVersion" => "v4",
323
+ "signingName" => "synthetics",
324
+ "uid" => "synthetics-2017-10-11",
325
+ }
326
+
327
+ api.add_operation(:create_canary, Seahorse::Model::Operation.new.tap do |o|
328
+ o.name = "CreateCanary"
329
+ o.http_method = "POST"
330
+ o.http_request_uri = "/canary"
331
+ o.input = Shapes::ShapeRef.new(shape: CreateCanaryRequest)
332
+ o.output = Shapes::ShapeRef.new(shape: CreateCanaryResponse)
333
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
334
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
335
+ end)
336
+
337
+ api.add_operation(:delete_canary, Seahorse::Model::Operation.new.tap do |o|
338
+ o.name = "DeleteCanary"
339
+ o.http_method = "DELETE"
340
+ o.http_request_uri = "/canary/{name}"
341
+ o.input = Shapes::ShapeRef.new(shape: DeleteCanaryRequest)
342
+ o.output = Shapes::ShapeRef.new(shape: DeleteCanaryResponse)
343
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
344
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
345
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
346
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
347
+ end)
348
+
349
+ api.add_operation(:describe_canaries, Seahorse::Model::Operation.new.tap do |o|
350
+ o.name = "DescribeCanaries"
351
+ o.http_method = "POST"
352
+ o.http_request_uri = "/canaries"
353
+ o.input = Shapes::ShapeRef.new(shape: DescribeCanariesRequest)
354
+ o.output = Shapes::ShapeRef.new(shape: DescribeCanariesResponse)
355
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
356
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
357
+ o[:pager] = Aws::Pager.new(
358
+ limit_key: "max_results",
359
+ tokens: {
360
+ "next_token" => "next_token"
361
+ }
362
+ )
363
+ end)
364
+
365
+ api.add_operation(:describe_canaries_last_run, Seahorse::Model::Operation.new.tap do |o|
366
+ o.name = "DescribeCanariesLastRun"
367
+ o.http_method = "POST"
368
+ o.http_request_uri = "/canaries/last-run"
369
+ o.input = Shapes::ShapeRef.new(shape: DescribeCanariesLastRunRequest)
370
+ o.output = Shapes::ShapeRef.new(shape: DescribeCanariesLastRunResponse)
371
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
372
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
373
+ o[:pager] = Aws::Pager.new(
374
+ limit_key: "max_results",
375
+ tokens: {
376
+ "next_token" => "next_token"
377
+ }
378
+ )
379
+ end)
380
+
381
+ api.add_operation(:describe_runtime_versions, Seahorse::Model::Operation.new.tap do |o|
382
+ o.name = "DescribeRuntimeVersions"
383
+ o.http_method = "POST"
384
+ o.http_request_uri = "/runtime-versions"
385
+ o.input = Shapes::ShapeRef.new(shape: DescribeRuntimeVersionsRequest)
386
+ o.output = Shapes::ShapeRef.new(shape: DescribeRuntimeVersionsResponse)
387
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
388
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
389
+ o[:pager] = Aws::Pager.new(
390
+ limit_key: "max_results",
391
+ tokens: {
392
+ "next_token" => "next_token"
393
+ }
394
+ )
395
+ end)
396
+
397
+ api.add_operation(:get_canary, Seahorse::Model::Operation.new.tap do |o|
398
+ o.name = "GetCanary"
399
+ o.http_method = "GET"
400
+ o.http_request_uri = "/canary/{name}"
401
+ o.input = Shapes::ShapeRef.new(shape: GetCanaryRequest)
402
+ o.output = Shapes::ShapeRef.new(shape: GetCanaryResponse)
403
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
404
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
405
+ end)
406
+
407
+ api.add_operation(:get_canary_runs, Seahorse::Model::Operation.new.tap do |o|
408
+ o.name = "GetCanaryRuns"
409
+ o.http_method = "POST"
410
+ o.http_request_uri = "/canary/{name}/runs"
411
+ o.input = Shapes::ShapeRef.new(shape: GetCanaryRunsRequest)
412
+ o.output = Shapes::ShapeRef.new(shape: GetCanaryRunsResponse)
413
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
414
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
415
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
416
+ o[:pager] = Aws::Pager.new(
417
+ limit_key: "max_results",
418
+ tokens: {
419
+ "next_token" => "next_token"
420
+ }
421
+ )
422
+ end)
423
+
424
+ api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
425
+ o.name = "ListTagsForResource"
426
+ o.http_method = "GET"
427
+ o.http_request_uri = "/tags/{resourceArn}"
428
+ o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
429
+ o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
430
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
431
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
432
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
433
+ end)
434
+
435
+ api.add_operation(:start_canary, Seahorse::Model::Operation.new.tap do |o|
436
+ o.name = "StartCanary"
437
+ o.http_method = "POST"
438
+ o.http_request_uri = "/canary/{name}/start"
439
+ o.input = Shapes::ShapeRef.new(shape: StartCanaryRequest)
440
+ o.output = Shapes::ShapeRef.new(shape: StartCanaryResponse)
441
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
442
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
443
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
444
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
445
+ end)
446
+
447
+ api.add_operation(:stop_canary, Seahorse::Model::Operation.new.tap do |o|
448
+ o.name = "StopCanary"
449
+ o.http_method = "POST"
450
+ o.http_request_uri = "/canary/{name}/stop"
451
+ o.input = Shapes::ShapeRef.new(shape: StopCanaryRequest)
452
+ o.output = Shapes::ShapeRef.new(shape: StopCanaryResponse)
453
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
454
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
455
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
456
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
457
+ end)
458
+
459
+ api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
460
+ o.name = "TagResource"
461
+ o.http_method = "POST"
462
+ o.http_request_uri = "/tags/{resourceArn}"
463
+ o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
464
+ o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
465
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
466
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
467
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
468
+ end)
469
+
470
+ api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
471
+ o.name = "UntagResource"
472
+ o.http_method = "DELETE"
473
+ o.http_request_uri = "/tags/{resourceArn}"
474
+ o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
475
+ o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
476
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
477
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
478
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
479
+ end)
480
+
481
+ api.add_operation(:update_canary, Seahorse::Model::Operation.new.tap do |o|
482
+ o.name = "UpdateCanary"
483
+ o.http_method = "PATCH"
484
+ o.http_request_uri = "/canary/{name}"
485
+ o.input = Shapes::ShapeRef.new(shape: UpdateCanaryRequest)
486
+ o.output = Shapes::ShapeRef.new(shape: UpdateCanaryResponse)
487
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
488
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
489
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
490
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
491
+ end)
492
+ end
493
+
494
+ end
495
+ end