aws-sdk-ram 1.12.0 → 1.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,6 +13,8 @@ module Aws::RAM
13
13
 
14
14
  AcceptResourceShareInvitationRequest = Shapes::StructureShape.new(name: 'AcceptResourceShareInvitationRequest')
15
15
  AcceptResourceShareInvitationResponse = Shapes::StructureShape.new(name: 'AcceptResourceShareInvitationResponse')
16
+ AssociateResourceSharePermissionRequest = Shapes::StructureShape.new(name: 'AssociateResourceSharePermissionRequest')
17
+ AssociateResourceSharePermissionResponse = Shapes::StructureShape.new(name: 'AssociateResourceSharePermissionResponse')
16
18
  AssociateResourceShareRequest = Shapes::StructureShape.new(name: 'AssociateResourceShareRequest')
17
19
  AssociateResourceShareResponse = Shapes::StructureShape.new(name: 'AssociateResourceShareResponse')
18
20
  Boolean = Shapes::BooleanShape.new(name: 'Boolean')
@@ -21,10 +23,14 @@ module Aws::RAM
21
23
  DateTime = Shapes::TimestampShape.new(name: 'DateTime')
22
24
  DeleteResourceShareRequest = Shapes::StructureShape.new(name: 'DeleteResourceShareRequest')
23
25
  DeleteResourceShareResponse = Shapes::StructureShape.new(name: 'DeleteResourceShareResponse')
26
+ DisassociateResourceSharePermissionRequest = Shapes::StructureShape.new(name: 'DisassociateResourceSharePermissionRequest')
27
+ DisassociateResourceSharePermissionResponse = Shapes::StructureShape.new(name: 'DisassociateResourceSharePermissionResponse')
24
28
  DisassociateResourceShareRequest = Shapes::StructureShape.new(name: 'DisassociateResourceShareRequest')
25
29
  DisassociateResourceShareResponse = Shapes::StructureShape.new(name: 'DisassociateResourceShareResponse')
26
30
  EnableSharingWithAwsOrganizationRequest = Shapes::StructureShape.new(name: 'EnableSharingWithAwsOrganizationRequest')
27
31
  EnableSharingWithAwsOrganizationResponse = Shapes::StructureShape.new(name: 'EnableSharingWithAwsOrganizationResponse')
32
+ GetPermissionRequest = Shapes::StructureShape.new(name: 'GetPermissionRequest')
33
+ GetPermissionResponse = Shapes::StructureShape.new(name: 'GetPermissionResponse')
28
34
  GetResourcePoliciesRequest = Shapes::StructureShape.new(name: 'GetResourcePoliciesRequest')
29
35
  GetResourcePoliciesResponse = Shapes::StructureShape.new(name: 'GetResourcePoliciesResponse')
30
36
  GetResourceShareAssociationsRequest = Shapes::StructureShape.new(name: 'GetResourceShareAssociationsRequest')
@@ -34,6 +40,7 @@ module Aws::RAM
34
40
  GetResourceSharesRequest = Shapes::StructureShape.new(name: 'GetResourceSharesRequest')
35
41
  GetResourceSharesResponse = Shapes::StructureShape.new(name: 'GetResourceSharesResponse')
36
42
  IdempotentParameterMismatchException = Shapes::StructureShape.new(name: 'IdempotentParameterMismatchException')
43
+ Integer = Shapes::IntegerShape.new(name: 'Integer')
37
44
  InvalidClientTokenException = Shapes::StructureShape.new(name: 'InvalidClientTokenException')
38
45
  InvalidMaxResultsException = Shapes::StructureShape.new(name: 'InvalidMaxResultsException')
39
46
  InvalidNextTokenException = Shapes::StructureShape.new(name: 'InvalidNextTokenException')
@@ -42,19 +49,28 @@ module Aws::RAM
42
49
  InvalidStateTransitionException = Shapes::StructureShape.new(name: 'InvalidStateTransitionException')
43
50
  ListPendingInvitationResourcesRequest = Shapes::StructureShape.new(name: 'ListPendingInvitationResourcesRequest')
44
51
  ListPendingInvitationResourcesResponse = Shapes::StructureShape.new(name: 'ListPendingInvitationResourcesResponse')
52
+ ListPermissionsRequest = Shapes::StructureShape.new(name: 'ListPermissionsRequest')
53
+ ListPermissionsResponse = Shapes::StructureShape.new(name: 'ListPermissionsResponse')
45
54
  ListPrincipalsRequest = Shapes::StructureShape.new(name: 'ListPrincipalsRequest')
46
55
  ListPrincipalsResponse = Shapes::StructureShape.new(name: 'ListPrincipalsResponse')
56
+ ListResourceSharePermissionsRequest = Shapes::StructureShape.new(name: 'ListResourceSharePermissionsRequest')
57
+ ListResourceSharePermissionsResponse = Shapes::StructureShape.new(name: 'ListResourceSharePermissionsResponse')
58
+ ListResourceTypesRequest = Shapes::StructureShape.new(name: 'ListResourceTypesRequest')
59
+ ListResourceTypesResponse = Shapes::StructureShape.new(name: 'ListResourceTypesResponse')
47
60
  ListResourcesRequest = Shapes::StructureShape.new(name: 'ListResourcesRequest')
