aws-sdk-account 1.6.0 → 1.8.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 +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-account/client.rb +198 -3
- data/lib/aws-sdk-account/client_api.rb +63 -0
- data/lib/aws-sdk-account/endpoint_parameters.rb +66 -0
- data/lib/aws-sdk-account/endpoint_provider.rb +224 -0
- data/lib/aws-sdk-account/endpoints.rb +85 -0
- data/lib/aws-sdk-account/plugins/endpoints.rb +78 -0
- data/lib/aws-sdk-account/types.rb +220 -0
- data/lib/aws-sdk-account.rb +5 -1
- metadata +8 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63a5f95f9ff923895857cc21dc19ac9672796db2d4adfc8081654307b5525ed1
|
4
|
+
data.tar.gz: ece6d3b01601efea28e0aab1d9d239e064c994e4b3fb30eb320fb1df2e9b86f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 771c84e3702ea56ac6e52010554803c8d0f5427adb00803a77a6eb936d2393ac8d7c9a8c0f83ddee064007c21eefa2d88169a0b374d63a5a8b42f46e2c888d6b
|
7
|
+
data.tar.gz: 34fd70dc5319a0f919259125d53e1a228306d98a26fb4545ef5e444e3a973ee1a345e824330731941124ebf52e1a71a0b5ca2edd76cfaf7a485c921507a5936c
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.8.0 (2022-10-25)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
1.7.0 (2022-07-22)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - This release enables customers to manage the primary contact information for their AWS accounts. For more information, see https://docs.aws.amazon.com/accounts/latest/reference/API_Operations.html
|
13
|
+
|
4
14
|
1.6.0 (2022-02-24)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.8.0
|
@@ -30,7 +30,7 @@ require 'aws-sdk-core/plugins/http_checksum.rb'
|
|
30
30
|
require 'aws-sdk-core/plugins/checksum_algorithm.rb'
|
31
31
|
require 'aws-sdk-core/plugins/defaults_mode.rb'
|
32
32
|
require 'aws-sdk-core/plugins/recursion_detection.rb'
|
33
|
-
require 'aws-sdk-core/plugins/
|
33
|
+
require 'aws-sdk-core/plugins/sign.rb'
|
34
34
|
require 'aws-sdk-core/plugins/protocols/rest_json.rb'
|
35
35
|
|
36
36
|
Aws::Plugins::GlobalConfiguration.add_identifier(:account)
|
@@ -79,8 +79,9 @@ module Aws::Account
|
|
79
79
|
add_plugin(Aws::Plugins::ChecksumAlgorithm)
|
80
80
|
add_plugin(Aws::Plugins::DefaultsMode)
|
81
81
|
add_plugin(Aws::Plugins::RecursionDetection)
|
82
|
-
add_plugin(Aws::Plugins::
|
82
|
+
add_plugin(Aws::Plugins::Sign)
|
83
83
|
add_plugin(Aws::Plugins::Protocols::RestJson)
|
84
|
+
add_plugin(Aws::Account::Plugins::Endpoints)
|
84
85
|
|
85
86
|
# @overload initialize(options)
|
86
87
|
# @param [Hash] options
|
@@ -287,6 +288,19 @@ module Aws::Account
|
|
287
288
|
# ** Please note ** When response stubbing is enabled, no HTTP
|
288
289
|
# requests are made, and retries are disabled.
|
289
290
|
#
|
291
|
+
# @option options [Aws::TokenProvider] :token_provider
|
292
|
+
# A Bearer Token Provider. This can be an instance of any one of the
|
293
|
+
# following classes:
|
294
|
+
#
|
295
|
+
# * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
|
296
|
+
# tokens.
|
297
|
+
#
|
298
|
+
# * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
|
299
|
+
# access token generated from `aws login`.
|
300
|
+
#
|
301
|
+
# When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
|
302
|
+
# will be used to search for tokens configured for your profile in shared configuration files.
|
303
|
+
#
|
290
304
|
# @option options [Boolean] :use_dualstack_endpoint
|
291
305
|
# When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
|
292
306
|
# will be used if available.
|
@@ -300,6 +314,9 @@ module Aws::Account
|
|
300
314
|
# When `true`, request parameters are validated before
|
301
315
|
# sending the request.
|
302
316
|
#
|
317
|
+
# @option options [Aws::Account::EndpointProvider] :endpoint_provider
|
318
|
+
# The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::Account::EndpointParameters`
|
319
|
+
#
|
303
320
|
# @option options [URI::HTTP,String] :http_proxy A proxy to send
|
304
321
|
# requests through. Formatted like 'http://proxy.com:123'.
|
305
322
|
#
|
@@ -357,9 +374,18 @@ module Aws::Account
|
|
357
374
|
# For complete details about how to use the alternate contact
|
358
375
|
# operations, see [Access or updating the alternate contacts][1].
|
359
376
|
#
|
377
|
+
# <note markdown="1"> Before you can update the alternate contact information for an Amazon
|
378
|
+
# Web Services account that is managed by Organizations, you must first
|
379
|
+
# enable integration between Amazon Web Services Account Management and
|
380
|
+
# Organizations. For more information, see [Enabling trusted access for
|
381
|
+
# Amazon Web Services Account Management][2].
|
382
|
+
#
|
383
|
+
# </note>
|
384
|
+
#
|
360
385
|
#
|
361
386
|
#
|
362
387
|
# [1]: https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html
|
388
|
+
# [2]: https://docs.aws.amazon.com/accounts/latest/reference/using-orgs-trusted-access.html
|
363
389
|
#
|
364
390
|
# @option params [String] :account_id
|
365
391
|
# Specifies the 12 digit account ID number of the Amazon Web Services
|
@@ -421,9 +447,18 @@ module Aws::Account
|
|
421
447
|
# For complete details about how to use the alternate contact
|
422
448
|
# operations, see [Access or updating the alternate contacts][1].
|
423
449
|
#
|
450
|
+
# <note markdown="1"> Before you can update the alternate contact information for an Amazon
|
451
|
+
# Web Services account that is managed by Organizations, you must first
|
452
|
+
# enable integration between Amazon Web Services Account Management and
|
453
|
+
# Organizations. For more information, see [Enabling trusted access for
|
454
|
+
# Amazon Web Services Account Management][2].
|
455
|
+
#
|
456
|
+
# </note>
|
457
|
+
#
|
424
458
|
#
|
425
459
|
#
|
426
460
|
# [1]: https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html
|
461
|
+
# [2]: https://docs.aws.amazon.com/accounts/latest/reference/using-orgs-trusted-access.html
|
427
462
|
#
|
428
463
|
# @option params [String] :account_id
|
429
464
|
# Specifies the 12 digit account ID number of the Amazon Web Services
|
@@ -489,15 +524,99 @@ module Aws::Account
|
|
489
524
|
req.send_request(options)
|
490
525
|
end
|
491
526
|
|
527
|
+
# Retrieves the primary contact information of an Amazon Web Services
|
528
|
+
# account.
|
529
|
+
#
|
530
|
+
# For complete details about how to use the primary contact operations,
|
531
|
+
# see [Update the primary and alternate contact information][1].
|
532
|
+
#
|
533
|
+
#
|
534
|
+
#
|
535
|
+
# [1]: https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html
|
536
|
+
#
|
537
|
+
# @option params [String] :account_id
|
538
|
+
# Specifies the 12-digit account ID number of the Amazon Web Services
|
539
|
+
# account that you want to access or modify with this operation. If you
|
540
|
+
# don't specify this parameter, it defaults to the Amazon Web Services
|
541
|
+
# account of the identity used to call the operation. To use this
|
542
|
+
# parameter, the caller must be an identity in the [organization's
|
543
|
+
# management account][1] or a delegated administrator account. The
|
544
|
+
# specified account ID must also be a member account in the same
|
545
|
+
# organization. The organization must have [all features enabled][2],
|
546
|
+
# and the organization must have [trusted access][3] enabled for the
|
547
|
+
# Account Management service, and optionally a [delegated admin][4]
|
548
|
+
# account assigned.
|
549
|
+
#
|
550
|
+
# <note markdown="1"> The management account can't specify its own `AccountId`. It must
|
551
|
+
# call the operation in standalone context by not including the
|
552
|
+
# `AccountId` parameter.
|
553
|
+
#
|
554
|
+
# </note>
|
555
|
+
#
|
556
|
+
# To call this operation on an account that is not a member of an
|
557
|
+
# organization, don't specify this parameter. Instead, call the
|
558
|
+
# operation using an identity belonging to the account whose contacts
|
559
|
+
# you wish to retrieve or modify.
|
560
|
+
#
|
561
|
+
#
|
562
|
+
#
|
563
|
+
# [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account
|
564
|
+
# [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html
|
565
|
+
# [3]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html
|
566
|
+
# [4]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html
|
567
|
+
#
|
568
|
+
# @return [Types::GetContactInformationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
569
|
+
#
|
570
|
+
# * {Types::GetContactInformationResponse#contact_information #contact_information} => Types::ContactInformation
|
571
|
+
#
|
572
|
+
# @example Request syntax with placeholder values
|
573
|
+
#
|
574
|
+
# resp = client.get_contact_information({
|
575
|
+
# account_id: "AccountId",
|
576
|
+
# })
|
577
|
+
#
|
578
|
+
# @example Response structure
|
579
|
+
#
|
580
|
+
# resp.contact_information.address_line_1 #=> String
|
581
|
+
# resp.contact_information.address_line_2 #=> String
|
582
|
+
# resp.contact_information.address_line_3 #=> String
|
583
|
+
# resp.contact_information.city #=> String
|
584
|
+
# resp.contact_information.company_name #=> String
|
585
|
+
# resp.contact_information.country_code #=> String
|
586
|
+
# resp.contact_information.district_or_county #=> String
|
587
|
+
# resp.contact_information.full_name #=> String
|
588
|
+
# resp.contact_information.phone_number #=> String
|
589
|
+
# resp.contact_information.postal_code #=> String
|
590
|
+
# resp.contact_information.state_or_region #=> String
|
591
|
+
# resp.contact_information.website_url #=> String
|
592
|
+
#
|
593
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetContactInformation AWS API Documentation
|
594
|
+
#
|
595
|
+
# @overload get_contact_information(params = {})
|
596
|
+
# @param [Hash] params ({})
|
597
|
+
def get_contact_information(params = {}, options = {})
|
598
|
+
req = build_request(:get_contact_information, params)
|
599
|
+
req.send_request(options)
|
600
|
+
end
|
601
|
+
|
492
602
|
# Modifies the specified alternate contact attached to an Amazon Web
|
493
603
|
# Services account.
|
494
604
|
#
|
495
605
|
# For complete details about how to use the alternate contact
|
496
606
|
# operations, see [Access or updating the alternate contacts][1].
|
497
607
|
#
|
608
|
+
# <note markdown="1"> Before you can update the alternate contact information for an Amazon
|
609
|
+
# Web Services account that is managed by Organizations, you must first
|
610
|
+
# enable integration between Amazon Web Services Account Management and
|
611
|
+
# Organizations. For more information, see [Enabling trusted access for
|
612
|
+
# Amazon Web Services Account Management][2].
|
613
|
+
#
|
614
|
+
# </note>
|
615
|
+
#
|
498
616
|
#
|
499
617
|
#
|
500
618
|
# [1]: https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html
|
619
|
+
# [2]: https://docs.aws.amazon.com/accounts/latest/reference/using-orgs-trusted-access.html
|
501
620
|
#
|
502
621
|
# @option params [String] :account_id
|
503
622
|
# Specifies the 12 digit account ID number of the Amazon Web Services
|
@@ -569,6 +688,82 @@ module Aws::Account
|
|
569
688
|
req.send_request(options)
|
570
689
|
end
|
571
690
|
|
691
|
+
# Updates the primary contact information of an Amazon Web Services
|
692
|
+
# account.
|
693
|
+
#
|
694
|
+
# For complete details about how to use the primary contact operations,
|
695
|
+
# see [Update the primary and alternate contact information][1].
|
696
|
+
#
|
697
|
+
#
|
698
|
+
#
|
699
|
+
# [1]: https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html
|
700
|
+
#
|
701
|
+
# @option params [String] :account_id
|
702
|
+
# Specifies the 12-digit account ID number of the Amazon Web Services
|
703
|
+
# account that you want to access or modify with this operation. If you
|
704
|
+
# don't specify this parameter, it defaults to the Amazon Web Services
|
705
|
+
# account of the identity used to call the operation. To use this
|
706
|
+
# parameter, the caller must be an identity in the [organization's
|
707
|
+
# management account][1] or a delegated administrator account. The
|
708
|
+
# specified account ID must also be a member account in the same
|
709
|
+
# organization. The organization must have [all features enabled][2],
|
710
|
+
# and the organization must have [trusted access][3] enabled for the
|
711
|
+
# Account Management service, and optionally a [delegated admin][4]
|
712
|
+
# account assigned.
|
713
|
+
#
|
714
|
+
# <note markdown="1"> The management account can't specify its own `AccountId`. It must
|
715
|
+
# call the operation in standalone context by not including the
|
716
|
+
# `AccountId` parameter.
|
717
|
+
#
|
718
|
+
# </note>
|
719
|
+
#
|
720
|
+
# To call this operation on an account that is not a member of an
|
721
|
+
# organization, don't specify this parameter. Instead, call the
|
722
|
+
# operation using an identity belonging to the account whose contacts
|
723
|
+
# you wish to retrieve or modify.
|
724
|
+
#
|
725
|
+
#
|
726
|
+
#
|
727
|
+
# [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account
|
728
|
+
# [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html
|
729
|
+
# [3]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html
|
730
|
+
# [4]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html
|
731
|
+
#
|
732
|
+
# @option params [required, Types::ContactInformation] :contact_information
|
733
|
+
# Contains the details of the primary contact information associated
|
734
|
+
# with an Amazon Web Services account.
|
735
|
+
#
|
736
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
737
|
+
#
|
738
|
+
# @example Request syntax with placeholder values
|
739
|
+
#
|
740
|
+
# resp = client.put_contact_information({
|
741
|
+
# account_id: "AccountId",
|
742
|
+
# contact_information: { # required
|
743
|
+
# address_line_1: "AddressLine", # required
|
744
|
+
# address_line_2: "AddressLine",
|
745
|
+
# address_line_3: "AddressLine",
|
746
|
+
# city: "City", # required
|
747
|
+
# company_name: "CompanyName",
|
748
|
+
# country_code: "CountryCode", # required
|
749
|
+
# district_or_county: "DistrictOrCounty",
|
750
|
+
# full_name: "FullName", # required
|
751
|
+
# phone_number: "ContactInformationPhoneNumber", # required
|
752
|
+
# postal_code: "PostalCode", # required
|
753
|
+
# state_or_region: "StateOrRegion",
|
754
|
+
# website_url: "WebsiteUrl",
|
755
|
+
# },
|
756
|
+
# })
|
757
|
+
#
|
758
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/PutContactInformation AWS API Documentation
|
759
|
+
#
|
760
|
+
# @overload put_contact_information(params = {})
|
761
|
+
# @param [Hash] params ({})
|
762
|
+
def put_contact_information(params = {}, options = {})
|
763
|
+
req = build_request(:put_contact_information, params)
|
764
|
+
req.send_request(options)
|
765
|
+
end
|
766
|
+
|
572
767
|
# @!endgroup
|
573
768
|
|
574
769
|
# @param params ({})
|
@@ -582,7 +777,7 @@ module Aws::Account
|
|
582
777
|
params: params,
|
583
778
|
config: config)
|
584
779
|
context[:gem_name] = 'aws-sdk-account'
|
585
|
-
context[:gem_version] = '1.
|
780
|
+
context[:gem_version] = '1.8.0'
|
586
781
|
Seahorse::Client::Request.new(handlers, context)
|
587
782
|
end
|
588
783
|
|
@@ -15,21 +15,35 @@ module Aws::Account
|
|
15
15
|
|
16
16
|
AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
|
17
17
|
AccountId = Shapes::StringShape.new(name: 'AccountId')
|
18
|
+
AddressLine = Shapes::StringShape.new(name: 'AddressLine')
|
18
19
|
AlternateContact = Shapes::StructureShape.new(name: 'AlternateContact')
|
19
20
|
AlternateContactType = Shapes::StringShape.new(name: 'AlternateContactType')
|
21
|
+
City = Shapes::StringShape.new(name: 'City')
|
22
|
+
CompanyName = Shapes::StringShape.new(name: 'CompanyName')
|
23
|
+
ContactInformation = Shapes::StructureShape.new(name: 'ContactInformation')
|
24
|
+
ContactInformationPhoneNumber = Shapes::StringShape.new(name: 'ContactInformationPhoneNumber')
|
25
|
+
CountryCode = Shapes::StringShape.new(name: 'CountryCode')
|
20
26
|
DeleteAlternateContactRequest = Shapes::StructureShape.new(name: 'DeleteAlternateContactRequest')
|
27
|
+
DistrictOrCounty = Shapes::StringShape.new(name: 'DistrictOrCounty')
|
21
28
|
EmailAddress = Shapes::StringShape.new(name: 'EmailAddress')
|
29
|
+
FullName = Shapes::StringShape.new(name: 'FullName')
|
22
30
|
GetAlternateContactRequest = Shapes::StructureShape.new(name: 'GetAlternateContactRequest')
|
23
31
|
GetAlternateContactResponse = Shapes::StructureShape.new(name: 'GetAlternateContactResponse')
|
32
|
+
GetContactInformationRequest = Shapes::StructureShape.new(name: 'GetContactInformationRequest')
|
33
|
+
GetContactInformationResponse = Shapes::StructureShape.new(name: 'GetContactInformationResponse')
|
24
34
|
InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
|
25
35
|
Name = Shapes::StringShape.new(name: 'Name')
|
26
36
|
PhoneNumber = Shapes::StringShape.new(name: 'PhoneNumber')
|
37
|
+
PostalCode = Shapes::StringShape.new(name: 'PostalCode')
|
27
38
|
PutAlternateContactRequest = Shapes::StructureShape.new(name: 'PutAlternateContactRequest')
|
39
|
+
PutContactInformationRequest = Shapes::StructureShape.new(name: 'PutContactInformationRequest')
|
28
40
|
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
41
|
+
StateOrRegion = Shapes::StringShape.new(name: 'StateOrRegion')
|
29
42
|
String = Shapes::StringShape.new(name: 'String')
|
30
43
|
Title = Shapes::StringShape.new(name: 'Title')
|
31
44
|
TooManyRequestsException = Shapes::StructureShape.new(name: 'TooManyRequestsException')
|
32
45
|
ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
|
46
|
+
WebsiteUrl = Shapes::StringShape.new(name: 'WebsiteUrl')
|
33
47
|
|
34
48
|
AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
35
49
|
AccessDeniedException.struct_class = Types::AccessDeniedException
|
@@ -41,6 +55,20 @@ module Aws::Account
|
|
41
55
|
AlternateContact.add_member(:title, Shapes::ShapeRef.new(shape: Title, location_name: "Title"))
|
42
56
|
AlternateContact.struct_class = Types::AlternateContact
|
43
57
|
|
58
|
+
ContactInformation.add_member(:address_line_1, Shapes::ShapeRef.new(shape: AddressLine, required: true, location_name: "AddressLine1"))
|
59
|
+
ContactInformation.add_member(:address_line_2, Shapes::ShapeRef.new(shape: AddressLine, location_name: "AddressLine2"))
|
60
|
+
ContactInformation.add_member(:address_line_3, Shapes::ShapeRef.new(shape: AddressLine, location_name: "AddressLine3"))
|
61
|
+
ContactInformation.add_member(:city, Shapes::ShapeRef.new(shape: City, required: true, location_name: "City"))
|
62
|
+
ContactInformation.add_member(:company_name, Shapes::ShapeRef.new(shape: CompanyName, location_name: "CompanyName"))
|
63
|
+
ContactInformation.add_member(:country_code, Shapes::ShapeRef.new(shape: CountryCode, required: true, location_name: "CountryCode"))
|
64
|
+
ContactInformation.add_member(:district_or_county, Shapes::ShapeRef.new(shape: DistrictOrCounty, location_name: "DistrictOrCounty"))
|
65
|
+
ContactInformation.add_member(:full_name, Shapes::ShapeRef.new(shape: FullName, required: true, location_name: "FullName"))
|
66
|
+
ContactInformation.add_member(:phone_number, Shapes::ShapeRef.new(shape: ContactInformationPhoneNumber, required: true, location_name: "PhoneNumber"))
|
67
|
+
ContactInformation.add_member(:postal_code, Shapes::ShapeRef.new(shape: PostalCode, required: true, location_name: "PostalCode"))
|
68
|
+
ContactInformation.add_member(:state_or_region, Shapes::ShapeRef.new(shape: StateOrRegion, location_name: "StateOrRegion"))
|
69
|
+
ContactInformation.add_member(:website_url, Shapes::ShapeRef.new(shape: WebsiteUrl, location_name: "WebsiteUrl"))
|
70
|
+
ContactInformation.struct_class = Types::ContactInformation
|
71
|
+
|
44
72
|
DeleteAlternateContactRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
|
45
73
|
DeleteAlternateContactRequest.add_member(:alternate_contact_type, Shapes::ShapeRef.new(shape: AlternateContactType, required: true, location_name: "AlternateContactType"))
|
46
74
|
DeleteAlternateContactRequest.struct_class = Types::DeleteAlternateContactRequest
|
@@ -52,6 +80,12 @@ module Aws::Account
|
|
52
80
|
GetAlternateContactResponse.add_member(:alternate_contact, Shapes::ShapeRef.new(shape: AlternateContact, location_name: "AlternateContact"))
|
53
81
|
GetAlternateContactResponse.struct_class = Types::GetAlternateContactResponse
|
54
82
|
|
83
|
+
GetContactInformationRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
|
84
|
+
GetContactInformationRequest.struct_class = Types::GetContactInformationRequest
|
85
|
+
|
86
|
+
GetContactInformationResponse.add_member(:contact_information, Shapes::ShapeRef.new(shape: ContactInformation, location_name: "ContactInformation"))
|
87
|
+
GetContactInformationResponse.struct_class = Types::GetContactInformationResponse
|
88
|
+
|
55
89
|
InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
56
90
|
InternalServerException.struct_class = Types::InternalServerException
|
57
91
|
|
@@ -63,6 +97,10 @@ module Aws::Account
|
|
63
97
|
PutAlternateContactRequest.add_member(:title, Shapes::ShapeRef.new(shape: Title, required: true, location_name: "Title"))
|
64
98
|
PutAlternateContactRequest.struct_class = Types::PutAlternateContactRequest
|
65
99
|
|
100
|
+
PutContactInformationRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
|
101
|
+
PutContactInformationRequest.add_member(:contact_information, Shapes::ShapeRef.new(shape: ContactInformation, required: true, location_name: "ContactInformation"))
|
102
|
+
PutContactInformationRequest.struct_class = Types::PutContactInformationRequest
|
103
|
+
|
66
104
|
ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
67
105
|
ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
|
68
106
|
|
@@ -116,6 +154,19 @@ module Aws::Account
|
|
116
154
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
117
155
|
end)
|
118
156
|
|
157
|
+
api.add_operation(:get_contact_information, Seahorse::Model::Operation.new.tap do |o|
|
158
|
+
o.name = "GetContactInformation"
|
159
|
+
o.http_method = "POST"
|
160
|
+
o.http_request_uri = "/getContactInformation"
|
161
|
+
o.input = Shapes::ShapeRef.new(shape: GetContactInformationRequest)
|
162
|
+
o.output = Shapes::ShapeRef.new(shape: GetContactInformationResponse)
|
163
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
164
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
165
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
166
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
167
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
168
|
+
end)
|
169
|
+
|
119
170
|
api.add_operation(:put_alternate_contact, Seahorse::Model::Operation.new.tap do |o|
|
120
171
|
o.name = "PutAlternateContact"
|
121
172
|
o.http_method = "POST"
|
@@ -127,6 +178,18 @@ module Aws::Account
|
|
127
178
|
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
128
179
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
129
180
|
end)
|
181
|
+
|
182
|
+
api.add_operation(:put_contact_information, Seahorse::Model::Operation.new.tap do |o|
|
183
|
+
o.name = "PutContactInformation"
|
184
|
+
o.http_method = "POST"
|
185
|
+
o.http_request_uri = "/putContactInformation"
|
186
|
+
o.input = Shapes::ShapeRef.new(shape: PutContactInformationRequest)
|
187
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
188
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
189
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
190
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
191
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
192
|
+
end)
|
130
193
|
end
|
131
194
|
|
132
195
|
end
|
@@ -0,0 +1,66 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
module Aws::Account
|
11
|
+
# Endpoint parameters used to influence endpoints per request.
|
12
|
+
#
|
13
|
+
# @!attribute region
|
14
|
+
# The AWS region used to dispatch the request.
|
15
|
+
#
|
16
|
+
# @return [String]
|
17
|
+
#
|
18
|
+
# @!attribute use_dual_stack
|
19
|
+
# When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
|
20
|
+
#
|
21
|
+
# @return [Boolean]
|
22
|
+
#
|
23
|
+
# @!attribute use_fips
|
24
|
+
# When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
|
25
|
+
#
|
26
|
+
# @return [Boolean]
|
27
|
+
#
|
28
|
+
# @!attribute endpoint
|
29
|
+
# Override the endpoint used to send this request
|
30
|
+
#
|
31
|
+
# @return [String]
|
32
|
+
#
|
33
|
+
EndpointParameters = Struct.new(
|
34
|
+
:region,
|
35
|
+
:use_dual_stack,
|
36
|
+
:use_fips,
|
37
|
+
:endpoint,
|
38
|
+
) do
|
39
|
+
include Aws::Structure
|
40
|
+
|
41
|
+
# @api private
|
42
|
+
class << self
|
43
|
+
PARAM_MAP = {
|
44
|
+
'Region' => :region,
|
45
|
+
'UseDualStack' => :use_dual_stack,
|
46
|
+
'UseFIPS' => :use_fips,
|
47
|
+
'Endpoint' => :endpoint,
|
48
|
+
}.freeze
|
49
|
+
end
|
50
|
+
|
51
|
+
def initialize(options = {})
|
52
|
+
self[:region] = options[:region]
|
53
|
+
self[:use_dual_stack] = options[:use_dual_stack]
|
54
|
+
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
55
|
+
if self[:use_dual_stack].nil?
|
56
|
+
raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
|
57
|
+
end
|
58
|
+
self[:use_fips] = options[:use_fips]
|
59
|
+
self[:use_fips] = false if self[:use_fips].nil?
|
60
|
+
if self[:use_fips].nil?
|
61
|
+
raise ArgumentError, "Missing required EndpointParameter: :use_fips"
|
62
|
+
end
|
63
|
+
self[:endpoint] = options[:endpoint]
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
@@ -0,0 +1,224 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
module Aws::Account
|
11
|
+
class EndpointProvider
|
12
|
+
def initialize(rule_set = nil)
|
13
|
+
@@rule_set ||= begin
|
14
|
+
endpoint_rules = Aws::Json.load(Base64.decode64(RULES))
|
15
|
+
Aws::Endpoints::RuleSet.new(
|
16
|
+
version: endpoint_rules['version'],
|
17
|
+
service_id: endpoint_rules['serviceId'],
|
18
|
+
parameters: endpoint_rules['parameters'],
|
19
|
+
rules: endpoint_rules['rules']
|
20
|
+
)
|
21
|
+
end
|
22
|
+
@provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
|
23
|
+
end
|
24
|
+
|
25
|
+
def resolve_endpoint(parameters)
|
26
|
+
@provider.resolve_endpoint(parameters)
|
27
|
+
end
|
28
|
+
|
29
|
+
# @api private
|
30
|
+
RULES = <<-JSON
|
31
|
+
eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
|
32
|
+
bHRJbiI6IkFXUzo6UmVnaW9uI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iZW5kcG9pbnQifSx7ImNvbmRpdGlvbnMi
|
218
|
+
OltdLCJlbmRwb2ludCI6eyJ1cmwiOiJodHRwczovL2FjY291bnQue1JlZ2lv
|
219
|
+
bn0ue1BhcnRpdGlvblJlc3VsdCNkbnNTdWZmaXh9IiwicHJvcGVydGllcyI6
|
220
|
+
e30sImhlYWRlcnMiOnt9fSwidHlwZSI6ImVuZHBvaW50In1dfV19XX0=
|
221
|
+
|
222
|
+
JSON
|
223
|
+
end
|
224
|
+
end
|
@@ -0,0 +1,85 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
|
11
|
+
module Aws::Account
|
12
|
+
module Endpoints
|
13
|
+
|
14
|
+
class DeleteAlternateContact
|
15
|
+
def self.build(context)
|
16
|
+
unless context.config.regional_endpoint
|
17
|
+
endpoint = context.config.endpoint.to_s
|
18
|
+
end
|
19
|
+
Aws::Account::EndpointParameters.new(
|
20
|
+
region: context.config.region,
|
21
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
22
|
+
use_fips: context.config.use_fips_endpoint,
|
23
|
+
endpoint: endpoint,
|
24
|
+
)
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
class GetAlternateContact
|
29
|
+
def self.build(context)
|
30
|
+
unless context.config.regional_endpoint
|
31
|
+
endpoint = context.config.endpoint.to_s
|
32
|
+
end
|
33
|
+
Aws::Account::EndpointParameters.new(
|
34
|
+
region: context.config.region,
|
35
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
36
|
+
use_fips: context.config.use_fips_endpoint,
|
37
|
+
endpoint: endpoint,
|
38
|
+
)
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
class GetContactInformation
|
43
|
+
def self.build(context)
|
44
|
+
unless context.config.regional_endpoint
|
45
|
+
endpoint = context.config.endpoint.to_s
|
46
|
+
end
|
47
|
+
Aws::Account::EndpointParameters.new(
|
48
|
+
region: context.config.region,
|
49
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
50
|
+
use_fips: context.config.use_fips_endpoint,
|
51
|
+
endpoint: endpoint,
|
52
|
+
)
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
class PutAlternateContact
|
57
|
+
def self.build(context)
|
58
|
+
unless context.config.regional_endpoint
|
59
|
+
endpoint = context.config.endpoint.to_s
|
60
|
+
end
|
61
|
+
Aws::Account::EndpointParameters.new(
|
62
|
+
region: context.config.region,
|
63
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
64
|
+
use_fips: context.config.use_fips_endpoint,
|
65
|
+
endpoint: endpoint,
|
66
|
+
)
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
class PutContactInformation
|
71
|
+
def self.build(context)
|
72
|
+
unless context.config.regional_endpoint
|
73
|
+
endpoint = context.config.endpoint.to_s
|
74
|
+
end
|
75
|
+
Aws::Account::EndpointParameters.new(
|
76
|
+
region: context.config.region,
|
77
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
78
|
+
use_fips: context.config.use_fips_endpoint,
|
79
|
+
endpoint: endpoint,
|
80
|
+
)
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
end
|
85
|
+
end
|
@@ -0,0 +1,78 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
|
11
|
+
module Aws::Account
|
12
|
+
module Plugins
|
13
|
+
class Endpoints < Seahorse::Client::Plugin
|
14
|
+
option(
|
15
|
+
:endpoint_provider,
|
16
|
+
doc_type: 'Aws::Account::EndpointProvider',
|
17
|
+
docstring: 'The endpoint provider used to resolve endpoints. Any '\
|
18
|
+
'object that responds to `#resolve_endpoint(parameters)` '\
|
19
|
+
'where `parameters` is a Struct similar to '\
|
20
|
+
'`Aws::Account::EndpointParameters`'
|
21
|
+
) do |cfg|
|
22
|
+
Aws::Account::EndpointProvider.new
|
23
|
+
end
|
24
|
+
|
25
|
+
# @api private
|
26
|
+
class Handler < Seahorse::Client::Handler
|
27
|
+
def call(context)
|
28
|
+
# If endpoint was discovered, do not resolve or apply the endpoint.
|
29
|
+
unless context[:discovered_endpoint]
|
30
|
+
params = parameters_for_operation(context)
|
31
|
+
endpoint = context.config.endpoint_provider.resolve_endpoint(params)
|
32
|
+
|
33
|
+
context.http_request.endpoint = endpoint.url
|
34
|
+
apply_endpoint_headers(context, endpoint.headers)
|
35
|
+
end
|
36
|
+
|
37
|
+
context[:endpoint_params] = params
|
38
|
+
context[:auth_scheme] =
|
39
|
+
Aws::Endpoints.resolve_auth_scheme(context, endpoint)
|
40
|
+
|
41
|
+
@handler.call(context)
|
42
|
+
end
|
43
|
+
|
44
|
+
private
|
45
|
+
|
46
|
+
def apply_endpoint_headers(context, headers)
|
47
|
+
headers.each do |key, values|
|
48
|
+
value = values
|
49
|
+
.compact
|
50
|
+
.map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
|
51
|
+
.join(',')
|
52
|
+
|
53
|
+
context.http_request.headers[key] = value
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
def parameters_for_operation(context)
|
58
|
+
case context.operation_name
|
59
|
+
when :delete_alternate_contact
|
60
|
+
Aws::Account::Endpoints::DeleteAlternateContact.build(context)
|
61
|
+
when :get_alternate_contact
|
62
|
+
Aws::Account::Endpoints::GetAlternateContact.build(context)
|
63
|
+
when :get_contact_information
|
64
|
+
Aws::Account::Endpoints::GetContactInformation.build(context)
|
65
|
+
when :put_alternate_contact
|
66
|
+
Aws::Account::Endpoints::PutAlternateContact.build(context)
|
67
|
+
when :put_contact_information
|
68
|
+
Aws::Account::Endpoints::PutContactInformation.build(context)
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
def add_handlers(handlers, _config)
|
74
|
+
handlers.add(Handler, step: :build, priority: 75)
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
@@ -59,6 +59,99 @@ module Aws::Account
|
|
59
59
|
include Aws::Structure
|
60
60
|
end
|
61
61
|
|
62
|
+
# Contains the details of the primary contact information associated
|
63
|
+
# with an Amazon Web Services account.
|
64
|
+
#
|
65
|
+
# @note When making an API call, you may pass ContactInformation
|
66
|
+
# data as a hash:
|
67
|
+
#
|
68
|
+
# {
|
69
|
+
# address_line_1: "AddressLine", # required
|
70
|
+
# address_line_2: "AddressLine",
|
71
|
+
# address_line_3: "AddressLine",
|
72
|
+
# city: "City", # required
|
73
|
+
# company_name: "CompanyName",
|
74
|
+
# country_code: "CountryCode", # required
|
75
|
+
# district_or_county: "DistrictOrCounty",
|
76
|
+
# full_name: "FullName", # required
|
77
|
+
# phone_number: "ContactInformationPhoneNumber", # required
|
78
|
+
# postal_code: "PostalCode", # required
|
79
|
+
# state_or_region: "StateOrRegion",
|
80
|
+
# website_url: "WebsiteUrl",
|
81
|
+
# }
|
82
|
+
#
|
83
|
+
# @!attribute [rw] address_line_1
|
84
|
+
# The first line of the primary contact address.
|
85
|
+
# @return [String]
|
86
|
+
#
|
87
|
+
# @!attribute [rw] address_line_2
|
88
|
+
# The second line of the primary contact address, if any.
|
89
|
+
# @return [String]
|
90
|
+
#
|
91
|
+
# @!attribute [rw] address_line_3
|
92
|
+
# The third line of the primary contact address, if any.
|
93
|
+
# @return [String]
|
94
|
+
#
|
95
|
+
# @!attribute [rw] city
|
96
|
+
# The city of the primary contact address.
|
97
|
+
# @return [String]
|
98
|
+
#
|
99
|
+
# @!attribute [rw] company_name
|
100
|
+
# The name of the company associated with the primary contact
|
101
|
+
# information, if any.
|
102
|
+
# @return [String]
|
103
|
+
#
|
104
|
+
# @!attribute [rw] country_code
|
105
|
+
# The ISO-3166 two-letter country code for the primary contact
|
106
|
+
# address.
|
107
|
+
# @return [String]
|
108
|
+
#
|
109
|
+
# @!attribute [rw] district_or_county
|
110
|
+
# The district or county of the primary contact address, if any.
|
111
|
+
# @return [String]
|
112
|
+
#
|
113
|
+
# @!attribute [rw] full_name
|
114
|
+
# The full name of the primary contact address.
|
115
|
+
# @return [String]
|
116
|
+
#
|
117
|
+
# @!attribute [rw] phone_number
|
118
|
+
# The phone number of the primary contact information. The number will
|
119
|
+
# be validated and, in some countries, checked for activation.
|
120
|
+
# @return [String]
|
121
|
+
#
|
122
|
+
# @!attribute [rw] postal_code
|
123
|
+
# The postal code of the primary contact address.
|
124
|
+
# @return [String]
|
125
|
+
#
|
126
|
+
# @!attribute [rw] state_or_region
|
127
|
+
# The state or region of the primary contact address. This field is
|
128
|
+
# required in selected countries.
|
129
|
+
# @return [String]
|
130
|
+
#
|
131
|
+
# @!attribute [rw] website_url
|
132
|
+
# The URL of the website associated with the primary contact
|
133
|
+
# information, if any.
|
134
|
+
# @return [String]
|
135
|
+
#
|
136
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/ContactInformation AWS API Documentation
|
137
|
+
#
|
138
|
+
class ContactInformation < Struct.new(
|
139
|
+
:address_line_1,
|
140
|
+
:address_line_2,
|
141
|
+
:address_line_3,
|
142
|
+
:city,
|
143
|
+
:company_name,
|
144
|
+
:country_code,
|
145
|
+
:district_or_county,
|
146
|
+
:full_name,
|
147
|
+
:phone_number,
|
148
|
+
:postal_code,
|
149
|
+
:state_or_region,
|
150
|
+
:website_url)
|
151
|
+
SENSITIVE = [:address_line_1, :address_line_2, :address_line_3, :city, :company_name, :country_code, :district_or_county, :full_name, :phone_number, :postal_code, :state_or_region, :website_url]
|
152
|
+
include Aws::Structure
|
153
|
+
end
|
154
|
+
|
62
155
|
# @note When making an API call, you may pass DeleteAlternateContactRequest
|
63
156
|
# data as a hash:
|
64
157
|
#
|
@@ -182,6 +275,66 @@ module Aws::Account
|
|
182
275
|
include Aws::Structure
|
183
276
|
end
|
184
277
|
|
278
|
+
# @note When making an API call, you may pass GetContactInformationRequest
|
279
|
+
# data as a hash:
|
280
|
+
#
|
281
|
+
# {
|
282
|
+
# account_id: "AccountId",
|
283
|
+
# }
|
284
|
+
#
|
285
|
+
# @!attribute [rw] account_id
|
286
|
+
# Specifies the 12-digit account ID number of the Amazon Web Services
|
287
|
+
# account that you want to access or modify with this operation. If
|
288
|
+
# you don't specify this parameter, it defaults to the Amazon Web
|
289
|
+
# Services account of the identity used to call the operation. To use
|
290
|
+
# this parameter, the caller must be an identity in the
|
291
|
+
# [organization's management account][1] or a delegated administrator
|
292
|
+
# account. The specified account ID must also be a member account in
|
293
|
+
# the same organization. The organization must have [all features
|
294
|
+
# enabled][2], and the organization must have [trusted access][3]
|
295
|
+
# enabled for the Account Management service, and optionally a
|
296
|
+
# [delegated admin][4] account assigned.
|
297
|
+
#
|
298
|
+
# <note markdown="1"> The management account can't specify its own `AccountId`. It must
|
299
|
+
# call the operation in standalone context by not including the
|
300
|
+
# `AccountId` parameter.
|
301
|
+
#
|
302
|
+
# </note>
|
303
|
+
#
|
304
|
+
# To call this operation on an account that is not a member of an
|
305
|
+
# organization, don't specify this parameter. Instead, call the
|
306
|
+
# operation using an identity belonging to the account whose contacts
|
307
|
+
# you wish to retrieve or modify.
|
308
|
+
#
|
309
|
+
#
|
310
|
+
#
|
311
|
+
# [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account
|
312
|
+
# [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html
|
313
|
+
# [3]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html
|
314
|
+
# [4]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html
|
315
|
+
# @return [String]
|
316
|
+
#
|
317
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetContactInformationRequest AWS API Documentation
|
318
|
+
#
|
319
|
+
class GetContactInformationRequest < Struct.new(
|
320
|
+
:account_id)
|
321
|
+
SENSITIVE = []
|
322
|
+
include Aws::Structure
|
323
|
+
end
|
324
|
+
|
325
|
+
# @!attribute [rw] contact_information
|
326
|
+
# Contains the details of the primary contact information associated
|
327
|
+
# with an Amazon Web Services account.
|
328
|
+
# @return [Types::ContactInformation]
|
329
|
+
#
|
330
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetContactInformationResponse AWS API Documentation
|
331
|
+
#
|
332
|
+
class GetContactInformationResponse < Struct.new(
|
333
|
+
:contact_information)
|
334
|
+
SENSITIVE = []
|
335
|
+
include Aws::Structure
|
336
|
+
end
|
337
|
+
|
185
338
|
# The operation failed because of an error internal to Amazon Web
|
186
339
|
# Services. Try your operation again later.
|
187
340
|
#
|
@@ -275,6 +428,73 @@ module Aws::Account
|
|
275
428
|
include Aws::Structure
|
276
429
|
end
|
277
430
|
|
431
|
+
# @note When making an API call, you may pass PutContactInformationRequest
|
432
|
+
# data as a hash:
|
433
|
+
#
|
434
|
+
# {
|
435
|
+
# account_id: "AccountId",
|
436
|
+
# contact_information: { # required
|
437
|
+
# address_line_1: "AddressLine", # required
|
438
|
+
# address_line_2: "AddressLine",
|
439
|
+
# address_line_3: "AddressLine",
|
440
|
+
# city: "City", # required
|
441
|
+
# company_name: "CompanyName",
|
442
|
+
# country_code: "CountryCode", # required
|
443
|
+
# district_or_county: "DistrictOrCounty",
|
444
|
+
# full_name: "FullName", # required
|
445
|
+
# phone_number: "ContactInformationPhoneNumber", # required
|
446
|
+
# postal_code: "PostalCode", # required
|
447
|
+
# state_or_region: "StateOrRegion",
|
448
|
+
# website_url: "WebsiteUrl",
|
449
|
+
# },
|
450
|
+
# }
|
451
|
+
#
|
452
|
+
# @!attribute [rw] account_id
|
453
|
+
# Specifies the 12-digit account ID number of the Amazon Web Services
|
454
|
+
# account that you want to access or modify with this operation. If
|
455
|
+
# you don't specify this parameter, it defaults to the Amazon Web
|
456
|
+
# Services account of the identity used to call the operation. To use
|
457
|
+
# this parameter, the caller must be an identity in the
|
458
|
+
# [organization's management account][1] or a delegated administrator
|
459
|
+
# account. The specified account ID must also be a member account in
|
460
|
+
# the same organization. The organization must have [all features
|
461
|
+
# enabled][2], and the organization must have [trusted access][3]
|
462
|
+
# enabled for the Account Management service, and optionally a
|
463
|
+
# [delegated admin][4] account assigned.
|
464
|
+
#
|
465
|
+
# <note markdown="1"> The management account can't specify its own `AccountId`. It must
|
466
|
+
# call the operation in standalone context by not including the
|
467
|
+
# `AccountId` parameter.
|
468
|
+
#
|
469
|
+
# </note>
|
470
|
+
#
|
471
|
+
# To call this operation on an account that is not a member of an
|
472
|
+
# organization, don't specify this parameter. Instead, call the
|
473
|
+
# operation using an identity belonging to the account whose contacts
|
474
|
+
# you wish to retrieve or modify.
|
475
|
+
#
|
476
|
+
#
|
477
|
+
#
|
478
|
+
# [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account
|
479
|
+
# [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html
|
480
|
+
# [3]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html
|
481
|
+
# [4]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html
|
482
|
+
# @return [String]
|
483
|
+
#
|
484
|
+
# @!attribute [rw] contact_information
|
485
|
+
# Contains the details of the primary contact information associated
|
486
|
+
# with an Amazon Web Services account.
|
487
|
+
# @return [Types::ContactInformation]
|
488
|
+
#
|
489
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/PutContactInformationRequest AWS API Documentation
|
490
|
+
#
|
491
|
+
class PutContactInformationRequest < Struct.new(
|
492
|
+
:account_id,
|
493
|
+
:contact_information)
|
494
|
+
SENSITIVE = []
|
495
|
+
include Aws::Structure
|
496
|
+
end
|
497
|
+
|
278
498
|
# The operation failed because it specified a resource that can't be
|
279
499
|
# found.
|
280
500
|
#
|
data/lib/aws-sdk-account.rb
CHANGED
@@ -13,9 +13,13 @@ require 'aws-sigv4'
|
|
13
13
|
|
14
14
|
require_relative 'aws-sdk-account/types'
|
15
15
|
require_relative 'aws-sdk-account/client_api'
|
16
|
+
require_relative 'aws-sdk-account/plugins/endpoints.rb'
|
16
17
|
require_relative 'aws-sdk-account/client'
|
17
18
|
require_relative 'aws-sdk-account/errors'
|
18
19
|
require_relative 'aws-sdk-account/resource'
|
20
|
+
require_relative 'aws-sdk-account/endpoint_parameters'
|
21
|
+
require_relative 'aws-sdk-account/endpoint_provider'
|
22
|
+
require_relative 'aws-sdk-account/endpoints'
|
19
23
|
require_relative 'aws-sdk-account/customizations'
|
20
24
|
|
21
25
|
# This module provides support for AWS Account. This module is available in the
|
@@ -48,6 +52,6 @@ require_relative 'aws-sdk-account/customizations'
|
|
48
52
|
# @!group service
|
49
53
|
module Aws::Account
|
50
54
|
|
51
|
-
GEM_VERSION = '1.
|
55
|
+
GEM_VERSION = '1.8.0'
|
52
56
|
|
53
57
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-account
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.8.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: 2022-
|
11
|
+
date: 2022-10-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.165.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.165.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -59,7 +59,11 @@ files:
|
|
59
59
|
- lib/aws-sdk-account/client.rb
|
60
60
|
- lib/aws-sdk-account/client_api.rb
|
61
61
|
- lib/aws-sdk-account/customizations.rb
|
62
|
+
- lib/aws-sdk-account/endpoint_parameters.rb
|
63
|
+
- lib/aws-sdk-account/endpoint_provider.rb
|
64
|
+
- lib/aws-sdk-account/endpoints.rb
|
62
65
|
- lib/aws-sdk-account/errors.rb
|
66
|
+
- lib/aws-sdk-account/plugins/endpoints.rb
|
63
67
|
- lib/aws-sdk-account/resource.rb
|
64
68
|
- lib/aws-sdk-account/types.rb
|
65
69
|
homepage: https://github.com/aws/aws-sdk-ruby
|