aws-sdk-organizations 1.6.0 → 1.7.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7397380856989b10e38314681e051aeebca83d3c
4
- data.tar.gz: 87f036cc703cc0a1687e7671cc04c593779c6c12
3
+ metadata.gz: 123fe21c523cbc15b5c360d09f6286a55f06216f
4
+ data.tar.gz: d635d0635e107be87df9757c7927fecfd629628f
5
5
  SHA512:
6
- metadata.gz: 38f5a0a2f9c0c5b963315ef1bd65ff57b5d05fc658f641dcc56bdd47319caadd71aa609af4104222b5ab5d6258f4c7dae2cfe61ffd3aee52b5b06309a12992a8
7
- data.tar.gz: 017385a27eada0b82d53b07da8cd6a5d930423260ad735aab54426e6fbc9fe89c7e7d2e28e8dabd9a8c96d4b4d87152f253fe6d068d71af93176bd7e37c09d33
6
+ metadata.gz: 575453b67aff640922d8553e46e79aa4acfd0bf4faf2a44cb4c2d52798bcf300db9ddbf252a0b79b78e1843f8bdd82dd70f7c5e24123820953c0c2240b4ed392
7
+ data.tar.gz: 2157e4482100ca6b9c985cb5cdd5d598be062ece620a707537a8dfe98a09663dc57aab030f6230da7379ea59996008a89291a7ae1901b119ad37b3503ffdb69c
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-organizations/customizations'
42
42
  # @service
43
43
  module Aws::Organizations
44
44
 
45
- GEM_VERSION = '1.6.0'
45
+ GEM_VERSION = '1.7.0'
46
46
 
47
47
  end
@@ -549,8 +549,8 @@ module Aws::Organizations
549
549
  # The user in the master account who calls this API must also have the
550
550
  # `iam:CreateRole` permission because AWS Organizations preconfigures
551
551
  # the new member account with a role (named
552
- # `OrganizationAccountAccessRole`) that grants users in the master
553
- # account administrator permissions in the new member account.
552
+ # `OrganizationAccountAccessRole` by default) that grants users in the
553
+ # master account administrator permissions in the new member account.
554
554
  # Principals in the master account can assume the role. AWS
555
555
  # Organizations clones the company name and address information for the
556
556
  # new account from the organization's master account.
@@ -583,6 +583,9 @@ module Aws::Organizations
583
583
  #
584
584
  # </note>
585
585
  #
586
+ # This operation can be called only from the organization's master
587
+ # account.
588
+ #
586
589
  # If you get an exception that indicates that you exceeded your account
587
590
  # limits for the organization or that you can"t add an account because
588
591
  # your organization is still initializing, please contact [ AWS Customer
@@ -1756,6 +1759,65 @@ module Aws::Organizations
1756
1759
  req.send_request(options)
1757
1760
  end
1758
1761
 
