aws-sdk-supportauthz 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.
- checksums.yaml +7 -0
- data/CHANGELOG.md +8 -0
- data/LICENSE.txt +202 -0
- data/VERSION +1 -0
- data/lib/aws-sdk-supportauthz/client.rb +1029 -0
- data/lib/aws-sdk-supportauthz/client_api.rb +491 -0
- data/lib/aws-sdk-supportauthz/customizations.rb +0 -0
- data/lib/aws-sdk-supportauthz/endpoint_parameters.rb +59 -0
- data/lib/aws-sdk-supportauthz/endpoint_provider.rb +32 -0
- data/lib/aws-sdk-supportauthz/endpoints.rb +20 -0
- data/lib/aws-sdk-supportauthz/errors.rb +217 -0
- data/lib/aws-sdk-supportauthz/plugins/endpoints.rb +77 -0
- data/lib/aws-sdk-supportauthz/resource.rb +26 -0
- data/lib/aws-sdk-supportauthz/types.rb +925 -0
- data/lib/aws-sdk-supportauthz/waiters.rb +15 -0
- data/lib/aws-sdk-supportauthz.rb +62 -0
- data/sig/client.rbs +252 -0
- data/sig/errors.rbs +48 -0
- data/sig/resource.rbs +85 -0
- data/sig/types.rbs +302 -0
- data/sig/waiters.rbs +13 -0
- metadata +97 -0
|
@@ -0,0 +1,491 @@
|
|
|
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::SupportAuthZ
|
|
12
|
+
# @api private
|
|
13
|
+
module ClientApi
|
|
14
|
+
|
|
15
|
+
include Seahorse::Model
|
|
16
|
+
|
|
17
|
+
AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
|
|
18
|
+
Action = Shapes::StringShape.new(name: 'Action')
|
|
19
|
+
ActionDescription = Shapes::StringShape.new(name: 'ActionDescription')
|
|
20
|
+
ActionSet = Shapes::UnionShape.new(name: 'ActionSet')
|
|
21
|
+
ActionSummaries = Shapes::ListShape.new(name: 'ActionSummaries')
|
|
22
|
+
ActionSummary = Shapes::StructureShape.new(name: 'ActionSummary')
|
|
23
|
+
Actions = Shapes::ListShape.new(name: 'Actions')
|
|
24
|
+
Arn = Shapes::StringShape.new(name: 'Arn')
|
|
25
|
+
ClientToken = Shapes::StringShape.new(name: 'ClientToken')
|
|
26
|
+
Condition = Shapes::UnionShape.new(name: 'Condition')
|
|
27
|
+
Conditions = Shapes::ListShape.new(name: 'Conditions')
|
|
28
|
+
ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
|
|
29
|
+
CreateSupportPermitInput = Shapes::StructureShape.new(name: 'CreateSupportPermitInput')
|
|
30
|
+
CreateSupportPermitOutput = Shapes::StructureShape.new(name: 'CreateSupportPermitOutput')
|
|
31
|
+
DeleteSupportPermitInput = Shapes::StructureShape.new(name: 'DeleteSupportPermitInput')
|
|
32
|
+
DeleteSupportPermitOutput = Shapes::StructureShape.new(name: 'DeleteSupportPermitOutput')
|
|
33
|
+
Description = Shapes::StringShape.new(name: 'Description')
|
|
34
|
+
GetActionInput = Shapes::StructureShape.new(name: 'GetActionInput')
|
|
35
|
+
GetActionOutput = Shapes::StructureShape.new(name: 'GetActionOutput')
|
|
36
|
+
GetSupportPermitInput = Shapes::StructureShape.new(name: 'GetSupportPermitInput')
|
|
37
|
+
GetSupportPermitOutput = Shapes::StructureShape.new(name: 'GetSupportPermitOutput')
|
|
38
|
+
Integer = Shapes::IntegerShape.new(name: 'Integer')
|
|
39
|
+
InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
|
|
40
|
+
KmsKeyArn = Shapes::StringShape.new(name: 'KmsKeyArn')
|
|
41
|
+
ListActionsInput = Shapes::StructureShape.new(name: 'ListActionsInput')
|
|
42
|
+
ListActionsOutput = Shapes::StructureShape.new(name: 'ListActionsOutput')
|
|
43
|
+
ListSupportPermitRequestsInput = Shapes::StructureShape.new(name: 'ListSupportPermitRequestsInput')
|
|
44
|
+
ListSupportPermitRequestsOutput = Shapes::StructureShape.new(name: 'ListSupportPermitRequestsOutput')
|
|
45
|
+
ListSupportPermitsInput = Shapes::StructureShape.new(name: 'ListSupportPermitsInput')
|
|
46
|
+
ListSupportPermitsOutput = Shapes::StructureShape.new(name: 'ListSupportPermitsOutput')
|
|
47
|
+
ListTagsForResourceInput = Shapes::StructureShape.new(name: 'ListTagsForResourceInput')
|
|
48
|
+
ListTagsForResourceOutput = Shapes::StructureShape.new(name: 'ListTagsForResourceOutput')
|
|
49
|
+
MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
|
|
50
|
+
Name = Shapes::StringShape.new(name: 'Name')
|
|
51
|
+
NextToken = Shapes::StringShape.new(name: 'NextToken')
|
|
52
|
+
Permit = Shapes::StructureShape.new(name: 'Permit')
|
|
53
|
+
RejectSupportPermitRequestInput = Shapes::StructureShape.new(name: 'RejectSupportPermitRequestInput')
|
|
54
|
+
RejectSupportPermitRequestOutput = Shapes::StructureShape.new(name: 'RejectSupportPermitRequestOutput')
|
|
55
|
+
RequestArn = Shapes::StringShape.new(name: 'RequestArn')
|
|
56
|
+
Resource = Shapes::StringShape.new(name: 'Resource')
|
|
57
|
+
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
|
58
|
+
ResourceSet = Shapes::UnionShape.new(name: 'ResourceSet')
|
|
59
|
+
Resources = Shapes::ListShape.new(name: 'Resources')
|
|
60
|
+
Service = Shapes::StringShape.new(name: 'Service')
|
|
61
|
+
ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
|
|
62
|
+
SigningKeyInfo = Shapes::UnionShape.new(name: 'SigningKeyInfo')
|
|
63
|
+
String = Shapes::StringShape.new(name: 'String')
|
|
64
|
+
SupportCaseDisplayId = Shapes::StringShape.new(name: 'SupportCaseDisplayId')
|
|
65
|
+
SupportPermitIdentifier = Shapes::StringShape.new(name: 'SupportPermitIdentifier')
|
|
66
|
+
SupportPermitRequest = Shapes::StructureShape.new(name: 'SupportPermitRequest')
|
|
67
|
+
SupportPermitRequestStatus = Shapes::StringShape.new(name: 'SupportPermitRequestStatus')
|
|
68
|
+
SupportPermitRequests = Shapes::ListShape.new(name: 'SupportPermitRequests')
|
|
69
|
+
SupportPermitStatus = Shapes::StringShape.new(name: 'SupportPermitStatus')
|
|
70
|
+
SupportPermitStatuses = Shapes::ListShape.new(name: 'SupportPermitStatuses')
|
|
71
|
+
SupportPermitSummaries = Shapes::ListShape.new(name: 'SupportPermitSummaries')
|
|
72
|
+
SupportPermitSummary = Shapes::StructureShape.new(name: 'SupportPermitSummary')
|
|
73
|
+
TagKey = Shapes::StringShape.new(name: 'TagKey')
|
|
74
|
+
TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
|
|
75
|
+
TagResourceInput = Shapes::StructureShape.new(name: 'TagResourceInput')
|
|
76
|
+
TagResourceOutput = Shapes::StructureShape.new(name: 'TagResourceOutput')
|
|
77
|
+
TagValue = Shapes::StringShape.new(name: 'TagValue')
|
|
78
|
+
Tags = Shapes::MapShape.new(name: 'Tags')
|
|
79
|
+
ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
|
|
80
|
+
Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
|
|
81
|
+
Unit = Shapes::StructureShape.new(name: 'Unit')
|
|
82
|
+
UntagResourceInput = Shapes::StructureShape.new(name: 'UntagResourceInput')
|
|
83
|
+
UntagResourceOutput = Shapes::StructureShape.new(name: 'UntagResourceOutput')
|
|
84
|
+
ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
|
|
85
|
+
ValidationExceptionField = Shapes::StructureShape.new(name: 'ValidationExceptionField')
|
|
86
|
+
ValidationExceptionFieldList = Shapes::ListShape.new(name: 'ValidationExceptionFieldList')
|
|
87
|
+
|
|
88
|
+
AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
|
89
|
+
AccessDeniedException.struct_class = Types::AccessDeniedException
|
|
90
|
+
|
|
91
|
+
ActionSet.add_member(:all_actions, Shapes::ShapeRef.new(shape: Unit, location_name: "allActions"))
|
|
92
|
+
ActionSet.add_member(:actions, Shapes::ShapeRef.new(shape: Actions, location_name: "actions"))
|
|
93
|
+
ActionSet.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
|
|
94
|
+
ActionSet.add_member_subclass(:all_actions, Types::ActionSet::AllActions)
|
|
95
|
+
ActionSet.add_member_subclass(:actions, Types::ActionSet::Actions)
|
|
96
|
+
ActionSet.add_member_subclass(:unknown, Types::ActionSet::Unknown)
|
|
97
|
+
ActionSet.struct_class = Types::ActionSet
|
|
98
|
+
|
|
99
|
+
ActionSummaries.member = Shapes::ShapeRef.new(shape: ActionSummary)
|
|
100
|
+
|
|
101
|
+
ActionSummary.add_member(:action, Shapes::ShapeRef.new(shape: Action, required: true, location_name: "action"))
|
|
102
|
+
ActionSummary.add_member(:service, Shapes::ShapeRef.new(shape: Service, required: true, location_name: "service"))
|
|
103
|
+
ActionSummary.add_member(:description, Shapes::ShapeRef.new(shape: ActionDescription, required: true, location_name: "description"))
|
|
104
|
+
ActionSummary.struct_class = Types::ActionSummary
|
|
105
|
+
|
|
106
|
+
Actions.member = Shapes::ShapeRef.new(shape: Action)
|
|
107
|
+
|
|
108
|
+
Condition.add_member(:allow_after, Shapes::ShapeRef.new(shape: Timestamp, location_name: "allowAfter"))
|
|
109
|
+
Condition.add_member(:allow_before, Shapes::ShapeRef.new(shape: Timestamp, location_name: "allowBefore"))
|
|
110
|
+
Condition.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
|
|
111
|
+
Condition.add_member_subclass(:allow_after, Types::Condition::AllowAfter)
|
|
112
|
+
Condition.add_member_subclass(:allow_before, Types::Condition::AllowBefore)
|
|
113
|
+
Condition.add_member_subclass(:unknown, Types::Condition::Unknown)
|
|
114
|
+
Condition.struct_class = Types::Condition
|
|
115
|
+
|
|
116
|
+
Conditions.member = Shapes::ShapeRef.new(shape: Condition)
|
|
117
|
+
|
|
118
|
+
ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
|
119
|
+
ConflictException.add_member(:resource_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceId"))
|
|
120
|
+
ConflictException.add_member(:resource_type, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceType"))
|
|
121
|
+
ConflictException.struct_class = Types::ConflictException
|
|
122
|
+
|
|
123
|
+
CreateSupportPermitInput.add_member(:permit, Shapes::ShapeRef.new(shape: Permit, required: true, location_name: "permit"))
|
|
124
|
+
CreateSupportPermitInput.add_member(:name, Shapes::ShapeRef.new(shape: Name, required: true, location_name: "name"))
|
|
125
|
+
CreateSupportPermitInput.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "description"))
|
|
126
|
+
CreateSupportPermitInput.add_member(:signing_key_info, Shapes::ShapeRef.new(shape: SigningKeyInfo, required: true, location_name: "signingKeyInfo"))
|
|
127
|
+
CreateSupportPermitInput.add_member(:support_case_display_id, Shapes::ShapeRef.new(shape: SupportCaseDisplayId, location_name: "supportCaseDisplayId"))
|
|
128
|
+
CreateSupportPermitInput.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "clientToken", metadata: {"idempotencyToken" => true}))
|
|
129
|
+
CreateSupportPermitInput.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "tags"))
|
|
130
|
+
CreateSupportPermitInput.struct_class = Types::CreateSupportPermitInput
|
|
131
|
+
|
|
132
|
+
CreateSupportPermitOutput.add_member(:name, Shapes::ShapeRef.new(shape: Name, required: true, location_name: "name"))
|
|
133
|
+
CreateSupportPermitOutput.add_member(:arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "arn"))
|
|
134
|
+
CreateSupportPermitOutput.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "description"))
|
|
135
|
+
CreateSupportPermitOutput.add_member(:permit, Shapes::ShapeRef.new(shape: Permit, required: true, location_name: "permit"))
|
|
136
|
+
CreateSupportPermitOutput.add_member(:status, Shapes::ShapeRef.new(shape: SupportPermitStatus, required: true, location_name: "status"))
|
|
137
|
+
CreateSupportPermitOutput.add_member(:signing_key_info, Shapes::ShapeRef.new(shape: SigningKeyInfo, required: true, location_name: "signingKeyInfo"))
|
|
138
|
+
CreateSupportPermitOutput.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "createdAt"))
|
|
139
|
+
CreateSupportPermitOutput.add_member(:support_case_display_id, Shapes::ShapeRef.new(shape: SupportCaseDisplayId, location_name: "supportCaseDisplayId"))
|
|
140
|
+
CreateSupportPermitOutput.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "tags"))
|
|
141
|
+
CreateSupportPermitOutput.struct_class = Types::CreateSupportPermitOutput
|
|
142
|
+
|
|
143
|
+
DeleteSupportPermitInput.add_member(:support_permit_identifier, Shapes::ShapeRef.new(shape: Arn, required: true, location: "uri", location_name: "supportPermitIdentifier"))
|
|
144
|
+
DeleteSupportPermitInput.struct_class = Types::DeleteSupportPermitInput
|
|
145
|
+
|
|
146
|
+
DeleteSupportPermitOutput.add_member(:name, Shapes::ShapeRef.new(shape: Name, required: true, location_name: "name"))
|
|
147
|
+
DeleteSupportPermitOutput.add_member(:arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "arn"))
|
|
148
|
+
DeleteSupportPermitOutput.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "description"))
|
|
149
|
+
DeleteSupportPermitOutput.add_member(:permit, Shapes::ShapeRef.new(shape: Permit, required: true, location_name: "permit"))
|
|
150
|
+
DeleteSupportPermitOutput.add_member(:status, Shapes::ShapeRef.new(shape: SupportPermitStatus, required: true, location_name: "status"))
|
|
151
|
+
DeleteSupportPermitOutput.add_member(:signing_key_info, Shapes::ShapeRef.new(shape: SigningKeyInfo, required: true, location_name: "signingKeyInfo"))
|
|
152
|
+
DeleteSupportPermitOutput.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "createdAt"))
|
|
153
|
+
DeleteSupportPermitOutput.add_member(:support_case_display_id, Shapes::ShapeRef.new(shape: SupportCaseDisplayId, location_name: "supportCaseDisplayId"))
|
|
154
|
+
DeleteSupportPermitOutput.struct_class = Types::DeleteSupportPermitOutput
|
|
155
|
+
|
|
156
|
+
GetActionInput.add_member(:action, Shapes::ShapeRef.new(shape: Action, required: true, location: "uri", location_name: "action"))
|
|
157
|
+
GetActionInput.struct_class = Types::GetActionInput
|
|
158
|
+
|
|
159
|
+
GetActionOutput.add_member(:action, Shapes::ShapeRef.new(shape: Action, required: true, location_name: "action"))
|
|
160
|
+
GetActionOutput.add_member(:service, Shapes::ShapeRef.new(shape: Service, required: true, location_name: "service"))
|
|
161
|
+
GetActionOutput.add_member(:description, Shapes::ShapeRef.new(shape: ActionDescription, required: true, location_name: "description"))
|
|
162
|
+
GetActionOutput.struct_class = Types::GetActionOutput
|
|
163
|
+
|
|
164
|
+
GetSupportPermitInput.add_member(:support_permit_identifier, Shapes::ShapeRef.new(shape: SupportPermitIdentifier, required: true, location: "uri", location_name: "supportPermitIdentifier"))
|
|
165
|
+
GetSupportPermitInput.struct_class = Types::GetSupportPermitInput
|
|
166
|
+
|
|
167
|
+
GetSupportPermitOutput.add_member(:name, Shapes::ShapeRef.new(shape: Name, required: true, location_name: "name"))
|
|
168
|
+
GetSupportPermitOutput.add_member(:arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "arn"))
|
|
169
|
+
GetSupportPermitOutput.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "description"))
|
|
170
|
+
GetSupportPermitOutput.add_member(:permit, Shapes::ShapeRef.new(shape: Permit, required: true, location_name: "permit"))
|
|
171
|
+
GetSupportPermitOutput.add_member(:status, Shapes::ShapeRef.new(shape: SupportPermitStatus, required: true, location_name: "status"))
|
|
172
|
+
GetSupportPermitOutput.add_member(:signing_key_info, Shapes::ShapeRef.new(shape: SigningKeyInfo, required: true, location_name: "signingKeyInfo"))
|
|
173
|
+
GetSupportPermitOutput.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "createdAt"))
|
|
174
|
+
GetSupportPermitOutput.add_member(:support_case_display_id, Shapes::ShapeRef.new(shape: SupportCaseDisplayId, location_name: "supportCaseDisplayId"))
|
|
175
|
+
GetSupportPermitOutput.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "tags"))
|
|
176
|
+
GetSupportPermitOutput.struct_class = Types::GetSupportPermitOutput
|
|
177
|
+
|
|
178
|
+
InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
|
179
|
+
InternalServerException.add_member(:retry_after_seconds, Shapes::ShapeRef.new(shape: Integer, location: "header", location_name: "Retry-After"))
|
|
180
|
+
InternalServerException.struct_class = Types::InternalServerException
|
|
181
|
+
|
|
182
|
+
ListActionsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "nextToken"))
|
|
183
|
+
ListActionsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
|
|
184
|
+
ListActionsInput.add_member(:service, Shapes::ShapeRef.new(shape: Service, required: true, location: "querystring", location_name: "service"))
|
|
185
|
+
ListActionsInput.struct_class = Types::ListActionsInput
|
|
186
|
+
|
|
187
|
+
ListActionsOutput.add_member(:action_summaries, Shapes::ShapeRef.new(shape: ActionSummaries, required: true, location_name: "actionSummaries"))
|
|
188
|
+
ListActionsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
|
|
189
|
+
ListActionsOutput.struct_class = Types::ListActionsOutput
|
|
190
|
+
|
|
191
|
+
ListSupportPermitRequestsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "nextToken"))
|
|
192
|
+
ListSupportPermitRequestsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
|
|
193
|
+
ListSupportPermitRequestsInput.add_member(:support_case_display_id, Shapes::ShapeRef.new(shape: SupportCaseDisplayId, location: "querystring", location_name: "supportCaseDisplayId"))
|
|
194
|
+
ListSupportPermitRequestsInput.struct_class = Types::ListSupportPermitRequestsInput
|
|
195
|
+
|
|
196
|
+
ListSupportPermitRequestsOutput.add_member(:support_permit_requests, Shapes::ShapeRef.new(shape: SupportPermitRequests, required: true, location_name: "supportPermitRequests"))
|
|
197
|
+
ListSupportPermitRequestsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
|
|
198
|
+
ListSupportPermitRequestsOutput.struct_class = Types::ListSupportPermitRequestsOutput
|
|
199
|
+
|
|
200
|
+
ListSupportPermitsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "nextToken"))
|
|
201
|
+
ListSupportPermitsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
|
|
202
|
+
ListSupportPermitsInput.add_member(:support_permit_statuses, Shapes::ShapeRef.new(shape: SupportPermitStatuses, location: "querystring", location_name: "supportPermitStatuses"))
|
|
203
|
+
ListSupportPermitsInput.struct_class = Types::ListSupportPermitsInput
|
|
204
|
+
|
|
205
|
+
ListSupportPermitsOutput.add_member(:support_permits, Shapes::ShapeRef.new(shape: SupportPermitSummaries, required: true, location_name: "supportPermits"))
|
|
206
|
+
ListSupportPermitsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
|
|
207
|
+
ListSupportPermitsOutput.struct_class = Types::ListSupportPermitsOutput
|
|
208
|
+
|
|
209
|
+
ListTagsForResourceInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location: "uri", location_name: "resourceArn"))
|
|
210
|
+
ListTagsForResourceInput.struct_class = Types::ListTagsForResourceInput
|
|
211
|
+
|
|
212
|
+
ListTagsForResourceOutput.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "tags"))
|
|
213
|
+
ListTagsForResourceOutput.struct_class = Types::ListTagsForResourceOutput
|
|
214
|
+
|
|
215
|
+
Permit.add_member(:actions, Shapes::ShapeRef.new(shape: ActionSet, required: true, location_name: "actions"))
|
|
216
|
+
Permit.add_member(:resources, Shapes::ShapeRef.new(shape: ResourceSet, required: true, location_name: "resources"))
|
|
217
|
+
Permit.add_member(:conditions, Shapes::ShapeRef.new(shape: Conditions, location_name: "conditions"))
|
|
218
|
+
Permit.struct_class = Types::Permit
|
|
219
|
+
|
|
220
|
+
RejectSupportPermitRequestInput.add_member(:request_arn, Shapes::ShapeRef.new(shape: RequestArn, required: true, location: "uri", location_name: "requestArn"))
|
|
221
|
+
RejectSupportPermitRequestInput.struct_class = Types::RejectSupportPermitRequestInput
|
|
222
|
+
|
|
223
|
+
RejectSupportPermitRequestOutput.add_member(:request_arn, Shapes::ShapeRef.new(shape: RequestArn, required: true, location_name: "requestArn"))
|
|
224
|
+
RejectSupportPermitRequestOutput.struct_class = Types::RejectSupportPermitRequestOutput
|
|
225
|
+
|
|
226
|
+
ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
|
227
|
+
ResourceNotFoundException.add_member(:resource_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceId"))
|
|
228
|
+
ResourceNotFoundException.add_member(:resource_type, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceType"))
|
|
229
|
+
ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
|
|
230
|
+
|
|
231
|
+
ResourceSet.add_member(:all_resources_in_region, Shapes::ShapeRef.new(shape: Unit, location_name: "allResourcesInRegion"))
|
|
232
|
+
ResourceSet.add_member(:resources, Shapes::ShapeRef.new(shape: Resources, location_name: "resources"))
|
|
233
|
+
ResourceSet.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
|
|
234
|
+
ResourceSet.add_member_subclass(:all_resources_in_region, Types::ResourceSet::AllResourcesInRegion)
|
|
235
|
+
ResourceSet.add_member_subclass(:resources, Types::ResourceSet::Resources)
|
|
236
|
+
ResourceSet.add_member_subclass(:unknown, Types::ResourceSet::Unknown)
|
|
237
|
+
ResourceSet.struct_class = Types::ResourceSet
|
|
238
|
+
|
|
239
|
+
Resources.member = Shapes::ShapeRef.new(shape: Resource)
|
|
240
|
+
|
|
241
|
+
ServiceQuotaExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
|
242
|
+
ServiceQuotaExceededException.add_member(:resource_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceId"))
|
|
243
|
+
ServiceQuotaExceededException.add_member(:resource_type, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceType"))
|
|
244
|
+
ServiceQuotaExceededException.add_member(:service_code, Shapes::ShapeRef.new(shape: String, required: true, location_name: "serviceCode"))
|
|
245
|
+
ServiceQuotaExceededException.add_member(:quota_code, Shapes::ShapeRef.new(shape: String, required: true, location_name: "quotaCode"))
|
|
246
|
+
ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
|
|
247
|
+
|
|
248
|
+
SigningKeyInfo.add_member(:kms_key, Shapes::ShapeRef.new(shape: KmsKeyArn, location_name: "kmsKey"))
|
|
249
|
+
SigningKeyInfo.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
|
|
250
|
+
SigningKeyInfo.add_member_subclass(:kms_key, Types::SigningKeyInfo::KmsKey)
|
|
251
|
+
SigningKeyInfo.add_member_subclass(:unknown, Types::SigningKeyInfo::Unknown)
|
|
252
|
+
SigningKeyInfo.struct_class = Types::SigningKeyInfo
|
|
253
|
+
|
|
254
|
+
SupportPermitRequest.add_member(:request_arn, Shapes::ShapeRef.new(shape: RequestArn, required: true, location_name: "requestArn"))
|
|
255
|
+
SupportPermitRequest.add_member(:permit, Shapes::ShapeRef.new(shape: Permit, required: true, location_name: "permit"))
|
|
256
|
+
SupportPermitRequest.add_member(:support_case_display_id, Shapes::ShapeRef.new(shape: SupportCaseDisplayId, required: true, location_name: "supportCaseDisplayId"))
|
|
257
|
+
SupportPermitRequest.add_member(:status, Shapes::ShapeRef.new(shape: SupportPermitRequestStatus, required: true, location_name: "status"))
|
|
258
|
+
SupportPermitRequest.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "createdAt"))
|
|
259
|
+
SupportPermitRequest.add_member(:updated_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "updatedAt"))
|
|
260
|
+
SupportPermitRequest.struct_class = Types::SupportPermitRequest
|
|
261
|
+
|
|
262
|
+
SupportPermitRequests.member = Shapes::ShapeRef.new(shape: SupportPermitRequest)
|
|
263
|
+
|
|
264
|
+
SupportPermitStatuses.member = Shapes::ShapeRef.new(shape: SupportPermitStatus)
|
|
265
|
+
|
|
266
|
+
SupportPermitSummaries.member = Shapes::ShapeRef.new(shape: SupportPermitSummary)
|
|
267
|
+
|
|
268
|
+
SupportPermitSummary.add_member(:name, Shapes::ShapeRef.new(shape: Name, required: true, location_name: "name"))
|
|
269
|
+
SupportPermitSummary.add_member(:arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "arn"))
|
|
270
|
+
SupportPermitSummary.add_member(:permit, Shapes::ShapeRef.new(shape: Permit, required: true, location_name: "permit"))
|
|
271
|
+
SupportPermitSummary.add_member(:status, Shapes::ShapeRef.new(shape: SupportPermitStatus, required: true, location_name: "status"))
|
|
272
|
+
SupportPermitSummary.add_member(:signing_key_info, Shapes::ShapeRef.new(shape: SigningKeyInfo, required: true, location_name: "signingKeyInfo"))
|
|
273
|
+
SupportPermitSummary.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "createdAt"))
|
|
274
|
+
SupportPermitSummary.add_member(:support_case_display_id, Shapes::ShapeRef.new(shape: SupportCaseDisplayId, location_name: "supportCaseDisplayId"))
|
|
275
|
+
SupportPermitSummary.struct_class = Types::SupportPermitSummary
|
|
276
|
+
|
|
277
|
+
TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
|
|
278
|
+
|
|
279
|
+
TagResourceInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location: "uri", location_name: "resourceArn"))
|
|
280
|
+
TagResourceInput.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, required: true, location_name: "tags"))
|
|
281
|
+
TagResourceInput.struct_class = Types::TagResourceInput
|
|
282
|
+
|
|
283
|
+
TagResourceOutput.struct_class = Types::TagResourceOutput
|
|
284
|
+
|
|
285
|
+
Tags.key = Shapes::ShapeRef.new(shape: TagKey)
|
|
286
|
+
Tags.value = Shapes::ShapeRef.new(shape: TagValue)
|
|
287
|
+
|
|
288
|
+
ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
|
289
|
+
ThrottlingException.add_member(:retry_after_seconds, Shapes::ShapeRef.new(shape: Integer, location: "header", location_name: "Retry-After"))
|
|
290
|
+
ThrottlingException.struct_class = Types::ThrottlingException
|
|
291
|
+
|
|
292
|
+
Unit.struct_class = Types::Unit
|
|
293
|
+
|
|
294
|
+
UntagResourceInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location: "uri", location_name: "resourceArn"))
|
|
295
|
+
UntagResourceInput.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location: "querystring", location_name: "tagKeys"))
|
|
296
|
+
UntagResourceInput.struct_class = Types::UntagResourceInput
|
|
297
|
+
|
|
298
|
+
UntagResourceOutput.struct_class = Types::UntagResourceOutput
|
|
299
|
+
|
|
300
|
+
ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
|
301
|
+
ValidationException.add_member(:field_list, Shapes::ShapeRef.new(shape: ValidationExceptionFieldList, location_name: "fieldList"))
|
|
302
|
+
ValidationException.struct_class = Types::ValidationException
|
|
303
|
+
|
|
304
|
+
ValidationExceptionField.add_member(:path, Shapes::ShapeRef.new(shape: String, required: true, location_name: "path"))
|
|
305
|
+
ValidationExceptionField.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
|
306
|
+
ValidationExceptionField.struct_class = Types::ValidationExceptionField
|
|
307
|
+
|
|
308
|
+
ValidationExceptionFieldList.member = Shapes::ShapeRef.new(shape: ValidationExceptionField)
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
# @api private
|
|
312
|
+
API = Seahorse::Model::Api.new.tap do |api|
|
|
313
|
+
|
|
314
|
+
api.version = "2026-06-30"
|
|
315
|
+
|
|
316
|
+
api.metadata = {
|
|
317
|
+
"apiVersion" => "2026-06-30",
|
|
318
|
+
"auth" => ["aws.auth#sigv4"],
|
|
319
|
+
"endpointPrefix" => "supportauthz",
|
|
320
|
+
"protocol" => "rest-json",
|
|
321
|
+
"protocols" => ["rest-json"],
|
|
322
|
+
"serviceFullName" => "SupportAuthZ",
|
|
323
|
+
"serviceId" => "SupportAuthZ",
|
|
324
|
+
"signatureVersion" => "v4",
|
|
325
|
+
"signingName" => "supportauthz",
|
|
326
|
+
"uid" => "supportauthz-2026-06-30",
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
api.add_operation(:create_support_permit, Seahorse::Model::Operation.new.tap do |o|
|
|
330
|
+
o.name = "CreateSupportPermit"
|
|
331
|
+
o.http_method = "POST"
|
|
332
|
+
o.http_request_uri = "/support-permits"
|
|
333
|
+
o.input = Shapes::ShapeRef.new(shape: CreateSupportPermitInput)
|
|
334
|
+
o.output = Shapes::ShapeRef.new(shape: CreateSupportPermitOutput)
|
|
335
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
336
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
|
337
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
338
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
339
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
|
340
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
341
|
+
end)
|
|
342
|
+
|
|
343
|
+
api.add_operation(:delete_support_permit, Seahorse::Model::Operation.new.tap do |o|
|
|
344
|
+
o.name = "DeleteSupportPermit"
|
|
345
|
+
o.http_method = "DELETE"
|
|
346
|
+
o.http_request_uri = "/support-permits/{supportPermitIdentifier}"
|
|
347
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteSupportPermitInput)
|
|
348
|
+
o.output = Shapes::ShapeRef.new(shape: DeleteSupportPermitOutput)
|
|
349
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
350
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
|
351
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
352
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
353
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
354
|
+
end)
|
|
355
|
+
|
|
356
|
+
api.add_operation(:get_action, Seahorse::Model::Operation.new.tap do |o|
|
|
357
|
+
o.name = "GetAction"
|
|
358
|
+
o.http_method = "GET"
|
|
359
|
+
o.http_request_uri = "/actions/{action}"
|
|
360
|
+
o.input = Shapes::ShapeRef.new(shape: GetActionInput)
|
|
361
|
+
o.output = Shapes::ShapeRef.new(shape: GetActionOutput)
|
|
362
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
363
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
|
364
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
365
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
366
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
367
|
+
end)
|
|
368
|
+
|
|
369
|
+
api.add_operation(:get_support_permit, Seahorse::Model::Operation.new.tap do |o|
|
|
370
|
+
o.name = "GetSupportPermit"
|
|
371
|
+
o.http_method = "GET"
|
|
372
|
+
o.http_request_uri = "/support-permits/{supportPermitIdentifier}"
|
|
373
|
+
o.input = Shapes::ShapeRef.new(shape: GetSupportPermitInput)
|
|
374
|
+
o.output = Shapes::ShapeRef.new(shape: GetSupportPermitOutput)
|
|
375
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
376
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
|
377
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
378
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
379
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
380
|
+
end)
|
|
381
|
+
|
|
382
|
+
api.add_operation(:list_actions, Seahorse::Model::Operation.new.tap do |o|
|
|
383
|
+
o.name = "ListActions"
|
|
384
|
+
o.http_method = "GET"
|
|
385
|
+
o.http_request_uri = "/actions"
|
|
386
|
+
o.input = Shapes::ShapeRef.new(shape: ListActionsInput)
|
|
387
|
+
o.output = Shapes::ShapeRef.new(shape: ListActionsOutput)
|
|
388
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
389
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
390
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
391
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
392
|
+
o[:pager] = Aws::Pager.new(
|
|
393
|
+
limit_key: "max_results",
|
|
394
|
+
tokens: {
|
|
395
|
+
"next_token" => "next_token"
|
|
396
|
+
}
|
|
397
|
+
)
|
|
398
|
+
end)
|
|
399
|
+
|
|
400
|
+
api.add_operation(:list_support_permit_requests, Seahorse::Model::Operation.new.tap do |o|
|
|
401
|
+
o.name = "ListSupportPermitRequests"
|
|
402
|
+
o.http_method = "GET"
|
|
403
|
+
o.http_request_uri = "/support-permit-requests"
|
|
404
|
+
o.input = Shapes::ShapeRef.new(shape: ListSupportPermitRequestsInput)
|
|
405
|
+
o.output = Shapes::ShapeRef.new(shape: ListSupportPermitRequestsOutput)
|
|
406
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
407
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
408
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
409
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
410
|
+
o[:pager] = Aws::Pager.new(
|
|
411
|
+
limit_key: "max_results",
|
|
412
|
+
tokens: {
|
|
413
|
+
"next_token" => "next_token"
|
|
414
|
+
}
|
|
415
|
+
)
|
|
416
|
+
end)
|
|
417
|
+
|
|
418
|
+
api.add_operation(:list_support_permits, Seahorse::Model::Operation.new.tap do |o|
|
|
419
|
+
o.name = "ListSupportPermits"
|
|
420
|
+
o.http_method = "GET"
|
|
421
|
+
o.http_request_uri = "/support-permits"
|
|
422
|
+
o.input = Shapes::ShapeRef.new(shape: ListSupportPermitsInput)
|
|
423
|
+
o.output = Shapes::ShapeRef.new(shape: ListSupportPermitsOutput)
|
|
424
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
425
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
426
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
427
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
428
|
+
o[:pager] = Aws::Pager.new(
|
|
429
|
+
limit_key: "max_results",
|
|
430
|
+
tokens: {
|
|
431
|
+
"next_token" => "next_token"
|
|
432
|
+
}
|
|
433
|
+
)
|
|
434
|
+
end)
|
|
435
|
+
|
|
436
|
+
api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
|
|
437
|
+
o.name = "ListTagsForResource"
|
|
438
|
+
o.http_method = "GET"
|
|
439
|
+
o.http_request_uri = "/tags/{resourceArn}"
|
|
440
|
+
o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceInput)
|
|
441
|
+
o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceOutput)
|
|
442
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
443
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
|
444
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
445
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
446
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
447
|
+
end)
|
|
448
|
+
|
|
449
|
+
api.add_operation(:reject_support_permit_request, Seahorse::Model::Operation.new.tap do |o|
|
|
450
|
+
o.name = "RejectSupportPermitRequest"
|
|
451
|
+
o.http_method = "PUT"
|
|
452
|
+
o.http_request_uri = "/support-permit-requests/{requestArn}/reject"
|
|
453
|
+
o.input = Shapes::ShapeRef.new(shape: RejectSupportPermitRequestInput)
|
|
454
|
+
o.output = Shapes::ShapeRef.new(shape: RejectSupportPermitRequestOutput)
|
|
455
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
456
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
|
457
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
|
458
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
459
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
460
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
461
|
+
end)
|
|
462
|
+
|
|
463
|
+
api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
|
|
464
|
+
o.name = "TagResource"
|
|
465
|
+
o.http_method = "POST"
|
|
466
|
+
o.http_request_uri = "/tags/{resourceArn}"
|
|
467
|
+
o.input = Shapes::ShapeRef.new(shape: TagResourceInput)
|
|
468
|
+
o.output = Shapes::ShapeRef.new(shape: TagResourceOutput)
|
|
469
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
470
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
|
471
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
472
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
473
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
474
|
+
end)
|
|
475
|
+
|
|
476
|
+
api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
|
|
477
|
+
o.name = "UntagResource"
|
|
478
|
+
o.http_method = "DELETE"
|
|
479
|
+
o.http_request_uri = "/tags/{resourceArn}"
|
|
480
|
+
o.input = Shapes::ShapeRef.new(shape: UntagResourceInput)
|
|
481
|
+
o.output = Shapes::ShapeRef.new(shape: UntagResourceOutput)
|
|
482
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
483
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
|
484
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
485
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
486
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
487
|
+
end)
|
|
488
|
+
end
|
|
489
|
+
|
|
490
|
+
end
|
|
491
|
+
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::SupportAuthZ
|
|
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::SupportAuthZ
|
|
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://supportauthz-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
|
23
|
+
end
|
|
24
|
+
return Aws::Endpoints::Endpoint.new(url: "https://supportauthz.#{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::SupportAuthZ
|
|
12
|
+
# @api private
|
|
13
|
+
module Endpoints
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def self.parameters_for_operation(context)
|
|
17
|
+
Aws::SupportAuthZ::EndpointParameters.create(context.config)
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|