aws-sdk-synthetics 1.27.0 → 1.28.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -15,6 +15,9 @@ module Aws::Synthetics
15
15
 
16
16
  ArtifactConfigInput = Shapes::StructureShape.new(name: 'ArtifactConfigInput')
17
17
  ArtifactConfigOutput = Shapes::StructureShape.new(name: 'ArtifactConfigOutput')
18
+ AssociateResourceRequest = Shapes::StructureShape.new(name: 'AssociateResourceRequest')
19
+ AssociateResourceResponse = Shapes::StructureShape.new(name: 'AssociateResourceResponse')
20
+ BadRequestException = Shapes::StructureShape.new(name: 'BadRequestException')
18
21
  BaseScreenshot = Shapes::StructureShape.new(name: 'BaseScreenshot')
19
22
  BaseScreenshotConfigIgnoreCoordinate = Shapes::StringShape.new(name: 'BaseScreenshotConfigIgnoreCoordinate')
20
23
  BaseScreenshotIgnoreCoordinates = Shapes::ListShape.new(name: 'BaseScreenshotIgnoreCoordinates')
@@ -46,8 +49,12 @@ module Aws::Synthetics
46
49
  ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
47
50
  CreateCanaryRequest = Shapes::StructureShape.new(name: 'CreateCanaryRequest')
48
51
  CreateCanaryResponse = Shapes::StructureShape.new(name: 'CreateCanaryResponse')
52
+ CreateGroupRequest = Shapes::StructureShape.new(name: 'CreateGroupRequest')
53
+ CreateGroupResponse = Shapes::StructureShape.new(name: 'CreateGroupResponse')
49
54
  DeleteCanaryRequest = Shapes::StructureShape.new(name: 'DeleteCanaryRequest')
50
55
  DeleteCanaryResponse = Shapes::StructureShape.new(name: 'DeleteCanaryResponse')
56
+ DeleteGroupRequest = Shapes::StructureShape.new(name: 'DeleteGroupRequest')
57
+ DeleteGroupResponse = Shapes::StructureShape.new(name: 'DeleteGroupResponse')
51
58
  DescribeCanariesLastRunNameFilter = Shapes::ListShape.new(name: 'DescribeCanariesLastRunNameFilter')
52
59
  DescribeCanariesLastRunRequest = Shapes::StructureShape.new(name: 'DescribeCanariesLastRunRequest')
53
60
  DescribeCanariesLastRunResponse = Shapes::StructureShape.new(name: 'DescribeCanariesLastRunResponse')
@@ -56,6 +63,8 @@ module Aws::Synthetics
56
63
  DescribeCanariesResponse = Shapes::StructureShape.new(name: 'DescribeCanariesResponse')
57
64
  DescribeRuntimeVersionsRequest = Shapes::StructureShape.new(name: 'DescribeRuntimeVersionsRequest')
58
65
  DescribeRuntimeVersionsResponse = Shapes::StructureShape.new(name: 'DescribeRuntimeVersionsResponse')
66
+ DisassociateResourceRequest = Shapes::StructureShape.new(name: 'DisassociateResourceRequest')
67
+ DisassociateResourceResponse = Shapes::StructureShape.new(name: 'DisassociateResourceResponse')
59
68
  EncryptionMode = Shapes::StringShape.new(name: 'EncryptionMode')
60
69
  EnvironmentVariableName = Shapes::StringShape.new(name: 'EnvironmentVariableName')
61
70
  EnvironmentVariableValue = Shapes::StringShape.new(name: 'EnvironmentVariableValue')
@@ -66,18 +75,37 @@ module Aws::Synthetics
66
75
  GetCanaryResponse = Shapes::StructureShape.new(name: 'GetCanaryResponse')
67
76
  GetCanaryRunsRequest = Shapes::StructureShape.new(name: 'GetCanaryRunsRequest')
68
77
  GetCanaryRunsResponse = Shapes::StructureShape.new(name: 'GetCanaryRunsResponse')
