aws-sdk-account 1.6.0 → 1.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d56c12d01fea1404a334c3afe461cb7651258e4d22a45e39f1b723ccb9986f40
4
- data.tar.gz: '04735630687fca0432aa8b9183fca00c5fdf7dbd6c5c0f6c8e8ebddc4172913c'
3
+ metadata.gz: de5eaded2555ada4ddece3812166e0034634f38cde0d546ac496ca14888507bf
4
+ data.tar.gz: ae1ffe873d3a6111331c23cee01ec6713f972c45728cb53c670c61c946e49a7a
5
5
  SHA512:
6
- metadata.gz: dc62365a652089fe1ffc5527151efdb087a76cb26d522b2013e9ef04e399ebd94b17cbadd790da6657d429e1523203e6c65f0750946a15126ff605e3fe8ce61a
7
- data.tar.gz: 51de7cf666de0a58e1609322be2d4d2de3a05bbc5cadda84580f78bfb3ad0999e40650d36cd0db22b0604a710a85c1e5289607d267cfa2b89d7dae6c300af7c8
6
+ metadata.gz: 007442b54601b744fa7343230749314e979d36bdbcae703281fb11b03181969ab258536038f6476ddc8073dff6e25d740d5cc7366f2fd55e1daf9c5da660c15a
7
+ data.tar.gz: a5d162ceab080741965a7e962e2e3e77634be5e350ab2417ec42258b2890cef10117a32513a548f9647f9c76e7d329512269926f9f3e940442683e62a7cd4791
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.7.0 (2022-07-22)
5
+ ------------------
6
+
7
+ * 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
8
+
4
9
  1.6.0 (2022-02-24)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.6.0
1
+ 1.7.0
@@ -357,9 +357,18 @@ module Aws::Account
357
357
  # For complete details about how to use the alternate contact
358
358
  # operations, see [Access or updating the alternate contacts][1].
359
359
  #
360
+ # <note markdown="1"> Before you can update the alternate contact information for an Amazon
361
+ # Web Services account that is managed by Organizations, you must first
362
+ # enable integration between Amazon Web Services Account Management and
363
+ # Organizations. For more information, see [Enabling trusted access for
364
+ # Amazon Web Services Account Management][2].
365
+ #
366
+ # </note>
367
+ #
360
368
  #
361
369
  #
362
370
  # [1]: https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html
371
+ # [2]: https://docs.aws.amazon.com/accounts/latest/reference/using-orgs-trusted-access.html
363
372
  #
364
373
  # @option params [String] :account_id
365
374
  # Specifies the 12 digit account ID number of the Amazon Web Services
@@ -421,9 +430,18 @@ module Aws::Account
421
430
  # For complete details about how to use the alternate contact
422
431
  # operations, see [Access or updating the alternate contacts][1].
423
432
  #
433
+ # <note markdown="1"> Before you can update the alternate contact information for an Amazon
434
+ # Web Services account that is managed by Organizations, you must first
435
+ # enable integration between Amazon Web Services Account Management and
436
+ # Organizations. For more information, see [Enabling trusted access for
437
+ # Amazon Web Services Account Management][2].
438
+ #
439
+ # </note>
440
+ #
424
441
  #
425
442
  #
426
443
  # [1]: https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html
444
+ # [2]: https://docs.aws.amazon.com/accounts/latest/reference/using-orgs-trusted-access.html
427
445
  #
428
446
  # @option params [String] :account_id
429
447
  # Specifies the 12 digit account ID number of the Amazon Web Services
@@ -489,15 +507,99 @@ module Aws::Account
489
507
  req.send_request(options)
490
508
  end
491
509
 
510
+ # Retrieves the primary contact information of an Amazon Web Services
511
+ # account.
512
+ #
513
+ # For complete details about how to use the primary contact operations,
514
+ # see [Update the primary and alternate contact information][1].
515
+ #
516
+ #
517
+ #
518
+ # [1]: https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html
519
+ #
520
+ # @option params [String] :account_id
521
+ # Specifies the 12-digit account ID number of the Amazon Web Services
522
+ # account that you want to access or modify with this operation. If you
523
+ # don't specify this parameter, it defaults to the Amazon Web Services
524
+ # account of the identity used to call the operation. To use this
525
+ # parameter, the caller must be an identity in the [organization's
526
+ # management account][1] or a delegated administrator account. The
527
+ # specified account ID must also be a member account in the same
528
+ # organization. The organization must have [all features enabled][2],
529
+ # and the organization must have [trusted access][3] enabled for the
530
+ # Account Management service, and optionally a [delegated admin][4]
531
+ # account assigned.
532
+ #
533
+ # <note markdown="1"> The management account can't specify its own `AccountId`. It must
534
+ # call the operation in standalone context by not including the
535
+ # `AccountId` parameter.
536
+ #
537
+ # </note>
538
+ #
539
+ # To call this operation on an account that is not a member of an
540
+ # organization, don't specify this parameter. Instead, call the
541
+ # operation using an identity belonging to the account whose contacts
542
+ # you wish to retrieve or modify.
543
+ #
544
+ #
545
+ #
546
+ # [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account
547
+ # [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html
548
+ # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html
549
+ # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html
550
+ #
551
+ # @return [Types::GetContactInformationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
552
+ #
553
+ # * {Types::GetContactInformationResponse#contact_information #contact_information} => Types::ContactInformation
554
+ #
555
+ # @example Request syntax with placeholder values
556
+ #
557
+ # resp = client.get_contact_information({
558
+ # account_id: "AccountId",
559
+ # })
560
+ #
561
+ # @example Response structure
562
+ #
563
+ # resp.contact_information.address_line_1 #=> String
564
+ # resp.contact_information.address_line_2 #=> String
565
+ # resp.contact_information.address_line_3 #=> String
566
+ # resp.contact_information.city #=> String
567
+ # resp.contact_information.company_name #=> String
568
+ # resp.contact_information.country_code #=> String
569
+ # resp.contact_information.district_or_county #=> String
570
+ # resp.contact_information.full_name #=> String
571
+ # resp.contact_information.phone_number #=> String
572
+ # resp.contact_information.postal_code #=> String
573
+ # resp.contact_information.state_or_region #=> String
574
+ # resp.contact_information.website_url #=> String
575
+ #
576
+ # @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetContactInformation AWS API Documentation
577
+ #
578
+ # @overload get_contact_information(params = {})
579
+ # @param [Hash] params ({})
580
+ def get_contact_information(params = {}, options = {})
581
+ req = build_request(:get_contact_information, params)
582
+ req.send_request(options)
583
+ end
584
+
492
585
  # Modifies the specified alternate contact attached to an Amazon Web
