aws-sdk-ram 1.33.0 → 1.37.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -51,6 +51,8 @@ module Aws::RAM
51
51
  InvalidStateTransitionException = Shapes::StructureShape.new(name: 'InvalidStateTransitionException')
52
52
  ListPendingInvitationResourcesRequest = Shapes::StructureShape.new(name: 'ListPendingInvitationResourcesRequest')
53
53
  ListPendingInvitationResourcesResponse = Shapes::StructureShape.new(name: 'ListPendingInvitationResourcesResponse')
54
+ ListPermissionVersionsRequest = Shapes::StructureShape.new(name: 'ListPermissionVersionsRequest')
55
+ ListPermissionVersionsResponse = Shapes::StructureShape.new(name: 'ListPermissionVersionsResponse')
54
56
  ListPermissionsRequest = Shapes::StructureShape.new(name: 'ListPermissionsRequest')
55
57
  ListPermissionsResponse = Shapes::StructureShape.new(name: 'ListPermissionsResponse')
56
58
  ListPrincipalsRequest = Shapes::StructureShape.new(name: 'ListPrincipalsRequest')
@@ -80,6 +82,8 @@ module Aws::RAM
80
82
  ResourceArnNotFoundException = Shapes::StructureShape.new(name: 'ResourceArnNotFoundException')
81
83
  ResourceList = Shapes::ListShape.new(name: 'ResourceList')
82
84
  ResourceOwner = Shapes::StringShape.new(name: 'ResourceOwner')
85
+ ResourceRegionScope = Shapes::StringShape.new(name: 'ResourceRegionScope')
86
+ ResourceRegionScopeFilter = Shapes::StringShape.new(name: 'ResourceRegionScopeFilter')
83
87
  ResourceShare = Shapes::StructureShape.new(name: 'ResourceShare')
84
88
  ResourceShareArnList = Shapes::ListShape.new(name: 'ResourceShareArnList')
85
89
  ResourceShareAssociation = Shapes::StructureShape.new(name: 'ResourceShareAssociation')
@@ -119,6 +123,7 @@ module Aws::RAM
119
123
  TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
120
124
  TagValue = Shapes::StringShape.new(name: 'TagValue')
121
125
  TagValueList = Shapes::ListShape.new(name: 'TagValueList')
126
+ ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
122
127
  UnknownResourceException = Shapes::StructureShape.new(name: 'UnknownResourceException')
123
128
  UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
124
129
  UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
@@ -277,12 +282,22 @@ module Aws::RAM
277
282
  ListPendingInvitationResourcesRequest.add_member(:resource_share_invitation_arn, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceShareInvitationArn"))
278
283
  ListPendingInvitationResourcesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
279
284
  ListPendingInvitationResourcesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "maxResults"))
285
+ ListPendingInvitationResourcesRequest.add_member(:resource_region_scope, Shapes::ShapeRef.new(shape: ResourceRegionScopeFilter, location_name: "resourceRegionScope"))
280
286
  ListPendingInvitationResourcesRequest.struct_class = Types::ListPendingInvitationResourcesRequest
281
287
 
282
288
  ListPendingInvitationResourcesResponse.add_member(:resources, Shapes::ShapeRef.new(shape: ResourceList, location_name: "resources"))
283
289
  ListPendingInvitationResourcesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
284
290
  ListPendingInvitationResourcesResponse.struct_class = Types::ListPendingInvitationResourcesResponse
285
291
 
292
+ ListPermissionVersionsRequest.add_member(:permission_arn, Shapes::ShapeRef.new(shape: String, required: true, location_name: "permissionArn"))
293
+ ListPermissionVersionsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
294
+ ListPermissionVersionsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "maxResults"))
295
+ ListPermissionVersionsRequest.struct_class = Types::ListPermissionVersionsRequest
296
+
297
+ ListPermissionVersionsResponse.add_member(:permissions, Shapes::ShapeRef.new(shape: ResourceSharePermissionList, location_name: "permissions"))
298
+ ListPermissionVersionsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
299
+ ListPermissionVersionsResponse.struct_class = Types::ListPermissionVersionsResponse
300
+
286
301
  ListPermissionsRequest.add_member(:resource_type, Shapes::ShapeRef.new(shape: String, location_name: "resourceType"))
287
302
  ListPermissionsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
288
303
  ListPermissionsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "maxResults"))
@@ -316,6 +331,7 @@ module Aws::RAM
316
331
 
317
332
  ListResourceTypesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
318
333
  ListResourceTypesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "maxResults"))
334
+ ListResourceTypesRequest.add_member(:resource_region_scope, Shapes::ShapeRef.new(shape: ResourceRegionScopeFilter, location_name: "resourceRegionScope"))
319
335
  ListResourceTypesRequest.struct_class = Types::ListResourceTypesRequest
320
336
 
321
337
  ListResourceTypesResponse.add_member(:resource_types, Shapes::ShapeRef.new(shape: ServiceNameAndResourceTypeList, location_name: "resourceTypes"))
@@ -329,6 +345,7 @@ module Aws::RAM
329
345
  ListResourcesRequest.add_member(:resource_share_arns, Shapes::ShapeRef.new(shape: ResourceShareArnList, location_name: "resourceShareArns"))
330
346
  ListResourcesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
331
347
  ListResourcesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "maxResults"))
