aws-sdk-account 1.8.0 → 1.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-account/client.rb +281 -1
- data/lib/aws-sdk-account/client_api.rb +120 -1
- data/lib/aws-sdk-account/endpoint_provider.rb +86 -208
- data/lib/aws-sdk-account/endpoints.rb +56 -0
- data/lib/aws-sdk-account/errors.rb +26 -0
- data/lib/aws-sdk-account/plugins/endpoints.rb +8 -0
- data/lib/aws-sdk-account/types.rb +331 -73
- data/lib/aws-sdk-account.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: 2d76fd7e648e0deafd7fec5a9bd806d1a60c494ff2a40a025a3b95c741c30b83
|
4
|
+
data.tar.gz: 101eba9dfacd7ec708d9ce9cf17f169f9a399fc7fc02f2c4b4cba9eb735ba354
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a290e7a52e78b978de93845663a4b147d9888bdf9b9a938e2f91f03e2da43cd15eba0e33dc470ff6a836938b38e097a58364883b4c7425cf86416a188eb80e7f
|
7
|
+
data.tar.gz: 4ee75275ffc68ca66b7e894ca461df02ad8d8a66b9656edb0b99e3d97d4757fea16348d3dd2288894ead2e11bb4283ec2e3e006d17824ba95b59efffafabb19a
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,18 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.10.0 (2023-02-13)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release of the Account Management API enables customers to view and manage whether AWS Opt-In Regions are enabled or disabled for their Account. For more information, see https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-regions.html
|
8
|
+
|
9
|
+
1.9.0 (2023-01-18)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
14
|
+
* Issue - Replace runtime endpoint resolution approach with generated ruby code.
|
15
|
+
|
4
16
|
1.8.0 (2022-10-25)
|
5
17
|
------------------
|
6
18
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.10.0
|
@@ -441,6 +441,125 @@ module Aws::Account
|
|
441
441
|
req.send_request(options)
|
442
442
|
end
|
443
443
|
|
444
|
+
# Disables (opts-out) a particular Region for an account.
|
445
|
+
#
|
446
|
+
# @option params [String] :account_id
|
447
|
+
# Specifies the 12-digit account ID number of the Amazon Web Services
|
448
|
+
# account that you want to access or modify with this operation. If you
|
449
|
+
# don't specify this parameter, it defaults to the Amazon Web Services
|
450
|
+
# account of the identity used to call the operation. To use this
|
451
|
+
# parameter, the caller must be an identity in the [organization's
|
452
|
+
# management account][1] or a delegated administrator account. The
|
453
|
+
# specified account ID must also be a member account in the same
|
454
|
+
# organization. The organization must have [all features enabled][2],
|
455
|
+
# and the organization must have [trusted access][3] enabled for the
|
456
|
+
# Account Management service, and optionally a [delegated admin][4]
|
457
|
+
# account assigned.
|
458
|
+
#
|
459
|
+
# <note markdown="1"> The management account can't specify its own `AccountId`. It must
|
460
|
+
# call the operation in standalone context by not including the
|
461
|
+
# `AccountId` parameter.
|
462
|
+
#
|
463
|
+
# </note>
|
464
|
+
#
|
465
|
+
# To call this operation on an account that is not a member of an
|
466
|
+
# organization, don't specify this parameter. Instead, call the
|
467
|
+
# operation using an identity belonging to the account whose contacts
|
468
|
+
# you wish to retrieve or modify.
|
469
|
+
#
|
470
|
+
#
|
471
|
+
#
|
472
|
+
# [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account
|
473
|
+
# [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html
|
474
|
+
# [3]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html
|
475
|
+
# [4]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html
|
476
|
+
#
|
477
|
+
# @option params [required, String] :region_name
|
478
|
+
# Specifies the Region-code for a given Region name (for example,
|
479
|
+
# `af-south-1`). When you disable a Region, AWS performs actions to
|
480
|
+
# deactivate that Region in your account, such as destroying IAM
|
481
|
+
# resources in the Region. This process takes a few minutes for most
|
482
|
+
# accounts, but this can take several hours. You cannot enable the
|
483
|
+
# Region until the disabling process is fully completed.
|
484
|
+
#
|
485
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
486
|
+
#
|
487
|
+
# @example Request syntax with placeholder values
|
488
|
+
#
|
489
|
+
# resp = client.disable_region({
|
490
|
+
# account_id: "AccountId",
|
491
|
+
# region_name: "RegionName", # required
|
492
|
+
# })
|
493
|
+
#
|
494
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/DisableRegion AWS API Documentation
|
495
|
+
#
|
496
|
+
# @overload disable_region(params = {})
|
497
|
+
# @param [Hash] params ({})
|
498
|
+
def disable_region(params = {}, options = {})
|
499
|
+
req = build_request(:disable_region, params)
|
500
|
+
req.send_request(options)
|
501
|
+
end
|
502
|
+
|
503
|
+
# Enables (opts-in) a particular Region for an account.
|
504
|
+
#
|
505
|
+
# @option params [String] :account_id
|
506
|
+
# Specifies the 12-digit account ID number of the Amazon Web Services
|
507
|
+
# account that you want to access or modify with this operation. If you
|
508
|
+
# don't specify this parameter, it defaults to the Amazon Web Services
|
509
|
+
# account of the identity used to call the operation. To use this
|
510
|
+
# parameter, the caller must be an identity in the [organization's
|
511
|
+
# management account][1] or a delegated administrator account. The
|
512
|
+
# specified account ID must also be a member account in the same
|
513
|
+
# organization. The organization must have [all features enabled][2],
|
514
|
+
# and the organization must have [trusted access][3] enabled for the
|
515
|
+
# Account Management service, and optionally a [delegated admin][4]
|
516
|
+
# account assigned.
|
517
|
+
#
|
518
|
+
# <note markdown="1"> The management account can't specify its own `AccountId`. It must
|
519
|
+
# call the operation in standalone context by not including the
|
520
|
+
# `AccountId` parameter.
|
521
|
+
#
|
522
|
+
# </note>
|
523
|
+
#
|
524
|
+
# To call this operation on an account that is not a member of an
|
525
|
+
# organization, don't specify this parameter. Instead, call the
|
526
|
+
# operation using an identity belonging to the account whose contacts
|
527
|
+
# you wish to retrieve or modify.
|
528
|
+
#
|
529
|
+
#
|
530
|
+
#
|
531
|
+
# [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account
|
532
|
+
# [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html
|
533
|
+
# [3]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html
|
534
|
+
# [4]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html
|
535
|
+
#
|
536
|
+
# @option params [required, String] :region_name
|
537
|
+
# Specifies the Region-code for a given Region name (for example,
|
538
|
+
# `af-south-1`). When you enable a Region, AWS performs actions to
|
539
|
+
# prepare your account in that Region, such as distributing your IAM
|
540
|
+
# resources to the Region. This process takes a few minutes for most
|
541
|
+
# accounts, but it can take several hours. You cannot use the Region
|
542
|
+
# until this process is complete. Furthermore, you cannot disable the
|
543
|
+
# Region until the enabling process is fully completed.
|
544
|
+
#
|
545
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
546
|
+
#
|
547
|
+
# @example Request syntax with placeholder values
|
548
|
+
#
|
549
|
+
# resp = client.enable_region({
|
550
|
+
# account_id: "AccountId",
|
551
|
+
# region_name: "RegionName", # required
|
552
|
+
# })
|
553
|
+
#
|
554
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/EnableRegion AWS API Documentation
|
555
|
+
#
|
556
|
+
# @overload enable_region(params = {})
|
557
|
+
# @param [Hash] params ({})
|
558
|
+
def enable_region(params = {}, options = {})
|
559
|
+
req = build_request(:enable_region, params)
|
560
|
+
req.send_request(options)
|
561
|
+
end
|
562
|
+
|
444
563
|
# Retrieves the specified alternate contact attached to an Amazon Web
|
445
564
|
# Services account.
|
446
565
|
#
|
@@ -599,6 +718,167 @@ module Aws::Account
|
|
599
718
|
req.send_request(options)
|
600
719
|
end
|
601
720
|
|
721
|
+
# Retrieves the opt-in status of a particular Region.
|
722
|
+
#
|
723
|
+
# @option params [String] :account_id
|
724
|
+
# Specifies the 12-digit account ID number of the Amazon Web Services
|
725
|
+
# account that you want to access or modify with this operation. If you
|
726
|
+
# don't specify this parameter, it defaults to the Amazon Web Services
|
727
|
+
# account of the identity used to call the operation. To use this
|
728
|
+
# parameter, the caller must be an identity in the [organization's
|
729
|
+
# management account][1] or a delegated administrator account. The
|
730
|
+
# specified account ID must also be a member account in the same
|
731
|
+
# organization. The organization must have [all features enabled][2],
|
732
|
+
# and the organization must have [trusted access][3] enabled for the
|
733
|
+
# Account Management service, and optionally a [delegated admin][4]
|
734
|
+
# account assigned.
|
735
|
+
#
|
736
|
+
# <note markdown="1"> The management account can't specify its own `AccountId`. It must
|
737
|
+
# call the operation in standalone context by not including the
|
738
|
+
# `AccountId` parameter.
|
739
|
+
#
|
740
|
+
# </note>
|
741
|
+
#
|
742
|
+
# To call this operation on an account that is not a member of an
|
743
|
+
# organization, don't specify this parameter. Instead, call the
|
744
|
+
# operation using an identity belonging to the account whose contacts
|
745
|
+
# you wish to retrieve or modify.
|
746
|
+
#
|
747
|
+
#
|
748
|
+
#
|
749
|
+
# [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account
|
750
|
+
# [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html
|
751
|
+
# [3]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html
|
752
|
+
# [4]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html
|
753
|
+
#
|
754
|
+
# @option params [required, String] :region_name
|
755
|
+
# Specifies the Region-code for a given Region name (for example,
|
756
|
+
# `af-south-1`). This function will return the status of whatever Region
|
757
|
+
# you pass into this parameter.
|
758
|
+
#
|
759
|
+
# @return [Types::GetRegionOptStatusResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
760
|
+
#
|
761
|
+
# * {Types::GetRegionOptStatusResponse#region_name #region_name} => String
|
762
|
+
# * {Types::GetRegionOptStatusResponse#region_opt_status #region_opt_status} => String
|
763
|
+
#
|
764
|
+
# @example Request syntax with placeholder values
|
765
|
+
#
|
766
|
+
# resp = client.get_region_opt_status({
|
767
|
+
# account_id: "AccountId",
|
768
|
+
# region_name: "RegionName", # required
|
769
|
+
# })
|
770
|
+
#
|
771
|
+
# @example Response structure
|
772
|
+
#
|
773
|
+
# resp.region_name #=> String
|
774
|
+
# resp.region_opt_status #=> String, one of "ENABLED", "ENABLING", "DISABLING", "DISABLED", "ENABLED_BY_DEFAULT"
|
775
|
+
#
|
776
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetRegionOptStatus AWS API Documentation
|
777
|
+
#
|
778
|
+
# @overload get_region_opt_status(params = {})
|
779
|
+
# @param [Hash] params ({})
|
780
|
+
def get_region_opt_status(params = {}, options = {})
|
781
|
+
req = build_request(:get_region_opt_status, params)
|
782
|
+
req.send_request(options)
|
783
|
+
end
|
784
|
+
|
785
|
+
# Lists all the Regions for a given account and their respective opt-in
|
786
|
+
# statuses. Optionally, this list can be filtered by the
|
787
|
+
# `region-opt-status-contains` parameter.
|
788
|
+
#
|
789
|
+
# @option params [String] :account_id
|
790
|
+
# Specifies the 12-digit account ID number of the Amazon Web Services
|
791
|
+
# account that you want to access or modify with this operation. If you
|
792
|
+
# don't specify this parameter, it defaults to the Amazon Web Services
|
793
|
+
# account of the identity used to call the operation. To use this
|
794
|
+
# parameter, the caller must be an identity in the [organization's
|
795
|
+
# management account][1] or a delegated administrator account. The
|
796
|
+
# specified account ID must also be a member account in the same
|
797
|
+
# organization. The organization must have [all features enabled][2],
|
798
|
+
# and the organization must have [trusted access][3] enabled for the
|
799
|
+
# Account Management service, and optionally a [delegated admin][4]
|
800
|
+
# account assigned.
|
801
|
+
#
|
802
|
+
# <note markdown="1"> The management account can't specify its own `AccountId`. It must
|
803
|
+
# call the operation in standalone context by not including the
|
804
|
+
# `AccountId` parameter.
|
805
|
+
#
|
806
|
+
# </note>
|
807
|
+
#
|
808
|
+
# To call this operation on an account that is not a member of an
|
809
|
+
# organization, don't specify this parameter. Instead, call the
|
810
|
+
# operation using an identity belonging to the account whose contacts
|
811
|
+
# you wish to retrieve or modify.
|
812
|
+
#
|
813
|
+
#
|
814
|
+
#
|
815
|
+
# [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account
|
816
|
+
# [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html
|
817
|
+
# [3]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html
|
818
|
+
# [4]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html
|
819
|
+
#
|
820
|
+
# @option params [Integer] :max_results
|
821
|
+
# The total number of items to return in the command’s output. If the
|
822
|
+
# total number of items available is more than the value specified, a
|
823
|
+
# `NextToken` is provided in the command’s output. To resume pagination,
|
824
|
+
# provide the `NextToken` value in the `starting-token` argument of a
|
825
|
+
# subsequent command. Do not use the `NextToken` response element
|
826
|
+
# directly outside of the Amazon Web Services CLI. For usage examples,
|
827
|
+
# see [Pagination][1] in the *Amazon Web Services Command Line Interface
|
828
|
+
# User Guide*.
|
829
|
+
#
|
830
|
+
#
|
831
|
+
#
|
832
|
+
# [1]: http://docs.aws.amazon.com/cli/latest/userguide/pagination.html
|
833
|
+
#
|
834
|
+
# @option params [String] :next_token
|
835
|
+
# A token used to specify where to start paginating. This is the
|
836
|
+
# `NextToken` from a previously truncated response. For usage examples,
|
837
|
+
# see [Pagination][1] in the *Amazon Web Services Command Line Interface
|
838
|
+
# User Guide*.
|
839
|
+
#
|
840
|
+
#
|
841
|
+
#
|
842
|
+
# [1]: http://docs.aws.amazon.com/cli/latest/userguide/pagination.html
|
843
|
+
#
|
844
|
+
# @option params [Array<String>] :region_opt_status_contains
|
845
|
+
# A list of Region statuses (Enabling, Enabled, Disabling, Disabled,
|
846
|
+
# Enabled\_by\_default) to use to filter the list of Regions for a given
|
847
|
+
# account. For example, passing in a value of ENABLING will only return
|
848
|
+
# a list of Regions with a Region status of ENABLING.
|
849
|
+
#
|
850
|
+
# @return [Types::ListRegionsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
851
|
+
#
|
852
|
+
# * {Types::ListRegionsResponse#next_token #next_token} => String
|
853
|
+
# * {Types::ListRegionsResponse#regions #regions} => Array<Types::Region>
|
854
|
+
#
|
855
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
856
|
+
#
|
857
|
+
# @example Request syntax with placeholder values
|
858
|
+
#
|
859
|
+
# resp = client.list_regions({
|
860
|
+
# account_id: "AccountId",
|
861
|
+
# max_results: 1,
|
862
|
+
# next_token: "ListRegionsRequestNextTokenString",
|
863
|
+
# region_opt_status_contains: ["ENABLED"], # accepts ENABLED, ENABLING, DISABLING, DISABLED, ENABLED_BY_DEFAULT
|
864
|
+
# })
|
865
|
+
#
|
866
|
+
# @example Response structure
|
867
|
+
#
|
868
|
+
# resp.next_token #=> String
|
869
|
+
# resp.regions #=> Array
|
870
|
+
# resp.regions[0].region_name #=> String
|
871
|
+
# resp.regions[0].region_opt_status #=> String, one of "ENABLED", "ENABLING", "DISABLING", "DISABLED", "ENABLED_BY_DEFAULT"
|
872
|
+
#
|
873
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/ListRegions AWS API Documentation
|
874
|
+
#
|
875
|
+
# @overload list_regions(params = {})
|
876
|
+
# @param [Hash] params ({})
|
877
|
+
def list_regions(params = {}, options = {})
|
878
|
+
req = build_request(:list_regions, params)
|
879
|
+
req.send_request(options)
|
880
|
+
end
|
881
|
+
|
602
882
|
# Modifies the specified alternate contact attached to an Amazon Web
|
603
883
|
# Services account.
|
604
884
|
#
|
@@ -777,7 +1057,7 @@ module Aws::Account
|
|
777
1057
|
params: params,
|
778
1058
|
config: config)
|
779
1059
|
context[:gem_name] = 'aws-sdk-account'
|
780
|
-
context[:gem_version] = '1.
|
1060
|
+
context[:gem_version] = '1.10.0'
|
781
1061
|
Seahorse::Client::Request.new(handlers, context)
|
782
1062
|
end
|
783
1063
|
|
@@ -20,29 +20,47 @@ module Aws::Account
|
|
20
20
|
AlternateContactType = Shapes::StringShape.new(name: 'AlternateContactType')
|
21
21
|
City = Shapes::StringShape.new(name: 'City')
|
22
22
|
CompanyName = Shapes::StringShape.new(name: 'CompanyName')
|
23
|
+
ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
|
23
24
|
ContactInformation = Shapes::StructureShape.new(name: 'ContactInformation')
|
24
25
|
ContactInformationPhoneNumber = Shapes::StringShape.new(name: 'ContactInformationPhoneNumber')
|
25
26
|
CountryCode = Shapes::StringShape.new(name: 'CountryCode')
|
26
27
|
DeleteAlternateContactRequest = Shapes::StructureShape.new(name: 'DeleteAlternateContactRequest')
|
28
|
+
DisableRegionRequest = Shapes::StructureShape.new(name: 'DisableRegionRequest')
|
27
29
|
DistrictOrCounty = Shapes::StringShape.new(name: 'DistrictOrCounty')
|
28
30
|
EmailAddress = Shapes::StringShape.new(name: 'EmailAddress')
|
31
|
+
EnableRegionRequest = Shapes::StructureShape.new(name: 'EnableRegionRequest')
|
29
32
|
FullName = Shapes::StringShape.new(name: 'FullName')
|
30
33
|
GetAlternateContactRequest = Shapes::StructureShape.new(name: 'GetAlternateContactRequest')
|
31
34
|
GetAlternateContactResponse = Shapes::StructureShape.new(name: 'GetAlternateContactResponse')
|
32
35
|
GetContactInformationRequest = Shapes::StructureShape.new(name: 'GetContactInformationRequest')
|
33
36
|
GetContactInformationResponse = Shapes::StructureShape.new(name: 'GetContactInformationResponse')
|
37
|
+
GetRegionOptStatusRequest = Shapes::StructureShape.new(name: 'GetRegionOptStatusRequest')
|
38
|
+
GetRegionOptStatusResponse = Shapes::StructureShape.new(name: 'GetRegionOptStatusResponse')
|
34
39
|
InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
|
40
|
+
ListRegionsRequest = Shapes::StructureShape.new(name: 'ListRegionsRequest')
|
41
|
+
ListRegionsRequestMaxResultsInteger = Shapes::IntegerShape.new(name: 'ListRegionsRequestMaxResultsInteger')
|
42
|
+
ListRegionsRequestNextTokenString = Shapes::StringShape.new(name: 'ListRegionsRequestNextTokenString')
|
43
|
+
ListRegionsResponse = Shapes::StructureShape.new(name: 'ListRegionsResponse')
|
35
44
|
Name = Shapes::StringShape.new(name: 'Name')
|
36
45
|
PhoneNumber = Shapes::StringShape.new(name: 'PhoneNumber')
|
37
46
|
PostalCode = Shapes::StringShape.new(name: 'PostalCode')
|
38
47
|
PutAlternateContactRequest = Shapes::StructureShape.new(name: 'PutAlternateContactRequest')
|
39
48
|
PutContactInformationRequest = Shapes::StructureShape.new(name: 'PutContactInformationRequest')
|
49
|
+
Region = Shapes::StructureShape.new(name: 'Region')
|
50
|
+
RegionName = Shapes::StringShape.new(name: 'RegionName')
|
51
|
+
RegionOptList = Shapes::ListShape.new(name: 'RegionOptList')
|
52
|
+
RegionOptStatus = Shapes::StringShape.new(name: 'RegionOptStatus')
|
53
|
+
RegionOptStatusList = Shapes::ListShape.new(name: 'RegionOptStatusList')
|
40
54
|
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
55
|
+
SensitiveString = Shapes::StringShape.new(name: 'SensitiveString')
|
41
56
|
StateOrRegion = Shapes::StringShape.new(name: 'StateOrRegion')
|
42
57
|
String = Shapes::StringShape.new(name: 'String')
|
43
58
|
Title = Shapes::StringShape.new(name: 'Title')
|
44
59
|
TooManyRequestsException = Shapes::StructureShape.new(name: 'TooManyRequestsException')
|
45
60
|
ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
|
61
|
+
ValidationExceptionField = Shapes::StructureShape.new(name: 'ValidationExceptionField')
|
62
|
+
ValidationExceptionFieldList = Shapes::ListShape.new(name: 'ValidationExceptionFieldList')
|
63
|
+
ValidationExceptionReason = Shapes::StringShape.new(name: 'ValidationExceptionReason')
|
46
64
|
WebsiteUrl = Shapes::StringShape.new(name: 'WebsiteUrl')
|
47
65
|
|
48
66
|
AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
@@ -55,6 +73,9 @@ module Aws::Account
|
|
55
73
|
AlternateContact.add_member(:title, Shapes::ShapeRef.new(shape: Title, location_name: "Title"))
|
56
74
|
AlternateContact.struct_class = Types::AlternateContact
|
57
75
|
|
76
|
+
ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
77
|
+
ConflictException.struct_class = Types::ConflictException
|
78
|
+
|
58
79
|
ContactInformation.add_member(:address_line_1, Shapes::ShapeRef.new(shape: AddressLine, required: true, location_name: "AddressLine1"))
|
59
80
|
ContactInformation.add_member(:address_line_2, Shapes::ShapeRef.new(shape: AddressLine, location_name: "AddressLine2"))
|
60
81
|
ContactInformation.add_member(:address_line_3, Shapes::ShapeRef.new(shape: AddressLine, location_name: "AddressLine3"))
|
@@ -73,6 +94,14 @@ module Aws::Account
|
|
73
94
|
DeleteAlternateContactRequest.add_member(:alternate_contact_type, Shapes::ShapeRef.new(shape: AlternateContactType, required: true, location_name: "AlternateContactType"))
|
74
95
|
DeleteAlternateContactRequest.struct_class = Types::DeleteAlternateContactRequest
|
75
96
|
|
97
|
+
DisableRegionRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
|
98
|
+
DisableRegionRequest.add_member(:region_name, Shapes::ShapeRef.new(shape: RegionName, required: true, location_name: "RegionName"))
|
99
|
+
DisableRegionRequest.struct_class = Types::DisableRegionRequest
|
100
|
+
|
101
|
+
EnableRegionRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
|
102
|
+
EnableRegionRequest.add_member(:region_name, Shapes::ShapeRef.new(shape: RegionName, required: true, location_name: "RegionName"))
|
103
|
+
EnableRegionRequest.struct_class = Types::EnableRegionRequest
|
104
|
+
|
76
105
|
GetAlternateContactRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
|
77
106
|
GetAlternateContactRequest.add_member(:alternate_contact_type, Shapes::ShapeRef.new(shape: AlternateContactType, required: true, location_name: "AlternateContactType"))
|
78
107
|
GetAlternateContactRequest.struct_class = Types::GetAlternateContactRequest
|
@@ -86,9 +115,27 @@ module Aws::Account
|
|
86
115
|
GetContactInformationResponse.add_member(:contact_information, Shapes::ShapeRef.new(shape: ContactInformation, location_name: "ContactInformation"))
|
87
116
|
GetContactInformationResponse.struct_class = Types::GetContactInformationResponse
|
88
117
|
|
118
|
+
GetRegionOptStatusRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
|
119
|
+
GetRegionOptStatusRequest.add_member(:region_name, Shapes::ShapeRef.new(shape: RegionName, required: true, location_name: "RegionName"))
|
120
|
+
GetRegionOptStatusRequest.struct_class = Types::GetRegionOptStatusRequest
|
121
|
+
|
122
|
+
GetRegionOptStatusResponse.add_member(:region_name, Shapes::ShapeRef.new(shape: RegionName, location_name: "RegionName"))
|
123
|
+
GetRegionOptStatusResponse.add_member(:region_opt_status, Shapes::ShapeRef.new(shape: RegionOptStatus, location_name: "RegionOptStatus"))
|
124
|
+
GetRegionOptStatusResponse.struct_class = Types::GetRegionOptStatusResponse
|
125
|
+
|
89
126
|
InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
90
127
|
InternalServerException.struct_class = Types::InternalServerException
|
91
128
|
|
129
|
+
ListRegionsRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
|
130
|
+
ListRegionsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListRegionsRequestMaxResultsInteger, location_name: "MaxResults"))
|
131
|
+
ListRegionsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: ListRegionsRequestNextTokenString, location_name: "NextToken"))
|
132
|
+
ListRegionsRequest.add_member(:region_opt_status_contains, Shapes::ShapeRef.new(shape: RegionOptStatusList, location_name: "RegionOptStatusContains"))
|
133
|
+
ListRegionsRequest.struct_class = Types::ListRegionsRequest
|
134
|
+
|
135
|
+
ListRegionsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
|
136
|
+
ListRegionsResponse.add_member(:regions, Shapes::ShapeRef.new(shape: RegionOptList, location_name: "Regions"))
|
137
|
+
ListRegionsResponse.struct_class = Types::ListRegionsResponse
|
138
|
+
|
92
139
|
PutAlternateContactRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
|
93
140
|
PutAlternateContactRequest.add_member(:alternate_contact_type, Shapes::ShapeRef.new(shape: AlternateContactType, required: true, location_name: "AlternateContactType"))
|
94
141
|
PutAlternateContactRequest.add_member(:email_address, Shapes::ShapeRef.new(shape: EmailAddress, required: true, location_name: "EmailAddress"))
|
@@ -101,15 +148,31 @@ module Aws::Account
|
|
101
148
|
PutContactInformationRequest.add_member(:contact_information, Shapes::ShapeRef.new(shape: ContactInformation, required: true, location_name: "ContactInformation"))
|
102
149
|
PutContactInformationRequest.struct_class = Types::PutContactInformationRequest
|
103
150
|
|
151
|
+
Region.add_member(:region_name, Shapes::ShapeRef.new(shape: RegionName, location_name: "RegionName"))
|
152
|
+
Region.add_member(:region_opt_status, Shapes::ShapeRef.new(shape: RegionOptStatus, location_name: "RegionOptStatus"))
|
153
|
+
Region.struct_class = Types::Region
|
154
|
+
|
155
|
+
RegionOptList.member = Shapes::ShapeRef.new(shape: Region)
|
156
|
+
|
157
|
+
RegionOptStatusList.member = Shapes::ShapeRef.new(shape: RegionOptStatus)
|
158
|
+
|
104
159
|
ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
105
160
|
ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
|
106
161
|
|
107
162
|
TooManyRequestsException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
108
163
|
TooManyRequestsException.struct_class = Types::TooManyRequestsException
|
109
164
|
|
110
|
-
ValidationException.add_member(:
|
165
|
+
ValidationException.add_member(:field_list, Shapes::ShapeRef.new(shape: ValidationExceptionFieldList, location_name: "fieldList"))
|
166
|
+
ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: SensitiveString, required: true, location_name: "message"))
|
167
|
+
ValidationException.add_member(:reason, Shapes::ShapeRef.new(shape: ValidationExceptionReason, location_name: "reason"))
|
111
168
|
ValidationException.struct_class = Types::ValidationException
|
112
169
|
|
170
|
+
ValidationExceptionField.add_member(:message, Shapes::ShapeRef.new(shape: SensitiveString, required: true, location_name: "message"))
|
171
|
+
ValidationExceptionField.add_member(:name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "name"))
|
172
|
+
ValidationExceptionField.struct_class = Types::ValidationExceptionField
|
173
|
+
|
174
|
+
ValidationExceptionFieldList.member = Shapes::ShapeRef.new(shape: ValidationExceptionField)
|
175
|
+
|
113
176
|
|
114
177
|
# @api private
|
115
178
|
API = Seahorse::Model::Api.new.tap do |api|
|
@@ -141,6 +204,32 @@ module Aws::Account
|
|
141
204
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
142
205
|
end)
|
143
206
|
|
207
|
+
api.add_operation(:disable_region, Seahorse::Model::Operation.new.tap do |o|
|
208
|
+
o.name = "DisableRegion"
|
209
|
+
o.http_method = "POST"
|
210
|
+
o.http_request_uri = "/disableRegion"
|
211
|
+
o.input = Shapes::ShapeRef.new(shape: DisableRegionRequest)
|
212
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
213
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
214
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
215
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
216
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
217
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
218
|
+
end)
|
219
|
+
|
220
|
+
api.add_operation(:enable_region, Seahorse::Model::Operation.new.tap do |o|
|
221
|
+
o.name = "EnableRegion"
|
222
|
+
o.http_method = "POST"
|
223
|
+
o.http_request_uri = "/enableRegion"
|
224
|
+
o.input = Shapes::ShapeRef.new(shape: EnableRegionRequest)
|
225
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
226
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
227
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
228
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
229
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
230
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
231
|
+
end)
|
232
|
+
|
144
233
|
api.add_operation(:get_alternate_contact, Seahorse::Model::Operation.new.tap do |o|
|
145
234
|
o.name = "GetAlternateContact"
|
146
235
|
o.http_method = "POST"
|
@@ -167,6 +256,36 @@ module Aws::Account
|
|
167
256
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
168
257
|
end)
|
169
258
|
|
259
|
+
api.add_operation(:get_region_opt_status, Seahorse::Model::Operation.new.tap do |o|
|
260
|
+
o.name = "GetRegionOptStatus"
|
261
|
+
o.http_method = "POST"
|
262
|
+
o.http_request_uri = "/getRegionOptStatus"
|
263
|
+
o.input = Shapes::ShapeRef.new(shape: GetRegionOptStatusRequest)
|
264
|
+
o.output = Shapes::ShapeRef.new(shape: GetRegionOptStatusResponse)
|
265
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
266
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
267
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
268
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
269
|
+
end)
|
270
|
+
|
271
|
+
api.add_operation(:list_regions, Seahorse::Model::Operation.new.tap do |o|
|
272
|
+
o.name = "ListRegions"
|
273
|
+
o.http_method = "POST"
|
274
|
+
o.http_request_uri = "/listRegions"
|
275
|
+
o.input = Shapes::ShapeRef.new(shape: ListRegionsRequest)
|
276
|
+
o.output = Shapes::ShapeRef.new(shape: ListRegionsResponse)
|
277
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
278
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
279
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
280
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
281
|
+
o[:pager] = Aws::Pager.new(
|
282
|
+
limit_key: "max_results",
|
283
|
+
tokens: {
|
284
|
+
"next_token" => "next_token"
|
285
|
+
}
|
286
|
+
)
|
287
|
+
end)
|
288
|
+
|
170
289
|
api.add_operation(:put_alternate_contact, Seahorse::Model::Operation.new.tap do |o|
|
171
290
|
o.name = "PutAlternateContact"
|
172
291
|
o.http_method = "POST"
|