78
+ GetGroupRequest = Shapes::StructureShape.new(name: 'GetGroupRequest')
79
+ GetGroupResponse = Shapes::StructureShape.new(name: 'GetGroupResponse')
80
+ Group = Shapes::StructureShape.new(name: 'Group')
81
+ GroupArn = Shapes::StringShape.new(name: 'GroupArn')
82
+ GroupIdentifier = Shapes::StringShape.new(name: 'GroupIdentifier')
83
+ GroupName = Shapes::StringShape.new(name: 'GroupName')
84
+ GroupSummary = Shapes::StructureShape.new(name: 'GroupSummary')
85
+ GroupSummaryList = Shapes::ListShape.new(name: 'GroupSummaryList')
86
+ InternalFailureException = Shapes::StructureShape.new(name: 'InternalFailureException')
69
87
  InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
70
88
  KmsKeyArn = Shapes::StringShape.new(name: 'KmsKeyArn')
89
+ ListAssociatedGroupsRequest = Shapes::StructureShape.new(name: 'ListAssociatedGroupsRequest')
90
+ ListAssociatedGroupsResponse = Shapes::StructureShape.new(name: 'ListAssociatedGroupsResponse')
91
+ ListGroupResourcesRequest = Shapes::StructureShape.new(name: 'ListGroupResourcesRequest')
92
+ ListGroupResourcesResponse = Shapes::StructureShape.new(name: 'ListGroupResourcesResponse')
93
+ ListGroupsRequest = Shapes::StructureShape.new(name: 'ListGroupsRequest')
94
+ ListGroupsResponse = Shapes::StructureShape.new(name: 'ListGroupsResponse')
71
95
  ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
72
96
  ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
73
97
  MaxCanaryResults = Shapes::IntegerShape.new(name: 'MaxCanaryResults')
74
98
  MaxFifteenMinutesInSeconds = Shapes::IntegerShape.new(name: 'MaxFifteenMinutesInSeconds')
99
+ MaxGroupResults = Shapes::IntegerShape.new(name: 'MaxGroupResults')
75
100
  MaxOneYearInSeconds = Shapes::IntegerShape.new(name: 'MaxOneYearInSeconds')
76
101
  MaxSize100 = Shapes::IntegerShape.new(name: 'MaxSize100')
77
102
  MaxSize1024 = Shapes::IntegerShape.new(name: 'MaxSize1024')
78
103
  MaxSize3008 = Shapes::IntegerShape.new(name: 'MaxSize3008')
104
+ NotFoundException = Shapes::StructureShape.new(name: 'NotFoundException')
79
105
  NullableBoolean = Shapes::BooleanShape.new(name: 'NullableBoolean')
106
+ PaginationToken = Shapes::StringShape.new(name: 'PaginationToken')
80
107
  RequestEntityTooLargeException = Shapes::StructureShape.new(name: 'RequestEntityTooLargeException')
108
+ ResourceArn = Shapes::StringShape.new(name: 'ResourceArn')
81
109
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
82
110
  RoleArn = Shapes::StringShape.new(name: 'RoleArn')
83
111
  RuntimeVersion = Shapes::StructureShape.new(name: 'RuntimeVersion')
@@ -85,11 +113,13 @@ module Aws::Synthetics
85
113
  S3EncryptionConfig = Shapes::StructureShape.new(name: 'S3EncryptionConfig')
86
114
  SecurityGroupId = Shapes::StringShape.new(name: 'SecurityGroupId')
87
115
  SecurityGroupIds = Shapes::ListShape.new(name: 'SecurityGroupIds')
116
+ ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
88
117
  StartCanaryRequest = Shapes::StructureShape.new(name: 'StartCanaryRequest')
89
118
  StartCanaryResponse = Shapes::StructureShape.new(name: 'StartCanaryResponse')