1762
+ # Disables the integration of an AWS service (the service that is
1763
+ # specified by `ServicePrincipal`) with AWS Organizations. When you
1764
+ # disable integration, the specified service no longer can create a
1765
+ # [service-linked role][1] in *new* accounts in your organization. This
1766
+ # means the service can't perform operations on your behalf on any new
1767
+ # accounts in your organization. The service can still perform
1768
+ # operations in older accounts until the service completes its clean-up
1769
+ # from AWS Organizations.
1770
+ #
1771
+ #
1772
+ #
1773
+ # We recommend that you disable integration between AWS Organizations
1774
+ # and the specified AWS service by using the console or commands that
1775
+ # are provided by the specified service. Doing so ensures that the other
1776
+ # service is aware that it can clean up any resources that are required
1777
+ # only for the integration. How the service cleans up its resources in
1778
+ # the organization's accounts depends on that service. For more
1779
+ # information, see the documentation for the other AWS service.
1780
+ #
1781
+ # After you perform the `DisableAWSServiceAccess` operation, the
1782
+ # specified service can no longer perform operations in your
1783
+ # organization's accounts unless the operations are explicitly
1784
+ # permitted by the IAM policies that are attached to your roles.
1785
+ #
1786
+ # For more information about integrating other services with AWS
1787
+ # Organizations, including the list of services that work with
1788
+ # Organizations, see [Integrating AWS Organizations with Other AWS
1789
+ # Services][2] in the *AWS Organizations User Guide*.
1790
+ #
1791
+ # This operation can be called only from the organization's master
1792
+ # account.
1793
+ #
1794
+ #
1795
+ #
1796
+ # [1]: http://docs.aws.amazon.com/IAM/latest/UserGuide/using-service-linked-roles.html
1797
+ # [2]: http://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html
1798
+ #
1799
+ # @option params [required, String] :service_principal
1800
+ # The service principal name of the AWS service for which you want to
1801
+ # disable integration with your organization. This is typically in the
1802
+ # form of a URL, such as ` service-abbreviation.amazonaws.com`.
1803
+ #
1804
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1805
+ #
1806
+ # @example Request syntax with placeholder values
1807
+ #
1808
+ # resp = client.disable_aws_service_access({
1809
+ # service_principal: "ServicePrincipal", # required
1810
+ # })
1811
+ #
1812
+ # @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DisableAWSServiceAccess AWS API Documentation
1813
+ #
1814
+ # @overload disable_aws_service_access(params = {})
1815
+ # @param [Hash] params ({})
1816
+ def disable_aws_service_access(params = {}, options = {})
1817
+ req = build_request(:disable_aws_service_access, params)
1818
+ req.send_request(options)
1819
+ end
1820
+
1759
1821
  # Disables an organizational control policy type in a root. A policy of
1760
1822
  # a certain type can be attached to entities in a root only if that type
1761
1823
  # is enabled in the root. After you perform this operation, you no
@@ -1831,6 +1893,56 @@ module Aws::Organizations
1831
1893
  req.send_request(options)
1832
1894
  end
1833
1895
 
1896
+ # Enables the integration of an AWS service (the service that is
1897
+ # specified by `ServicePrincipal`) with AWS Organizations. When you
1898
+ # enable integration, you allow the specified service to create a
1899
+ # [service-linked role][1] in all the accounts in your organization.
1900
+ # This allows the service to perform operations on your behalf in your
1901
+ # organization and its accounts.
1902
+ #
1903
+ # We recommend that you enable integration between AWS Organizations and
1904
+ # the specified AWS service by using the console or commands that are
1905
+ # provided by the specified service. Doing so ensures that the service
1906
+ # is aware that it can create the resources that are required for the
1907
+ # integration. How the service creates those resources in the
1908
+ # organization's accounts depends on that service. For more
1909
+ # information, see the documentation for the other AWS service.
1910
+ #
1911
+ # For more information about enabling services to integrate with AWS
1912
+ # Organizations, see [Integrating AWS Organizations with Other AWS
1913
+ # Services][2] in the *AWS Organizations User Guide*.
1914
+ #
1915
+ # This operation can be called only from the organization's master
1916
+ # account and only if the organization has [enabled all features][3].
1917
+ #
1918
+ #
1919
+ #
1920
+ # [1]: http://docs.aws.amazon.com/IAM/latest/UserGuide/using-service-linked-roles.html
1921
+ # [2]: http://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html
1922
+ # [3]: http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html
1923
+ #
1924
+ # @option params [required, String] :service_principal
1925
+ # The service principal name of the AWS service for which you want to
1926
+ # enable integration with your organization. This is typically in the
1927
+ # form of a URL, such as ` service-abbreviation.amazonaws.com`.
1928
+ #
1929
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1930
+ #
1931
+ # @example Request syntax with placeholder values
1932
+ #
1933
+ # resp = client.enable_aws_service_access({
1934
+ # service_principal: "ServicePrincipal", # required
1935
+ # })
1936
+ #
1937
+ # @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/EnableAWSServiceAccess AWS API Documentation
1938
+ #
1939
+ # @overload enable_aws_service_access(params = {})
1940
+ # @param [Hash] params ({})
1941
+ def enable_aws_service_access(params = {}, options = {})
1942
+ req = build_request(:enable_aws_service_access, params)
1943
+ req.send_request(options)
1944
+ end
1945
+
1834
1946
  # Enables all features in an organization. This enables the use of