48
61
  ListResourcesResponse = Shapes::StructureShape.new(name: 'ListResourcesResponse')
49
62
  MalformedArnException = Shapes::StructureShape.new(name: 'MalformedArnException')
50
63
  MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
51
64
  MissingRequiredParameterException = Shapes::StructureShape.new(name: 'MissingRequiredParameterException')
52
65
  OperationNotPermittedException = Shapes::StructureShape.new(name: 'OperationNotPermittedException')
66
+ PermissionArnList = Shapes::ListShape.new(name: 'PermissionArnList')
53
67
  Policy = Shapes::StringShape.new(name: 'Policy')
54
68
  PolicyList = Shapes::ListShape.new(name: 'PolicyList')
55
69
  Principal = Shapes::StructureShape.new(name: 'Principal')
56
70
  PrincipalArnOrIdList = Shapes::ListShape.new(name: 'PrincipalArnOrIdList')
57
71
  PrincipalList = Shapes::ListShape.new(name: 'PrincipalList')
72
+ PromoteResourceShareCreatedFromPolicyRequest = Shapes::StructureShape.new(name: 'PromoteResourceShareCreatedFromPolicyRequest')
73
+ PromoteResourceShareCreatedFromPolicyResponse = Shapes::StructureShape.new(name: 'PromoteResourceShareCreatedFromPolicyResponse')
58
74
  RejectResourceShareInvitationRequest = Shapes::StructureShape.new(name: 'RejectResourceShareInvitationRequest')
59
75
  RejectResourceShareInvitationResponse = Shapes::StructureShape.new(name: 'RejectResourceShareInvitationResponse')
60
76
  Resource = Shapes::StructureShape.new(name: 'Resource')
@@ -68,6 +84,7 @@ module Aws::RAM
68
84
  ResourceShareAssociationList = Shapes::ListShape.new(name: 'ResourceShareAssociationList')
69
85
  ResourceShareAssociationStatus = Shapes::StringShape.new(name: 'ResourceShareAssociationStatus')
70
86
  ResourceShareAssociationType = Shapes::StringShape.new(name: 'ResourceShareAssociationType')
87
+ ResourceShareFeatureSet = Shapes::StringShape.new(name: 'ResourceShareFeatureSet')
71
88
  ResourceShareInvitation = Shapes::StructureShape.new(name: 'ResourceShareInvitation')
72
89
  ResourceShareInvitationAlreadyAcceptedException = Shapes::StructureShape.new(name: 'ResourceShareInvitationAlreadyAcceptedException')
73
90
  ResourceShareInvitationAlreadyRejectedException = Shapes::StructureShape.new(name: 'ResourceShareInvitationAlreadyRejectedException')
@@ -78,9 +95,14 @@ module Aws::RAM
78
95
  ResourceShareInvitationStatus = Shapes::StringShape.new(name: 'ResourceShareInvitationStatus')
79
96
  ResourceShareLimitExceededException = Shapes::StructureShape.new(name: 'ResourceShareLimitExceededException')
80
97
  ResourceShareList = Shapes::ListShape.new(name: 'ResourceShareList')
98
+ ResourceSharePermissionDetail = Shapes::StructureShape.new(name: 'ResourceSharePermissionDetail')
99
+ ResourceSharePermissionList = Shapes::ListShape.new(name: 'ResourceSharePermissionList')
100
+ ResourceSharePermissionSummary = Shapes::StructureShape.new(name: 'ResourceSharePermissionSummary')
81
101
  ResourceShareStatus = Shapes::StringShape.new(name: 'ResourceShareStatus')
82
102
  ResourceStatus = Shapes::StringShape.new(name: 'ResourceStatus')
83
103
  ServerInternalException = Shapes::StructureShape.new(name: 'ServerInternalException')
104
+ ServiceNameAndResourceType = Shapes::StructureShape.new(name: 'ServiceNameAndResourceType')
105
+ ServiceNameAndResourceTypeList = Shapes::ListShape.new(name: 'ServiceNameAndResourceTypeList')
84
106
  ServiceUnavailableException = Shapes::StructureShape.new(name: 'ServiceUnavailableException')
85
107
  String = Shapes::StringShape.new(name: 'String')
86
108
  Tag = Shapes::StructureShape.new(name: 'Tag')
@@ -109,6 +131,16 @@ module Aws::RAM
109
131
  AcceptResourceShareInvitationResponse.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location_name: "clientToken"))
110
132
  AcceptResourceShareInvitationResponse.struct_class = Types::AcceptResourceShareInvitationResponse
111
133
 