90
119
  StopCanaryRequest = Shapes::StructureShape.new(name: 'StopCanaryRequest')
91
120
  StopCanaryResponse = Shapes::StructureShape.new(name: 'StopCanaryResponse')
92
121
  String = Shapes::StringShape.new(name: 'String')
122
+ StringList = Shapes::ListShape.new(name: 'StringList')
93
123
  SubnetId = Shapes::StringShape.new(name: 'SubnetId')
94
124
  SubnetIds = Shapes::ListShape.new(name: 'SubnetIds')
95
125
  TagKey = Shapes::StringShape.new(name: 'TagKey')
@@ -100,6 +130,7 @@ module Aws::Synthetics
100
130
  TagValue = Shapes::StringShape.new(name: 'TagValue')
101
131
  Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
102
132
  Token = Shapes::StringShape.new(name: 'Token')
133
+ TooManyRequestsException = Shapes::StructureShape.new(name: 'TooManyRequestsException')
103
134
  UUID = Shapes::StringShape.new(name: 'UUID')
104
135
  UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
105
136
  UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
@@ -119,6 +150,15 @@ module Aws::Synthetics
119
150
  ArtifactConfigOutput.add_member(:s3_encryption, Shapes::ShapeRef.new(shape: S3EncryptionConfig, location_name: "S3Encryption"))
120
151
  ArtifactConfigOutput.struct_class = Types::ArtifactConfigOutput
121
152
 
153
+ AssociateResourceRequest.add_member(:group_identifier, Shapes::ShapeRef.new(shape: GroupIdentifier, required: true, location: "uri", location_name: "groupIdentifier"))
154
+ AssociateResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: CanaryArn, required: true, location_name: "ResourceArn"))
155
+ AssociateResourceRequest.struct_class = Types::AssociateResourceRequest
156
+
157
+ AssociateResourceResponse.struct_class = Types::AssociateResourceResponse
158
+
159
+ BadRequestException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
160
+ BadRequestException.struct_class = Types::BadRequestException
161
+
122
162
  BaseScreenshot.add_member(:screenshot_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "ScreenshotName"))
123
163
  BaseScreenshot.add_member(:ignore_coordinates, Shapes::ShapeRef.new(shape: BaseScreenshotIgnoreCoordinates, location_name: "IgnoreCoordinates"))
124
164
  BaseScreenshot.struct_class = Types::BaseScreenshot
@@ -233,12 +273,24 @@ module Aws::Synthetics
233
273
  CreateCanaryResponse.add_member(:canary, Shapes::ShapeRef.new(shape: Canary, location_name: "Canary"))
234
274
  CreateCanaryResponse.struct_class = Types::CreateCanaryResponse
235
275
 
276
+ CreateGroupRequest.add_member(:name, Shapes::ShapeRef.new(shape: GroupName, required: true, location_name: "Name"))
277
+ CreateGroupRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
278
+ CreateGroupRequest.struct_class = Types::CreateGroupRequest
279
+
280
+ CreateGroupResponse.add_member(:group, Shapes::ShapeRef.new(shape: Group, location_name: "Group"))
281
+ CreateGroupResponse.struct_class = Types::CreateGroupResponse
282
+
236
283
  DeleteCanaryRequest.add_member(:name, Shapes::ShapeRef.new(shape: CanaryName, required: true, location: "uri", location_name: "name"))
237
284
  DeleteCanaryRequest.add_member(:delete_lambda, Shapes::ShapeRef.new(shape: boolean, location: "querystring", location_name: "deleteLambda"))
238
285
  DeleteCanaryRequest.struct_class = Types::DeleteCanaryRequest
239
286
 
240
287
  DeleteCanaryResponse.struct_class = Types::DeleteCanaryResponse
241
288
 