1835
1947
  # organization policies that can restrict the services and actions that
1836
1948
  # can be called in each account. Until you enable all features, you have
@@ -2215,6 +2327,69 @@ module Aws::Organizations
2215
2327
  req.send_request(options)
2216
2328
  end
2217
2329
 
2330
+ # Returns a list of the AWS services that you enabled to integrate with
2331
+ # your organization. After a service on this list creates the resources
2332
+ # that it requires for the integration, it can perform operations on
2333
+ # your organization and its accounts.
2334
+ #
2335
+ # For more information about integrating other services with AWS
2336
+ # Organizations, including the list of services that currently work with
2337
+ # Organizations, see [Integrating AWS Organizations with Other AWS
2338
+ # Services][1] in the *AWS Organizations User Guide*.
2339
+ #
2340
+ # This operation can be called only from the organization's master
2341
+ # account.
2342
+ #
2343
+ #
2344
+ #
2345
+ # [1]: http://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html
2346
+ #
2347
+ # @option params [String] :next_token
2348
+ # Use this parameter if you receive a `NextToken` response in a previous
2349
+ # request that indicates that there is more output available. Set it to
2350
+ # the value of the previous call's `NextToken` response to indicate
2351
+ # where the output should continue from.
2352
+ #
2353
+ # @option params [Integer] :max_results
2354
+ # (Optional) Use this to limit the number of results you want included
2355
+ # in the response. If you do not include this parameter, it defaults to
2356
+ # a value that is specific to the operation. If additional items exist
2357
+ # beyond the maximum you specify, the `NextToken` response element is
2358
+ # present and has a value (is not null). Include that value as the
2359
+ # `NextToken` request parameter in the next call to the operation to get
2360
+ # the next part of the results. Note that Organizations might return
2361
+ # fewer results than the maximum even when there are more results
2362
+ # available. You should check `NextToken` after every operation to
2363
+ # ensure that you receive all of the results.
2364
+ #
2365
+ # @return [Types::ListAWSServiceAccessForOrganizationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2366
+ #
2367
+ # * {Types::ListAWSServiceAccessForOrganizationResponse#enabled_service_principals #enabled_service_principals} => Array&lt;Types::EnabledServicePrincipal&gt;
2368
+ # * {Types::ListAWSServiceAccessForOrganizationResponse#next_token #next_token} => String
2369
+ #
2370
+ # @example Request syntax with placeholder values
2371
+ #
2372
+ # resp = client.list_aws_service_access_for_organization({
2373
+ # next_token: "NextToken",
2374
+ # max_results: 1,
2375
+ # })
2376
+ #
2377
+ # @example Response structure
2378
+ #
2379
+ # resp.enabled_service_principals #=> Array
2380
+ # resp.enabled_service_principals[0].service_principal #=> String
2381
+ # resp.enabled_service_principals[0].date_enabled #=> Time
2382
+ # resp.next_token #=> String
2383
+ #
2384
+ # @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListAWSServiceAccessForOrganization AWS API Documentation
2385
+ #
2386
+ # @overload list_aws_service_access_for_organization(params = {})
2387
+ # @param [Hash] params ({})
2388
+ def list_aws_service_access_for_organization(params = {}, options = {})
2389
+ req = build_request(:list_aws_service_access_for_organization, params)
2390
+ req.send_request(options)
2391
+ end
2392
+
2218
2393
  # Lists all the accounts in the organization. To request only the