134
+ AssociateResourceSharePermissionRequest.add_member(:resource_share_arn, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceShareArn"))
135
+ AssociateResourceSharePermissionRequest.add_member(:permission_arn, Shapes::ShapeRef.new(shape: String, required: true, location_name: "permissionArn"))
136
+ AssociateResourceSharePermissionRequest.add_member(:replace, Shapes::ShapeRef.new(shape: Boolean, location_name: "replace"))
137
+ AssociateResourceSharePermissionRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location_name: "clientToken"))
138
+ AssociateResourceSharePermissionRequest.struct_class = Types::AssociateResourceSharePermissionRequest
139
+
140
+ AssociateResourceSharePermissionResponse.add_member(:return_value, Shapes::ShapeRef.new(shape: Boolean, location_name: "returnValue"))
141
+ AssociateResourceSharePermissionResponse.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location_name: "clientToken"))
142
+ AssociateResourceSharePermissionResponse.struct_class = Types::AssociateResourceSharePermissionResponse
143
+
112
144
  AssociateResourceShareRequest.add_member(:resource_share_arn, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceShareArn"))
113
145
  AssociateResourceShareRequest.add_member(:resource_arns, Shapes::ShapeRef.new(shape: ResourceArnList, location_name: "resourceArns"))
114
146
  AssociateResourceShareRequest.add_member(:principals, Shapes::ShapeRef.new(shape: PrincipalArnOrIdList, location_name: "principals"))
@@ -125,6 +157,7 @@ module Aws::RAM
125
157
  CreateResourceShareRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tags"))
126
158
  CreateResourceShareRequest.add_member(:allow_external_principals, Shapes::ShapeRef.new(shape: Boolean, location_name: "allowExternalPrincipals"))
127
159
  CreateResourceShareRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location_name: "clientToken"))
160
+ CreateResourceShareRequest.add_member(:permission_arns, Shapes::ShapeRef.new(shape: PermissionArnList, location_name: "permissionArns"))
128
161
  CreateResourceShareRequest.struct_class = Types::CreateResourceShareRequest
129
162
 
130
163
  CreateResourceShareResponse.add_member(:resource_share, Shapes::ShapeRef.new(shape: ResourceShare, location_name: "resourceShare"))
@@ -139,6 +172,15 @@ module Aws::RAM
139
172
  DeleteResourceShareResponse.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location_name: "clientToken"))
140
173
  DeleteResourceShareResponse.struct_class = Types::DeleteResourceShareResponse
141
174
 
175
+ DisassociateResourceSharePermissionRequest.add_member(:resource_share_arn, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceShareArn"))
176
+ DisassociateResourceSharePermissionRequest.add_member(:permission_arn, Shapes::ShapeRef.new(shape: String, required: true, location_name: "permissionArn"))
177
+ DisassociateResourceSharePermissionRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location_name: "clientToken"))
178
+ DisassociateResourceSharePermissionRequest.struct_class = Types::DisassociateResourceSharePermissionRequest
179
+
180
+ DisassociateResourceSharePermissionResponse.add_member(:return_value, Shapes::ShapeRef.new(shape: Boolean, location_name: "returnValue"))
181
+ DisassociateResourceSharePermissionResponse.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location_name: "clientToken"))
182
+ DisassociateResourceSharePermissionResponse.struct_class = Types::DisassociateResourceSharePermissionResponse
183
+
142
184
  DisassociateResourceShareRequest.add_member(:resource_share_arn, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceShareArn"))
143
185
  DisassociateResourceShareRequest.add_member(:resource_arns, Shapes::ShapeRef.new(shape: ResourceArnList, location_name: "resourceArns"))
144
186
  DisassociateResourceShareRequest.add_member(:principals, Shapes::ShapeRef.new(shape: PrincipalArnOrIdList, location_name: "principals"))
@@ -154,6 +196,13 @@ module Aws::RAM
154
196
  EnableSharingWithAwsOrganizationResponse.add_member(:return_value, Shapes::ShapeRef.new(shape: Boolean, location_name: "returnValue"))
155
197
  EnableSharingWithAwsOrganizationResponse.struct_class = Types::EnableSharingWithAwsOrganizationResponse
156
198
 
199
+ GetPermissionRequest.add_member(:permission_arn, Shapes::ShapeRef.new(shape: String, required: true, location_name: "permissionArn"))
200
+ GetPermissionRequest.add_member(:permission_version, Shapes::ShapeRef.new(shape: Integer, location_name: "permissionVersion"))
201
+ GetPermissionRequest.struct_class = Types::GetPermissionRequest
202
+
203
+ GetPermissionResponse.add_member(:permission, Shapes::ShapeRef.new(shape: ResourceSharePermissionDetail, location_name: "permission"))
204
+ GetPermissionResponse.struct_class = Types::GetPermissionResponse
205
+
157
206
  GetResourcePoliciesRequest.add_member(:resource_arns, Shapes::ShapeRef.new(shape: ResourceArnList, required: true, location_name: "resourceArns"))
158
207
  GetResourcePoliciesRequest.add_member(:principal, Shapes::ShapeRef.new(shape: String, location_name: "principal"))
159
208
  GetResourcePoliciesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
@@ -230,6 +279,15 @@ module Aws::RAM
230
279
  ListPendingInvitationResourcesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
231
280
  ListPendingInvitationResourcesResponse.struct_class = Types::ListPendingInvitationResourcesResponse
232
281
 
282
+ ListPermissionsRequest.add_member(:resource_type, Shapes::ShapeRef.new(shape: String, location_name: "resourceType"))
283
+ ListPermissionsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
284
+ ListPermissionsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "maxResults"))
285
+ ListPermissionsRequest.struct_class = Types::ListPermissionsRequest
286
+
287
+ ListPermissionsResponse.add_member(:permissions, Shapes::ShapeRef.new(shape: ResourceSharePermissionList, location_name: "permissions"))
288
+ ListPermissionsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
289
+ ListPermissionsResponse.struct_class = Types::ListPermissionsResponse
290
+
233
291
  ListPrincipalsRequest.add_member(:resource_owner, Shapes::ShapeRef.new(shape: ResourceOwner, required: true, location_name: "resourceOwner"))