289
+ DeleteGroupRequest.add_member(:group_identifier, Shapes::ShapeRef.new(shape: GroupIdentifier, required: true, location: "uri", location_name: "groupIdentifier"))
290
+ DeleteGroupRequest.struct_class = Types::DeleteGroupRequest
291
+
292
+ DeleteGroupResponse.struct_class = Types::DeleteGroupResponse
293
+
242
294
  DescribeCanariesLastRunNameFilter.member = Shapes::ShapeRef.new(shape: CanaryName)
243
295
 
244
296
  DescribeCanariesLastRunRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
@@ -269,6 +321,12 @@ module Aws::Synthetics
269
321
  DescribeRuntimeVersionsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
270
322
  DescribeRuntimeVersionsResponse.struct_class = Types::DescribeRuntimeVersionsResponse
271
323
 
324
+ DisassociateResourceRequest.add_member(:group_identifier, Shapes::ShapeRef.new(shape: GroupIdentifier, required: true, location: "uri", location_name: "groupIdentifier"))
325
+ DisassociateResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: CanaryArn, required: true, location_name: "ResourceArn"))
326
+ DisassociateResourceRequest.struct_class = Types::DisassociateResourceRequest
327
+
328
+ DisassociateResourceResponse.struct_class = Types::DisassociateResourceResponse
329
+
272
330
  EnvironmentVariablesMap.key = Shapes::ShapeRef.new(shape: EnvironmentVariableName)
273
331
  EnvironmentVariablesMap.value = Shapes::ShapeRef.new(shape: EnvironmentVariableValue)
274
332
 
@@ -287,15 +345,68 @@ module Aws::Synthetics
287
345
  GetCanaryRunsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
288
346
  GetCanaryRunsResponse.struct_class = Types::GetCanaryRunsResponse
289
347
 
348
+ GetGroupRequest.add_member(:group_identifier, Shapes::ShapeRef.new(shape: GroupIdentifier, required: true, location: "uri", location_name: "groupIdentifier"))
349
+ GetGroupRequest.struct_class = Types::GetGroupRequest
350
+
351
+ GetGroupResponse.add_member(:group, Shapes::ShapeRef.new(shape: Group, location_name: "Group"))
352
+ GetGroupResponse.struct_class = Types::GetGroupResponse
353
+
354
+ Group.add_member(:id, Shapes::ShapeRef.new(shape: String, location_name: "Id"))
355
+ Group.add_member(:name, Shapes::ShapeRef.new(shape: GroupName, location_name: "Name"))
356
+ Group.add_member(:arn, Shapes::ShapeRef.new(shape: GroupArn, location_name: "Arn"))
357
+ Group.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
358
+ Group.add_member(:created_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreatedTime"))
359
+ Group.add_member(:last_modified_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LastModifiedTime"))
360
+ Group.struct_class = Types::Group
361
+
362
+ GroupSummary.add_member(:id, Shapes::ShapeRef.new(shape: String, location_name: "Id"))
363
+ GroupSummary.add_member(:name, Shapes::ShapeRef.new(shape: GroupName, location_name: "Name"))
364
+ GroupSummary.add_member(:arn, Shapes::ShapeRef.new(shape: GroupArn, location_name: "Arn"))
365
+ GroupSummary.struct_class = Types::GroupSummary
366
+
367
+ GroupSummaryList.member = Shapes::ShapeRef.new(shape: GroupSummary)
368
+
369
+ InternalFailureException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
370
+ InternalFailureException.struct_class = Types::InternalFailureException
371
+
290
372
  InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
291
373
  InternalServerException.struct_class = Types::InternalServerException
292
374
 
293
- ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: CanaryArn, required: true, location: "uri", location_name: "resourceArn"))
375
+ ListAssociatedGroupsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
376
+ ListAssociatedGroupsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxGroupResults, location_name: "MaxResults"))
377
+ ListAssociatedGroupsRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: CanaryArn, required: true, location: "uri", location_name: "resourceArn"))
378
+ ListAssociatedGroupsRequest.struct_class = Types::ListAssociatedGroupsRequest
379
+
380
+ ListAssociatedGroupsResponse.add_member(:groups, Shapes::ShapeRef.new(shape: GroupSummaryList, location_name: "Groups"))
381
+ ListAssociatedGroupsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
382
+ ListAssociatedGroupsResponse.struct_class = Types::ListAssociatedGroupsResponse
383
+
384
+ ListGroupResourcesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
385
+ ListGroupResourcesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxGroupResults, location_name: "MaxResults"))
386
+ ListGroupResourcesRequest.add_member(:group_identifier, Shapes::ShapeRef.new(shape: GroupIdentifier, required: true, location: "uri", location_name: "groupIdentifier"))
387
+ ListGroupResourcesRequest.struct_class = Types::ListGroupResourcesRequest
388
+
389
+ ListGroupResourcesResponse.add_member(:resources, Shapes::ShapeRef.new(shape: StringList, location_name: "Resources"))
390
+ ListGroupResourcesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
391
+ ListGroupResourcesResponse.struct_class = Types::ListGroupResourcesResponse
392
+
393
+ ListGroupsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
394
+ ListGroupsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxGroupResults, location_name: "MaxResults"))
395
+ ListGroupsRequest.struct_class = Types::ListGroupsRequest
396
+
397
+ ListGroupsResponse.add_member(:groups, Shapes::ShapeRef.new(shape: GroupSummaryList, location_name: "Groups"))
398
+ ListGroupsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
399
+ ListGroupsResponse.struct_class = Types::ListGroupsResponse
400
+
401
+ ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location: "uri", location_name: "resourceArn"))
294
402
  ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