2219
2394
  # accounts in a root or OU, use the ListAccountsForParent operation
2220
2395
  # instead.
@@ -3904,7 +4079,7 @@ module Aws::Organizations
3904
4079
  params: params,
3905
4080
  config: config)
3906
4081
  context[:gem_name] = 'aws-sdk-organizations'
3907
- context[:gem_version] = '1.6.0'
4082
+ context[:gem_version] = '1.7.0'
3908
4083
  Seahorse::Client::Request.new(handlers, context)
3909
4084
  end
3910
4085
 
@@ -71,6 +71,7 @@ module Aws::Organizations
71
71
  DescribePolicyResponse = Shapes::StructureShape.new(name: 'DescribePolicyResponse')
72
72
  DestinationParentNotFoundException = Shapes::StructureShape.new(name: 'DestinationParentNotFoundException')
73
73
  DetachPolicyRequest = Shapes::StructureShape.new(name: 'DetachPolicyRequest')
74
+ DisableAWSServiceAccessRequest = Shapes::StructureShape.new(name: 'DisableAWSServiceAccessRequest')
74
75
  DisablePolicyTypeRequest = Shapes::StructureShape.new(name: 'DisablePolicyTypeRequest')
75
76
  DisablePolicyTypeResponse = Shapes::StructureShape.new(name: 'DisablePolicyTypeResponse')
76
77
  DuplicateAccountException = Shapes::StructureShape.new(name: 'DuplicateAccountException')
@@ -79,10 +80,13 @@ module Aws::Organizations
79
80
  DuplicatePolicyAttachmentException = Shapes::StructureShape.new(name: 'DuplicatePolicyAttachmentException')
80
81
  DuplicatePolicyException = Shapes::StructureShape.new(name: 'DuplicatePolicyException')
81
82
  Email = Shapes::StringShape.new(name: 'Email')
83
+ EnableAWSServiceAccessRequest = Shapes::StructureShape.new(name: 'EnableAWSServiceAccessRequest')
82
84
  EnableAllFeaturesRequest = Shapes::StructureShape.new(name: 'EnableAllFeaturesRequest')
83
85
  EnableAllFeaturesResponse = Shapes::StructureShape.new(name: 'EnableAllFeaturesResponse')
84
86
  EnablePolicyTypeRequest = Shapes::StructureShape.new(name: 'EnablePolicyTypeRequest')
85
87
  EnablePolicyTypeResponse = Shapes::StructureShape.new(name: 'EnablePolicyTypeResponse')
88
+ EnabledServicePrincipal = Shapes::StructureShape.new(name: 'EnabledServicePrincipal')
89
+ EnabledServicePrincipals = Shapes::ListShape.new(name: 'EnabledServicePrincipals')
86
90
  ExceptionMessage = Shapes::StringShape.new(name: 'ExceptionMessage')
87
91
  ExceptionType = Shapes::StringShape.new(name: 'ExceptionType')
88
92
  FinalizingOrganizationException = Shapes::StructureShape.new(name: 'FinalizingOrganizationException')
@@ -112,6 +116,8 @@ module Aws::Organizations
112
116
  InvalidInputExceptionReason = Shapes::StringShape.new(name: 'InvalidInputExceptionReason')
113
117
  InviteAccountToOrganizationRequest = Shapes::StructureShape.new(name: 'InviteAccountToOrganizationRequest')
114
118
  InviteAccountToOrganizationResponse = Shapes::StructureShape.new(name: 'InviteAccountToOrganizationResponse')
119
+ ListAWSServiceAccessForOrganizationRequest = Shapes::StructureShape.new(name: 'ListAWSServiceAccessForOrganizationRequest')
120
+ ListAWSServiceAccessForOrganizationResponse = Shapes::StructureShape.new(name: 'ListAWSServiceAccessForOrganizationResponse')
115
121
  ListAccountsForParentRequest = Shapes::StructureShape.new(name: 'ListAccountsForParentRequest')