234
292
  ListPrincipalsRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: String, location_name: "resourceArn"))
235
293
  ListPrincipalsRequest.add_member(:principals, Shapes::ShapeRef.new(shape: PrincipalArnOrIdList, location_name: "principals"))
@@ -243,6 +301,23 @@ module Aws::RAM
243
301
  ListPrincipalsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
244
302
  ListPrincipalsResponse.struct_class = Types::ListPrincipalsResponse
245
303
 
304
+ ListResourceSharePermissionsRequest.add_member(:resource_share_arn, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceShareArn"))
305
+ ListResourceSharePermissionsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
306
+ ListResourceSharePermissionsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "maxResults"))
307
+ ListResourceSharePermissionsRequest.struct_class = Types::ListResourceSharePermissionsRequest
308
+
309
+ ListResourceSharePermissionsResponse.add_member(:permissions, Shapes::ShapeRef.new(shape: ResourceSharePermissionList, location_name: "permissions"))
310
+ ListResourceSharePermissionsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
311
+ ListResourceSharePermissionsResponse.struct_class = Types::ListResourceSharePermissionsResponse
312
+
313
+ ListResourceTypesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
314
+ ListResourceTypesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "maxResults"))
315
+ ListResourceTypesRequest.struct_class = Types::ListResourceTypesRequest
316
+
317
+ ListResourceTypesResponse.add_member(:resource_types, Shapes::ShapeRef.new(shape: ServiceNameAndResourceTypeList, location_name: "resourceTypes"))
318
+ ListResourceTypesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
319
+ ListResourceTypesResponse.struct_class = Types::ListResourceTypesResponse
320
+
246
321
  ListResourcesRequest.add_member(:resource_owner, Shapes::ShapeRef.new(shape: ResourceOwner, required: true, location_name: "resourceOwner"))
247
322
  ListResourcesRequest.add_member(:principal, Shapes::ShapeRef.new(shape: String, location_name: "principal"))
248
323
  ListResourcesRequest.add_member(:resource_type, Shapes::ShapeRef.new(shape: String, location_name: "resourceType"))
@@ -265,6 +340,8 @@ module Aws::RAM
265
340
  OperationNotPermittedException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
266
341
  OperationNotPermittedException.struct_class = Types::OperationNotPermittedException
267
342
 
343
+ PermissionArnList.member = Shapes::ShapeRef.new(shape: String)
344
+
268
345
  PolicyList.member = Shapes::ShapeRef.new(shape: Policy)
269
346
 
270
347
  Principal.add_member(:id, Shapes::ShapeRef.new(shape: String, location_name: "id"))
@@ -278,6 +355,12 @@ module Aws::RAM
278
355
 
279
356
  PrincipalList.member = Shapes::ShapeRef.new(shape: Principal)
280
357
 
358
+ PromoteResourceShareCreatedFromPolicyRequest.add_member(:resource_share_arn, Shapes::ShapeRef.new(shape: String, required: true, location: "querystring", location_name: "resourceShareArn"))
359
+ PromoteResourceShareCreatedFromPolicyRequest.struct_class = Types::PromoteResourceShareCreatedFromPolicyRequest
360
+
361
+ PromoteResourceShareCreatedFromPolicyResponse.add_member(:return_value, Shapes::ShapeRef.new(shape: Boolean, location_name: "returnValue"))
362
+ PromoteResourceShareCreatedFromPolicyResponse.struct_class = Types::PromoteResourceShareCreatedFromPolicyResponse
363
+
281
364
  RejectResourceShareInvitationRequest.add_member(:resource_share_invitation_arn, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceShareInvitationArn"))
282
365
  RejectResourceShareInvitationRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location_name: "clientToken"))
283
366
  RejectResourceShareInvitationRequest.struct_class = Types::RejectResourceShareInvitationRequest
@@ -289,6 +372,7 @@ module Aws::RAM
289
372
  Resource.add_member(:arn, Shapes::ShapeRef.new(shape: String, location_name: "arn"))
290
373
  Resource.add_member(:type, Shapes::ShapeRef.new(shape: String, location_name: "type"))
291
374
  Resource.add_member(:resource_share_arn, Shapes::ShapeRef.new(shape: String, location_name: "resourceShareArn"))
375
+ Resource.add_member(:resource_group_arn, Shapes::ShapeRef.new(shape: String, location_name: "resourceGroupArn"))
292
376
  Resource.add_member(:status, Shapes::ShapeRef.new(shape: ResourceStatus, location_name: "status"))
