aws-sdk-organizations 1.71.0 → 1.73.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-organizations/client.rb +114 -11
- data/lib/aws-sdk-organizations/client_api.rb +77 -0
- data/lib/aws-sdk-organizations/endpoint_parameters.rb +3 -0
- data/lib/aws-sdk-organizations/endpoint_provider.rb +113 -278
- data/lib/aws-sdk-organizations/endpoints.rb +42 -0
- data/lib/aws-sdk-organizations/errors.rb +16 -0
- data/lib/aws-sdk-organizations/plugins/endpoints.rb +6 -0
- data/lib/aws-sdk-organizations/types.rb +117 -460
- data/lib/aws-sdk-organizations.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a45af0d35a20cc99841327a8059ed1066fe53da7f7298cd08d24c7fd293c7a2
|
4
|
+
data.tar.gz: d83a94073d426846db764e0195f44ed9fbf9669ea39fb09acb72e38c80d12fdb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c045e11601bab4953df087747a59c5f712ab4451c1ed95e6d3f79781425ceda53582e24f38085b8a031061ac037cd1b4a3e2318cb7b833adc6c7b52df62c498e
|
7
|
+
data.tar.gz: 28e9587d250fe63807be448c25e492fda123edf2e5fa51022ebc866c2d9345f55a505b22acd48099bbc49539d78bd4d8ff2f4e5dd00cfe5108576273c4335e9c
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,18 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.73.0 (2023-01-18)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
* Issue - Replace runtime endpoint resolution approach with generated ruby code.
|
10
|
+
|
11
|
+
1.72.0 (2022-11-28)
|
12
|
+
------------------
|
13
|
+
|
14
|
+
* Feature - This release introduces delegated administrator for AWS Organizations, a new feature to help you delegate the management of your Organizations policies, enabling you to govern your AWS organization in a decentralized way. You can now allow member accounts to manage Organizations policies.
|
15
|
+
|
4
16
|
1.71.0 (2022-10-25)
|
5
17
|
------------------
|
6
18
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.73.0
|
@@ -381,8 +381,8 @@ module Aws::Organizations
|
|
381
381
|
# Sends a response to the originator of a handshake agreeing to the
|
382
382
|
# action proposed by the handshake request.
|
383
383
|
#
|
384
|
-
#
|
385
|
-
#
|
384
|
+
# You can only call this operation by the following principals when they
|
385
|
+
# also have the relevant IAM permissions:
|
386
386
|
#
|
387
387
|
# * **Invitation to join** or **Approve all features request**
|
388
388
|
# handshakes: only a principal from the member account.
|
@@ -804,7 +804,7 @@ module Aws::Organizations
|
|
804
804
|
# few minutes before you can successfully access the account. To check
|
805
805
|
# the status of the request, do one of the following:
|
806
806
|
#
|
807
|
-
# * Use the `Id`
|
807
|
+
# * Use the `Id` value of the `CreateAccountStatus` response element
|
808
808
|
# from this operation to provide as a parameter to the
|
809
809
|
# DescribeCreateAccountStatus operation.
|
810
810
|
#
|
@@ -918,8 +918,6 @@ module Aws::Organizations
|
|
918
918
|
# The friendly name of the member account.
|
919
919
|
#
|
920
920
|
# @option params [String] :role_name
|
921
|
-
# (Optional)
|
922
|
-
#
|
923
921
|
# The name of an IAM role that Organizations automatically preconfigures
|
924
922
|
# in the new member account. This role trusts the management account,
|
925
923
|
# allowing users in the management account to assume the role, as
|
@@ -1030,7 +1028,7 @@ module Aws::Organizations
|
|
1030
1028
|
# resp.create_account_status.completed_timestamp #=> Time
|
1031
1029
|
# resp.create_account_status.account_id #=> String
|
1032
1030
|
# resp.create_account_status.gov_cloud_account_id #=> String
|
1033
|
-
# resp.create_account_status.failure_reason #=> String, one of "ACCOUNT_LIMIT_EXCEEDED", "EMAIL_ALREADY_EXISTS", "INVALID_ADDRESS", "INVALID_EMAIL", "CONCURRENT_ACCOUNT_MODIFICATION", "INTERNAL_FAILURE", "GOVCLOUD_ACCOUNT_ALREADY_EXISTS", "MISSING_BUSINESS_VALIDATION", "FAILED_BUSINESS_VALIDATION", "PENDING_BUSINESS_VALIDATION", "INVALID_IDENTITY_FOR_BUSINESS_VALIDATION", "UNKNOWN_BUSINESS_VALIDATION", "MISSING_PAYMENT_INSTRUMENT", "INVALID_PAYMENT_INSTRUMENT"
|
1031
|
+
# resp.create_account_status.failure_reason #=> String, one of "ACCOUNT_LIMIT_EXCEEDED", "EMAIL_ALREADY_EXISTS", "INVALID_ADDRESS", "INVALID_EMAIL", "CONCURRENT_ACCOUNT_MODIFICATION", "INTERNAL_FAILURE", "GOVCLOUD_ACCOUNT_ALREADY_EXISTS", "MISSING_BUSINESS_VALIDATION", "FAILED_BUSINESS_VALIDATION", "PENDING_BUSINESS_VALIDATION", "INVALID_IDENTITY_FOR_BUSINESS_VALIDATION", "UNKNOWN_BUSINESS_VALIDATION", "MISSING_PAYMENT_INSTRUMENT", "INVALID_PAYMENT_INSTRUMENT", "UPDATE_EXISTING_RESOURCE_POLICY_WITH_TAGS_NOT_SUPPORTED"
|
1034
1032
|
#
|
1035
1033
|
# @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/CreateAccount AWS API Documentation
|
1036
1034
|
#
|
@@ -1317,7 +1315,7 @@ module Aws::Organizations
|
|
1317
1315
|
# resp.create_account_status.completed_timestamp #=> Time
|
1318
1316
|
# resp.create_account_status.account_id #=> String
|
1319
1317
|
# resp.create_account_status.gov_cloud_account_id #=> String
|
1320
|
-
# resp.create_account_status.failure_reason #=> String, one of "ACCOUNT_LIMIT_EXCEEDED", "EMAIL_ALREADY_EXISTS", "INVALID_ADDRESS", "INVALID_EMAIL", "CONCURRENT_ACCOUNT_MODIFICATION", "INTERNAL_FAILURE", "GOVCLOUD_ACCOUNT_ALREADY_EXISTS", "MISSING_BUSINESS_VALIDATION", "FAILED_BUSINESS_VALIDATION", "PENDING_BUSINESS_VALIDATION", "INVALID_IDENTITY_FOR_BUSINESS_VALIDATION", "UNKNOWN_BUSINESS_VALIDATION", "MISSING_PAYMENT_INSTRUMENT", "INVALID_PAYMENT_INSTRUMENT"
|
1318
|
+
# resp.create_account_status.failure_reason #=> String, one of "ACCOUNT_LIMIT_EXCEEDED", "EMAIL_ALREADY_EXISTS", "INVALID_ADDRESS", "INVALID_EMAIL", "CONCURRENT_ACCOUNT_MODIFICATION", "INTERNAL_FAILURE", "GOVCLOUD_ACCOUNT_ALREADY_EXISTS", "MISSING_BUSINESS_VALIDATION", "FAILED_BUSINESS_VALIDATION", "PENDING_BUSINESS_VALIDATION", "INVALID_IDENTITY_FOR_BUSINESS_VALIDATION", "UNKNOWN_BUSINESS_VALIDATION", "MISSING_PAYMENT_INSTRUMENT", "INVALID_PAYMENT_INSTRUMENT", "UPDATE_EXISTING_RESOURCE_POLICY_WITH_TAGS_NOT_SUPPORTED"
|
1321
1319
|
#
|
1322
1320
|
# @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/CreateGovCloudAccount AWS API Documentation
|
1323
1321
|
#
|
@@ -1923,6 +1921,22 @@ module Aws::Organizations
|
|
1923
1921
|
req.send_request(options)
|
1924
1922
|
end
|
1925
1923
|
|
1924
|
+
# Deletes the resource policy from your organization.
|
1925
|
+
#
|
1926
|
+
# You can only call this operation from the organization's management
|
1927
|
+
# account.
|
1928
|
+
#
|
1929
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1930
|
+
#
|
1931
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DeleteResourcePolicy AWS API Documentation
|
1932
|
+
#
|
1933
|
+
# @overload delete_resource_policy(params = {})
|
1934
|
+
# @param [Hash] params ({})
|
1935
|
+
def delete_resource_policy(params = {}, options = {})
|
1936
|
+
req = build_request(:delete_resource_policy, params)
|
1937
|
+
req.send_request(options)
|
1938
|
+
end
|
1939
|
+
|
1926
1940
|
# Removes the specified member Amazon Web Services account as a
|
1927
1941
|
# delegated administrator for the specified Amazon Web Services service.
|
1928
1942
|
#
|
@@ -2102,7 +2116,7 @@ module Aws::Organizations
|
|
2102
2116
|
# resp.create_account_status.completed_timestamp #=> Time
|
2103
2117
|
# resp.create_account_status.account_id #=> String
|
2104
2118
|
# resp.create_account_status.gov_cloud_account_id #=> String
|
2105
|
-
# resp.create_account_status.failure_reason #=> String, one of "ACCOUNT_LIMIT_EXCEEDED", "EMAIL_ALREADY_EXISTS", "INVALID_ADDRESS", "INVALID_EMAIL", "CONCURRENT_ACCOUNT_MODIFICATION", "INTERNAL_FAILURE", "GOVCLOUD_ACCOUNT_ALREADY_EXISTS", "MISSING_BUSINESS_VALIDATION", "FAILED_BUSINESS_VALIDATION", "PENDING_BUSINESS_VALIDATION", "INVALID_IDENTITY_FOR_BUSINESS_VALIDATION", "UNKNOWN_BUSINESS_VALIDATION", "MISSING_PAYMENT_INSTRUMENT", "INVALID_PAYMENT_INSTRUMENT"
|
2119
|
+
# resp.create_account_status.failure_reason #=> String, one of "ACCOUNT_LIMIT_EXCEEDED", "EMAIL_ALREADY_EXISTS", "INVALID_ADDRESS", "INVALID_EMAIL", "CONCURRENT_ACCOUNT_MODIFICATION", "INTERNAL_FAILURE", "GOVCLOUD_ACCOUNT_ALREADY_EXISTS", "MISSING_BUSINESS_VALIDATION", "FAILED_BUSINESS_VALIDATION", "PENDING_BUSINESS_VALIDATION", "INVALID_IDENTITY_FOR_BUSINESS_VALIDATION", "UNKNOWN_BUSINESS_VALIDATION", "MISSING_PAYMENT_INSTRUMENT", "INVALID_PAYMENT_INSTRUMENT", "UPDATE_EXISTING_RESOURCE_POLICY_WITH_TAGS_NOT_SUPPORTED"
|
2106
2120
|
#
|
2107
2121
|
# @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DescribeCreateAccountStatus AWS API Documentation
|
2108
2122
|
#
|
@@ -2487,6 +2501,31 @@ module Aws::Organizations
|
|
2487
2501
|
req.send_request(options)
|
2488
2502
|
end
|
2489
2503
|
|
2504
|
+
# Retrieves information about a resource policy.
|
2505
|
+
#
|
2506
|
+
# You can only call this operation from the organization's management
|
2507
|
+
# account or by a member account that is a delegated administrator for
|
2508
|
+
# an AWS service.
|
2509
|
+
#
|
2510
|
+
# @return [Types::DescribeResourcePolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2511
|
+
#
|
2512
|
+
# * {Types::DescribeResourcePolicyResponse#resource_policy #resource_policy} => Types::ResourcePolicy
|
2513
|
+
#
|
2514
|
+
# @example Response structure
|
2515
|
+
#
|
2516
|
+
# resp.resource_policy.resource_policy_summary.id #=> String
|
2517
|
+
# resp.resource_policy.resource_policy_summary.arn #=> String
|
2518
|
+
# resp.resource_policy.content #=> String
|
2519
|
+
#
|
2520
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DescribeResourcePolicy AWS API Documentation
|
2521
|
+
#
|
2522
|
+
# @overload describe_resource_policy(params = {})
|
2523
|
+
# @param [Hash] params ({})
|
2524
|
+
def describe_resource_policy(params = {}, options = {})
|
2525
|
+
req = build_request(:describe_resource_policy, params)
|
2526
|
+
req.send_request(options)
|
2527
|
+
end
|
2528
|
+
|
2490
2529
|
# Detaches a policy from a target root, organizational unit (OU), or
|
2491
2530
|
# account.
|
2492
2531
|
#
|
@@ -2792,7 +2831,7 @@ module Aws::Organizations
|
|
2792
2831
|
# Organizations, see [Integrating Organizations with Other Amazon Web
|
2793
2832
|
# Services Services][2] in the *Organizations User Guide.*
|
2794
2833
|
#
|
2795
|
-
#
|
2834
|
+
# You can only call this operation from the organization's management
|
2796
2835
|
# account and only if the organization has [enabled all features][3].
|
2797
2836
|
#
|
2798
2837
|
#
|
@@ -3821,7 +3860,7 @@ module Aws::Organizations
|
|
3821
3860
|
# resp.create_account_statuses[0].completed_timestamp #=> Time
|
3822
3861
|
# resp.create_account_statuses[0].account_id #=> String
|
3823
3862
|
# resp.create_account_statuses[0].gov_cloud_account_id #=> String
|
3824
|
-
# resp.create_account_statuses[0].failure_reason #=> String, one of "ACCOUNT_LIMIT_EXCEEDED", "EMAIL_ALREADY_EXISTS", "INVALID_ADDRESS", "INVALID_EMAIL", "CONCURRENT_ACCOUNT_MODIFICATION", "INTERNAL_FAILURE", "GOVCLOUD_ACCOUNT_ALREADY_EXISTS", "MISSING_BUSINESS_VALIDATION", "FAILED_BUSINESS_VALIDATION", "PENDING_BUSINESS_VALIDATION", "INVALID_IDENTITY_FOR_BUSINESS_VALIDATION", "UNKNOWN_BUSINESS_VALIDATION", "MISSING_PAYMENT_INSTRUMENT", "INVALID_PAYMENT_INSTRUMENT"
|
3863
|
+
# resp.create_account_statuses[0].failure_reason #=> String, one of "ACCOUNT_LIMIT_EXCEEDED", "EMAIL_ALREADY_EXISTS", "INVALID_ADDRESS", "INVALID_EMAIL", "CONCURRENT_ACCOUNT_MODIFICATION", "INTERNAL_FAILURE", "GOVCLOUD_ACCOUNT_ALREADY_EXISTS", "MISSING_BUSINESS_VALIDATION", "FAILED_BUSINESS_VALIDATION", "PENDING_BUSINESS_VALIDATION", "INVALID_IDENTITY_FOR_BUSINESS_VALIDATION", "UNKNOWN_BUSINESS_VALIDATION", "MISSING_PAYMENT_INSTRUMENT", "INVALID_PAYMENT_INSTRUMENT", "UPDATE_EXISTING_RESOURCE_POLICY_WITH_TAGS_NOT_SUPPORTED"
|
3825
3864
|
# resp.next_token #=> String
|
3826
3865
|
#
|
3827
3866
|
# @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListCreateAccountStatus AWS API Documentation
|
@@ -5152,6 +5191,70 @@ module Aws::Organizations
|
|
5152
5191
|
req.send_request(options)
|
5153
5192
|
end
|
5154
5193
|
|
5194
|
+
# Creates or updates a resource policy.
|
5195
|
+
#
|
5196
|
+
# You can only call this operation from the organization's management
|
5197
|
+
# account.
|
5198
|
+
#
|
5199
|
+
# @option params [required, String] :content
|
5200
|
+
# If provided, the new content for the resource policy. The text must be
|
5201
|
+
# correctly formatted JSON that complies with the syntax for the
|
5202
|
+
# resource policy's type. For more information, see [Service Control
|
5203
|
+
# Policy Syntax][1] in the *Organizations User Guide.*
|
5204
|
+
#
|
5205
|
+
#
|
5206
|
+
#
|
5207
|
+
# [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_scp-syntax.html
|
5208
|
+
#
|
5209
|
+
# @option params [Array<Types::Tag>] :tags
|
5210
|
+
# Updates the list of tags that you want to attach to the newly-created
|
5211
|
+
# resource policy. For each tag in the list, you must specify both a tag
|
5212
|
+
# key and a value. You can set the value to an empty string, but you
|
5213
|
+
# can't set it to `null`. For more information about tagging, see
|
5214
|
+
# [Tagging Organizations resources][1] in the Organizations User Guide.
|
5215
|
+
#
|
5216
|
+
# <note markdown="1"> Calls with tags apply to the initial creation of the resource policy,
|
5217
|
+
# otherwise an exception is thrown. If any one of the tags is invalid or
|
5218
|
+
# if you exceed the allowed number of tags for the resource policy, then
|
5219
|
+
# the entire request fails and the resource policy is not created.
|
5220
|
+
#
|
5221
|
+
# </note>
|
5222
|
+
#
|
5223
|
+
#
|
5224
|
+
#
|
5225
|
+
# [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_tagging.html
|
5226
|
+
#
|
5227
|
+
# @return [Types::PutResourcePolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
5228
|
+
#
|
5229
|
+
# * {Types::PutResourcePolicyResponse#resource_policy #resource_policy} => Types::ResourcePolicy
|
5230
|
+
#
|
5231
|
+
# @example Request syntax with placeholder values
|
5232
|
+
#
|
5233
|
+
# resp = client.put_resource_policy({
|
5234
|
+
# content: "ResourcePolicyContent", # required
|
5235
|
+
# tags: [
|
5236
|
+
# {
|
5237
|
+
# key: "TagKey", # required
|
5238
|
+
# value: "TagValue", # required
|
5239
|
+
# },
|
5240
|
+
# ],
|
5241
|
+
# })
|
5242
|
+
#
|
5243
|
+
# @example Response structure
|
5244
|
+
#
|
5245
|
+
# resp.resource_policy.resource_policy_summary.id #=> String
|
5246
|
+
# resp.resource_policy.resource_policy_summary.arn #=> String
|
5247
|
+
# resp.resource_policy.content #=> String
|
5248
|
+
#
|
5249
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/PutResourcePolicy AWS API Documentation
|
5250
|
+
#
|
5251
|
+
# @overload put_resource_policy(params = {})
|
5252
|
+
# @param [Hash] params ({})
|
5253
|
+
def put_resource_policy(params = {}, options = {})
|
5254
|
+
req = build_request(:put_resource_policy, params)
|
5255
|
+
req.send_request(options)
|
5256
|
+
end
|
5257
|
+
|
5155
5258
|
# Enables the specified member account to administer the Organizations
|
5156
5259
|
# features of the specified Amazon Web Services service. It grants
|
5157
5260
|
# read-only access to Organizations service data. The account still
|
@@ -5608,7 +5711,7 @@ module Aws::Organizations
|
|
5608
5711
|
params: params,
|
5609
5712
|
config: config)
|
5610
5713
|
context[:gem_name] = 'aws-sdk-organizations'
|
5611
|
-
context[:gem_version] = '1.
|
5714
|
+
context[:gem_version] = '1.73.0'
|
5612
5715
|
Seahorse::Client::Request.new(handlers, context)
|
5613
5716
|
end
|
5614
5717
|
|
@@ -87,6 +87,7 @@ module Aws::Organizations
|
|
87
87
|
DescribeOrganizationalUnitResponse = Shapes::StructureShape.new(name: 'DescribeOrganizationalUnitResponse')
|
88
88
|
DescribePolicyRequest = Shapes::StructureShape.new(name: 'DescribePolicyRequest')
|
89
89
|
DescribePolicyResponse = Shapes::StructureShape.new(name: 'DescribePolicyResponse')
|
90
|
+
DescribeResourcePolicyResponse = Shapes::StructureShape.new(name: 'DescribeResourcePolicyResponse')
|
90
91
|
DestinationParentNotFoundException = Shapes::StructureShape.new(name: 'DestinationParentNotFoundException')
|
91
92
|
DetachPolicyRequest = Shapes::StructureShape.new(name: 'DetachPolicyRequest')
|
92
93
|
DisableAWSServiceAccessRequest = Shapes::StructureShape.new(name: 'DisableAWSServiceAccessRequest')
|
@@ -213,8 +214,16 @@ module Aws::Organizations
|
|
213
214
|
PolicyTypeStatus = Shapes::StringShape.new(name: 'PolicyTypeStatus')
|
214
215
|
PolicyTypeSummary = Shapes::StructureShape.new(name: 'PolicyTypeSummary')
|
215
216
|
PolicyTypes = Shapes::ListShape.new(name: 'PolicyTypes')
|
217
|
+
PutResourcePolicyRequest = Shapes::StructureShape.new(name: 'PutResourcePolicyRequest')
|
218
|
+
PutResourcePolicyResponse = Shapes::StructureShape.new(name: 'PutResourcePolicyResponse')
|
216
219
|
RegisterDelegatedAdministratorRequest = Shapes::StructureShape.new(name: 'RegisterDelegatedAdministratorRequest')
|
217
220
|
RemoveAccountFromOrganizationRequest = Shapes::StructureShape.new(name: 'RemoveAccountFromOrganizationRequest')
|
221
|
+
ResourcePolicy = Shapes::StructureShape.new(name: 'ResourcePolicy')
|
222
|
+
ResourcePolicyArn = Shapes::StringShape.new(name: 'ResourcePolicyArn')
|
223
|
+
ResourcePolicyContent = Shapes::StringShape.new(name: 'ResourcePolicyContent')
|
224
|
+
ResourcePolicyId = Shapes::StringShape.new(name: 'ResourcePolicyId')
|
225
|
+
ResourcePolicyNotFoundException = Shapes::StructureShape.new(name: 'ResourcePolicyNotFoundException')
|
226
|
+
ResourcePolicySummary = Shapes::StructureShape.new(name: 'ResourcePolicySummary')
|
218
227
|
RoleName = Shapes::StringShape.new(name: 'RoleName')
|
219
228
|
Root = Shapes::StructureShape.new(name: 'Root')
|
220
229
|
RootArn = Shapes::StringShape.new(name: 'RootArn')
|
@@ -456,6 +465,9 @@ module Aws::Organizations
|
|
456
465
|
DescribePolicyResponse.add_member(:policy, Shapes::ShapeRef.new(shape: Policy, location_name: "Policy"))
|
457
466
|
DescribePolicyResponse.struct_class = Types::DescribePolicyResponse
|
458
467
|
|
468
|
+
DescribeResourcePolicyResponse.add_member(:resource_policy, Shapes::ShapeRef.new(shape: ResourcePolicy, location_name: "ResourcePolicy"))
|
469
|
+
DescribeResourcePolicyResponse.struct_class = Types::DescribeResourcePolicyResponse
|
470
|
+
|
459
471
|
DestinationParentNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "Message"))
|
460
472
|
DestinationParentNotFoundException.struct_class = Types::DestinationParentNotFoundException
|
461
473
|
|
@@ -811,6 +823,13 @@ module Aws::Organizations
|
|
811
823
|
|
812
824
|
PolicyTypes.member = Shapes::ShapeRef.new(shape: PolicyTypeSummary)
|
813
825
|
|
826
|
+
PutResourcePolicyRequest.add_member(:content, Shapes::ShapeRef.new(shape: ResourcePolicyContent, required: true, location_name: "Content"))
|
827
|
+
PutResourcePolicyRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "Tags"))
|
828
|
+
PutResourcePolicyRequest.struct_class = Types::PutResourcePolicyRequest
|
829
|
+
|
830
|
+
PutResourcePolicyResponse.add_member(:resource_policy, Shapes::ShapeRef.new(shape: ResourcePolicy, location_name: "ResourcePolicy"))
|
831
|
+
PutResourcePolicyResponse.struct_class = Types::PutResourcePolicyResponse
|
832
|
+
|
814
833
|
RegisterDelegatedAdministratorRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location_name: "AccountId"))
|
815
834
|
RegisterDelegatedAdministratorRequest.add_member(:service_principal, Shapes::ShapeRef.new(shape: ServicePrincipal, required: true, location_name: "ServicePrincipal"))
|
816
835
|
RegisterDelegatedAdministratorRequest.struct_class = Types::RegisterDelegatedAdministratorRequest
|
@@ -818,6 +837,17 @@ module Aws::Organizations
|
|
818
837
|
RemoveAccountFromOrganizationRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location_name: "AccountId"))
|
819
838
|
RemoveAccountFromOrganizationRequest.struct_class = Types::RemoveAccountFromOrganizationRequest
|
820
839
|
|
840
|
+
ResourcePolicy.add_member(:resource_policy_summary, Shapes::ShapeRef.new(shape: ResourcePolicySummary, location_name: "ResourcePolicySummary"))
|
841
|
+
ResourcePolicy.add_member(:content, Shapes::ShapeRef.new(shape: ResourcePolicyContent, location_name: "Content"))
|
842
|
+
ResourcePolicy.struct_class = Types::ResourcePolicy
|
843
|
+
|
844
|
+
ResourcePolicyNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "Message"))
|
845
|
+
ResourcePolicyNotFoundException.struct_class = Types::ResourcePolicyNotFoundException
|
846
|
+
|
847
|
+
ResourcePolicySummary.add_member(:id, Shapes::ShapeRef.new(shape: ResourcePolicyId, location_name: "Id"))
|
848
|
+
ResourcePolicySummary.add_member(:arn, Shapes::ShapeRef.new(shape: ResourcePolicyArn, location_name: "Arn"))
|
849
|
+
ResourcePolicySummary.struct_class = Types::ResourcePolicySummary
|
850
|
+
|
821
851
|
Root.add_member(:id, Shapes::ShapeRef.new(shape: RootId, location_name: "Id"))
|
822
852
|
Root.add_member(:arn, Shapes::ShapeRef.new(shape: RootArn, location_name: "Arn"))
|
823
853
|
Root.add_member(:name, Shapes::ShapeRef.new(shape: RootName, location_name: "Name"))
|
@@ -1121,6 +1151,22 @@ module Aws::Organizations
|
|
1121
1151
|
o.errors << Shapes::ShapeRef.new(shape: UnsupportedAPIEndpointException)
|
1122
1152
|
end)
|
1123
1153
|
|
1154
|
+
api.add_operation(:delete_resource_policy, Seahorse::Model::Operation.new.tap do |o|
|
1155
|
+
o.name = "DeleteResourcePolicy"
|
1156
|
+
o.http_method = "POST"
|
1157
|
+
o.http_request_uri = "/"
|
1158
|
+
o.input = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
1159
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
1160
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
1161
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceException)
|
1162
|
+
o.errors << Shapes::ShapeRef.new(shape: UnsupportedAPIEndpointException)
|
1163
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
1164
|
+
o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
|
1165
|
+
o.errors << Shapes::ShapeRef.new(shape: ConstraintViolationException)
|
1166
|
+
o.errors << Shapes::ShapeRef.new(shape: AWSOrganizationsNotInUseException)
|
1167
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourcePolicyNotFoundException)
|
1168
|
+
end)
|
1169
|
+
|
1124
1170
|
api.add_operation(:deregister_delegated_administrator, Seahorse::Model::Operation.new.tap do |o|
|
1125
1171
|
o.name = "DeregisterDelegatedAdministrator"
|
1126
1172
|
o.http_method = "POST"
|
@@ -1241,6 +1287,21 @@ module Aws::Organizations
|
|
1241
1287
|
o.errors << Shapes::ShapeRef.new(shape: UnsupportedAPIEndpointException)
|
1242
1288
|
end)
|
1243
1289
|
|
1290
|
+
api.add_operation(:describe_resource_policy, Seahorse::Model::Operation.new.tap do |o|
|
1291
|
+
o.name = "DescribeResourcePolicy"
|
1292
|
+
o.http_method = "POST"
|
1293
|
+
o.http_request_uri = "/"
|
1294
|
+
o.input = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
1295
|
+
o.output = Shapes::ShapeRef.new(shape: DescribeResourcePolicyResponse)
|
1296
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
1297
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceException)
|
1298
|
+
o.errors << Shapes::ShapeRef.new(shape: UnsupportedAPIEndpointException)
|
1299
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
1300
|
+
o.errors << Shapes::ShapeRef.new(shape: AWSOrganizationsNotInUseException)
|
1301
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourcePolicyNotFoundException)
|
1302
|
+
o.errors << Shapes::ShapeRef.new(shape: ConstraintViolationException)
|
1303
|
+
end)
|
1304
|
+
|
1244
1305
|
api.add_operation(:detach_policy, Seahorse::Model::Operation.new.tap do |o|
|
1245
1306
|
o.name = "DetachPolicy"
|
1246
1307
|
o.http_method = "POST"
|
@@ -1724,6 +1785,22 @@ module Aws::Organizations
|
|
1724
1785
|
o.errors << Shapes::ShapeRef.new(shape: ServiceException)
|
1725
1786
|
end)
|
1726
1787
|
|
1788
|
+
api.add_operation(:put_resource_policy, Seahorse::Model::Operation.new.tap do |o|
|
1789
|
+
o.name = "PutResourcePolicy"
|
1790
|
+
o.http_method = "POST"
|
1791
|
+
o.http_request_uri = "/"
|
1792
|
+
o.input = Shapes::ShapeRef.new(shape: PutResourcePolicyRequest)
|
1793
|
+
o.output = Shapes::ShapeRef.new(shape: PutResourcePolicyResponse)
|
1794
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
1795
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceException)
|
1796
|
+
o.errors << Shapes::ShapeRef.new(shape: UnsupportedAPIEndpointException)
|
1797
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
1798
|
+
o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
|
1799
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
|
1800
|
+
o.errors << Shapes::ShapeRef.new(shape: ConstraintViolationException)
|
1801
|
+
o.errors << Shapes::ShapeRef.new(shape: AWSOrganizationsNotInUseException)
|
1802
|
+
end)
|
1803
|
+
|
1727
1804
|
api.add_operation(:register_delegated_administrator, Seahorse::Model::Operation.new.tap do |o|
|
1728
1805
|
o.name = "RegisterDelegatedAdministrator"
|
1729
1806
|
o.http_method = "POST"
|
@@ -50,6 +50,9 @@ module Aws::Organizations
|
|
50
50
|
|
51
51
|
def initialize(options = {})
|
52
52
|
self[:region] = options[:region]
|
53
|
+
if self[:region].nil?
|
54
|
+
raise ArgumentError, "Missing required EndpointParameter: :region"
|
55
|
+
end
|
53
56
|
self[:use_dual_stack] = options[:use_dual_stack]
|
54
57
|
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
55
58
|
if self[:use_dual_stack].nil?
|