116
122
  ListAccountsForParentResponse = Shapes::StructureShape.new(name: 'ListAccountsForParentResponse')
117
123
  ListAccountsRequest = Shapes::StructureShape.new(name: 'ListAccountsRequest')
@@ -188,6 +194,7 @@ module Aws::Organizations
188
194
  RootNotFoundException = Shapes::StructureShape.new(name: 'RootNotFoundException')
189
195
  Roots = Shapes::ListShape.new(name: 'Roots')
190
196
  ServiceException = Shapes::StructureShape.new(name: 'ServiceException')
197
+ ServicePrincipal = Shapes::StringShape.new(name: 'ServicePrincipal')
191
198
  SourceParentNotFoundException = Shapes::StructureShape.new(name: 'SourceParentNotFoundException')
192
199
  TargetName = Shapes::StringShape.new(name: 'TargetName')
193
200
  TargetNotFoundException = Shapes::StructureShape.new(name: 'TargetNotFoundException')
@@ -325,6 +332,9 @@ module Aws::Organizations
325
332
  DetachPolicyRequest.add_member(:target_id, Shapes::ShapeRef.new(shape: PolicyTargetId, required: true, location_name: "TargetId"))
326
333
  DetachPolicyRequest.struct_class = Types::DetachPolicyRequest
327
334
 
335
+ DisableAWSServiceAccessRequest.add_member(:service_principal, Shapes::ShapeRef.new(shape: ServicePrincipal, required: true, location_name: "ServicePrincipal"))
336
+ DisableAWSServiceAccessRequest.struct_class = Types::DisableAWSServiceAccessRequest
337
+
328
338
  DisablePolicyTypeRequest.add_member(:root_id, Shapes::ShapeRef.new(shape: RootId, required: true, location_name: "RootId"))
329
339
  DisablePolicyTypeRequest.add_member(:policy_type, Shapes::ShapeRef.new(shape: PolicyType, required: true, location_name: "PolicyType"))
330
340
  DisablePolicyTypeRequest.struct_class = Types::DisablePolicyTypeRequest
@@ -332,6 +342,9 @@ module Aws::Organizations
332
342
  DisablePolicyTypeResponse.add_member(:root, Shapes::ShapeRef.new(shape: Root, location_name: "Root"))
333
343
  DisablePolicyTypeResponse.struct_class = Types::DisablePolicyTypeResponse
334
344
 
345
+ EnableAWSServiceAccessRequest.add_member(:service_principal, Shapes::ShapeRef.new(shape: ServicePrincipal, required: true, location_name: "ServicePrincipal"))
346
+ EnableAWSServiceAccessRequest.struct_class = Types::EnableAWSServiceAccessRequest
347
+
335
348
  EnableAllFeaturesRequest.struct_class = Types::EnableAllFeaturesRequest
336
349
 
337
350
  EnableAllFeaturesResponse.add_member(:handshake, Shapes::ShapeRef.new(shape: Handshake, location_name: "Handshake"))
@@ -344,6 +357,12 @@ module Aws::Organizations
344
357
  EnablePolicyTypeResponse.add_member(:root, Shapes::ShapeRef.new(shape: Root, location_name: "Root"))
345
358
  EnablePolicyTypeResponse.struct_class = Types::EnablePolicyTypeResponse
346
359
 
360
+ EnabledServicePrincipal.add_member(:service_principal, Shapes::ShapeRef.new(shape: ServicePrincipal, location_name: "ServicePrincipal"))
361
+ EnabledServicePrincipal.add_member(:date_enabled, Shapes::ShapeRef.new(shape: Timestamp, location_name: "DateEnabled"))
362
+ EnabledServicePrincipal.struct_class = Types::EnabledServicePrincipal
363
+
364
+ EnabledServicePrincipals.member = Shapes::ShapeRef.new(shape: EnabledServicePrincipal)
365
+
347
366
  Handshake.add_member(:id, Shapes::ShapeRef.new(shape: HandshakeId, location_name: "Id"))