293
377
  Resource.add_member(:status_message, Shapes::ShapeRef.new(shape: String, location_name: "statusMessage"))
294
378
  Resource.add_member(:creation_time, Shapes::ShapeRef.new(shape: DateTime, location_name: "creationTime"))
@@ -311,6 +395,7 @@ module Aws::RAM
311
395
  ResourceShare.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tags"))
312
396
  ResourceShare.add_member(:creation_time, Shapes::ShapeRef.new(shape: DateTime, location_name: "creationTime"))
313
397
  ResourceShare.add_member(:last_updated_time, Shapes::ShapeRef.new(shape: DateTime, location_name: "lastUpdatedTime"))
398
+ ResourceShare.add_member(:feature_set, Shapes::ShapeRef.new(shape: ResourceShareFeatureSet, location_name: "featureSet"))
314
399
  ResourceShare.struct_class = Types::ResourceShare
315
400
 
316
401
  ResourceShareArnList.member = Shapes::ShapeRef.new(shape: String)
@@ -359,9 +444,37 @@ module Aws::RAM
359
444
 
360
445
  ResourceShareList.member = Shapes::ShapeRef.new(shape: ResourceShare)
361
446
 
447
+ ResourceSharePermissionDetail.add_member(:arn, Shapes::ShapeRef.new(shape: String, location_name: "arn"))
448
+ ResourceSharePermissionDetail.add_member(:version, Shapes::ShapeRef.new(shape: String, location_name: "version"))
449
+ ResourceSharePermissionDetail.add_member(:default_version, Shapes::ShapeRef.new(shape: Boolean, location_name: "defaultVersion"))
450
+ ResourceSharePermissionDetail.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "name"))
451
+ ResourceSharePermissionDetail.add_member(:resource_type, Shapes::ShapeRef.new(shape: String, location_name: "resourceType"))
452
+ ResourceSharePermissionDetail.add_member(:permission, Shapes::ShapeRef.new(shape: String, location_name: "permission"))
453
+ ResourceSharePermissionDetail.add_member(:creation_time, Shapes::ShapeRef.new(shape: DateTime, location_name: "creationTime"))
454
+ ResourceSharePermissionDetail.add_member(:last_updated_time, Shapes::ShapeRef.new(shape: DateTime, location_name: "lastUpdatedTime"))
455
+ ResourceSharePermissionDetail.struct_class = Types::ResourceSharePermissionDetail
456
+
457
+ ResourceSharePermissionList.member = Shapes::ShapeRef.new(shape: ResourceSharePermissionSummary)
458
+
459
+ ResourceSharePermissionSummary.add_member(:arn, Shapes::ShapeRef.new(shape: String, location_name: "arn"))
460
+ ResourceSharePermissionSummary.add_member(:version, Shapes::ShapeRef.new(shape: String, location_name: "version"))
461
+ ResourceSharePermissionSummary.add_member(:default_version, Shapes::ShapeRef.new(shape: Boolean, location_name: "defaultVersion"))
462
+ ResourceSharePermissionSummary.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "name"))
463
+ ResourceSharePermissionSummary.add_member(:resource_type, Shapes::ShapeRef.new(shape: String, location_name: "resourceType"))
464
+ ResourceSharePermissionSummary.add_member(:status, Shapes::ShapeRef.new(shape: String, location_name: "status"))
465
+ ResourceSharePermissionSummary.add_member(:creation_time, Shapes::ShapeRef.new(shape: DateTime, location_name: "creationTime"))
466
+ ResourceSharePermissionSummary.add_member(:last_updated_time, Shapes::ShapeRef.new(shape: DateTime, location_name: "lastUpdatedTime"))
467
+ ResourceSharePermissionSummary.struct_class = Types::ResourceSharePermissionSummary
468
+
362
469
  ServerInternalException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
363
470
  ServerInternalException.struct_class = Types::ServerInternalException
364
471
 
472
+ ServiceNameAndResourceType.add_member(:resource_type, Shapes::ShapeRef.new(shape: String, location_name: "resourceType"))
473
+ ServiceNameAndResourceType.add_member(:service_name, Shapes::ShapeRef.new(shape: String, location_name: "serviceName"))
474
+ ServiceNameAndResourceType.struct_class = Types::ServiceNameAndResourceType
475
+
476
+ ServiceNameAndResourceTypeList.member = Shapes::ShapeRef.new(shape: ServiceNameAndResourceType)
477
+
365
478
  ServiceUnavailableException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
366
479
  ServiceUnavailableException.struct_class = Types::ServiceUnavailableException
367
480
 
@@ -468,6 +581,21 @@ module Aws::RAM
468
581
  o.errors << Shapes::ShapeRef.new(shape: UnknownResourceException)
469
582
  end)
470
583
 