295
403
 
296
404
  ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
297
405
  ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
298
406
 
407
+ NotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
408
+ NotFoundException.struct_class = Types::NotFoundException
409
+
299
410
  RequestEntityTooLargeException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
300
411
  RequestEntityTooLargeException.struct_class = Types::RequestEntityTooLargeException
301
412
 
@@ -316,6 +427,9 @@ module Aws::Synthetics
316
427
 
317
428
  SecurityGroupIds.member = Shapes::ShapeRef.new(shape: SecurityGroupId)
318
429
 
430
+ ServiceQuotaExceededException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
431
+ ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
432
+
319
433
  StartCanaryRequest.add_member(:name, Shapes::ShapeRef.new(shape: CanaryName, required: true, location: "uri", location_name: "name"))
320
434
  StartCanaryRequest.struct_class = Types::StartCanaryRequest
321
435
 
@@ -326,6 +440,8 @@ module Aws::Synthetics
326
440
 
327
441
  StopCanaryResponse.struct_class = Types::StopCanaryResponse
328
442
 
443
+ StringList.member = Shapes::ShapeRef.new(shape: String)
444
+
329
445
  SubnetIds.member = Shapes::ShapeRef.new(shape: SubnetId)
330
446
 
331
447
  TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
@@ -333,13 +449,16 @@ module Aws::Synthetics
333
449
  TagMap.key = Shapes::ShapeRef.new(shape: TagKey)
334
450
  TagMap.value = Shapes::ShapeRef.new(shape: TagValue)
335
451
 
336
- TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: CanaryArn, required: true, location: "uri", location_name: "resourceArn"))
452
+ TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location: "uri", location_name: "resourceArn"))
337
453
  TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, required: true, location_name: "Tags"))
338
454
  TagResourceRequest.struct_class = Types::TagResourceRequest
339
455
 
340
456
  TagResourceResponse.struct_class = Types::TagResourceResponse
341
457
 
342
- UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: CanaryArn, required: true, location: "uri", location_name: "resourceArn"))
458
+ TooManyRequestsException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
459
+ TooManyRequestsException.struct_class = Types::TooManyRequestsException
460
+
461
+ UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location: "uri", location_name: "resourceArn"))
343
462
  UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location: "querystring", location_name: "tagKeys"))
344
463
  UntagResourceRequest.struct_class = Types::UntagResourceRequest
345
464
 