348
+ ListResourcesRequest.add_member(:resource_region_scope, Shapes::ShapeRef.new(shape: ResourceRegionScopeFilter, location_name: "resourceRegionScope"))
332
349
  ListResourcesRequest.struct_class = Types::ListResourcesRequest
333
350
 
334
351
  ListResourcesResponse.add_member(:resources, Shapes::ShapeRef.new(shape: ResourceList, location_name: "resources"))
@@ -381,6 +398,7 @@ module Aws::RAM
381
398
  Resource.add_member(:status_message, Shapes::ShapeRef.new(shape: String, location_name: "statusMessage"))
382
399
  Resource.add_member(:creation_time, Shapes::ShapeRef.new(shape: DateTime, location_name: "creationTime"))
383
400
  Resource.add_member(:last_updated_time, Shapes::ShapeRef.new(shape: DateTime, location_name: "lastUpdatedTime"))
401
+ Resource.add_member(:resource_region_scope, Shapes::ShapeRef.new(shape: ResourceRegionScope, location_name: "resourceRegionScope"))
384
402
  Resource.struct_class = Types::Resource
385
403
 
386
404
  ResourceArnList.member = Shapes::ShapeRef.new(shape: String)
@@ -478,6 +496,7 @@ module Aws::RAM
478
496
 
479
497
  ServiceNameAndResourceType.add_member(:resource_type, Shapes::ShapeRef.new(shape: String, location_name: "resourceType"))
480
498
  ServiceNameAndResourceType.add_member(:service_name, Shapes::ShapeRef.new(shape: String, location_name: "serviceName"))
499
+ ServiceNameAndResourceType.add_member(:resource_region_scope, Shapes::ShapeRef.new(shape: ResourceRegionScope, location_name: "resourceRegionScope"))
481
500
  ServiceNameAndResourceType.struct_class = Types::ServiceNameAndResourceType
482
501
 
483
502
  ServiceNameAndResourceTypeList.member = Shapes::ShapeRef.new(shape: ServiceNameAndResourceType)
@@ -513,6 +532,9 @@ module Aws::RAM
513
532
 
514
533
  TagValueList.member = Shapes::ShapeRef.new(shape: TagValue)
515
534
 
535
+ ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
536
+ ThrottlingException.struct_class = Types::ThrottlingException
537
+
516
538
  UnknownResourceException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
517
539
  UnknownResourceException.struct_class = Types::UnknownResourceException
518
540
 
@@ -586,6 +608,7 @@ module Aws::RAM
586
608
  o.errors << Shapes::ShapeRef.new(shape: ServerInternalException)
587
609
  o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
588
610
  o.errors << Shapes::ShapeRef.new(shape: UnknownResourceException)
611
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
589
612
  end)
590
613
 
591
614
  api.add_operation(:associate_resource_share_permission, Seahorse::Model::Operation.new.tap do |o|
@@ -804,6 +827,27 @@ module Aws::RAM
804
827
  )
805
828
  end)
806
829
 
830
+ api.add_operation(:list_permission_versions, Seahorse::Model::Operation.new.tap do |o|
831
+ o.name = "ListPermissionVersions"
832
+ o.http_method = "POST"
833
+ o.http_request_uri = "/listpermissionversions"
834
+ o.input = Shapes::ShapeRef.new(shape: ListPermissionVersionsRequest)
835
+ o.output = Shapes::ShapeRef.new(shape: ListPermissionVersionsResponse)
836
+ o.errors << Shapes::ShapeRef.new(shape: MalformedArnException)
837
+ o.errors << Shapes::ShapeRef.new(shape: UnknownResourceException)
838
+ o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
839
+ o.errors << Shapes::ShapeRef.new(shape: ServerInternalException)
840
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
841
+ o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
842
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
843
+ o[:pager] = Aws::Pager.new(
844
+ limit_key: "max_results",
845
+ tokens: {
846
+ "next_token" => "next_token"
847
+ }
848
+ )
849
+ end)
850
+
807
851
  api.add_operation(:list_permissions, Seahorse::Model::Operation.new.tap do |o|
808
852
  o.name = "ListPermissions"
809
853
  o.http_method = "POST"
@@ -47,6 +47,7 @@ module Aws::RAM
47
47
  # * {ServiceUnavailableException}
48
48
  # * {TagLimitExceededException}
49
49
  # * {TagPolicyViolationException}
50
+ # * {ThrottlingException}
50
51
  # * {UnknownResourceException}
51
52
  #
52
53
  # Additionally, error classes are dynamically generated for service errors based on the error code
@@ -355,6 +356,21 @@ module Aws::RAM
355
356
  end
356
357
  end
357
358
 
359
+ class ThrottlingException < ServiceError
360
+
361
+ # @param [Seahorse::Client::RequestContext] context
362
+ # @param [String] message
363
+ # @param [Aws::RAM::Types::ThrottlingException] data
364
+ def initialize(context, message, data = Aws::EmptyStructure.new)
365
+ super(context, message, data)
366
+ end
367
+
368
+ # @return [String]
369
+ def message
370
+ @message || @data[:message]
371
+ end
372
+ end
373
+
358
374
  class UnknownResourceException < ServiceError
359
375
 
360
376
  # @param [Seahorse::Client::RequestContext] context