584
+ api.add_operation(:associate_resource_share_permission, Seahorse::Model::Operation.new.tap do |o|
585
+ o.name = "AssociateResourceSharePermission"
586
+ o.http_method = "POST"
587
+ o.http_request_uri = "/associateresourcesharepermission"
588
+ o.input = Shapes::ShapeRef.new(shape: AssociateResourceSharePermissionRequest)
589
+ o.output = Shapes::ShapeRef.new(shape: AssociateResourceSharePermissionResponse)
590
+ o.errors << Shapes::ShapeRef.new(shape: MalformedArnException)
591
+ o.errors << Shapes::ShapeRef.new(shape: UnknownResourceException)
592
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
593
+ o.errors << Shapes::ShapeRef.new(shape: InvalidClientTokenException)
594
+ o.errors << Shapes::ShapeRef.new(shape: ServerInternalException)
595
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
596
+ o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
597
+ end)
598
+
471
599
  api.add_operation(:create_resource_share, Seahorse::Model::Operation.new.tap do |o|
472
600
  o.name = "CreateResourceShare"
473
601
  o.http_method = "POST"
@@ -522,6 +650,21 @@ module Aws::RAM
522
650
  o.errors << Shapes::ShapeRef.new(shape: UnknownResourceException)
523
651
  end)
524
652
 
653
+ api.add_operation(:disassociate_resource_share_permission, Seahorse::Model::Operation.new.tap do |o|
654
+ o.name = "DisassociateResourceSharePermission"
655
+ o.http_method = "POST"
656
+ o.http_request_uri = "/disassociateresourcesharepermission"
657
+ o.input = Shapes::ShapeRef.new(shape: DisassociateResourceSharePermissionRequest)
658
+ o.output = Shapes::ShapeRef.new(shape: DisassociateResourceSharePermissionResponse)
659
+ o.errors << Shapes::ShapeRef.new(shape: MalformedArnException)
660
+ o.errors << Shapes::ShapeRef.new(shape: UnknownResourceException)
661
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
662
+ o.errors << Shapes::ShapeRef.new(shape: InvalidClientTokenException)
663
+ o.errors << Shapes::ShapeRef.new(shape: ServerInternalException)
664
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
665
+ o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
666
+ end)
667
+
525
668
  api.add_operation(:enable_sharing_with_aws_organization, Seahorse::Model::Operation.new.tap do |o|
526
669
  o.name = "EnableSharingWithAwsOrganization"
527
670
  o.http_method = "POST"
@@ -533,6 +676,20 @@ module Aws::RAM
533
676
  o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
534
677
  end)
535
678
 
679
+ api.add_operation(:get_permission, Seahorse::Model::Operation.new.tap do |o|
680
+ o.name = "GetPermission"
681
+ o.http_method = "POST"
682
+ o.http_request_uri = "/getpermission"
683
+ o.input = Shapes::ShapeRef.new(shape: GetPermissionRequest)
684
+ o.output = Shapes::ShapeRef.new(shape: GetPermissionResponse)
685
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
686
+ o.errors << Shapes::ShapeRef.new(shape: MalformedArnException)
687
+ o.errors << Shapes::ShapeRef.new(shape: UnknownResourceException)
688
+ o.errors << Shapes::ShapeRef.new(shape: ServerInternalException)
689
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
690
+ o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
691
+ end)
692
+
536
693
  api.add_operation(:get_resource_policies, Seahorse::Model::Operation.new.tap do |o|
537
694
  o.name = "GetResourcePolicies"
538
695
  o.http_method = "POST"
@@ -542,6 +699,7 @@ module Aws::RAM
542
699
  o.errors << Shapes::ShapeRef.new(shape: MalformedArnException)
543
700
  o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
544
701
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
702
+ o.errors << Shapes::ShapeRef.new(shape: ResourceArnNotFoundException)
545
703
  o.errors << Shapes::ShapeRef.new(shape: ServerInternalException)
546
704
  o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
547
705
  o[:pager] = Aws::Pager.new(
@@ -582,6 +740,7 @@ module Aws::RAM
582
740
  o.errors << Shapes::ShapeRef.new(shape: ResourceShareInvitationArnNotFoundException)
583
741
  o.errors << Shapes::ShapeRef.new(shape: InvalidMaxResultsException)
584
742
  o.errors << Shapes::ShapeRef.new(shape: MalformedArnException)
743
+ o.errors << Shapes::ShapeRef.new(shape: UnknownResourceException)
585
744
  o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
586
745
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
587
746
  o.errors << Shapes::ShapeRef.new(shape: ServerInternalException)
@@ -637,6 +796,19 @@ module Aws::RAM
637
796
  )
638
797
  end)
639
798
 
799
+ api.add_operation(:list_permissions, Seahorse::Model::Operation.new.tap do |o|
800
+ o.name = "ListPermissions"
801
+ o.http_method = "POST"
802
+ o.http_request_uri = "/listpermissions"
803
+ o.input = Shapes::ShapeRef.new(shape: ListPermissionsRequest)
804
+ o.output = Shapes::ShapeRef.new(shape: ListPermissionsResponse)
805
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
806
+ o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
807
+ o.errors << Shapes::ShapeRef.new(shape: ServerInternalException)
808
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
809
+ o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
810
+ end)
811
+
640
812
  api.add_operation(:list_principals, Seahorse::Model::Operation.new.tap do |o|
641
813
  o.name = "ListPrincipals"
642
814
  o.http_method = "POST"
@@ -657,6 +829,33 @@ module Aws::RAM
657
829
  )