@@ -400,6 +519,19 @@ module Aws::Synthetics
400
519
  "uid" => "synthetics-2017-10-11",
401
520
  }
402
521
 
522
+ api.add_operation(:associate_resource, Seahorse::Model::Operation.new.tap do |o|
523
+ o.name = "AssociateResource"
524
+ o.http_method = "PATCH"
525
+ o.http_request_uri = "/group/{groupIdentifier}/associate"
526
+ o.input = Shapes::ShapeRef.new(shape: AssociateResourceRequest)
527
+ o.output = Shapes::ShapeRef.new(shape: AssociateResourceResponse)
528
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
529
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
530
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
531
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
532
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
533
+ end)
534
+
403
535
  api.add_operation(:create_canary, Seahorse::Model::Operation.new.tap do |o|
404
536
  o.name = "CreateCanary"
405
537
  o.http_method = "POST"
@@ -411,6 +543,18 @@ module Aws::Synthetics
411
543
  o.errors << Shapes::ShapeRef.new(shape: RequestEntityTooLargeException)
412
544
  end)
413
545
 
546
+ api.add_operation(:create_group, Seahorse::Model::Operation.new.tap do |o|
547
+ o.name = "CreateGroup"
548
+ o.http_method = "POST"
549
+ o.http_request_uri = "/group"
550
+ o.input = Shapes::ShapeRef.new(shape: CreateGroupRequest)
551
+ o.output = Shapes::ShapeRef.new(shape: CreateGroupResponse)
552
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
553
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
554
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
555
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
556
+ end)
557
+
414
558
  api.add_operation(:delete_canary, Seahorse::Model::Operation.new.tap do |o|
415
559
  o.name = "DeleteCanary"
416
560
  o.http_method = "DELETE"
@@ -423,6 +567,18 @@ module Aws::Synthetics
423
567
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
424
568
  end)
425
569
 
570
+ api.add_operation(:delete_group, Seahorse::Model::Operation.new.tap do |o|
571
+ o.name = "DeleteGroup"
572
+ o.http_method = "DELETE"
573
+ o.http_request_uri = "/group/{groupIdentifier}"
574
+ o.input = Shapes::ShapeRef.new(shape: DeleteGroupRequest)
575
+ o.output = Shapes::ShapeRef.new(shape: DeleteGroupResponse)
576
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
577
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
578
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
579
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
580
+ end)
581
+
426
582
  api.add_operation(:describe_canaries, Seahorse::Model::Operation.new.tap do |o|
427
583
  o.name = "DescribeCanaries"
428
584
  o.http_method = "POST"
@@ -471,6 +627,18 @@ module Aws::Synthetics
471
627
  )
472
628
  end)
473
629
 
630
+ api.add_operation(:disassociate_resource, Seahorse::Model::Operation.new.tap do |o|
631
+ o.name = "DisassociateResource"
632
+ o.http_method = "PATCH"
633
+ o.http_request_uri = "/group/{groupIdentifier}/disassociate"
634
+ o.input = Shapes::ShapeRef.new(shape: DisassociateResourceRequest)
635
+ o.output = Shapes::ShapeRef.new(shape: DisassociateResourceResponse)
636
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
637
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
638
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
639
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
640
+ end)
641
+
474
642
  api.add_operation(:get_canary, Seahorse::Model::Operation.new.tap do |o|
475
643
  o.name = "GetCanary"
476
644
  o.http_method = "GET"
@@ -498,15 +666,80 @@ module Aws::Synthetics
498
666
  )
499
667
  end)
500
668
 