348
367
  Handshake.add_member(:arn, Shapes::ShapeRef.new(shape: HandshakeArn, location_name: "Arn"))
349
368
  Handshake.add_member(:parties, Shapes::ShapeRef.new(shape: HandshakeParties, location_name: "Parties"))
@@ -380,6 +399,14 @@ module Aws::Organizations
380
399
  InviteAccountToOrganizationResponse.add_member(:handshake, Shapes::ShapeRef.new(shape: Handshake, location_name: "Handshake"))
381
400
  InviteAccountToOrganizationResponse.struct_class = Types::InviteAccountToOrganizationResponse
382
401
 
402
+ ListAWSServiceAccessForOrganizationRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
403
+ ListAWSServiceAccessForOrganizationRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
404
+ ListAWSServiceAccessForOrganizationRequest.struct_class = Types::ListAWSServiceAccessForOrganizationRequest
405
+
406
+ ListAWSServiceAccessForOrganizationResponse.add_member(:enabled_service_principals, Shapes::ShapeRef.new(shape: EnabledServicePrincipals, location_name: "EnabledServicePrincipals"))
407
+ ListAWSServiceAccessForOrganizationResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
408
+ ListAWSServiceAccessForOrganizationResponse.struct_class = Types::ListAWSServiceAccessForOrganizationResponse
409
+
383
410
  ListAccountsForParentRequest.add_member(:parent_id, Shapes::ShapeRef.new(shape: ParentId, required: true, location_name: "ParentId"))
384
411
  ListAccountsForParentRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
385
412
  ListAccountsForParentRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
@@ -871,6 +898,21 @@ module Aws::Organizations
871
898
  o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
872
899
  end)
873
900
 
901
+ api.add_operation(:disable_aws_service_access, Seahorse::Model::Operation.new.tap do |o|
902
+ o.name = "DisableAWSServiceAccess"
903
+ o.http_method = "POST"
904
+ o.http_request_uri = "/"
905
+ o.input = Shapes::ShapeRef.new(shape: DisableAWSServiceAccessRequest)
906
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
907
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
908
+ o.errors << Shapes::ShapeRef.new(shape: AWSOrganizationsNotInUseException)
909
+ o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
910
+ o.errors << Shapes::ShapeRef.new(shape: ConstraintViolationException)
911
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
912
+ o.errors << Shapes::ShapeRef.new(shape: ServiceException)
913
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
914
+ end)
915
+
874
916
  api.add_operation(:disable_policy_type, Seahorse::Model::Operation.new.tap do |o|
875
917
  o.name = "DisablePolicyType"
876
918
  o.http_method = "POST"
@@ -888,6 +930,21 @@ module Aws::Organizations
888
930
  o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
889
931
  end)
890
932
 
933
+ api.add_operation(:enable_aws_service_access, Seahorse::Model::Operation.new.tap do |o|
934
+ o.name = "EnableAWSServiceAccess"
935
+ o.http_method = "POST"
936
+ o.http_request_uri = "/"
937
+ o.input = Shapes::ShapeRef.new(shape: EnableAWSServiceAccessRequest)
938
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
939
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
940
+ o.errors << Shapes::ShapeRef.new(shape: AWSOrganizationsNotInUseException)
941
+ o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
942
+ o.errors << Shapes::ShapeRef.new(shape: ConstraintViolationException)
943
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
944
+ o.errors << Shapes::ShapeRef.new(shape: ServiceException)
945
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
946
+ end)
947
+
891
948
  api.add_operation(:enable_all_features, Seahorse::Model::Operation.new.tap do |o|
892
949
  o.name = "EnableAllFeatures"
893
950
  o.http_method = "POST"
@@ -955,6 +1012,26 @@ module Aws::Organizations
955
1012
  o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
956
1013
  end)