658
830
  end)
659
831
 
832
+ api.add_operation(:list_resource_share_permissions, Seahorse::Model::Operation.new.tap do |o|
833
+ o.name = "ListResourceSharePermissions"
834
+ o.http_method = "POST"
835
+ o.http_request_uri = "/listresourcesharepermissions"
836
+ o.input = Shapes::ShapeRef.new(shape: ListResourceSharePermissionsRequest)
837
+ o.output = Shapes::ShapeRef.new(shape: ListResourceSharePermissionsResponse)
838
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
839
+ o.errors << Shapes::ShapeRef.new(shape: MalformedArnException)
840
+ o.errors << Shapes::ShapeRef.new(shape: UnknownResourceException)
841
+ o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
842
+ o.errors << Shapes::ShapeRef.new(shape: ServerInternalException)
843
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
844
+ o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
845
+ end)
846
+
847
+ api.add_operation(:list_resource_types, Seahorse::Model::Operation.new.tap do |o|
848
+ o.name = "ListResourceTypes"
849
+ o.http_method = "POST"
850
+ o.http_request_uri = "/listresourcetypes"
851
+ o.input = Shapes::ShapeRef.new(shape: ListResourceTypesRequest)
852
+ o.output = Shapes::ShapeRef.new(shape: ListResourceTypesResponse)
853
+ o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
854
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
855
+ o.errors << Shapes::ShapeRef.new(shape: ServerInternalException)
856
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
857
+ end)
858
+
660
859
  api.add_operation(:list_resources, Seahorse::Model::Operation.new.tap do |o|
661
860
  o.name = "ListResources"
662
861
  o.http_method = "POST"
@@ -678,6 +877,21 @@ module Aws::RAM
678
877
  )
679
878
  end)
680
879
 