493
586
  # Services account.
494
587
  #
495
588
  # For complete details about how to use the alternate contact
496
589
  # operations, see [Access or updating the alternate contacts][1].
497
590
  #
591
+ # <note markdown="1"> Before you can update the alternate contact information for an Amazon
592
+ # Web Services account that is managed by Organizations, you must first
593
+ # enable integration between Amazon Web Services Account Management and
594
+ # Organizations. For more information, see [Enabling trusted access for
595
+ # Amazon Web Services Account Management][2].
596
+ #
597
+ # </note>
598
+ #
498
599
  #
499
600
  #
500
601
  # [1]: https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html
602
+ # [2]: https://docs.aws.amazon.com/accounts/latest/reference/using-orgs-trusted-access.html
501
603
  #
502
604
  # @option params [String] :account_id
503
605
  # Specifies the 12 digit account ID number of the Amazon Web Services
@@ -569,6 +671,82 @@ module Aws::Account
569
671
  req.send_request(options)
570
672
  end
571
673
 
674
+ # Updates the primary contact information of an Amazon Web Services
675
+ # account.
676
+ #
677
+ # For complete details about how to use the primary contact operations,
678
+ # see [Update the primary and alternate contact information][1].
679
+ #
680
+ #
681
+ #
682
+ # [1]: https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html
683
+ #
684
+ # @option params [String] :account_id
685
+ # Specifies the 12-digit account ID number of the Amazon Web Services
686
+ # account that you want to access or modify with this operation. If you
687
+ # don't specify this parameter, it defaults to the Amazon Web Services
688
+ # account of the identity used to call the operation. To use this
689
+ # parameter, the caller must be an identity in the [organization's
690
+ # management account][1] or a delegated administrator account. The
691
+ # specified account ID must also be a member account in the same
692
+ # organization. The organization must have [all features enabled][2],
693
+ # and the organization must have [trusted access][3] enabled for the
694
+ # Account Management service, and optionally a [delegated admin][4]
695
+ # account assigned.
696
+ #
697
+ # <note markdown="1"> The management account can't specify its own `AccountId`. It must
698
+ # call the operation in standalone context by not including the
699
+ # `AccountId` parameter.
700
+ #
701
+ # </note>
702
+ #
703
+ # To call this operation on an account that is not a member of an
704
+ # organization, don't specify this parameter. Instead, call the
705
+ # operation using an identity belonging to the account whose contacts
706
+ # you wish to retrieve or modify.
707
+ #
708
+ #
709
+ #
710
+ # [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account
711
+ # [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html
712
+ # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html
713
+ # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html
714
+ #
715
+ # @option params [required, Types::ContactInformation] :contact_information
716
+ # Contains the details of the primary contact information associated
717
+ # with an Amazon Web Services account.
718
+ #
719
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
720
+ #
721
+ # @example Request syntax with placeholder values
722
+ #
723
+ # resp = client.put_contact_information({
724
+ # account_id: "AccountId",
725
+ # contact_information: { # required
726
+ # address_line_1: "AddressLine", # required
727
+ # address_line_2: "AddressLine",
728
+ # address_line_3: "AddressLine",
729
+ # city: "City", # required
730
+ # company_name: "CompanyName",
731
+ # country_code: "CountryCode", # required
732
+ # district_or_county: "DistrictOrCounty",
733
+ # full_name: "FullName", # required
734
+ # phone_number: "ContactInformationPhoneNumber", # required
735
+ # postal_code: "PostalCode", # required
736
+ # state_or_region: "StateOrRegion",
737
+ # website_url: "WebsiteUrl",
738
+ # },
739
+ # })
740
+ #
741
+ # @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/PutContactInformation AWS API Documentation
742
+ #
743
+ # @overload put_contact_information(params = {})
744
+ # @param [Hash] params ({})
745
+ def put_contact_information(params = {}, options = {})
746
+ req = build_request(:put_contact_information, params)
747
+ req.send_request(options)
748
+ end
749
+
572
750
  # @!endgroup
573
751
 
574
752
  # @param params ({})
@@ -582,7 +760,7 @@ module Aws::Account
582
760
  params: params,
583
761
  config: config)
584
762
  context[:gem_name] = 'aws-sdk-account'
585
- context[:gem_version] = '1.6.0'
763
+ context[:gem_version] = '1.7.0'
586
764
  Seahorse::Client::Request.new(handlers, context)
587
765
  end
588
766
 
@@ -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
@@ -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
  #
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-account/customizations'
48
48
  # @!group service
49
49
  module Aws::Account
50
50
 
51
- GEM_VERSION = '1.6.0'
51
+ GEM_VERSION = '1.7.0'
52
52
 
53
53
  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.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: 2022-02-24 00:00:00.000000000 Z
11
+ date: 2022-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core