aws-sdk-account 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,133 @@
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
+ # @api private
12
+ module ClientApi
13
+
14
+ include Seahorse::Model
15
+
16
+ AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
17
+ AccountId = Shapes::StringShape.new(name: 'AccountId')
18
+ AlternateContact = Shapes::StructureShape.new(name: 'AlternateContact')
19
+ AlternateContactType = Shapes::StringShape.new(name: 'AlternateContactType')
20
+ DeleteAlternateContactRequest = Shapes::StructureShape.new(name: 'DeleteAlternateContactRequest')
21
+ EmailAddress = Shapes::StringShape.new(name: 'EmailAddress')
22
+ GetAlternateContactRequest = Shapes::StructureShape.new(name: 'GetAlternateContactRequest')
23
+ GetAlternateContactResponse = Shapes::StructureShape.new(name: 'GetAlternateContactResponse')
24
+ InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
25
+ Name = Shapes::StringShape.new(name: 'Name')
26
+ PhoneNumber = Shapes::StringShape.new(name: 'PhoneNumber')
27
+ PutAlternateContactRequest = Shapes::StructureShape.new(name: 'PutAlternateContactRequest')
28
+ ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
29
+ String = Shapes::StringShape.new(name: 'String')
30
+ Title = Shapes::StringShape.new(name: 'Title')
31
+ TooManyRequestsException = Shapes::StructureShape.new(name: 'TooManyRequestsException')
32
+ ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
33
+
34
+ AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
35
+ AccessDeniedException.struct_class = Types::AccessDeniedException
36
+
37
+ AlternateContact.add_member(:alternate_contact_type, Shapes::ShapeRef.new(shape: AlternateContactType, location_name: "AlternateContactType"))
38
+ AlternateContact.add_member(:email_address, Shapes::ShapeRef.new(shape: EmailAddress, location_name: "EmailAddress"))
39
+ AlternateContact.add_member(:name, Shapes::ShapeRef.new(shape: Name, location_name: "Name"))
40
+ AlternateContact.add_member(:phone_number, Shapes::ShapeRef.new(shape: PhoneNumber, location_name: "PhoneNumber"))
41
+ AlternateContact.add_member(:title, Shapes::ShapeRef.new(shape: Title, location_name: "Title"))
42
+ AlternateContact.struct_class = Types::AlternateContact
43
+
44
+ DeleteAlternateContactRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
45
+ DeleteAlternateContactRequest.add_member(:alternate_contact_type, Shapes::ShapeRef.new(shape: AlternateContactType, required: true, location_name: "AlternateContactType"))
46
+ DeleteAlternateContactRequest.struct_class = Types::DeleteAlternateContactRequest
47
+
48
+ GetAlternateContactRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
49
+ GetAlternateContactRequest.add_member(:alternate_contact_type, Shapes::ShapeRef.new(shape: AlternateContactType, required: true, location_name: "AlternateContactType"))
50
+ GetAlternateContactRequest.struct_class = Types::GetAlternateContactRequest
51
+
52
+ GetAlternateContactResponse.add_member(:alternate_contact, Shapes::ShapeRef.new(shape: AlternateContact, location_name: "AlternateContact"))
53
+ GetAlternateContactResponse.struct_class = Types::GetAlternateContactResponse
54
+
55
+ InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
56
+ InternalServerException.struct_class = Types::InternalServerException
57
+
58
+ PutAlternateContactRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
59
+ PutAlternateContactRequest.add_member(:alternate_contact_type, Shapes::ShapeRef.new(shape: AlternateContactType, required: true, location_name: "AlternateContactType"))
60
+ PutAlternateContactRequest.add_member(:email_address, Shapes::ShapeRef.new(shape: EmailAddress, required: true, location_name: "EmailAddress"))
61
+ PutAlternateContactRequest.add_member(:name, Shapes::ShapeRef.new(shape: Name, required: true, location_name: "Name"))
62
+ PutAlternateContactRequest.add_member(:phone_number, Shapes::ShapeRef.new(shape: PhoneNumber, required: true, location_name: "PhoneNumber"))
63
+ PutAlternateContactRequest.add_member(:title, Shapes::ShapeRef.new(shape: Title, required: true, location_name: "Title"))
64
+ PutAlternateContactRequest.struct_class = Types::PutAlternateContactRequest
65
+
66
+ ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
67
+ ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
68
+
69
+ TooManyRequestsException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
70
+ TooManyRequestsException.struct_class = Types::TooManyRequestsException
71
+
72
+ ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
73
+ ValidationException.struct_class = Types::ValidationException
74
+
75
+
76
+ # @api private
77
+ API = Seahorse::Model::Api.new.tap do |api|
78
+
79
+ api.version = "2021-02-01"
80
+
81
+ api.metadata = {
82
+ "apiVersion" => "2021-02-01",
83
+ "endpointPrefix" => "account",
84
+ "jsonVersion" => "1.1",
85
+ "protocol" => "rest-json",
86
+ "serviceFullName" => "AWS Account",
87
+ "serviceId" => "Account",
88
+ "signatureVersion" => "v4",
89
+ "signingName" => "account",
90
+ "uid" => "account-2021-02-01",
91
+ }
92
+
93
+ api.add_operation(:delete_alternate_contact, Seahorse::Model::Operation.new.tap do |o|
94
+ o.name = "DeleteAlternateContact"
95
+ o.http_method = "POST"
96
+ o.http_request_uri = "/deleteAlternateContact"
97
+ o.input = Shapes::ShapeRef.new(shape: DeleteAlternateContactRequest)
98
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
99
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
100
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
101
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
102
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
103
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
104
+ end)
105
+
106
+ api.add_operation(:get_alternate_contact, Seahorse::Model::Operation.new.tap do |o|
107
+ o.name = "GetAlternateContact"
108
+ o.http_method = "POST"
109
+ o.http_request_uri = "/getAlternateContact"
110
+ o.input = Shapes::ShapeRef.new(shape: GetAlternateContactRequest)
111
+ o.output = Shapes::ShapeRef.new(shape: GetAlternateContactResponse)
112
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
113
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
114
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
115
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
116
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
117
+ end)
118
+
119
+ api.add_operation(:put_alternate_contact, Seahorse::Model::Operation.new.tap do |o|
120
+ o.name = "PutAlternateContact"
121
+ o.http_method = "POST"
122
+ o.http_request_uri = "/putAlternateContact"
123
+ o.input = Shapes::ShapeRef.new(shape: PutAlternateContactRequest)
124
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
125
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
126
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
127
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
128
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
129
+ end)
130
+ end
131
+
132
+ end
133
+ end
File without changes
@@ -0,0 +1,130 @@
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
+
12
+ # When Account returns an error response, the Ruby SDK constructs and raises an error.
13
+ # These errors all extend Aws::Account::Errors::ServiceError < {Aws::Errors::ServiceError}
14
+ #
15
+ # You can rescue all Account errors using ServiceError:
16
+ #
17
+ # begin
18
+ # # do stuff
19
+ # rescue Aws::Account::Errors::ServiceError
20
+ # # rescues all Account API errors
21
+ # end
22
+ #
23
+ #
24
+ # ## Request Context
25
+ # ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
26
+ # information about the request that generated the error.
27
+ # See {Seahorse::Client::RequestContext} for more information.
28
+ #
29
+ # ## Error Classes
30
+ # * {AccessDeniedException}
31
+ # * {InternalServerException}
32
+ # * {ResourceNotFoundException}
33
+ # * {TooManyRequestsException}
34
+ # * {ValidationException}
35
+ #
36
+ # Additionally, error classes are dynamically generated for service errors based on the error code
37
+ # if they are not defined above.
38
+ module Errors
39
+
40
+ extend Aws::Errors::DynamicErrors
41
+
42
+ class AccessDeniedException < ServiceError
43
+
44
+ # @param [Seahorse::Client::RequestContext] context
45
+ # @param [String] message
46
+ # @param [Aws::Account::Types::AccessDeniedException] data
47
+ def initialize(context, message, data = Aws::EmptyStructure.new)
48
+ super(context, message, data)
49
+ end
50
+
51
+ # @return [String]
52
+ def message
53
+ @message || @data[:message]
54
+ end
55
+ end
56
+
57
+ class InternalServerException < ServiceError
58
+
59
+ # @param [Seahorse::Client::RequestContext] context
60
+ # @param [String] message
61
+ # @param [Aws::Account::Types::InternalServerException] data
62
+ def initialize(context, message, data = Aws::EmptyStructure.new)
63
+ super(context, message, data)
64
+ end
65
+
66
+ # @return [String]
67
+ def message
68
+ @message || @data[:message]
69
+ end
70
+
71
+ def retryable?
72
+ true
73
+ end
74
+ end
75
+
76
+ class ResourceNotFoundException < ServiceError
77
+
78
+ # @param [Seahorse::Client::RequestContext] context
79
+ # @param [String] message
80
+ # @param [Aws::Account::Types::ResourceNotFoundException] data
81
+ def initialize(context, message, data = Aws::EmptyStructure.new)
82
+ super(context, message, data)
83
+ end
84
+
85
+ # @return [String]
86
+ def message
87
+ @message || @data[:message]
88
+ end
89
+ end
90
+
91
+ class TooManyRequestsException < ServiceError
92
+
93
+ # @param [Seahorse::Client::RequestContext] context
94
+ # @param [String] message
95
+ # @param [Aws::Account::Types::TooManyRequestsException] data
96
+ def initialize(context, message, data = Aws::EmptyStructure.new)
97
+ super(context, message, data)
98
+ end
99
+
100
+ # @return [String]
101
+ def message
102
+ @message || @data[:message]
103
+ end
104
+
105
+ def retryable?
106
+ true
107
+ end
108
+
109
+ def throttling?
110
+ true
111
+ end
112
+ end
113
+
114
+ class ValidationException < ServiceError
115
+
116
+ # @param [Seahorse::Client::RequestContext] context
117
+ # @param [String] message
118
+ # @param [Aws::Account::Types::ValidationException] data
119
+ def initialize(context, message, data = Aws::EmptyStructure.new)
120
+ super(context, message, data)
121
+ end
122
+
123
+ # @return [String]
124
+ def message
125
+ @message || @data[:message]
126
+ end
127
+ end
128
+
129
+ end
130
+ end
@@ -0,0 +1,26 @@
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
+
12
+ class Resource
13
+
14
+ # @param options ({})
15
+ # @option options [Client] :client
16
+ def initialize(options = {})
17
+ @client = options[:client] || Client.new(options)
18
+ end
19
+
20
+ # @return [Client]
21
+ def client
22
+ @client
23
+ end
24
+
25
+ end
26
+ end
@@ -0,0 +1,320 @@
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
+ module Types
12
+
13
+ # The operation failed because the calling identity doesn't have the
14
+ # minimum required permissions.
15
+ #
16
+ # @!attribute [rw] message
17
+ # @return [String]
18
+ #
19
+ # @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/AccessDeniedException AWS API Documentation
20
+ #
21
+ class AccessDeniedException < Struct.new(
22
+ :message)
23
+ SENSITIVE = []
24
+ include Aws::Structure
25
+ end
26
+
27
+ # A structure that contains the details of an alternate contact
28
+ # associated with an Amazon Web Services account
29
+ #
30
+ # @!attribute [rw] alternate_contact_type
31
+ # The type of alternate contact.
32
+ # @return [String]
33
+ #
34
+ # @!attribute [rw] email_address
35
+ # The email address associated with this alternate contact.
36
+ # @return [String]
37
+ #
38
+ # @!attribute [rw] name
39
+ # The name associated with this alternate contact.
40
+ # @return [String]
41
+ #
42
+ # @!attribute [rw] phone_number
43
+ # The phone number associated with this alternate contact.
44
+ # @return [String]
45
+ #
46
+ # @!attribute [rw] title
47
+ # The title associated with this alternate contact.
48
+ # @return [String]
49
+ #
50
+ # @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/AlternateContact AWS API Documentation
51
+ #
52
+ class AlternateContact < Struct.new(
53
+ :alternate_contact_type,
54
+ :email_address,
55
+ :name,
56
+ :phone_number,
57
+ :title)
58
+ SENSITIVE = [:email_address, :name, :phone_number, :title]
59
+ include Aws::Structure
60
+ end
61
+
62
+ # @note When making an API call, you may pass DeleteAlternateContactRequest
63
+ # data as a hash:
64
+ #
65
+ # {
66
+ # account_id: "AccountId",
67
+ # alternate_contact_type: "BILLING", # required, accepts BILLING, OPERATIONS, SECURITY
68
+ # }
69
+ #
70
+ # @!attribute [rw] account_id
71
+ # Specifies the 12 digit account ID number of the Amazon Web Services
72
+ # account that you want to access or modify with this operation.
73
+ #
74
+ # If you do not specify this parameter, it defaults to the Amazon Web
75
+ # Services account of the identity used to call the operation.
76
+ #
77
+ # To use this parameter, the caller must be an identity in the
78
+ # [organization's management account][1] or a delegated administrator
79
+ # account, and the specified account ID must be a member account in
80
+ # the same organization. The organization must have [all features
81
+ # enabled][2], and the organization must have [trusted access][3]
82
+ # enabled for the Account Management service, and optionally a
83
+ # [delegated admin][4] account assigned.
84
+ #
85
+ # <note markdown="1"> The management account can't specify its own `AccountId`; it must
86
+ # call the operation in standalone context by not including the
87
+ # `AccountId` parameter.
88
+ #
89
+ # </note>
90
+ #
91
+ # To call this operation on an account that is not a member of an
92
+ # organization, then don't specify this parameter, and call the
93
+ # operation using an identity belonging to the account whose contacts
94
+ # you wish to retrieve or modify.
95
+ #
96
+ #
97
+ #
98
+ # [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account
99
+ # [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html
100
+ # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html
101
+ # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html
102
+ # @return [String]
103
+ #
104
+ # @!attribute [rw] alternate_contact_type
105
+ # Specifies which of the alternate contacts to delete.
106
+ # @return [String]
107
+ #
108
+ # @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/DeleteAlternateContactRequest AWS API Documentation
109
+ #
110
+ class DeleteAlternateContactRequest < Struct.new(
111
+ :account_id,
112
+ :alternate_contact_type)
113
+ SENSITIVE = []
114
+ include Aws::Structure
115
+ end
116
+
117
+ # @note When making an API call, you may pass GetAlternateContactRequest
118
+ # data as a hash:
119
+ #
120
+ # {
121
+ # account_id: "AccountId",
122
+ # alternate_contact_type: "BILLING", # required, accepts BILLING, OPERATIONS, SECURITY
123
+ # }
124
+ #
125
+ # @!attribute [rw] account_id
126
+ # Specifies the 12 digit account ID number of the Amazon Web Services
127
+ # account that you want to access or modify with this operation.
128
+ #
129
+ # If you do not specify this parameter, it defaults to the Amazon Web
130
+ # Services account of the identity used to call the operation.
131
+ #
132
+ # To use this parameter, the caller must be an identity in the
133
+ # [organization's management account][1] or a delegated administrator
134
+ # account, and the specified account ID must be a member account in
135
+ # the same organization. The organization must have [all features
136
+ # enabled][2], and the organization must have [trusted access][3]
137
+ # enabled for the Account Management service, and optionally a
138
+ # [delegated admin][4] account assigned.
139
+ #
140
+ # <note markdown="1"> The management account can't specify its own `AccountId`; it must
141
+ # call the operation in standalone context by not including the
142
+ # `AccountId` parameter.
143
+ #
144
+ # </note>
145
+ #
146
+ # To call this operation on an account that is not a member of an
147
+ # organization, then don't specify this parameter, and call the
148
+ # operation using an identity belonging to the account whose contacts
149
+ # you wish to retrieve or modify.
150
+ #
151
+ #
152
+ #
153
+ # [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account
154
+ # [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html
155
+ # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html
156
+ # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html
157
+ # @return [String]
158
+ #
159
+ # @!attribute [rw] alternate_contact_type
160
+ # Specifies which alternate contact you want to retrieve.
161
+ # @return [String]
162
+ #
163
+ # @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetAlternateContactRequest AWS API Documentation
164
+ #
165
+ class GetAlternateContactRequest < Struct.new(
166
+ :account_id,
167
+ :alternate_contact_type)
168
+ SENSITIVE = []
169
+ include Aws::Structure
170
+ end
171
+
172
+ # @!attribute [rw] alternate_contact
173
+ # A structure that contains the details for the specified alternate
174
+ # contact.
175
+ # @return [Types::AlternateContact]
176
+ #
177
+ # @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetAlternateContactResponse AWS API Documentation
178
+ #
179
+ class GetAlternateContactResponse < Struct.new(
180
+ :alternate_contact)
181
+ SENSITIVE = []
182
+ include Aws::Structure
183
+ end
184
+
185
+ # The operation failed because of an error internal to Amazon Web
186
+ # Services. Try your operation again later.
187
+ #
188
+ # @!attribute [rw] message
189
+ # @return [String]
190
+ #
191
+ # @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/InternalServerException AWS API Documentation
192
+ #
193
+ class InternalServerException < Struct.new(
194
+ :message)
195
+ SENSITIVE = []
196
+ include Aws::Structure
197
+ end
198
+
199
+ # @note When making an API call, you may pass PutAlternateContactRequest
200
+ # data as a hash:
201
+ #
202
+ # {
203
+ # account_id: "AccountId",
204
+ # alternate_contact_type: "BILLING", # required, accepts BILLING, OPERATIONS, SECURITY
205
+ # email_address: "EmailAddress", # required
206
+ # name: "Name", # required
207
+ # phone_number: "PhoneNumber", # required
208
+ # title: "Title", # required
209
+ # }
210
+ #
211
+ # @!attribute [rw] account_id
212
+ # Specifies the 12 digit account ID number of the Amazon Web Services
213
+ # account that you want to access or modify with this operation.
214
+ #
215
+ # If you do not specify this parameter, it defaults to the Amazon Web
216
+ # Services account of the identity used to call the operation.
217
+ #
218
+ # To use this parameter, the caller must be an identity in the
219
+ # [organization's management account][1] or a delegated administrator
220
+ # account, and the specified account ID must be a member account in
221
+ # the same organization. The organization must have [all features
222
+ # enabled][2], and the organization must have [trusted access][3]
223
+ # enabled for the Account Management service, and optionally a
224
+ # [delegated admin][4] account assigned.
225
+ #
226
+ # <note markdown="1"> The management account can't specify its own `AccountId`; it must
227
+ # call the operation in standalone context by not including the
228
+ # `AccountId` parameter.
229
+ #
230
+ # </note>
231
+ #
232
+ # To call this operation on an account that is not a member of an
233
+ # organization, then don't specify this parameter, and call the
234
+ # operation using an identity belonging to the account whose contacts
235
+ # you wish to retrieve or modify.
236
+ #
237
+ #
238
+ #
239
+ # [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account
240
+ # [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html
241
+ # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html
242
+ # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html
243
+ # @return [String]
244
+ #
245
+ # @!attribute [rw] alternate_contact_type
246
+ # Specifies which alternate contact you want to create or update.
247
+ # @return [String]
248
+ #
249
+ # @!attribute [rw] email_address
250
+ # Specifies an email address for the alternate contact.
251
+ # @return [String]
252
+ #
253
+ # @!attribute [rw] name
254
+ # Specifies a name for the alternate contact.
255
+ # @return [String]
256
+ #
257
+ # @!attribute [rw] phone_number
258
+ # Specifies a phone number for the alternate contact.
259
+ # @return [String]
260
+ #
261
+ # @!attribute [rw] title
262
+ # Specifies a title for the alternate contact.
263
+ # @return [String]
264
+ #
265
+ # @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/PutAlternateContactRequest AWS API Documentation
266
+ #
267
+ class PutAlternateContactRequest < Struct.new(
268
+ :account_id,
269
+ :alternate_contact_type,
270
+ :email_address,
271
+ :name,
272
+ :phone_number,
273
+ :title)
274
+ SENSITIVE = [:email_address, :name, :phone_number, :title]
275
+ include Aws::Structure
276
+ end
277
+
278
+ # The operation failed because it specified a resource that can't be
279
+ # found.
280
+ #
281
+ # @!attribute [rw] message
282
+ # @return [String]
283
+ #
284
+ # @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/ResourceNotFoundException AWS API Documentation
285
+ #
286
+ class ResourceNotFoundException < Struct.new(
287
+ :message)
288
+ SENSITIVE = []
289
+ include Aws::Structure
290
+ end
291
+
292
+ # The operation failed because it was called too frequently and exceeded
293
+ # a throttle limit.
294
+ #
295
+ # @!attribute [rw] message
296
+ # @return [String]
297
+ #
298
+ # @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/TooManyRequestsException AWS API Documentation
299
+ #
300
+ class TooManyRequestsException < Struct.new(
301
+ :message)
302
+ SENSITIVE = []
303
+ include Aws::Structure
304
+ end
305
+
306
+ # The operation failed because one of the input parameters was invalid.
307
+ #
308
+ # @!attribute [rw] message
309
+ # @return [String]
310
+ #
311
+ # @see http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/ValidationException AWS API Documentation
312
+ #
313
+ class ValidationException < Struct.new(
314
+ :message)
315
+ SENSITIVE = []
316
+ include Aws::Structure
317
+ end
318
+
319
+ end
320
+ end
@@ -0,0 +1,53 @@
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
+ require 'aws-sdk-core'
12
+ require 'aws-sigv4'
13
+
14
+ require_relative 'aws-sdk-account/types'
15
+ require_relative 'aws-sdk-account/client_api'
16
+ require_relative 'aws-sdk-account/client'
17
+ require_relative 'aws-sdk-account/errors'
18
+ require_relative 'aws-sdk-account/resource'
19
+ require_relative 'aws-sdk-account/customizations'
20
+
21
+ # This module provides support for AWS Account. This module is available in the
22
+ # `aws-sdk-account` gem.
23
+ #
24
+ # # Client
25
+ #
26
+ # The {Client} class provides one method for each API operation. Operation
27
+ # methods each accept a hash of request parameters and return a response
28
+ # structure.
29
+ #
30
+ # account = Aws::Account::Client.new
31
+ # resp = account.delete_alternate_contact(params)
32
+ #
33
+ # See {Client} for more information.
34
+ #
35
+ # # Errors
36
+ #
37
+ # Errors returned from AWS Account are defined in the
38
+ # {Errors} module and all extend {Errors::ServiceError}.
39
+ #
40
+ # begin
41
+ # # do stuff
42
+ # rescue Aws::Account::Errors::ServiceError
43
+ # # rescues all AWS Account API errors
44
+ # end
45
+ #
46
+ # See {Errors} for more information.
47
+ #
48
+ # @!group service
49
+ module Aws::Account
50
+
51
+ GEM_VERSION = '1.0.0'
52
+
53
+ end