aws-sdk-accountaccess 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,478 @@
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::AccountAccess
12
+ # @api private
13
+ module ClientApi
14
+
15
+ include Seahorse::Model
16
+
17
+ AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
18
+ Account = Shapes::StringShape.new(name: 'Account')
19
+ AlreadyCreatedException = Shapes::StructureShape.new(name: 'AlreadyCreatedException')
20
+ ApplicationArn = Shapes::StringShape.new(name: 'ApplicationArn')
21
+ ApplicationList = Shapes::ListShape.new(name: 'ApplicationList')
22
+ ApplicationSummary = Shapes::StructureShape.new(name: 'ApplicationSummary')
23
+ ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
24
+ CreateApplicationRequest = Shapes::StructureShape.new(name: 'CreateApplicationRequest')
25
+ CreateApplicationResponse = Shapes::StructureShape.new(name: 'CreateApplicationResponse')
26
+ CreateEntitlementRequest = Shapes::StructureShape.new(name: 'CreateEntitlementRequest')
27
+ CreateEntitlementResponse = Shapes::StructureShape.new(name: 'CreateEntitlementResponse')
28
+ DateTime = Shapes::TimestampShape.new(name: 'DateTime', timestampFormat: "iso8601")
29
+ DeleteApplicationRequest = Shapes::StructureShape.new(name: 'DeleteApplicationRequest')
30
+ DeleteApplicationResponse = Shapes::StructureShape.new(name: 'DeleteApplicationResponse')
31
+ DeleteEntitlementRequest = Shapes::StructureShape.new(name: 'DeleteEntitlementRequest')
32
+ DeleteEntitlementResponse = Shapes::StructureShape.new(name: 'DeleteEntitlementResponse')
33
+ Entitlement = Shapes::UnionShape.new(name: 'Entitlement')
34
+ EntitlementDetails = Shapes::UnionShape.new(name: 'EntitlementDetails')
35
+ EntitlementFilter = Shapes::StructureShape.new(name: 'EntitlementFilter')
36
+ EntitlementSummary = Shapes::UnionShape.new(name: 'EntitlementSummary')
37
+ EntitlementsList = Shapes::ListShape.new(name: 'EntitlementsList')
38
+ EntitlementsListMember = Shapes::StructureShape.new(name: 'EntitlementsListMember')
39
+ ErrorCode = Shapes::StringShape.new(name: 'ErrorCode')
40
+ ErrorDetails = Shapes::StructureShape.new(name: 'ErrorDetails')
41
+ GetApplicationRequest = Shapes::StructureShape.new(name: 'GetApplicationRequest')
42
+ GetApplicationResponse = Shapes::StructureShape.new(name: 'GetApplicationResponse')
43
+ GetEntitlementRequest = Shapes::StructureShape.new(name: 'GetEntitlementRequest')
44
+ GetEntitlementResponse = Shapes::StructureShape.new(name: 'GetEntitlementResponse')
45
+ GroupId = Shapes::StringShape.new(name: 'GroupId')
46
+ IdentityCenter = Shapes::StructureShape.new(name: 'IdentityCenter')
47
+ IdentityCenterApplicationArn = Shapes::StringShape.new(name: 'IdentityCenterApplicationArn')
48
+ IdentityCenterDetails = Shapes::StructureShape.new(name: 'IdentityCenterDetails')
49
+ IdentityCenterInstanceArn = Shapes::StringShape.new(name: 'IdentityCenterInstanceArn')
50
+ IdentityCenterPrincipal = Shapes::UnionShape.new(name: 'IdentityCenterPrincipal')
51
+ IdentityCenterPrincipalFilter = Shapes::UnionShape.new(name: 'IdentityCenterPrincipalFilter')
52
+ IdentitySource = Shapes::UnionShape.new(name: 'IdentitySource')
53
+ IdentitySourceDetails = Shapes::UnionShape.new(name: 'IdentitySourceDetails')
54
+ InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
55
+ ListApplicationsRequest = Shapes::StructureShape.new(name: 'ListApplicationsRequest')
56
+ ListApplicationsRequestMaxResultsInteger = Shapes::IntegerShape.new(name: 'ListApplicationsRequestMaxResultsInteger')
57
+ ListApplicationsResponse = Shapes::StructureShape.new(name: 'ListApplicationsResponse')
58
+ ListEntitlementsRequest = Shapes::StructureShape.new(name: 'ListEntitlementsRequest')
59
+ ListEntitlementsRequestMaxResultsInteger = Shapes::IntegerShape.new(name: 'ListEntitlementsRequestMaxResultsInteger')
60
+ ListEntitlementsResponse = Shapes::StructureShape.new(name: 'ListEntitlementsResponse')
61
+ ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
62
+ ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
63
+ Principal = Shapes::UnionShape.new(name: 'Principal')
64
+ PrincipalFilter = Shapes::UnionShape.new(name: 'PrincipalFilter')
65
+ PrincipalRoleEntitlement = Shapes::StructureShape.new(name: 'PrincipalRoleEntitlement')
66
+ PrincipalRoleEntitlementDetails = Shapes::StructureShape.new(name: 'PrincipalRoleEntitlementDetails')
67
+ PrincipalRoleEntitlementFilter = Shapes::StructureShape.new(name: 'PrincipalRoleEntitlementFilter')
68
+ PrincipalRoleEntitlementSummary = Shapes::StructureShape.new(name: 'PrincipalRoleEntitlementSummary')
69
+ ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
70
+ RoleArn = Shapes::StringShape.new(name: 'RoleArn')
71
+ ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
72
+ Status = Shapes::StringShape.new(name: 'Status')
73
+ String = Shapes::StringShape.new(name: 'String')
74
+ TagKeys = Shapes::ListShape.new(name: 'TagKeys')
75
+ TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
76
+ TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
77
+ TagsMap = Shapes::MapShape.new(name: 'TagsMap')
78
+ ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
79
+ UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
80
+ UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
81
+ UserId = Shapes::StringShape.new(name: 'UserId')
82
+ ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
83
+
84
+ AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
85
+ AccessDeniedException.struct_class = Types::AccessDeniedException
86
+
87
+ AlreadyCreatedException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
88
+ AlreadyCreatedException.struct_class = Types::AlreadyCreatedException
89
+
90
+ ApplicationList.member = Shapes::ShapeRef.new(shape: ApplicationSummary)
91
+
92
+ ApplicationSummary.add_member(:application_arn, Shapes::ShapeRef.new(shape: ApplicationArn, required: true, location_name: "applicationArn"))
93
+ ApplicationSummary.add_member(:tenant_id, Shapes::ShapeRef.new(shape: String, location_name: "tenantId"))
94
+ ApplicationSummary.add_member(:created_at, Shapes::ShapeRef.new(shape: DateTime, required: true, location_name: "createdAt"))
95
+ ApplicationSummary.add_member(:updated_at, Shapes::ShapeRef.new(shape: DateTime, required: true, location_name: "updatedAt"))
96
+ ApplicationSummary.struct_class = Types::ApplicationSummary
97
+
98
+ ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
99
+ ConflictException.struct_class = Types::ConflictException
100
+
101
+ CreateApplicationRequest.add_member(:identity_source, Shapes::ShapeRef.new(shape: IdentitySource, required: true, location_name: "identitySource"))
102
+ CreateApplicationRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagsMap, location_name: "tags"))
103
+ CreateApplicationRequest.struct_class = Types::CreateApplicationRequest
104
+
105
+ CreateApplicationResponse.add_member(:application_arn, Shapes::ShapeRef.new(shape: ApplicationArn, required: true, location_name: "applicationArn"))
106
+ CreateApplicationResponse.struct_class = Types::CreateApplicationResponse
107
+
108
+ CreateEntitlementRequest.add_member(:application_arn, Shapes::ShapeRef.new(shape: ApplicationArn, required: true, location_name: "applicationArn"))
109
+ CreateEntitlementRequest.add_member(:entitlement, Shapes::ShapeRef.new(shape: Entitlement, required: true, location_name: "entitlement"))
110
+ CreateEntitlementRequest.struct_class = Types::CreateEntitlementRequest
111
+
112
+ CreateEntitlementResponse.add_member(:entitlement_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "entitlementId"))
113
+ CreateEntitlementResponse.struct_class = Types::CreateEntitlementResponse
114
+
115
+ DeleteApplicationRequest.add_member(:application_arn, Shapes::ShapeRef.new(shape: ApplicationArn, required: true, location: "uri", location_name: "applicationArn"))
116
+ DeleteApplicationRequest.struct_class = Types::DeleteApplicationRequest
117
+
118
+ DeleteApplicationResponse.struct_class = Types::DeleteApplicationResponse
119
+
120
+ DeleteEntitlementRequest.add_member(:application_arn, Shapes::ShapeRef.new(shape: ApplicationArn, required: true, location: "querystring", location_name: "applicationArn"))
121
+ DeleteEntitlementRequest.add_member(:entitlement_id, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "entitlementId"))
122
+ DeleteEntitlementRequest.struct_class = Types::DeleteEntitlementRequest
123
+
124
+ DeleteEntitlementResponse.struct_class = Types::DeleteEntitlementResponse
125
+
126
+ Entitlement.add_member(:principal_role, Shapes::ShapeRef.new(shape: PrincipalRoleEntitlement, location_name: "principalRole"))
127
+ Entitlement.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
128
+ Entitlement.add_member_subclass(:principal_role, Types::Entitlement::PrincipalRole)
129
+ Entitlement.add_member_subclass(:unknown, Types::Entitlement::Unknown)
130
+ Entitlement.struct_class = Types::Entitlement
131
+
132
+ EntitlementDetails.add_member(:principal_role, Shapes::ShapeRef.new(shape: PrincipalRoleEntitlementDetails, location_name: "principalRole"))
133
+ EntitlementDetails.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
134
+ EntitlementDetails.add_member_subclass(:principal_role, Types::EntitlementDetails::PrincipalRole)
135
+ EntitlementDetails.add_member_subclass(:unknown, Types::EntitlementDetails::Unknown)
136
+ EntitlementDetails.struct_class = Types::EntitlementDetails
137
+
138
+ EntitlementFilter.add_member(:principal_role, Shapes::ShapeRef.new(shape: PrincipalRoleEntitlementFilter, location_name: "principalRole"))
139
+ EntitlementFilter.struct_class = Types::EntitlementFilter
140
+
141
+ EntitlementSummary.add_member(:principal_role, Shapes::ShapeRef.new(shape: PrincipalRoleEntitlementSummary, location_name: "principalRole"))
142
+ EntitlementSummary.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
143
+ EntitlementSummary.add_member_subclass(:principal_role, Types::EntitlementSummary::PrincipalRole)
144
+ EntitlementSummary.add_member_subclass(:unknown, Types::EntitlementSummary::Unknown)
145
+ EntitlementSummary.struct_class = Types::EntitlementSummary
146
+
147
+ EntitlementsList.member = Shapes::ShapeRef.new(shape: EntitlementsListMember)
148
+
149
+ EntitlementsListMember.add_member(:entitlement_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "entitlementId"))
150
+ EntitlementsListMember.add_member(:entitlement, Shapes::ShapeRef.new(shape: EntitlementSummary, required: true, location_name: "entitlement"))
151
+ EntitlementsListMember.add_member(:created_at, Shapes::ShapeRef.new(shape: DateTime, required: true, location_name: "createdAt"))
152
+ EntitlementsListMember.struct_class = Types::EntitlementsListMember
153
+
154
+ ErrorDetails.add_member(:code, Shapes::ShapeRef.new(shape: ErrorCode, required: true, location_name: "code"))
155
+ ErrorDetails.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
156
+ ErrorDetails.struct_class = Types::ErrorDetails
157
+
158
+ GetApplicationRequest.add_member(:application_arn, Shapes::ShapeRef.new(shape: ApplicationArn, required: true, location: "uri", location_name: "applicationArn"))
159
+ GetApplicationRequest.struct_class = Types::GetApplicationRequest
160
+
161
+ GetApplicationResponse.add_member(:identity_source, Shapes::ShapeRef.new(shape: IdentitySourceDetails, required: true, location_name: "identitySource"))
162
+ GetApplicationResponse.add_member(:status, Shapes::ShapeRef.new(shape: Status, required: true, location_name: "status"))
163
+ GetApplicationResponse.add_member(:tenant_id, Shapes::ShapeRef.new(shape: String, location_name: "tenantId"))
164
+ GetApplicationResponse.add_member(:created_at, Shapes::ShapeRef.new(shape: DateTime, required: true, location_name: "createdAt"))
165
+ GetApplicationResponse.add_member(:updated_at, Shapes::ShapeRef.new(shape: DateTime, required: true, location_name: "updatedAt"))
166
+ GetApplicationResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagsMap, location_name: "tags"))
167
+ GetApplicationResponse.add_member(:error, Shapes::ShapeRef.new(shape: ErrorDetails, location_name: "error"))
168
+ GetApplicationResponse.struct_class = Types::GetApplicationResponse
169
+
170
+ GetEntitlementRequest.add_member(:application_arn, Shapes::ShapeRef.new(shape: ApplicationArn, required: true, location: "querystring", location_name: "applicationArn"))
171
+ GetEntitlementRequest.add_member(:entitlement_id, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "entitlementId"))
172
+ GetEntitlementRequest.struct_class = Types::GetEntitlementRequest
173
+
174
+ GetEntitlementResponse.add_member(:application_arn, Shapes::ShapeRef.new(shape: ApplicationArn, required: true, location_name: "applicationArn"))
175
+ GetEntitlementResponse.add_member(:entitlement_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "entitlementId"))
176
+ GetEntitlementResponse.add_member(:entitlement, Shapes::ShapeRef.new(shape: EntitlementDetails, required: true, location_name: "entitlement"))
177
+ GetEntitlementResponse.add_member(:created_at, Shapes::ShapeRef.new(shape: DateTime, required: true, location_name: "createdAt"))
178
+ GetEntitlementResponse.struct_class = Types::GetEntitlementResponse
179
+
180
+ IdentityCenter.add_member(:instance_arn, Shapes::ShapeRef.new(shape: IdentityCenterInstanceArn, required: true, location_name: "instanceArn"))
181
+ IdentityCenter.struct_class = Types::IdentityCenter
182
+
183
+ IdentityCenterDetails.add_member(:instance_arn, Shapes::ShapeRef.new(shape: IdentityCenterInstanceArn, required: true, location_name: "instanceArn"))
184
+ IdentityCenterDetails.add_member(:application_arn, Shapes::ShapeRef.new(shape: IdentityCenterApplicationArn, location_name: "applicationArn"))
185
+ IdentityCenterDetails.struct_class = Types::IdentityCenterDetails
186
+
187
+ IdentityCenterPrincipal.add_member(:user_id, Shapes::ShapeRef.new(shape: UserId, location_name: "userId"))
188
+ IdentityCenterPrincipal.add_member(:group_id, Shapes::ShapeRef.new(shape: GroupId, location_name: "groupId"))
189
+ IdentityCenterPrincipal.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
190
+ IdentityCenterPrincipal.add_member_subclass(:user_id, Types::IdentityCenterPrincipal::UserId)
191
+ IdentityCenterPrincipal.add_member_subclass(:group_id, Types::IdentityCenterPrincipal::GroupId)
192
+ IdentityCenterPrincipal.add_member_subclass(:unknown, Types::IdentityCenterPrincipal::Unknown)
193
+ IdentityCenterPrincipal.struct_class = Types::IdentityCenterPrincipal
194
+
195
+ IdentityCenterPrincipalFilter.add_member(:user_id, Shapes::ShapeRef.new(shape: UserId, location_name: "userId"))
196
+ IdentityCenterPrincipalFilter.add_member(:group_id, Shapes::ShapeRef.new(shape: GroupId, location_name: "groupId"))
197
+ IdentityCenterPrincipalFilter.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
198
+ IdentityCenterPrincipalFilter.add_member_subclass(:user_id, Types::IdentityCenterPrincipalFilter::UserId)
199
+ IdentityCenterPrincipalFilter.add_member_subclass(:group_id, Types::IdentityCenterPrincipalFilter::GroupId)
200
+ IdentityCenterPrincipalFilter.add_member_subclass(:unknown, Types::IdentityCenterPrincipalFilter::Unknown)
201
+ IdentityCenterPrincipalFilter.struct_class = Types::IdentityCenterPrincipalFilter
202
+
203
+ IdentitySource.add_member(:identity_center, Shapes::ShapeRef.new(shape: IdentityCenter, location_name: "identityCenter"))
204
+ IdentitySource.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
205
+ IdentitySource.add_member_subclass(:identity_center, Types::IdentitySource::IdentityCenter)
206
+ IdentitySource.add_member_subclass(:unknown, Types::IdentitySource::Unknown)
207
+ IdentitySource.struct_class = Types::IdentitySource
208
+
209
+ IdentitySourceDetails.add_member(:identity_center, Shapes::ShapeRef.new(shape: IdentityCenterDetails, location_name: "identityCenter"))
210
+ IdentitySourceDetails.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
211
+ IdentitySourceDetails.add_member_subclass(:identity_center, Types::IdentitySourceDetails::IdentityCenter)
212
+ IdentitySourceDetails.add_member_subclass(:unknown, Types::IdentitySourceDetails::Unknown)
213
+ IdentitySourceDetails.struct_class = Types::IdentitySourceDetails
214
+
215
+ InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
216
+ InternalServerException.struct_class = Types::InternalServerException
217
+
218
+ ListApplicationsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListApplicationsRequestMaxResultsInteger, location_name: "maxResults"))
219
+ ListApplicationsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
220
+ ListApplicationsRequest.struct_class = Types::ListApplicationsRequest
221
+
222
+ ListApplicationsResponse.add_member(:applications, Shapes::ShapeRef.new(shape: ApplicationList, required: true, location_name: "applications"))
223
+ ListApplicationsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
224
+ ListApplicationsResponse.struct_class = Types::ListApplicationsResponse
225
+
226
+ ListEntitlementsRequest.add_member(:application_arn, Shapes::ShapeRef.new(shape: ApplicationArn, required: true, location_name: "applicationArn"))
227
+ ListEntitlementsRequest.add_member(:filter, Shapes::ShapeRef.new(shape: EntitlementFilter, required: true, location_name: "filter"))
228
+ ListEntitlementsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
229
+ ListEntitlementsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListEntitlementsRequestMaxResultsInteger, location_name: "maxResults"))
230
+ ListEntitlementsRequest.struct_class = Types::ListEntitlementsRequest
231
+
232
+ ListEntitlementsResponse.add_member(:entitlements, Shapes::ShapeRef.new(shape: EntitlementsList, required: true, location_name: "entitlements"))
233
+ ListEntitlementsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
234
+ ListEntitlementsResponse.struct_class = Types::ListEntitlementsResponse
235
+
236
+ ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ApplicationArn, required: true, location: "uri", location_name: "resourceArn"))
237
+ ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
238
+
239
+ ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagsMap, location_name: "tags"))
240
+ ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
241
+
242
+ Principal.add_member(:identity_center, Shapes::ShapeRef.new(shape: IdentityCenterPrincipal, location_name: "identityCenter"))
243
+ Principal.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
244
+ Principal.add_member_subclass(:identity_center, Types::Principal::IdentityCenter)
245
+ Principal.add_member_subclass(:unknown, Types::Principal::Unknown)
246
+ Principal.struct_class = Types::Principal
247
+
248
+ PrincipalFilter.add_member(:identity_center, Shapes::ShapeRef.new(shape: IdentityCenterPrincipalFilter, location_name: "identityCenter"))
249
+ PrincipalFilter.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
250
+ PrincipalFilter.add_member_subclass(:identity_center, Types::PrincipalFilter::IdentityCenter)
251
+ PrincipalFilter.add_member_subclass(:unknown, Types::PrincipalFilter::Unknown)
252
+ PrincipalFilter.struct_class = Types::PrincipalFilter
253
+
254
+ PrincipalRoleEntitlement.add_member(:principal, Shapes::ShapeRef.new(shape: Principal, required: true, location_name: "principal"))
255
+ PrincipalRoleEntitlement.add_member(:role_arn, Shapes::ShapeRef.new(shape: RoleArn, required: true, location_name: "roleArn"))
256
+ PrincipalRoleEntitlement.struct_class = Types::PrincipalRoleEntitlement
257
+
258
+ PrincipalRoleEntitlementDetails.add_member(:principal, Shapes::ShapeRef.new(shape: Principal, required: true, location_name: "principal"))
259
+ PrincipalRoleEntitlementDetails.add_member(:role_arn, Shapes::ShapeRef.new(shape: RoleArn, required: true, location_name: "roleArn"))
260
+ PrincipalRoleEntitlementDetails.add_member(:account, Shapes::ShapeRef.new(shape: Account, required: true, location_name: "account"))
261
+ PrincipalRoleEntitlementDetails.add_member(:account_name, Shapes::ShapeRef.new(shape: String, location_name: "accountName"))
262
+ PrincipalRoleEntitlementDetails.struct_class = Types::PrincipalRoleEntitlementDetails
263
+
264
+ PrincipalRoleEntitlementFilter.add_member(:principal, Shapes::ShapeRef.new(shape: PrincipalFilter, location_name: "principal"))
265
+ PrincipalRoleEntitlementFilter.add_member(:role_arn, Shapes::ShapeRef.new(shape: RoleArn, location_name: "roleArn"))
266
+ PrincipalRoleEntitlementFilter.add_member(:account, Shapes::ShapeRef.new(shape: Account, location_name: "account"))
267
+ PrincipalRoleEntitlementFilter.struct_class = Types::PrincipalRoleEntitlementFilter
268
+
269
+ PrincipalRoleEntitlementSummary.add_member(:principal, Shapes::ShapeRef.new(shape: Principal, required: true, location_name: "principal"))
270
+ PrincipalRoleEntitlementSummary.add_member(:role_arn, Shapes::ShapeRef.new(shape: RoleArn, required: true, location_name: "roleArn"))
271
+ PrincipalRoleEntitlementSummary.add_member(:account, Shapes::ShapeRef.new(shape: Account, required: true, location_name: "account"))
272
+ PrincipalRoleEntitlementSummary.add_member(:account_name, Shapes::ShapeRef.new(shape: String, location_name: "accountName"))
273
+ PrincipalRoleEntitlementSummary.struct_class = Types::PrincipalRoleEntitlementSummary
274
+
275
+ ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
276
+ ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
277
+
278
+ ServiceQuotaExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
279
+ ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
280
+
281
+ TagKeys.member = Shapes::ShapeRef.new(shape: String)
282
+
283
+ TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ApplicationArn, required: true, location: "uri", location_name: "resourceArn"))
284
+ TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagsMap, required: true, location_name: "tags"))
285
+ TagResourceRequest.struct_class = Types::TagResourceRequest
286
+
287
+ TagResourceResponse.struct_class = Types::TagResourceResponse
288
+
289
+ TagsMap.key = Shapes::ShapeRef.new(shape: String)
290
+ TagsMap.value = Shapes::ShapeRef.new(shape: String)
291
+
292
+ ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
293
+ ThrottlingException.struct_class = Types::ThrottlingException
294
+
295
+ UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ApplicationArn, required: true, location: "uri", location_name: "resourceArn"))
296
+ UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeys, required: true, location: "querystring", location_name: "tagKeys"))
297
+ UntagResourceRequest.struct_class = Types::UntagResourceRequest
298
+
299
+ UntagResourceResponse.struct_class = Types::UntagResourceResponse
300
+
301
+ ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
302
+ ValidationException.struct_class = Types::ValidationException
303
+
304
+
305
+ # @api private
306
+ API = Seahorse::Model::Api.new.tap do |api|
307
+
308
+ api.version = "2018-05-10"
309
+
310
+ api.metadata = {
311
+ "apiVersion" => "2018-05-10",
312
+ "auth" => ["aws.auth#sigv4"],
313
+ "endpointPrefix" => "account-access",
314
+ "protocol" => "rest-json",
315
+ "protocols" => ["rest-json"],
316
+ "serviceFullName" => "Account Access",
317
+ "serviceId" => "Account Access",
318
+ "signatureVersion" => "v4",
319
+ "signingName" => "account-access",
320
+ "uid" => "account-access-2018-05-10",
321
+ }
322
+
323
+ api.add_operation(:create_application, Seahorse::Model::Operation.new.tap do |o|
324
+ o.name = "CreateApplication"
325
+ o.http_method = "POST"
326
+ o.http_request_uri = "/applications"
327
+ o.input = Shapes::ShapeRef.new(shape: CreateApplicationRequest)
328
+ o.output = Shapes::ShapeRef.new(shape: CreateApplicationResponse)
329
+ o.errors << Shapes::ShapeRef.new(shape: AlreadyCreatedException)
330
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
331
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
332
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
333
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
334
+ end)
335
+
336
+ api.add_operation(:create_entitlement, Seahorse::Model::Operation.new.tap do |o|
337
+ o.name = "CreateEntitlement"
338
+ o.http_method = "POST"
339
+ o.http_request_uri = "/entitlements"
340
+ o.input = Shapes::ShapeRef.new(shape: CreateEntitlementRequest)
341
+ o.output = Shapes::ShapeRef.new(shape: CreateEntitlementResponse)
342
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
343
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
344
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
345
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
346
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
347
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
348
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
349
+ end)
350
+
351
+ api.add_operation(:delete_application, Seahorse::Model::Operation.new.tap do |o|
352
+ o.name = "DeleteApplication"
353
+ o.http_method = "DELETE"
354
+ o.http_request_uri = "/applications/{applicationArn}"
355
+ o.input = Shapes::ShapeRef.new(shape: DeleteApplicationRequest)
356
+ o.output = Shapes::ShapeRef.new(shape: DeleteApplicationResponse)
357
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
358
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
359
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
360
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
361
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
362
+ end)
363
+
364
+ api.add_operation(:delete_entitlement, Seahorse::Model::Operation.new.tap do |o|
365
+ o.name = "DeleteEntitlement"
366
+ o.http_method = "DELETE"
367
+ o.http_request_uri = "/entitlements/{entitlementId}"
368
+ o.input = Shapes::ShapeRef.new(shape: DeleteEntitlementRequest)
369
+ o.output = Shapes::ShapeRef.new(shape: DeleteEntitlementResponse)
370
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
371
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
372
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
373
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
374
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
375
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
376
+ end)
377
+
378
+ api.add_operation(:get_application, Seahorse::Model::Operation.new.tap do |o|
379
+ o.name = "GetApplication"
380
+ o.http_method = "GET"
381
+ o.http_request_uri = "/applications/{applicationArn}"
382
+ o.input = Shapes::ShapeRef.new(shape: GetApplicationRequest)
383
+ o.output = Shapes::ShapeRef.new(shape: GetApplicationResponse)
384
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
385
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
386
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
387
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
388
+ end)
389
+
390
+ api.add_operation(:get_entitlement, Seahorse::Model::Operation.new.tap do |o|
391
+ o.name = "GetEntitlement"
392
+ o.http_method = "GET"
393
+ o.http_request_uri = "/entitlements/{entitlementId}"
394
+ o.input = Shapes::ShapeRef.new(shape: GetEntitlementRequest)
395
+ o.output = Shapes::ShapeRef.new(shape: GetEntitlementResponse)
396
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
397
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
398
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
399
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
400
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
401
+ end)
402
+
403
+ api.add_operation(:list_applications, Seahorse::Model::Operation.new.tap do |o|
404
+ o.name = "ListApplications"
405
+ o.http_method = "POST"
406
+ o.http_request_uri = "/applications-list"
407
+ o.input = Shapes::ShapeRef.new(shape: ListApplicationsRequest)
408
+ o.output = Shapes::ShapeRef.new(shape: ListApplicationsResponse)
409
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
410
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
411
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
412
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
413
+ o[:pager] = Aws::Pager.new(
414
+ limit_key: "max_results",
415
+ tokens: {
416
+ "next_token" => "next_token"
417
+ }
418
+ )
419
+ end)
420
+
421
+ api.add_operation(:list_entitlements, Seahorse::Model::Operation.new.tap do |o|
422
+ o.name = "ListEntitlements"
423
+ o.http_method = "POST"
424
+ o.http_request_uri = "/entitlements-list"
425
+ o.input = Shapes::ShapeRef.new(shape: ListEntitlementsRequest)
426
+ o.output = Shapes::ShapeRef.new(shape: ListEntitlementsResponse)
427
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
428
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
429
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
430
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
431
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
432
+ o[:pager] = Aws::Pager.new(
433
+ limit_key: "max_results",
434
+ tokens: {
435
+ "next_token" => "next_token"
436
+ }
437
+ )
438
+ end)
439
+
440
+ api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
441
+ o.name = "ListTagsForResource"
442
+ o.http_method = "GET"
443
+ o.http_request_uri = "/tags/{resourceArn}"
444
+ o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
445
+ o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
446
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
447
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
448
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
449
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
450
+ end)
451
+
452
+ api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
453
+ o.name = "TagResource"
454
+ o.http_method = "POST"
455
+ o.http_request_uri = "/tags/{resourceArn}"
456
+ o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
457
+ o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
458
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
459
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
460
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
461
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
462
+ end)
463
+
464
+ api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
465
+ o.name = "UntagResource"
466
+ o.http_method = "DELETE"
467
+ o.http_request_uri = "/tags/{resourceArn}"
468
+ o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
469
+ o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
470
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
471
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
472
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
473
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
474
+ end)
475
+ end
476
+
477
+ end
478
+ end
File without changes
@@ -0,0 +1,59 @@
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::AccountAccess
11
+ # Endpoint parameters used to influence endpoints per request.
12
+ #
13
+ # @!attribute use_fips
14
+ # 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.
15
+ #
16
+ # @return [boolean]
17
+ #
18
+ # @!attribute endpoint
19
+ # Override the endpoint used to send this request
20
+ #
21
+ # @return [string]
22
+ #
23
+ # @!attribute region
24
+ # The AWS region used to dispatch the request.
25
+ #
26
+ # @return [string]
27
+ #
28
+ EndpointParameters = Struct.new(
29
+ :use_fips,
30
+ :endpoint,
31
+ :region,
32
+ ) do
33
+ include Aws::Structure
34
+
35
+ # @api private
36
+ class << self
37
+ PARAM_MAP = {
38
+ 'UseFIPS' => :use_fips,
39
+ 'Endpoint' => :endpoint,
40
+ 'Region' => :region,
41
+ }.freeze
42
+ end
43
+
44
+ def initialize(options = {})
45
+ self[:use_fips] = options[:use_fips]
46
+ self[:use_fips] = false if self[:use_fips].nil?
47
+ self[:endpoint] = options[:endpoint]
48
+ self[:region] = options[:region]
49
+ end
50
+
51
+ def self.create(config, options={})
52
+ new({
53
+ use_fips: config.use_fips_endpoint,
54
+ endpoint: (config.endpoint.to_s unless config.regional_endpoint),
55
+ region: config.region,
56
+ }.merge(options))
57
+ end
58
+ end
59
+ end
@@ -0,0 +1,32 @@
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::AccountAccess
11
+ class EndpointProvider
12
+ def resolve_endpoint(parameters)
13
+ if Aws::Endpoints::Matchers.set?(parameters.endpoint)
14
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
15
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
16
+ end
17
+ return Aws::Endpoints::Endpoint.new(url: parameters.endpoint, headers: {}, properties: {})
18
+ end
19
+ if Aws::Endpoints::Matchers.set?(parameters.region)
20
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(parameters.region))
21
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
22
+ return Aws::Endpoints::Endpoint.new(url: "https://account-access-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
23
+ end
24
+ return Aws::Endpoints::Endpoint.new(url: "https://account-access.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
25
+ end
26
+ end
27
+ raise ArgumentError, "Invalid Configuration: Missing Region"
28
+ raise ArgumentError, 'No endpoint could be resolved'
29
+
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,20 @@
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::AccountAccess
12
+ # @api private
13
+ module Endpoints
14
+
15
+
16
+ def self.parameters_for_operation(context)
17
+ Aws::AccountAccess::EndpointParameters.create(context.config)
18
+ end
19
+ end
20
+ end