957
1014
 
1015
+ api.add_operation(:list_aws_service_access_for_organization, Seahorse::Model::Operation.new.tap do |o|
1016
+ o.name = "ListAWSServiceAccessForOrganization"
1017
+ o.http_method = "POST"
1018
+ o.http_request_uri = "/"
1019
+ o.input = Shapes::ShapeRef.new(shape: ListAWSServiceAccessForOrganizationRequest)
1020
+ o.output = Shapes::ShapeRef.new(shape: ListAWSServiceAccessForOrganizationResponse)
1021
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1022
+ o.errors << Shapes::ShapeRef.new(shape: AWSOrganizationsNotInUseException)
1023
+ o.errors << Shapes::ShapeRef.new(shape: ConstraintViolationException)
1024
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
1025
+ o.errors << Shapes::ShapeRef.new(shape: ServiceException)
1026
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
1027
+ o[:pager] = Aws::Pager.new(
1028
+ limit_key: "max_results",
1029
+ tokens: {
1030
+ "next_token" => "next_token"
1031
+ }
1032
+ )
1033
+ end)
1034
+
958
1035
  api.add_operation(:list_accounts, Seahorse::Model::Operation.new.tap do |o|
959
1036
  o.name = "ListAccounts"
960
1037
  o.http_method = "POST"
@@ -937,6 +937,26 @@ module Aws::Organizations
937
937
  include Aws::Structure
938
938
  end
939
939
 
940
+ # @note When making an API call, you may pass DisableAWSServiceAccessRequest
941
+ # data as a hash:
942
+ #
943
+ # {
944
+ # service_principal: "ServicePrincipal", # required
945
+ # }
946
+ #
947
+ # @!attribute [rw] service_principal
948
+ # The service principal name of the AWS service for which you want to
949
+ # disable integration with your organization. This is typically in the
950
+ # form of a URL, such as ` service-abbreviation.amazonaws.com`.
951
+ # @return [String]
952
+ #
953
+ # @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DisableAWSServiceAccessRequest AWS API Documentation
954
+ #
955
+ class DisableAWSServiceAccessRequest < Struct.new(
956
+ :service_principal)
957
+ include Aws::Structure
958
+ end
959
+
940
960
  # @note When making an API call, you may pass DisablePolicyTypeRequest
941
961
  # data as a hash:
942
962
  #
@@ -981,6 +1001,26 @@ module Aws::Organizations
981
1001
  include Aws::Structure
982
1002
  end
983
1003
 
1004
+ # @note When making an API call, you may pass EnableAWSServiceAccessRequest
1005
+ # data as a hash:
1006
+ #
1007
+ # {
1008
+ # service_principal: "ServicePrincipal", # required
1009
+ # }
1010
+ #
1011
+ # @!attribute [rw] service_principal
1012
+ # The service principal name of the AWS service for which you want to
1013
+ # enable integration with your organization. This is typically in the
1014
+ # form of a URL, such as ` service-abbreviation.amazonaws.com`.
1015
+ # @return [String]
1016
+ #
1017
+ # @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/EnableAWSServiceAccessRequest AWS API Documentation
1018
+ #
1019
+ class EnableAWSServiceAccessRequest < Struct.new(
1020
+ :service_principal)
1021
+ include Aws::Structure
1022
+ end
1023
+
984
1024
  # @api private
985
1025
  #
986
1026
  # @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/EnableAllFeaturesRequest AWS API Documentation
@@ -1043,6 +1083,27 @@ module Aws::Organizations
1043
1083
  include Aws::Structure
1044
1084
  end
1045
1085
 
1086
+ # A structure that contains details of a service principal that is
1087
+ # enabled to integrate with AWS Organizations.
1088
+ #
1089
+ # @!attribute [rw] service_principal
1090
+ # The name of the service principal. This is typically in the form of
1091
+ # a URL, such as: ` servicename.amazonaws.com`.
1092
+ # @return [String]
1093
+ #
1094
+ # @!attribute [rw] date_enabled
1095
+ # The date that the service principal was enabled for integration with
1096
+ # AWS Organizations.
1097
+ # @return [Time]
1098
+ #
1099
+ # @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/EnabledServicePrincipal AWS API Documentation
1100
+ #
1101
+ class EnabledServicePrincipal < Struct.new(
1102
+ :service_principal,
1103
+ :date_enabled)
1104
+ include Aws::Structure
1105
+ end
1106
+
1046
1107
  # Contains information that must be exchanged to securely establish a
1047
1108
  # relationship between two accounts (an *originator* and a *recipient*).
1048
1109
  # For example, when a master account (the originator) invites another
@@ -1335,6 +1396,65 @@ module Aws::Organizations
1335
1396
  include Aws::Structure
1336
1397
  end
1337
1398
 
1399
+ # @note When making an API call, you may pass ListAWSServiceAccessForOrganizationRequest
1400
+ # data as a hash:
1401
+ #
1402
+ # {
1403
+ # next_token: "NextToken",
1404
+ # max_results: 1,
1405
+ # }
1406
+ #
1407
+ # @!attribute [rw] next_token
1408
+ # Use this parameter if you receive a `NextToken` response in a
1409
+ # previous request that indicates that there is more output available.
1410
+ # Set it to the value of the previous call's `NextToken` response to
1411
+ # indicate where the output should continue from.
1412
+ # @return [String]
1413
+ #
1414
+ # @!attribute [rw] max_results
1415
+ # (Optional) Use this to limit the number of results you want included
1416
+ # in the response. If you do not include this parameter, it defaults
1417
+ # to a value that is specific to the operation. If additional items
1418
+ # exist beyond the maximum you specify, the `NextToken` response
1419
+ # element is present and has a value (is not null). Include that value
1420
+ # as the `NextToken` request parameter in the next call to the
1421
+ # operation to get the next part of the results. Note that
1422
+ # Organizations might return fewer results than the maximum even when
1423
+ # there are more results available. You should check `NextToken` after
1424
+ # every operation to ensure that you receive all of the results.
1425
+ # @return [Integer]
1426
+ #
1427
+ # @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListAWSServiceAccessForOrganizationRequest AWS API Documentation
1428
+ #
1429
+ class ListAWSServiceAccessForOrganizationRequest < Struct.new(
1430
+ :next_token,
1431
+ :max_results)
1432
+ include Aws::Structure
1433
+ end
1434
+
1435
+ # @!attribute [rw] enabled_service_principals
1436
+ # A list of the service principals for the services that are enabled
1437
+ # to integrate with your organization. Each principal is a structure
1438
+ # that includes the name and the date that it was enabled for
1439
+ # integration with AWS Organizations.
1440
+ # @return [Array<Types::EnabledServicePrincipal>]
1441
+ #
1442
+ # @!attribute [rw] next_token
1443
+ # If present, this value indicates that there is more output available
1444
+ # than is included in the current response. Use this value in the
1445
+ # `NextToken` request parameter in a subsequent call to the operation
1446
+ # to get the next part of the output. You should repeat this until the
1447
+ # `NextToken` response element comes back as `null`.
1448
+ # @return [String]
1449
+ #
1450
+ # @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListAWSServiceAccessForOrganizationResponse AWS API Documentation
1451
+ #
1452
+ class ListAWSServiceAccessForOrganizationResponse < Struct.new(
1453
+ :enabled_service_principals,
1454
+ :next_token)
1455
+ include Aws::Structure
1456
+ end
1457
+
1338
1458
  # @note When making an API call, you may pass ListAccountsForParentRequest
1339
1459
  # data as a hash:
1340
1460
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-organizations
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.7.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: 2017-11-07 00:00:00.000000000 Z
11
+ date: 2017-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core