669
+ api.add_operation(:get_group, Seahorse::Model::Operation.new.tap do |o|
670
+ o.name = "GetGroup"
671
+ o.http_method = "GET"
672
+ o.http_request_uri = "/group/{groupIdentifier}"
673
+ o.input = Shapes::ShapeRef.new(shape: GetGroupRequest)
674
+ o.output = Shapes::ShapeRef.new(shape: GetGroupResponse)
675
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
676
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
677
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
678
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
679
+ end)
680
+
681
+ api.add_operation(:list_associated_groups, Seahorse::Model::Operation.new.tap do |o|
682
+ o.name = "ListAssociatedGroups"
683
+ o.http_method = "POST"
684
+ o.http_request_uri = "/resource/{resourceArn}/groups"
685
+ o.input = Shapes::ShapeRef.new(shape: ListAssociatedGroupsRequest)
686
+ o.output = Shapes::ShapeRef.new(shape: ListAssociatedGroupsResponse)
687
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
688
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
689
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
690
+ o[:pager] = Aws::Pager.new(
691
+ limit_key: "max_results",
692
+ tokens: {
693
+ "next_token" => "next_token"
694
+ }
695
+ )
696
+ end)
697
+
698
+ api.add_operation(:list_group_resources, Seahorse::Model::Operation.new.tap do |o|
699
+ o.name = "ListGroupResources"
700
+ o.http_method = "POST"
701
+ o.http_request_uri = "/group/{groupIdentifier}/resources"
702
+ o.input = Shapes::ShapeRef.new(shape: ListGroupResourcesRequest)
703
+ o.output = Shapes::ShapeRef.new(shape: ListGroupResourcesResponse)
704
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
705
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
706
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
707
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
708
+ o[:pager] = Aws::Pager.new(
709
+ limit_key: "max_results",
710
+ tokens: {
711
+ "next_token" => "next_token"
712
+ }
713
+ )
714
+ end)
715
+
716
+ api.add_operation(:list_groups, Seahorse::Model::Operation.new.tap do |o|
717
+ o.name = "ListGroups"
718
+ o.http_method = "POST"
719
+ o.http_request_uri = "/groups"
720
+ o.input = Shapes::ShapeRef.new(shape: ListGroupsRequest)
721
+ o.output = Shapes::ShapeRef.new(shape: ListGroupsResponse)
722
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
723
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
724
+ o[:pager] = Aws::Pager.new(
725
+ limit_key: "max_results",
726
+ tokens: {
727
+ "next_token" => "next_token"
728
+ }
729
+ )
730
+ end)
731
+
501
732
  api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
502
733
  o.name = "ListTagsForResource"
503
734
  o.http_method = "GET"
504
735
  o.http_request_uri = "/tags/{resourceArn}"
505
736
  o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
506
737
  o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
507
- o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
508
- o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
509
- o.errors << Shapes::ShapeRef.new(shape: ValidationException)
738
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
739
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
740
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
741
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
742
+ o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
510
743
  end)
511
744
 
512
745
  api.add_operation(:start_canary, Seahorse::Model::Operation.new.tap do |o|
@@ -539,9 +772,11 @@ module Aws::Synthetics
539
772
  o.http_request_uri = "/tags/{resourceArn}"
540
773
  o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
541
774
  o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
542
- o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
543
- o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
544
- o.errors << Shapes::ShapeRef.new(shape: ValidationException)
775
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
776
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
777
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
778
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
779
+ o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
545
780
  end)
546
781
 
547
782
  api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
@@ -550,9 +785,11 @@ module Aws::Synthetics
550
785
  o.http_request_uri = "/tags/{resourceArn}"
551
786
  o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
552
787
  o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
553
- o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
554
- o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
555
- o.errors << Shapes::ShapeRef.new(shape: ValidationException)
788
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
789
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
790
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
791
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
792
+ o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
556
793
  end)
557
794
 
