aws-sdk-ram 1.10.0 → 1.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-ram.rb +1 -1
- data/lib/aws-sdk-ram/client.rb +86 -17
- data/lib/aws-sdk-ram/client_api.rb +46 -1
- data/lib/aws-sdk-ram/errors.rb +16 -0
- data/lib/aws-sdk-ram/types.rb +91 -12
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c3f9c2c699debe9008043c05c31005347a53ad0e
|
4
|
+
data.tar.gz: 10b37fdfeba02b1611fc6a495f395870ffdf3ffb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 152d1081b186a2c24b2b1d576613406f8f9b01d4edf384bfe1fc811799575f18301217b73938b5d7e3477001311cc2caac2e8262b4a57d21e473f7125f6a2d65
|
7
|
+
data.tar.gz: 93e26a12fa3dd10eb18cdf6dd06b18f1b569c7de476f6bf88c8be2f9a020643ad00e18ee419d54a2c3c2c60689d778b24c9da4a196d59a07691d50c8802d0f96
|
data/lib/aws-sdk-ram.rb
CHANGED
data/lib/aws-sdk-ram/client.rb
CHANGED
@@ -286,6 +286,7 @@ module Aws::RAM
|
|
286
286
|
# resp.resource_share_invitation.status #=> String, one of "PENDING", "ACCEPTED", "REJECTED", "EXPIRED"
|
287
287
|
# resp.resource_share_invitation.resource_share_associations #=> Array
|
288
288
|
# resp.resource_share_invitation.resource_share_associations[0].resource_share_arn #=> String
|
289
|
+
# resp.resource_share_invitation.resource_share_associations[0].resource_share_name #=> String
|
289
290
|
# resp.resource_share_invitation.resource_share_associations[0].associated_entity #=> String
|
290
291
|
# resp.resource_share_invitation.resource_share_associations[0].association_type #=> String, one of "PRINCIPAL", "RESOURCE"
|
291
292
|
# resp.resource_share_invitation.resource_share_associations[0].status #=> String, one of "ASSOCIATING", "ASSOCIATED", "FAILED", "DISASSOCIATING", "DISASSOCIATED"
|
@@ -338,6 +339,7 @@ module Aws::RAM
|
|
338
339
|
#
|
339
340
|
# resp.resource_share_associations #=> Array
|
340
341
|
# resp.resource_share_associations[0].resource_share_arn #=> String
|
342
|
+
# resp.resource_share_associations[0].resource_share_name #=> String
|
341
343
|
# resp.resource_share_associations[0].associated_entity #=> String
|
342
344
|
# resp.resource_share_associations[0].association_type #=> String, one of "PRINCIPAL", "RESOURCE"
|
343
345
|
# resp.resource_share_associations[0].status #=> String, one of "ASSOCIATING", "ASSOCIATED", "FAILED", "DISASSOCIATING", "DISASSOCIATED"
|
@@ -374,7 +376,7 @@ module Aws::RAM
|
|
374
376
|
# One or more tags.
|
375
377
|
#
|
376
378
|
# @option params [Boolean] :allow_external_principals
|
377
|
-
# Indicates whether principals outside your organization can be
|
379
|
+
# Indicates whether principals outside your AWS organization can be
|
378
380
|
# associated with a resource share.
|
379
381
|
#
|
380
382
|
# @option params [String] :client_token
|
@@ -495,6 +497,7 @@ module Aws::RAM
|
|
495
497
|
#
|
496
498
|
# resp.resource_share_associations #=> Array
|
497
499
|
# resp.resource_share_associations[0].resource_share_arn #=> String
|
500
|
+
# resp.resource_share_associations[0].resource_share_name #=> String
|
498
501
|
# resp.resource_share_associations[0].associated_entity #=> String
|
499
502
|
# resp.resource_share_associations[0].association_type #=> String, one of "PRINCIPAL", "RESOURCE"
|
500
503
|
# resp.resource_share_associations[0].status #=> String, one of "ASSOCIATING", "ASSOCIATED", "FAILED", "DISASSOCIATING", "DISASSOCIATED"
|
@@ -513,7 +516,9 @@ module Aws::RAM
|
|
513
516
|
req.send_request(options)
|
514
517
|
end
|
515
518
|
|
516
|
-
# Enables resource sharing within your
|
519
|
+
# Enables resource sharing within your AWS Organization.
|
520
|
+
#
|
521
|
+
# The caller must be the master account for the AWS Organization.
|
517
522
|
#
|
518
523
|
# @return [Types::EnableSharingWithAwsOrganizationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
519
524
|
#
|
@@ -532,7 +537,8 @@ module Aws::RAM
|
|
532
537
|
req.send_request(options)
|
533
538
|
end
|
534
539
|
|
535
|
-
# Gets the policies for the
|
540
|
+
# Gets the policies for the specified resources that you own and have
|
541
|
+
# shared.
|
536
542
|
#
|
537
543
|
# @option params [required, Array<String>] :resource_arns
|
538
544
|
# The Amazon Resource Names (ARN) of the resources.
|
@@ -577,7 +583,7 @@ module Aws::RAM
|
|
577
583
|
req.send_request(options)
|
578
584
|
end
|
579
585
|
|
580
|
-
# Gets the
|
586
|
+
# Gets the resources or principals for the resource shares that you own.
|
581
587
|
#
|
582
588
|
# @option params [required, String] :association_type
|
583
589
|
# The association type.
|
@@ -586,13 +592,15 @@ module Aws::RAM
|
|
586
592
|
# The Amazon Resource Names (ARN) of the resource shares.
|
587
593
|
#
|
588
594
|
# @option params [String] :resource_arn
|
589
|
-
# The Amazon Resource Name (ARN) of the resource.
|
595
|
+
# The Amazon Resource Name (ARN) of the resource. You cannot specify
|
596
|
+
# this parameter if the association type is `PRINCIPAL`.
|
590
597
|
#
|
591
598
|
# @option params [String] :principal
|
592
|
-
# The principal.
|
599
|
+
# The principal. You cannot specify this parameter if the association
|
600
|
+
# type is `RESOURCE`.
|
593
601
|
#
|
594
602
|
# @option params [String] :association_status
|
595
|
-
# The status
|
603
|
+
# The association status.
|
596
604
|
#
|
597
605
|
# @option params [String] :next_token
|
598
606
|
# The token for the next page of results.
|
@@ -623,6 +631,7 @@ module Aws::RAM
|
|
623
631
|
#
|
624
632
|
# resp.resource_share_associations #=> Array
|
625
633
|
# resp.resource_share_associations[0].resource_share_arn #=> String
|
634
|
+
# resp.resource_share_associations[0].resource_share_name #=> String
|
626
635
|
# resp.resource_share_associations[0].associated_entity #=> String
|
627
636
|
# resp.resource_share_associations[0].association_type #=> String, one of "PRINCIPAL", "RESOURCE"
|
628
637
|
# resp.resource_share_associations[0].status #=> String, one of "ASSOCIATING", "ASSOCIATED", "FAILED", "DISASSOCIATING", "DISASSOCIATED"
|
@@ -641,7 +650,7 @@ module Aws::RAM
|
|
641
650
|
req.send_request(options)
|
642
651
|
end
|
643
652
|
|
644
|
-
# Gets the
|
653
|
+
# Gets the invitations for resource sharing that you've received.
|
645
654
|
#
|
646
655
|
# @option params [Array<String>] :resource_share_invitation_arns
|
647
656
|
# The Amazon Resource Names (ARN) of the invitations.
|
@@ -683,6 +692,7 @@ module Aws::RAM
|
|
683
692
|
# resp.resource_share_invitations[0].status #=> String, one of "PENDING", "ACCEPTED", "REJECTED", "EXPIRED"
|
684
693
|
# resp.resource_share_invitations[0].resource_share_associations #=> Array
|
685
694
|
# resp.resource_share_invitations[0].resource_share_associations[0].resource_share_arn #=> String
|
695
|
+
# resp.resource_share_invitations[0].resource_share_associations[0].resource_share_name #=> String
|
686
696
|
# resp.resource_share_invitations[0].resource_share_associations[0].associated_entity #=> String
|
687
697
|
# resp.resource_share_invitations[0].resource_share_associations[0].association_type #=> String, one of "PRINCIPAL", "RESOURCE"
|
688
698
|
# resp.resource_share_invitations[0].resource_share_associations[0].status #=> String, one of "ASSOCIATING", "ASSOCIATED", "FAILED", "DISASSOCIATING", "DISASSOCIATED"
|
@@ -701,7 +711,8 @@ module Aws::RAM
|
|
701
711
|
req.send_request(options)
|
702
712
|
end
|
703
713
|
|
704
|
-
# Gets the
|
714
|
+
# Gets the resource shares that you own or the resource shares that are
|
715
|
+
# shared with you.
|
705
716
|
#
|
706
717
|
# @option params [Array<String>] :resource_share_arns
|
707
718
|
# The Amazon Resource Names (ARN) of the resource shares.
|
@@ -773,7 +784,56 @@ module Aws::RAM
|
|
773
784
|
req.send_request(options)
|
774
785
|
end
|
775
786
|
|
776
|
-
# Lists the
|
787
|
+
# Lists the resources in a resource share that is shared with you but
|
788
|
+
# that the invitation is still pending for.
|
789
|
+
#
|
790
|
+
# @option params [required, String] :resource_share_invitation_arn
|
791
|
+
# The Amazon Resource Name (ARN) of the invitation.
|
792
|
+
#
|
793
|
+
# @option params [String] :next_token
|
794
|
+
# The token for the next page of results.
|
795
|
+
#
|
796
|
+
# @option params [Integer] :max_results
|
797
|
+
# The maximum number of results to return with a single call. To
|
798
|
+
# retrieve the remaining results, make another call with the returned
|
799
|
+
# `nextToken` value.
|
800
|
+
#
|
801
|
+
# @return [Types::ListPendingInvitationResourcesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
802
|
+
#
|
803
|
+
# * {Types::ListPendingInvitationResourcesResponse#resources #resources} => Array<Types::Resource>
|
804
|
+
# * {Types::ListPendingInvitationResourcesResponse#next_token #next_token} => String
|
805
|
+
#
|
806
|
+
# @example Request syntax with placeholder values
|
807
|
+
#
|
808
|
+
# resp = client.list_pending_invitation_resources({
|
809
|
+
# resource_share_invitation_arn: "String", # required
|
810
|
+
# next_token: "String",
|
811
|
+
# max_results: 1,
|
812
|
+
# })
|
813
|
+
#
|
814
|
+
# @example Response structure
|
815
|
+
#
|
816
|
+
# resp.resources #=> Array
|
817
|
+
# resp.resources[0].arn #=> String
|
818
|
+
# resp.resources[0].type #=> String
|
819
|
+
# resp.resources[0].resource_share_arn #=> String
|
820
|
+
# resp.resources[0].status #=> String, one of "AVAILABLE", "ZONAL_RESOURCE_INACCESSIBLE", "LIMIT_EXCEEDED", "UNAVAILABLE", "PENDING"
|
821
|
+
# resp.resources[0].status_message #=> String
|
822
|
+
# resp.resources[0].creation_time #=> Time
|
823
|
+
# resp.resources[0].last_updated_time #=> Time
|
824
|
+
# resp.next_token #=> String
|
825
|
+
#
|
826
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/ListPendingInvitationResources AWS API Documentation
|
827
|
+
#
|
828
|
+
# @overload list_pending_invitation_resources(params = {})
|
829
|
+
# @param [Hash] params ({})
|
830
|
+
def list_pending_invitation_resources(params = {}, options = {})
|
831
|
+
req = build_request(:list_pending_invitation_resources, params)
|
832
|
+
req.send_request(options)
|
833
|
+
end
|
834
|
+
|
835
|
+
# Lists the principals that you have shared resources with or the
|
836
|
+
# principals that have shared resources with you.
|
777
837
|
#
|
778
838
|
# @option params [required, String] :resource_owner
|
779
839
|
# The type of owner.
|
@@ -787,6 +847,9 @@ module Aws::RAM
|
|
787
847
|
# @option params [String] :resource_type
|
788
848
|
# The resource type.
|
789
849
|
#
|
850
|
+
# Valid values: `route53resolver:ResolverRule` \| `ec2:TransitGateway`
|
851
|
+
# \| `ec2:Subnet` \| `license-manager:LicenseConfiguration`
|
852
|
+
#
|
790
853
|
# @option params [Array<String>] :resource_share_arns
|
791
854
|
# The Amazon Resource Names (ARN) of the resource shares.
|
792
855
|
#
|
@@ -834,7 +897,8 @@ module Aws::RAM
|
|
834
897
|
req.send_request(options)
|
835
898
|
end
|
836
899
|
|
837
|
-
# Lists the resources that
|
900
|
+
# Lists the resources that you added to a resource shares or the
|
901
|
+
# resources that are shared with you.
|
838
902
|
#
|
839
903
|
# @option params [required, String] :resource_owner
|
840
904
|
# The type of owner.
|
@@ -845,6 +909,9 @@ module Aws::RAM
|
|
845
909
|
# @option params [String] :resource_type
|
846
910
|
# The resource type.
|
847
911
|
#
|
912
|
+
# Valid values: `route53resolver:ResolverRule` \| `ec2:TransitGateway`
|
913
|
+
# \| `ec2:Subnet` \| `license-manager:LicenseConfiguration`
|
914
|
+
#
|
848
915
|
# @option params [Array<String>] :resource_arns
|
849
916
|
# The Amazon Resource Names (ARN) of the resources.
|
850
917
|
#
|
@@ -882,7 +949,7 @@ module Aws::RAM
|
|
882
949
|
# resp.resources[0].arn #=> String
|
883
950
|
# resp.resources[0].type #=> String
|
884
951
|
# resp.resources[0].resource_share_arn #=> String
|
885
|
-
# resp.resources[0].status #=> String, one of "AVAILABLE", "ZONAL_RESOURCE_INACCESSIBLE", "LIMIT_EXCEEDED", "UNAVAILABLE"
|
952
|
+
# resp.resources[0].status #=> String, one of "AVAILABLE", "ZONAL_RESOURCE_INACCESSIBLE", "LIMIT_EXCEEDED", "UNAVAILABLE", "PENDING"
|
886
953
|
# resp.resources[0].status_message #=> String
|
887
954
|
# resp.resources[0].creation_time #=> Time
|
888
955
|
# resp.resources[0].last_updated_time #=> Time
|
@@ -929,6 +996,7 @@ module Aws::RAM
|
|
929
996
|
# resp.resource_share_invitation.status #=> String, one of "PENDING", "ACCEPTED", "REJECTED", "EXPIRED"
|
930
997
|
# resp.resource_share_invitation.resource_share_associations #=> Array
|
931
998
|
# resp.resource_share_invitation.resource_share_associations[0].resource_share_arn #=> String
|
999
|
+
# resp.resource_share_invitation.resource_share_associations[0].resource_share_name #=> String
|
932
1000
|
# resp.resource_share_invitation.resource_share_associations[0].associated_entity #=> String
|
933
1001
|
# resp.resource_share_invitation.resource_share_associations[0].association_type #=> String, one of "PRINCIPAL", "RESOURCE"
|
934
1002
|
# resp.resource_share_invitation.resource_share_associations[0].status #=> String, one of "ASSOCIATING", "ASSOCIATED", "FAILED", "DISASSOCIATING", "DISASSOCIATED"
|
@@ -947,7 +1015,7 @@ module Aws::RAM
|
|
947
1015
|
req.send_request(options)
|
948
1016
|
end
|
949
1017
|
|
950
|
-
# Adds the specified tags to the specified resource share.
|
1018
|
+
# Adds the specified tags to the specified resource share that you own.
|
951
1019
|
#
|
952
1020
|
# @option params [required, String] :resource_share_arn
|
953
1021
|
# The Amazon Resource Name (ARN) of the resource share.
|
@@ -978,7 +1046,8 @@ module Aws::RAM
|
|
978
1046
|
req.send_request(options)
|
979
1047
|
end
|
980
1048
|
|
981
|
-
# Removes the specified tags from the specified resource share
|
1049
|
+
# Removes the specified tags from the specified resource share that you
|
1050
|
+
# own.
|
982
1051
|
#
|
983
1052
|
# @option params [required, String] :resource_share_arn
|
984
1053
|
# The Amazon Resource Name (ARN) of the resource share.
|
@@ -1004,7 +1073,7 @@ module Aws::RAM
|
|
1004
1073
|
req.send_request(options)
|
1005
1074
|
end
|
1006
1075
|
|
1007
|
-
# Updates the specified resource share.
|
1076
|
+
# Updates the specified resource share that you own.
|
1008
1077
|
#
|
1009
1078
|
# @option params [required, String] :resource_share_arn
|
1010
1079
|
# The Amazon Resource Name (ARN) of the resource share.
|
@@ -1013,7 +1082,7 @@ module Aws::RAM
|
|
1013
1082
|
# The name of the resource share.
|
1014
1083
|
#
|
1015
1084
|
# @option params [Boolean] :allow_external_principals
|
1016
|
-
# Indicates whether principals outside your organization can be
|
1085
|
+
# Indicates whether principals outside your AWS organization can be
|
1017
1086
|
# associated with a resource share.
|
1018
1087
|
#
|
1019
1088
|
# @option params [String] :client_token
|
@@ -1071,7 +1140,7 @@ module Aws::RAM
|
|
1071
1140
|
params: params,
|
1072
1141
|
config: config)
|
1073
1142
|
context[:gem_name] = 'aws-sdk-ram'
|
1074
|
-
context[:gem_version] = '1.
|
1143
|
+
context[:gem_version] = '1.11.0'
|
1075
1144
|
Seahorse::Client::Request.new(handlers, context)
|
1076
1145
|
end
|
1077
1146
|
|
@@ -40,6 +40,8 @@ module Aws::RAM
|
|
40
40
|
InvalidParameterException = Shapes::StructureShape.new(name: 'InvalidParameterException')
|
41
41
|
InvalidResourceTypeException = Shapes::StructureShape.new(name: 'InvalidResourceTypeException')
|
42
42
|
InvalidStateTransitionException = Shapes::StructureShape.new(name: 'InvalidStateTransitionException')
|
43
|
+
ListPendingInvitationResourcesRequest = Shapes::StructureShape.new(name: 'ListPendingInvitationResourcesRequest')
|
44
|
+
ListPendingInvitationResourcesResponse = Shapes::StructureShape.new(name: 'ListPendingInvitationResourcesResponse')
|
43
45
|
ListPrincipalsRequest = Shapes::StructureShape.new(name: 'ListPrincipalsRequest')
|
44
46
|
ListPrincipalsResponse = Shapes::StructureShape.new(name: 'ListPrincipalsResponse')
|
45
47
|
ListResourcesRequest = Shapes::StructureShape.new(name: 'ListResourcesRequest')
|
@@ -88,6 +90,7 @@ module Aws::RAM
|
|
88
90
|
TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
|
89
91
|
TagLimitExceededException = Shapes::StructureShape.new(name: 'TagLimitExceededException')
|
90
92
|
TagList = Shapes::ListShape.new(name: 'TagList')
|
93
|
+
TagPolicyViolationException = Shapes::StructureShape.new(name: 'TagPolicyViolationException')
|
91
94
|
TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
|
92
95
|
TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
|
93
96
|
TagValue = Shapes::StringShape.new(name: 'TagValue')
|
@@ -218,6 +221,15 @@ module Aws::RAM
|
|
218
221
|
InvalidStateTransitionException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
219
222
|
InvalidStateTransitionException.struct_class = Types::InvalidStateTransitionException
|
220
223
|
|
224
|
+
ListPendingInvitationResourcesRequest.add_member(:resource_share_invitation_arn, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceShareInvitationArn"))
|
225
|
+
ListPendingInvitationResourcesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
|
226
|
+
ListPendingInvitationResourcesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "maxResults"))
|
227
|
+
ListPendingInvitationResourcesRequest.struct_class = Types::ListPendingInvitationResourcesRequest
|
228
|
+
|
229
|
+
ListPendingInvitationResourcesResponse.add_member(:resources, Shapes::ShapeRef.new(shape: ResourceList, location_name: "resources"))
|
230
|
+
ListPendingInvitationResourcesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
|
231
|
+
ListPendingInvitationResourcesResponse.struct_class = Types::ListPendingInvitationResourcesResponse
|
232
|
+
|
221
233
|
ListPrincipalsRequest.add_member(:resource_owner, Shapes::ShapeRef.new(shape: ResourceOwner, required: true, location_name: "resourceOwner"))
|
222
234
|
ListPrincipalsRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: String, location_name: "resourceArn"))
|
223
235
|
ListPrincipalsRequest.add_member(:principals, Shapes::ShapeRef.new(shape: PrincipalArnOrIdList, location_name: "principals"))
|
@@ -304,6 +316,7 @@ module Aws::RAM
|
|
304
316
|
ResourceShareArnList.member = Shapes::ShapeRef.new(shape: String)
|
305
317
|
|
306
318
|
ResourceShareAssociation.add_member(:resource_share_arn, Shapes::ShapeRef.new(shape: String, location_name: "resourceShareArn"))
|
319
|
+
ResourceShareAssociation.add_member(:resource_share_name, Shapes::ShapeRef.new(shape: String, location_name: "resourceShareName"))
|
307
320
|
ResourceShareAssociation.add_member(:associated_entity, Shapes::ShapeRef.new(shape: String, location_name: "associatedEntity"))
|
308
321
|
ResourceShareAssociation.add_member(:association_type, Shapes::ShapeRef.new(shape: ResourceShareAssociationType, location_name: "associationType"))
|
309
322
|
ResourceShareAssociation.add_member(:status, Shapes::ShapeRef.new(shape: ResourceShareAssociationStatus, location_name: "status"))
|
@@ -322,7 +335,7 @@ module Aws::RAM
|
|
322
335
|
ResourceShareInvitation.add_member(:receiver_account_id, Shapes::ShapeRef.new(shape: String, location_name: "receiverAccountId"))
|
323
336
|
ResourceShareInvitation.add_member(:invitation_timestamp, Shapes::ShapeRef.new(shape: DateTime, location_name: "invitationTimestamp"))
|
324
337
|
ResourceShareInvitation.add_member(:status, Shapes::ShapeRef.new(shape: ResourceShareInvitationStatus, location_name: "status"))
|
325
|
-
ResourceShareInvitation.add_member(:resource_share_associations, Shapes::ShapeRef.new(shape: ResourceShareAssociationList, location_name: "resourceShareAssociations"))
|
338
|
+
ResourceShareInvitation.add_member(:resource_share_associations, Shapes::ShapeRef.new(shape: ResourceShareAssociationList, deprecated: true, location_name: "resourceShareAssociations", metadata: {"deprecatedMessage"=>"This member has been deprecated. Use ListPendingInvitationResources."}))
|
326
339
|
ResourceShareInvitation.struct_class = Types::ResourceShareInvitation
|
327
340
|
|
328
341
|
ResourceShareInvitationAlreadyAcceptedException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
@@ -369,6 +382,9 @@ module Aws::RAM
|
|
369
382
|
|
370
383
|
TagList.member = Shapes::ShapeRef.new(shape: Tag)
|
371
384
|
|
385
|
+
TagPolicyViolationException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
386
|
+
TagPolicyViolationException.struct_class = Types::TagPolicyViolationException
|
387
|
+
|
372
388
|
TagResourceRequest.add_member(:resource_share_arn, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceShareArn"))
|
373
389
|
TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, required: true, location_name: "tags"))
|
374
390
|
TagResourceRequest.struct_class = Types::TagResourceRequest
|
@@ -428,6 +444,8 @@ module Aws::RAM
|
|
428
444
|
o.errors << Shapes::ShapeRef.new(shape: ResourceShareInvitationExpiredException)
|
429
445
|
o.errors << Shapes::ShapeRef.new(shape: ServerInternalException)
|
430
446
|
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
447
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidClientTokenException)
|
448
|
+
o.errors << Shapes::ShapeRef.new(shape: IdempotentParameterMismatchException)
|
431
449
|
end)
|
432
450
|
|
433
451
|
api.add_operation(:associate_resource_share, Seahorse::Model::Operation.new.tap do |o|
|
@@ -464,6 +482,7 @@ module Aws::RAM
|
|
464
482
|
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
465
483
|
o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
|
466
484
|
o.errors << Shapes::ShapeRef.new(shape: ResourceShareLimitExceededException)
|
485
|
+
o.errors << Shapes::ShapeRef.new(shape: TagPolicyViolationException)
|
467
486
|
o.errors << Shapes::ShapeRef.new(shape: ServerInternalException)
|
468
487
|
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
469
488
|
end)
|
@@ -595,6 +614,29 @@ module Aws::RAM
|
|
595
614
|
)
|
596
615
|
end)
|
597
616
|
|
617
|
+
api.add_operation(:list_pending_invitation_resources, Seahorse::Model::Operation.new.tap do |o|
|
618
|
+
o.name = "ListPendingInvitationResources"
|
619
|
+
o.http_method = "POST"
|
620
|
+
o.http_request_uri = "/listpendinginvitationresources"
|
621
|
+
o.input = Shapes::ShapeRef.new(shape: ListPendingInvitationResourcesRequest)
|
622
|
+
o.output = Shapes::ShapeRef.new(shape: ListPendingInvitationResourcesResponse)
|
623
|
+
o.errors << Shapes::ShapeRef.new(shape: MalformedArnException)
|
624
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
|
625
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
626
|
+
o.errors << Shapes::ShapeRef.new(shape: ServerInternalException)
|
627
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
628
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceShareInvitationArnNotFoundException)
|
629
|
+
o.errors << Shapes::ShapeRef.new(shape: MissingRequiredParameterException)
|
630
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceShareInvitationAlreadyRejectedException)
|
631
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceShareInvitationExpiredException)
|
632
|
+
o[:pager] = Aws::Pager.new(
|
633
|
+
limit_key: "max_results",
|
634
|
+
tokens: {
|
635
|
+
"next_token" => "next_token"
|
636
|
+
}
|
637
|
+
)
|
638
|
+
end)
|
639
|
+
|
598
640
|
api.add_operation(:list_principals, Seahorse::Model::Operation.new.tap do |o|
|
599
641
|
o.name = "ListPrincipals"
|
600
642
|
o.http_method = "POST"
|
@@ -650,6 +692,8 @@ module Aws::RAM
|
|
650
692
|
o.errors << Shapes::ShapeRef.new(shape: ResourceShareInvitationExpiredException)
|
651
693
|
o.errors << Shapes::ShapeRef.new(shape: ServerInternalException)
|
652
694
|
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
695
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidClientTokenException)
|
696
|
+
o.errors << Shapes::ShapeRef.new(shape: IdempotentParameterMismatchException)
|
653
697
|
end)
|
654
698
|
|
655
699
|
api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
|
@@ -662,6 +706,7 @@ module Aws::RAM
|
|
662
706
|
o.errors << Shapes::ShapeRef.new(shape: MalformedArnException)
|
663
707
|
o.errors << Shapes::ShapeRef.new(shape: TagLimitExceededException)
|
664
708
|
o.errors << Shapes::ShapeRef.new(shape: ResourceArnNotFoundException)
|
709
|
+
o.errors << Shapes::ShapeRef.new(shape: TagPolicyViolationException)
|
665
710
|
o.errors << Shapes::ShapeRef.new(shape: ServerInternalException)
|
666
711
|
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
667
712
|
end)
|
data/lib/aws-sdk-ram/errors.rb
CHANGED
@@ -314,6 +314,22 @@ module Aws::RAM
|
|
314
314
|
|
315
315
|
end
|
316
316
|
|
317
|
+
class TagPolicyViolationException < ServiceError
|
318
|
+
|
319
|
+
# @param [Seahorse::Client::RequestContext] context
|
320
|
+
# @param [String] message
|
321
|
+
# @param [Aws::RAM::Types::TagPolicyViolationException] data
|
322
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
323
|
+
super(context, message, data)
|
324
|
+
end
|
325
|
+
|
326
|
+
# @return [String]
|
327
|
+
def message
|
328
|
+
@message || @data[:message]
|
329
|
+
end
|
330
|
+
|
331
|
+
end
|
332
|
+
|
317
333
|
class UnknownResourceException < ServiceError
|
318
334
|
|
319
335
|
# @param [Seahorse::Client::RequestContext] context
|
data/lib/aws-sdk-ram/types.rb
CHANGED
@@ -141,7 +141,7 @@ module Aws::RAM
|
|
141
141
|
# @return [Array<Types::Tag>]
|
142
142
|
#
|
143
143
|
# @!attribute [rw] allow_external_principals
|
144
|
-
# Indicates whether principals outside your organization can be
|
144
|
+
# Indicates whether principals outside your AWS organization can be
|
145
145
|
# associated with a resource share.
|
146
146
|
# @return [Boolean]
|
147
147
|
#
|
@@ -369,15 +369,17 @@ module Aws::RAM
|
|
369
369
|
# @return [Array<String>]
|
370
370
|
#
|
371
371
|
# @!attribute [rw] resource_arn
|
372
|
-
# The Amazon Resource Name (ARN) of the resource.
|
372
|
+
# The Amazon Resource Name (ARN) of the resource. You cannot specify
|
373
|
+
# this parameter if the association type is `PRINCIPAL`.
|
373
374
|
# @return [String]
|
374
375
|
#
|
375
376
|
# @!attribute [rw] principal
|
376
|
-
# The principal.
|
377
|
+
# The principal. You cannot specify this parameter if the association
|
378
|
+
# type is `RESOURCE`.
|
377
379
|
# @return [String]
|
378
380
|
#
|
379
381
|
# @!attribute [rw] association_status
|
380
|
-
# The status
|
382
|
+
# The association status.
|
381
383
|
# @return [String]
|
382
384
|
#
|
383
385
|
# @!attribute [rw] next_token
|
@@ -404,7 +406,7 @@ module Aws::RAM
|
|
404
406
|
end
|
405
407
|
|
406
408
|
# @!attribute [rw] resource_share_associations
|
407
|
-
# Information about the
|
409
|
+
# Information about the associations.
|
408
410
|
# @return [Array<Types::ResourceShareAssociation>]
|
409
411
|
#
|
410
412
|
# @!attribute [rw] next_token
|
@@ -639,6 +641,55 @@ module Aws::RAM
|
|
639
641
|
include Aws::Structure
|
640
642
|
end
|
641
643
|
|
644
|
+
# @note When making an API call, you may pass ListPendingInvitationResourcesRequest
|
645
|
+
# data as a hash:
|
646
|
+
#
|
647
|
+
# {
|
648
|
+
# resource_share_invitation_arn: "String", # required
|
649
|
+
# next_token: "String",
|
650
|
+
# max_results: 1,
|
651
|
+
# }
|
652
|
+
#
|
653
|
+
# @!attribute [rw] resource_share_invitation_arn
|
654
|
+
# The Amazon Resource Name (ARN) of the invitation.
|
655
|
+
# @return [String]
|
656
|
+
#
|
657
|
+
# @!attribute [rw] next_token
|
658
|
+
# The token for the next page of results.
|
659
|
+
# @return [String]
|
660
|
+
#
|
661
|
+
# @!attribute [rw] max_results
|
662
|
+
# The maximum number of results to return with a single call. To
|
663
|
+
# retrieve the remaining results, make another call with the returned
|
664
|
+
# `nextToken` value.
|
665
|
+
# @return [Integer]
|
666
|
+
#
|
667
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/ListPendingInvitationResourcesRequest AWS API Documentation
|
668
|
+
#
|
669
|
+
class ListPendingInvitationResourcesRequest < Struct.new(
|
670
|
+
:resource_share_invitation_arn,
|
671
|
+
:next_token,
|
672
|
+
:max_results)
|
673
|
+
include Aws::Structure
|
674
|
+
end
|
675
|
+
|
676
|
+
# @!attribute [rw] resources
|
677
|
+
# Information about the resources included the resource share.
|
678
|
+
# @return [Array<Types::Resource>]
|
679
|
+
#
|
680
|
+
# @!attribute [rw] next_token
|
681
|
+
# The token to use to retrieve the next page of results. This value is
|
682
|
+
# `null` when there are no more results to return.
|
683
|
+
# @return [String]
|
684
|
+
#
|
685
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/ListPendingInvitationResourcesResponse AWS API Documentation
|
686
|
+
#
|
687
|
+
class ListPendingInvitationResourcesResponse < Struct.new(
|
688
|
+
:resources,
|
689
|
+
:next_token)
|
690
|
+
include Aws::Structure
|
691
|
+
end
|
692
|
+
|
642
693
|
# @note When making an API call, you may pass ListPrincipalsRequest
|
643
694
|
# data as a hash:
|
644
695
|
#
|
@@ -666,6 +717,9 @@ module Aws::RAM
|
|
666
717
|
#
|
667
718
|
# @!attribute [rw] resource_type
|
668
719
|
# The resource type.
|
720
|
+
#
|
721
|
+
# Valid values: `route53resolver:ResolverRule` \| `ec2:TransitGateway`
|
722
|
+
# \| `ec2:Subnet` \| `license-manager:LicenseConfiguration`
|
669
723
|
# @return [String]
|
670
724
|
#
|
671
725
|
# @!attribute [rw] resource_share_arns
|
@@ -735,6 +789,9 @@ module Aws::RAM
|
|
735
789
|
#
|
736
790
|
# @!attribute [rw] resource_type
|
737
791
|
# The resource type.
|
792
|
+
#
|
793
|
+
# Valid values: `route53resolver:ResolverRule` \| `ec2:TransitGateway`
|
794
|
+
# \| `ec2:Subnet` \| `license-manager:LicenseConfiguration`
|
738
795
|
# @return [String]
|
739
796
|
#
|
740
797
|
# @!attribute [rw] resource_arns
|
@@ -840,8 +897,8 @@ module Aws::RAM
|
|
840
897
|
# @return [Time]
|
841
898
|
#
|
842
899
|
# @!attribute [rw] external
|
843
|
-
# Indicates whether the principal belongs to the same organization
|
844
|
-
# the AWS account that owns the resource share.
|
900
|
+
# Indicates whether the principal belongs to the same AWS organization
|
901
|
+
# as the AWS account that owns the resource share.
|
845
902
|
# @return [Boolean]
|
846
903
|
#
|
847
904
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/Principal AWS API Documentation
|
@@ -967,7 +1024,7 @@ module Aws::RAM
|
|
967
1024
|
# @return [String]
|
968
1025
|
#
|
969
1026
|
# @!attribute [rw] allow_external_principals
|
970
|
-
# Indicates whether principals outside your organization can be
|
1027
|
+
# Indicates whether principals outside your AWS organization can be
|
971
1028
|
# associated with a resource share.
|
972
1029
|
# @return [Boolean]
|
973
1030
|
#
|
@@ -1012,6 +1069,10 @@ module Aws::RAM
|
|
1012
1069
|
# The Amazon Resource Name (ARN) of the resource share.
|
1013
1070
|
# @return [String]
|
1014
1071
|
#
|
1072
|
+
# @!attribute [rw] resource_share_name
|
1073
|
+
# The name of the resource share.
|
1074
|
+
# @return [String]
|
1075
|
+
#
|
1015
1076
|
# @!attribute [rw] associated_entity
|
1016
1077
|
# The associated entity. For resource associations, this is the ARN of
|
1017
1078
|
# the resource. For principal associations, this is the ID of an AWS
|
@@ -1039,14 +1100,15 @@ module Aws::RAM
|
|
1039
1100
|
# @return [Time]
|
1040
1101
|
#
|
1041
1102
|
# @!attribute [rw] external
|
1042
|
-
# Indicates whether the principal belongs to the same organization
|
1043
|
-
# the AWS account that owns the resource share.
|
1103
|
+
# Indicates whether the principal belongs to the same AWS organization
|
1104
|
+
# as the AWS account that owns the resource share.
|
1044
1105
|
# @return [Boolean]
|
1045
1106
|
#
|
1046
1107
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/ResourceShareAssociation AWS API Documentation
|
1047
1108
|
#
|
1048
1109
|
class ResourceShareAssociation < Struct.new(
|
1049
1110
|
:resource_share_arn,
|
1111
|
+
:resource_share_name,
|
1050
1112
|
:associated_entity,
|
1051
1113
|
:association_type,
|
1052
1114
|
:status,
|
@@ -1088,7 +1150,12 @@ module Aws::RAM
|
|
1088
1150
|
# @return [String]
|
1089
1151
|
#
|
1090
1152
|
# @!attribute [rw] resource_share_associations
|
1091
|
-
#
|
1153
|
+
# To view the resources associated with a pending resource share
|
1154
|
+
# invitation, use [ListPendingInvitationResources][1].
|
1155
|
+
#
|
1156
|
+
#
|
1157
|
+
#
|
1158
|
+
# [1]: https://docs.aws.amazon.com/ram/latest/APIReference/API_ListPendingInvitationResources.html
|
1092
1159
|
# @return [Array<Types::ResourceShareAssociation>]
|
1093
1160
|
#
|
1094
1161
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/ResourceShareInvitation AWS API Documentation
|
@@ -1254,6 +1321,18 @@ module Aws::RAM
|
|
1254
1321
|
include Aws::Structure
|
1255
1322
|
end
|
1256
1323
|
|
1324
|
+
# The specified tag is a reserved word and cannot be used.
|
1325
|
+
#
|
1326
|
+
# @!attribute [rw] message
|
1327
|
+
# @return [String]
|
1328
|
+
#
|
1329
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/TagPolicyViolationException AWS API Documentation
|
1330
|
+
#
|
1331
|
+
class TagPolicyViolationException < Struct.new(
|
1332
|
+
:message)
|
1333
|
+
include Aws::Structure
|
1334
|
+
end
|
1335
|
+
|
1257
1336
|
# @note When making an API call, you may pass TagResourceRequest
|
1258
1337
|
# data as a hash:
|
1259
1338
|
#
|
@@ -1346,7 +1425,7 @@ module Aws::RAM
|
|
1346
1425
|
# @return [String]
|
1347
1426
|
#
|
1348
1427
|
# @!attribute [rw] allow_external_principals
|
1349
|
-
# Indicates whether principals outside your organization can be
|
1428
|
+
# Indicates whether principals outside your AWS organization can be
|
1350
1429
|
# associated with a resource share.
|
1351
1430
|
# @return [Boolean]
|
1352
1431
|
#
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-ram
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-09-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|