880
+ api.add_operation(:promote_resource_share_created_from_policy, Seahorse::Model::Operation.new.tap do |o|
881
+ o.name = "PromoteResourceShareCreatedFromPolicy"
882
+ o.http_method = "POST"
883
+ o.http_request_uri = "/promoteresourcesharecreatedfrompolicy"
884
+ o.input = Shapes::ShapeRef.new(shape: PromoteResourceShareCreatedFromPolicyRequest)
885
+ o.output = Shapes::ShapeRef.new(shape: PromoteResourceShareCreatedFromPolicyResponse)
886
+ o.errors << Shapes::ShapeRef.new(shape: MalformedArnException)
887
+ o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
888
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
889
+ o.errors << Shapes::ShapeRef.new(shape: MissingRequiredParameterException)
890
+ o.errors << Shapes::ShapeRef.new(shape: ServerInternalException)
891
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
892
+ o.errors << Shapes::ShapeRef.new(shape: UnknownResourceException)
893
+ end)
894
+
681
895
  api.add_operation(:reject_resource_share_invitation, Seahorse::Model::Operation.new.tap do |o|
682
896
  o.name = "RejectResourceShareInvitation"
683
897
  o.http_method = "POST"
@@ -6,6 +6,49 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::RAM
9
+
10
+ # When RAM returns an error response, the Ruby SDK constructs and raises an error.
11
+ # These errors all extend Aws::RAM::Errors::ServiceError < {Aws::Errors::ServiceError}
12
+ #
13
+ # You can rescue all RAM errors using ServiceError:
14
+ #
15
+ # begin
16
+ # # do stuff
17
+ # rescue Aws::RAM::Errors::ServiceError
18
+ # # rescues all RAM API errors
19
+ # end
20
+ #
21
+ #
22
+ # ## Request Context
23
+ # ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
24
+ # information about the request that generated the error.
25
+ # See {Seahorse::Client::RequestContext} for more information.
26
+ #
27
+ # ## Error Classes
28
+ # * {IdempotentParameterMismatchException}
29
+ # * {InvalidClientTokenException}
30
+ # * {InvalidMaxResultsException}
31
+ # * {InvalidNextTokenException}
32
+ # * {InvalidParameterException}
33
+ # * {InvalidResourceTypeException}
34
+ # * {InvalidStateTransitionException}
35
+ # * {MalformedArnException}
36
+ # * {MissingRequiredParameterException}
37
+ # * {OperationNotPermittedException}
38
+ # * {ResourceArnNotFoundException}
39
+ # * {ResourceShareInvitationAlreadyAcceptedException}
40
+ # * {ResourceShareInvitationAlreadyRejectedException}
41
+ # * {ResourceShareInvitationArnNotFoundException}
42
+ # * {ResourceShareInvitationExpiredException}
43
+ # * {ResourceShareLimitExceededException}
44
+ # * {ServerInternalException}
45
+ # * {ServiceUnavailableException}
46
+ # * {TagLimitExceededException}
47
+ # * {TagPolicyViolationException}
48
+ # * {UnknownResourceException}
49
+ #
50
+ # Additionally, error classes are dynamically generated for service errors based on the error code
51
+ # if they are not defined above.
9
52
  module Errors
10
53
 
11
54
  extend Aws::Errors::DynamicErrors
@@ -23,7 +66,6 @@ module Aws::RAM
23
66
  def message
24
67
  @message || @data[:message]
25
68
  end
26
-
27
69
  end
28
70
 
29
71
  class InvalidClientTokenException < ServiceError
@@ -39,7 +81,6 @@ module Aws::RAM
39
81
  def message
40
82
  @message || @data[:message]
41
83
  end
42
-
43
84
  end
44
85
 
45
86
  class InvalidMaxResultsException < ServiceError
@@ -55,7 +96,6 @@ module Aws::RAM
55
96
  def message
56
97
  @message || @data[:message]
57
98
  end
58
-
59
99
  end
60
100
 
61
101
  class InvalidNextTokenException < ServiceError
@@ -71,7 +111,6 @@ module Aws::RAM
71
111
  def message
72
112
  @message || @data[:message]
73
113
  end
74
-
75
114
  end
76
115
 
77
116
  class InvalidParameterException < ServiceError
@@ -87,7 +126,6 @@ module Aws::RAM
87
126
  def message
88
127
  @message || @data[:message]
89
128
  end
90
-
91
129
  end
92
130
 
93
131
  class InvalidResourceTypeException < ServiceError
@@ -103,7 +141,6 @@ module Aws::RAM
103
141
  def message
104
142
  @message || @data[:message]
105
143
  end
106
-
107
144
  end
108
145
 
109
146
  class InvalidStateTransitionException < ServiceError
@@ -119,7 +156,6 @@ module Aws::RAM
119
156
  def message
120
157
  @message || @data[:message]
121
158
  end
122
-
123
159
  end
124
160
 
125
161
  class MalformedArnException < ServiceError
@@ -135,7 +171,6 @@ module Aws::RAM
135
171
  def message
136
172
  @message || @data[:message]
137
173
  end
138
-
139
174
  end
140
175
 
141
176
  class MissingRequiredParameterException < ServiceError
@@ -151,7 +186,6 @@ module Aws::RAM
151
186
  def message
152
187
  @message || @data[:message]
153
188
  end
154
-
155
189
  end
156
190
 
157
191
  class OperationNotPermittedException < ServiceError
@@ -167,7 +201,6 @@ module Aws::RAM
167
201
  def message
168
202
  @message || @data[:message]
169
203
  end
170
-
171
204
  end
172
205
 
173
206
  class ResourceArnNotFoundException < ServiceError
@@ -183,7 +216,6 @@ module Aws::RAM
183
216
  def message
184
217
  @message || @data[:message]
185
218
  end
186
-
187
219
  end
188
220
 
189
221
  class ResourceShareInvitationAlreadyAcceptedException < ServiceError
@@ -199,7 +231,6 @@ module Aws::RAM
199
231
  def message
200
232
  @message || @data[:message]
201
233
  end
202
-
203
234
  end
204
235
 
205
236
  class ResourceShareInvitationAlreadyRejectedException < ServiceError
@@ -215,7 +246,6 @@ module Aws::RAM
215
246
  def message
216
247
  @message || @data[:message]
217
248
  end
218
-
219
249
  end
220
250
 
221
251
  class ResourceShareInvitationArnNotFoundException < ServiceError
@@ -231,7 +261,6 @@ module Aws::RAM
231
261
  def message
232
262
  @message || @data[:message]
233
263
  end
234
-
235
264
  end
236
265
 
237
266
  class ResourceShareInvitationExpiredException < ServiceError
@@ -247,7 +276,6 @@ module Aws::RAM
247
276
  def message
248
277
  @message || @data[:message]
249
278
  end
250
-
251
279
  end
252
280
 
253
281
  class ResourceShareLimitExceededException < ServiceError
@@ -263,7 +291,6 @@ module Aws::RAM
263
291
  def message
264
292
  @message || @data[:message]
265
293
  end
266
-
267
294
  end
268
295
 
269
296
  class ServerInternalException < ServiceError
@@ -279,7 +306,6 @@ module Aws::RAM
279
306
  def message
280
307
  @message || @data[:message]
281
308
  end
282
-
283
309
  end
284
310
 
285
311
  class ServiceUnavailableException < ServiceError
@@ -295,7 +321,6 @@ module Aws::RAM
295
321
  def message
296
322
  @message || @data[:message]
297
323
  end
298
-
299
324
  end
300
325
 
301
326
  class TagLimitExceededException < ServiceError
@@ -311,7 +336,6 @@ module Aws::RAM
311
336
  def message
312
337
  @message || @data[:message]
313
338
  end
314
-
315
339
  end
316
340
 
317
341
  class TagPolicyViolationException < ServiceError
@@ -327,7 +351,6 @@ module Aws::RAM
327
351
  def message
328
352
  @message || @data[:message]
329
353
  end
330
-
331
354
  end
332
355
 
333
356
  class UnknownResourceException < ServiceError
@@ -343,7 +366,6 @@ module Aws::RAM
343
366
  def message
344
367
  @message || @data[:message]
345
368
  end
346
-
347
369
  end
348
370
 
349
371
  end