558
795
  api.add_operation(:update_canary, Seahorse::Model::Operation.new.tap do |o|
@@ -27,10 +27,15 @@ module Aws::Synthetics
27
27
  # See {Seahorse::Client::RequestContext} for more information.
28
28
  #
29
29
  # ## Error Classes
30
+ # * {BadRequestException}
30
31
  # * {ConflictException}
32
+ # * {InternalFailureException}
31
33
  # * {InternalServerException}
34
+ # * {NotFoundException}
32
35
  # * {RequestEntityTooLargeException}
33
36
  # * {ResourceNotFoundException}
37
+ # * {ServiceQuotaExceededException}
38
+ # * {TooManyRequestsException}
34
39
  # * {ValidationException}
35
40
  #
36
41
  # Additionally, error classes are dynamically generated for service errors based on the error code
@@ -39,6 +44,21 @@ module Aws::Synthetics
39
44
 
40
45
  extend Aws::Errors::DynamicErrors
41
46
 
47
+ class BadRequestException < ServiceError
48
+
49
+ # @param [Seahorse::Client::RequestContext] context
50
+ # @param [String] message
51
+ # @param [Aws::Synthetics::Types::BadRequestException] data
52
+ def initialize(context, message, data = Aws::EmptyStructure.new)
53
+ super(context, message, data)
54
+ end
55
+
56
+ # @return [String]
57
+ def message
58
+ @message || @data[:message]
59
+ end
60
+ end
61
+
42
62
  class ConflictException < ServiceError
43
63
 
44
64
  # @param [Seahorse::Client::RequestContext] context
@@ -54,6 +74,21 @@ module Aws::Synthetics
54
74
  end
55
75
  end
56
76
 
77
+ class InternalFailureException < ServiceError
78
+
79
+ # @param [Seahorse::Client::RequestContext] context
80
+ # @param [String] message
81
+ # @param [Aws::Synthetics::Types::InternalFailureException] data
82
+ def initialize(context, message, data = Aws::EmptyStructure.new)
83
+ super(context, message, data)
84
+ end
85
+
86
+ # @return [String]
87
+ def message
88
+ @message || @data[:message]
89
+ end
90
+ end
91
+
57
92
  class InternalServerException < ServiceError
58
93
 
59
94
  # @param [Seahorse::Client::RequestContext] context
@@ -69,6 +104,21 @@ module Aws::Synthetics
69
104
  end
70
105
  end
71
106
 
107
+ class NotFoundException < ServiceError
108
+
109
+ # @param [Seahorse::Client::RequestContext] context
110
+ # @param [String] message
111
+ # @param [Aws::Synthetics::Types::NotFoundException] data
112
+ def initialize(context, message, data = Aws::EmptyStructure.new)
113
+ super(context, message, data)
114
+ end
115
+
116
+ # @return [String]
117
+ def message
118
+ @message || @data[:message]
119
+ end
120
+ end
121
+
72
122
  class RequestEntityTooLargeException < ServiceError
73
123
 
74
124
  # @param [Seahorse::Client::RequestContext] context
@@ -99,6 +149,36 @@ module Aws::Synthetics
99
149
  end
100
150
  end
101
151
 
152
+ class ServiceQuotaExceededException < ServiceError
153
+
154
+ # @param [Seahorse::Client::RequestContext] context
155
+ # @param [String] message
156
+ # @param [Aws::Synthetics::Types::ServiceQuotaExceededException] data
157
+ def initialize(context, message, data = Aws::EmptyStructure.new)
158
+ super(context, message, data)
159
+ end
160
+
161
+ # @return [String]
162
+ def message
163
+ @message || @data[:message]
164
+ end
165
+ end
166
+
167
+ class TooManyRequestsException < ServiceError
168
+
169
+ # @param [Seahorse::Client::RequestContext] context
170
+ # @param [String] message
171
+ # @param [Aws::Synthetics::Types::TooManyRequestsException] data
172
+ def initialize(context, message, data = Aws::EmptyStructure.new)
173
+ super(context, message, data)
174
+ end
175
+
176
+ # @return [String]
177
+ def message
178
+ @message || @data[:message]
179
+ end
180
+ end
181
+
102
182
  class ValidationException < ServiceError
103
183
 
104
184
  # @param [Seahorse::Client::RequestContext] context