aws-sdk-arczonalshift 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +8 -0
- data/LICENSE.txt +202 -0
- data/VERSION +1 -0
- data/lib/aws-sdk-arczonalshift/client.rb +779 -0
- data/lib/aws-sdk-arczonalshift/client_api.rb +272 -0
- data/lib/aws-sdk-arczonalshift/customizations.rb +0 -0
- data/lib/aws-sdk-arczonalshift/endpoint_parameters.rb +69 -0
- data/lib/aws-sdk-arczonalshift/endpoint_provider.rb +111 -0
- data/lib/aws-sdk-arczonalshift/endpoints.rb +99 -0
- data/lib/aws-sdk-arczonalshift/errors.rb +149 -0
- data/lib/aws-sdk-arczonalshift/plugins/endpoints.rb +80 -0
- data/lib/aws-sdk-arczonalshift/resource.rb +26 -0
- data/lib/aws-sdk-arczonalshift/types.rb +670 -0
- data/lib/aws-sdk-arczonalshift.rb +57 -0
- metadata +94 -0
@@ -0,0 +1,272 @@
|
|
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::ARCZonalShift
|
11
|
+
# @api private
|
12
|
+
module ClientApi
|
13
|
+
|
14
|
+
include Seahorse::Model
|
15
|
+
|
16
|
+
AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
|
17
|
+
AppliedStatus = Shapes::StringShape.new(name: 'AppliedStatus')
|
18
|
+
AppliedWeights = Shapes::MapShape.new(name: 'AppliedWeights')
|
19
|
+
AvailabilityZone = Shapes::StringShape.new(name: 'AvailabilityZone')
|
20
|
+
AvailabilityZones = Shapes::ListShape.new(name: 'AvailabilityZones')
|
21
|
+
CancelZonalShiftRequest = Shapes::StructureShape.new(name: 'CancelZonalShiftRequest')
|
22
|
+
ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
|
23
|
+
ConflictExceptionReason = Shapes::StringShape.new(name: 'ConflictExceptionReason')
|
24
|
+
ExpiresIn = Shapes::StringShape.new(name: 'ExpiresIn')
|
25
|
+
ExpiryTime = Shapes::TimestampShape.new(name: 'ExpiryTime')
|
26
|
+
GetManagedResourceRequest = Shapes::StructureShape.new(name: 'GetManagedResourceRequest')
|
27
|
+
GetManagedResourceResponse = Shapes::StructureShape.new(name: 'GetManagedResourceResponse')
|
28
|
+
InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
|
29
|
+
ListManagedResourcesRequest = Shapes::StructureShape.new(name: 'ListManagedResourcesRequest')
|
30
|
+
ListManagedResourcesResponse = Shapes::StructureShape.new(name: 'ListManagedResourcesResponse')
|
31
|
+
ListZonalShiftsRequest = Shapes::StructureShape.new(name: 'ListZonalShiftsRequest')
|
32
|
+
ListZonalShiftsResponse = Shapes::StructureShape.new(name: 'ListZonalShiftsResponse')
|
33
|
+
ManagedResourceSummaries = Shapes::ListShape.new(name: 'ManagedResourceSummaries')
|
34
|
+
ManagedResourceSummary = Shapes::StructureShape.new(name: 'ManagedResourceSummary')
|
35
|
+
MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
|
36
|
+
ResourceArn = Shapes::StringShape.new(name: 'ResourceArn')
|
37
|
+
ResourceIdentifier = Shapes::StringShape.new(name: 'ResourceIdentifier')
|
38
|
+
ResourceName = Shapes::StringShape.new(name: 'ResourceName')
|
39
|
+
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
40
|
+
StartTime = Shapes::TimestampShape.new(name: 'StartTime')
|
41
|
+
StartZonalShiftRequest = Shapes::StructureShape.new(name: 'StartZonalShiftRequest')
|
42
|
+
String = Shapes::StringShape.new(name: 'String')
|
43
|
+
ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
|
44
|
+
UpdateZonalShiftRequest = Shapes::StructureShape.new(name: 'UpdateZonalShiftRequest')
|
45
|
+
ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
|
46
|
+
ValidationExceptionReason = Shapes::StringShape.new(name: 'ValidationExceptionReason')
|
47
|
+
Weight = Shapes::FloatShape.new(name: 'Weight')
|
48
|
+
ZonalShift = Shapes::StructureShape.new(name: 'ZonalShift')
|
49
|
+
ZonalShiftComment = Shapes::StringShape.new(name: 'ZonalShiftComment')
|
50
|
+
ZonalShiftId = Shapes::StringShape.new(name: 'ZonalShiftId')
|
51
|
+
ZonalShiftInResource = Shapes::StructureShape.new(name: 'ZonalShiftInResource')
|
52
|
+
ZonalShiftStatus = Shapes::StringShape.new(name: 'ZonalShiftStatus')
|
53
|
+
ZonalShiftSummaries = Shapes::ListShape.new(name: 'ZonalShiftSummaries')
|
54
|
+
ZonalShiftSummary = Shapes::StructureShape.new(name: 'ZonalShiftSummary')
|
55
|
+
ZonalShiftsInResource = Shapes::ListShape.new(name: 'ZonalShiftsInResource')
|
56
|
+
|
57
|
+
AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
58
|
+
AccessDeniedException.struct_class = Types::AccessDeniedException
|
59
|
+
|
60
|
+
AppliedWeights.key = Shapes::ShapeRef.new(shape: AvailabilityZone)
|
61
|
+
AppliedWeights.value = Shapes::ShapeRef.new(shape: Weight)
|
62
|
+
|
63
|
+
AvailabilityZones.member = Shapes::ShapeRef.new(shape: AvailabilityZone)
|
64
|
+
|
65
|
+
CancelZonalShiftRequest.add_member(:zonal_shift_id, Shapes::ShapeRef.new(shape: ZonalShiftId, required: true, location: "uri", location_name: "zonalShiftId"))
|
66
|
+
CancelZonalShiftRequest.struct_class = Types::CancelZonalShiftRequest
|
67
|
+
|
68
|
+
ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
69
|
+
ConflictException.add_member(:reason, Shapes::ShapeRef.new(shape: ConflictExceptionReason, required: true, location_name: "reason"))
|
70
|
+
ConflictException.add_member(:zonal_shift_id, Shapes::ShapeRef.new(shape: String, location_name: "zonalShiftId"))
|
71
|
+
ConflictException.struct_class = Types::ConflictException
|
72
|
+
|
73
|
+
GetManagedResourceRequest.add_member(:resource_identifier, Shapes::ShapeRef.new(shape: ResourceIdentifier, required: true, location: "uri", location_name: "resourceIdentifier"))
|
74
|
+
GetManagedResourceRequest.struct_class = Types::GetManagedResourceRequest
|
75
|
+
|
76
|
+
GetManagedResourceResponse.add_member(:applied_weights, Shapes::ShapeRef.new(shape: AppliedWeights, required: true, location_name: "appliedWeights"))
|
77
|
+
GetManagedResourceResponse.add_member(:arn, Shapes::ShapeRef.new(shape: ResourceArn, location_name: "arn"))
|
78
|
+
GetManagedResourceResponse.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, location_name: "name"))
|
79
|
+
GetManagedResourceResponse.add_member(:zonal_shifts, Shapes::ShapeRef.new(shape: ZonalShiftsInResource, required: true, location_name: "zonalShifts"))
|
80
|
+
GetManagedResourceResponse.struct_class = Types::GetManagedResourceResponse
|
81
|
+
|
82
|
+
InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
83
|
+
InternalServerException.struct_class = Types::InternalServerException
|
84
|
+
|
85
|
+
ListManagedResourcesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
|
86
|
+
ListManagedResourcesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location: "querystring", location_name: "nextToken"))
|
87
|
+
ListManagedResourcesRequest.struct_class = Types::ListManagedResourcesRequest
|
88
|
+
|
89
|
+
ListManagedResourcesResponse.add_member(:items, Shapes::ShapeRef.new(shape: ManagedResourceSummaries, required: true, location_name: "items"))
|
90
|
+
ListManagedResourcesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
|
91
|
+
ListManagedResourcesResponse.struct_class = Types::ListManagedResourcesResponse
|
92
|
+
|
93
|
+
ListZonalShiftsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
|
94
|
+
ListZonalShiftsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location: "querystring", location_name: "nextToken"))
|
95
|
+
ListZonalShiftsRequest.add_member(:status, Shapes::ShapeRef.new(shape: ZonalShiftStatus, location: "querystring", location_name: "status"))
|
96
|
+
ListZonalShiftsRequest.struct_class = Types::ListZonalShiftsRequest
|
97
|
+
|
98
|
+
ListZonalShiftsResponse.add_member(:items, Shapes::ShapeRef.new(shape: ZonalShiftSummaries, location_name: "items"))
|
99
|
+
ListZonalShiftsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
|
100
|
+
ListZonalShiftsResponse.struct_class = Types::ListZonalShiftsResponse
|
101
|
+
|
102
|
+
ManagedResourceSummaries.member = Shapes::ShapeRef.new(shape: ManagedResourceSummary)
|
103
|
+
|
104
|
+
ManagedResourceSummary.add_member(:arn, Shapes::ShapeRef.new(shape: ResourceArn, location_name: "arn"))
|
105
|
+
ManagedResourceSummary.add_member(:availability_zones, Shapes::ShapeRef.new(shape: AvailabilityZones, required: true, location_name: "availabilityZones"))
|
106
|
+
ManagedResourceSummary.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, location_name: "name"))
|
107
|
+
ManagedResourceSummary.struct_class = Types::ManagedResourceSummary
|
108
|
+
|
109
|
+
ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
110
|
+
ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
|
111
|
+
|
112
|
+
StartZonalShiftRequest.add_member(:away_from, Shapes::ShapeRef.new(shape: AvailabilityZone, required: true, location_name: "awayFrom"))
|
113
|
+
StartZonalShiftRequest.add_member(:comment, Shapes::ShapeRef.new(shape: ZonalShiftComment, required: true, location_name: "comment"))
|
114
|
+
StartZonalShiftRequest.add_member(:expires_in, Shapes::ShapeRef.new(shape: ExpiresIn, required: true, location_name: "expiresIn"))
|
115
|
+
StartZonalShiftRequest.add_member(:resource_identifier, Shapes::ShapeRef.new(shape: ResourceIdentifier, required: true, location_name: "resourceIdentifier"))
|
116
|
+
StartZonalShiftRequest.struct_class = Types::StartZonalShiftRequest
|
117
|
+
|
118
|
+
ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
119
|
+
ThrottlingException.struct_class = Types::ThrottlingException
|
120
|
+
|
121
|
+
UpdateZonalShiftRequest.add_member(:comment, Shapes::ShapeRef.new(shape: ZonalShiftComment, location_name: "comment"))
|
122
|
+
UpdateZonalShiftRequest.add_member(:expires_in, Shapes::ShapeRef.new(shape: ExpiresIn, location_name: "expiresIn"))
|
123
|
+
UpdateZonalShiftRequest.add_member(:zonal_shift_id, Shapes::ShapeRef.new(shape: ZonalShiftId, required: true, location: "uri", location_name: "zonalShiftId"))
|
124
|
+
UpdateZonalShiftRequest.struct_class = Types::UpdateZonalShiftRequest
|
125
|
+
|
126
|
+
ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
127
|
+
ValidationException.add_member(:reason, Shapes::ShapeRef.new(shape: ValidationExceptionReason, required: true, location_name: "reason"))
|
128
|
+
ValidationException.struct_class = Types::ValidationException
|
129
|
+
|
130
|
+
ZonalShift.add_member(:away_from, Shapes::ShapeRef.new(shape: AvailabilityZone, required: true, location_name: "awayFrom"))
|
131
|
+
ZonalShift.add_member(:comment, Shapes::ShapeRef.new(shape: ZonalShiftComment, required: true, location_name: "comment"))
|
132
|
+
ZonalShift.add_member(:expiry_time, Shapes::ShapeRef.new(shape: ExpiryTime, required: true, location_name: "expiryTime"))
|
133
|
+
ZonalShift.add_member(:resource_identifier, Shapes::ShapeRef.new(shape: ResourceIdentifier, required: true, location_name: "resourceIdentifier"))
|
134
|
+
ZonalShift.add_member(:start_time, Shapes::ShapeRef.new(shape: StartTime, required: true, location_name: "startTime"))
|
135
|
+
ZonalShift.add_member(:status, Shapes::ShapeRef.new(shape: ZonalShiftStatus, required: true, location_name: "status"))
|
136
|
+
ZonalShift.add_member(:zonal_shift_id, Shapes::ShapeRef.new(shape: ZonalShiftId, required: true, location_name: "zonalShiftId"))
|
137
|
+
ZonalShift.struct_class = Types::ZonalShift
|
138
|
+
|
139
|
+
ZonalShiftInResource.add_member(:applied_status, Shapes::ShapeRef.new(shape: AppliedStatus, required: true, location_name: "appliedStatus"))
|
140
|
+
ZonalShiftInResource.add_member(:away_from, Shapes::ShapeRef.new(shape: AvailabilityZone, required: true, location_name: "awayFrom"))
|
141
|
+
ZonalShiftInResource.add_member(:comment, Shapes::ShapeRef.new(shape: ZonalShiftComment, required: true, location_name: "comment"))
|
142
|
+
ZonalShiftInResource.add_member(:expiry_time, Shapes::ShapeRef.new(shape: ExpiryTime, required: true, location_name: "expiryTime"))
|
143
|
+
ZonalShiftInResource.add_member(:resource_identifier, Shapes::ShapeRef.new(shape: ResourceIdentifier, required: true, location_name: "resourceIdentifier"))
|
144
|
+
ZonalShiftInResource.add_member(:start_time, Shapes::ShapeRef.new(shape: StartTime, required: true, location_name: "startTime"))
|
145
|
+
ZonalShiftInResource.add_member(:zonal_shift_id, Shapes::ShapeRef.new(shape: ZonalShiftId, required: true, location_name: "zonalShiftId"))
|
146
|
+
ZonalShiftInResource.struct_class = Types::ZonalShiftInResource
|
147
|
+
|
148
|
+
ZonalShiftSummaries.member = Shapes::ShapeRef.new(shape: ZonalShiftSummary)
|
149
|
+
|
150
|
+
ZonalShiftSummary.add_member(:away_from, Shapes::ShapeRef.new(shape: AvailabilityZone, required: true, location_name: "awayFrom"))
|
151
|
+
ZonalShiftSummary.add_member(:comment, Shapes::ShapeRef.new(shape: ZonalShiftComment, required: true, location_name: "comment"))
|
152
|
+
ZonalShiftSummary.add_member(:expiry_time, Shapes::ShapeRef.new(shape: ExpiryTime, required: true, location_name: "expiryTime"))
|
153
|
+
ZonalShiftSummary.add_member(:resource_identifier, Shapes::ShapeRef.new(shape: ResourceIdentifier, required: true, location_name: "resourceIdentifier"))
|
154
|
+
ZonalShiftSummary.add_member(:start_time, Shapes::ShapeRef.new(shape: StartTime, required: true, location_name: "startTime"))
|
155
|
+
ZonalShiftSummary.add_member(:status, Shapes::ShapeRef.new(shape: ZonalShiftStatus, required: true, location_name: "status"))
|
156
|
+
ZonalShiftSummary.add_member(:zonal_shift_id, Shapes::ShapeRef.new(shape: ZonalShiftId, required: true, location_name: "zonalShiftId"))
|
157
|
+
ZonalShiftSummary.struct_class = Types::ZonalShiftSummary
|
158
|
+
|
159
|
+
ZonalShiftsInResource.member = Shapes::ShapeRef.new(shape: ZonalShiftInResource)
|
160
|
+
|
161
|
+
|
162
|
+
# @api private
|
163
|
+
API = Seahorse::Model::Api.new.tap do |api|
|
164
|
+
|
165
|
+
api.version = "2022-10-30"
|
166
|
+
|
167
|
+
api.metadata = {
|
168
|
+
"apiVersion" => "2022-10-30",
|
169
|
+
"endpointPrefix" => "arc-zonal-shift",
|
170
|
+
"jsonVersion" => "1.1",
|
171
|
+
"protocol" => "rest-json",
|
172
|
+
"serviceFullName" => "AWS ARC - Zonal Shift",
|
173
|
+
"serviceId" => "ARC Zonal Shift",
|
174
|
+
"signatureVersion" => "v4",
|
175
|
+
"signingName" => "arc-zonal-shift",
|
176
|
+
"uid" => "arc-zonal-shift-2022-10-30",
|
177
|
+
}
|
178
|
+
|
179
|
+
api.add_operation(:cancel_zonal_shift, Seahorse::Model::Operation.new.tap do |o|
|
180
|
+
o.name = "CancelZonalShift"
|
181
|
+
o.http_method = "DELETE"
|
182
|
+
o.http_request_uri = "/zonalshifts/{zonalShiftId}"
|
183
|
+
o.input = Shapes::ShapeRef.new(shape: CancelZonalShiftRequest)
|
184
|
+
o.output = Shapes::ShapeRef.new(shape: ZonalShift)
|
185
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
186
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
187
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
188
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
189
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
190
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
191
|
+
end)
|
192
|
+
|
193
|
+
api.add_operation(:get_managed_resource, Seahorse::Model::Operation.new.tap do |o|
|
194
|
+
o.name = "GetManagedResource"
|
195
|
+
o.http_method = "GET"
|
196
|
+
o.http_request_uri = "/managedresources/{resourceIdentifier}"
|
197
|
+
o.input = Shapes::ShapeRef.new(shape: GetManagedResourceRequest)
|
198
|
+
o.output = Shapes::ShapeRef.new(shape: GetManagedResourceResponse)
|
199
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
200
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
201
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
202
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
203
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
204
|
+
end)
|
205
|
+
|
206
|
+
api.add_operation(:list_managed_resources, Seahorse::Model::Operation.new.tap do |o|
|
207
|
+
o.name = "ListManagedResources"
|
208
|
+
o.http_method = "GET"
|
209
|
+
o.http_request_uri = "/managedresources"
|
210
|
+
o.input = Shapes::ShapeRef.new(shape: ListManagedResourcesRequest)
|
211
|
+
o.output = Shapes::ShapeRef.new(shape: ListManagedResourcesResponse)
|
212
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
213
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
214
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
215
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
216
|
+
o[:pager] = Aws::Pager.new(
|
217
|
+
limit_key: "max_results",
|
218
|
+
tokens: {
|
219
|
+
"next_token" => "next_token"
|
220
|
+
}
|
221
|
+
)
|
222
|
+
end)
|
223
|
+
|
224
|
+
api.add_operation(:list_zonal_shifts, Seahorse::Model::Operation.new.tap do |o|
|
225
|
+
o.name = "ListZonalShifts"
|
226
|
+
o.http_method = "GET"
|
227
|
+
o.http_request_uri = "/zonalshifts"
|
228
|
+
o.input = Shapes::ShapeRef.new(shape: ListZonalShiftsRequest)
|
229
|
+
o.output = Shapes::ShapeRef.new(shape: ListZonalShiftsResponse)
|
230
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
231
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
232
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
233
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
234
|
+
o[:pager] = Aws::Pager.new(
|
235
|
+
limit_key: "max_results",
|
236
|
+
tokens: {
|
237
|
+
"next_token" => "next_token"
|
238
|
+
}
|
239
|
+
)
|
240
|
+
end)
|
241
|
+
|
242
|
+
api.add_operation(:start_zonal_shift, Seahorse::Model::Operation.new.tap do |o|
|
243
|
+
o.name = "StartZonalShift"
|
244
|
+
o.http_method = "POST"
|
245
|
+
o.http_request_uri = "/zonalshifts"
|
246
|
+
o.input = Shapes::ShapeRef.new(shape: StartZonalShiftRequest)
|
247
|
+
o.output = Shapes::ShapeRef.new(shape: ZonalShift)
|
248
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
249
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
250
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
251
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
252
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
253
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
254
|
+
end)
|
255
|
+
|
256
|
+
api.add_operation(:update_zonal_shift, Seahorse::Model::Operation.new.tap do |o|
|
257
|
+
o.name = "UpdateZonalShift"
|
258
|
+
o.http_method = "PATCH"
|
259
|
+
o.http_request_uri = "/zonalshifts/{zonalShiftId}"
|
260
|
+
o.input = Shapes::ShapeRef.new(shape: UpdateZonalShiftRequest)
|
261
|
+
o.output = Shapes::ShapeRef.new(shape: ZonalShift)
|
262
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
263
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
264
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
265
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
266
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
267
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
268
|
+
end)
|
269
|
+
end
|
270
|
+
|
271
|
+
end
|
272
|
+
end
|
File without changes
|
@@ -0,0 +1,69 @@
|
|
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::ARCZonalShift
|
11
|
+
# Endpoint parameters used to influence endpoints per request.
|
12
|
+
#
|
13
|
+
# @!attribute region
|
14
|
+
# The AWS region used to dispatch the request.
|
15
|
+
#
|
16
|
+
# @return [String]
|
17
|
+
#
|
18
|
+
# @!attribute use_dual_stack
|
19
|
+
# When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
|
20
|
+
#
|
21
|
+
# @return [Boolean]
|
22
|
+
#
|
23
|
+
# @!attribute use_fips
|
24
|
+
# When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
|
25
|
+
#
|
26
|
+
# @return [Boolean]
|
27
|
+
#
|
28
|
+
# @!attribute endpoint
|
29
|
+
# Override the endpoint used to send this request
|
30
|
+
#
|
31
|
+
# @return [String]
|
32
|
+
#
|
33
|
+
EndpointParameters = Struct.new(
|
34
|
+
:region,
|
35
|
+
:use_dual_stack,
|
36
|
+
:use_fips,
|
37
|
+
:endpoint,
|
38
|
+
) do
|
39
|
+
include Aws::Structure
|
40
|
+
|
41
|
+
# @api private
|
42
|
+
class << self
|
43
|
+
PARAM_MAP = {
|
44
|
+
'Region' => :region,
|
45
|
+
'UseDualStack' => :use_dual_stack,
|
46
|
+
'UseFIPS' => :use_fips,
|
47
|
+
'Endpoint' => :endpoint,
|
48
|
+
}.freeze
|
49
|
+
end
|
50
|
+
|
51
|
+
def initialize(options = {})
|
52
|
+
self[:region] = options[:region]
|
53
|
+
if self[:region].nil?
|
54
|
+
raise ArgumentError, "Missing required EndpointParameter: :region"
|
55
|
+
end
|
56
|
+
self[:use_dual_stack] = options[:use_dual_stack]
|
57
|
+
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
58
|
+
if self[:use_dual_stack].nil?
|
59
|
+
raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
|
60
|
+
end
|
61
|
+
self[:use_fips] = options[:use_fips]
|
62
|
+
self[:use_fips] = false if self[:use_fips].nil?
|
63
|
+
if self[:use_fips].nil?
|
64
|
+
raise ArgumentError, "Missing required EndpointParameter: :use_fips"
|
65
|
+
end
|
66
|
+
self[:endpoint] = options[:endpoint]
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
@@ -0,0 +1,111 @@
|
|
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::ARCZonalShift
|
11
|
+
class EndpointProvider
|
12
|
+
def initialize(rule_set = nil)
|
13
|
+
@@rule_set ||= begin
|
14
|
+
endpoint_rules = Aws::Json.load(Base64.decode64(RULES))
|
15
|
+
Aws::Endpoints::RuleSet.new(
|
16
|
+
version: endpoint_rules['version'],
|
17
|
+
service_id: endpoint_rules['serviceId'],
|
18
|
+
parameters: endpoint_rules['parameters'],
|
19
|
+
rules: endpoint_rules['rules']
|
20
|
+
)
|
21
|
+
end
|
22
|
+
@provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
|
23
|
+
end
|
24
|
+
|
25
|
+
def resolve_endpoint(parameters)
|
26
|
+
@provider.resolve_endpoint(parameters)
|
27
|
+
end
|
28
|
+
|
29
|
+
# @api private
|
30
|
+
RULES = <<-JSON
|
31
|
+
eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
|
32
|
+
bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOnRydWUsImRvY3VtZW50
|
33
|
+
YXRpb24iOiJUaGUgQVdTIHJlZ2lvbiB1c2VkIHRvIGRpc3BhdGNoIHRoZSBy
|
34
|
+
ZXF1ZXN0LiIsInR5cGUiOiJTdHJpbmcifSwiVXNlRHVhbFN0YWNrIjp7ImJ1
|
35
|
+
aWx0SW4iOiJBV1M6OlVzZUR1YWxTdGFjayIsInJlcXVpcmVkIjp0cnVlLCJk
|
36
|
+
ZWZhdWx0IjpmYWxzZSwiZG9jdW1lbnRhdGlvbiI6IldoZW4gdHJ1ZSwgdXNl
|
37
|
+
IHRoZSBkdWFsLXN0YWNrIGVuZHBvaW50LiBJZiB0aGUgY29uZmlndXJlZCBl
|
38
|
+
bmRwb2ludCBkb2VzIG5vdCBzdXBwb3J0IGR1YWwtc3RhY2ssIGRpc3BhdGNo
|
39
|
+
aW5nIHRoZSByZXF1ZXN0IE1BWSByZXR1cm4gYW4gZXJyb3IuIiwidHlwZSI6
|
40
|
+
IkJvb2xlYW4ifSwiVXNlRklQUyI6eyJidWlsdEluIjoiQVdTOjpVc2VGSVBT
|
41
|
+
IiwicmVxdW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CB0aGlz
|
103
|
+
IHBhcnRpdGlvbiBkb2VzIG5vdCBzdXBwb3J0IER1YWxTdGFjayIsInR5cGUi
|
104
|
+
OiJlcnJvciJ9XX0seyJjb25kaXRpb25zIjpbXSwiZW5kcG9pbnQiOnsidXJs
|
105
|
+
IjoiaHR0cHM6Ly9hcmMtem9uYWwtc2hpZnQue1JlZ2lvbn0ue1BhcnRpdGlv
|
106
|
+
blJlc3VsdCNkbnNTdWZmaXh9IiwicHJvcGVydGllcyI6e30sImhlYWRlcnMi
|
107
|
+
Ont9fSwidHlwZSI6ImVuZHBvaW50In1dfV19
|
108
|
+
|
109
|
+
JSON
|
110
|
+
end
|
111
|
+
end
|
@@ -0,0 +1,99 @@
|
|
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::ARCZonalShift
|
12
|
+
module Endpoints
|
13
|
+
|
14
|
+
class CancelZonalShift
|
15
|
+
def self.build(context)
|
16
|
+
unless context.config.regional_endpoint
|
17
|
+
endpoint = context.config.endpoint.to_s
|
18
|
+
end
|
19
|
+
Aws::ARCZonalShift::EndpointParameters.new(
|
20
|
+
region: context.config.region,
|
21
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
22
|
+
use_fips: context.config.use_fips_endpoint,
|
23
|
+
endpoint: endpoint,
|
24
|
+
)
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
class GetManagedResource
|
29
|
+
def self.build(context)
|
30
|
+
unless context.config.regional_endpoint
|
31
|
+
endpoint = context.config.endpoint.to_s
|
32
|
+
end
|
33
|
+
Aws::ARCZonalShift::EndpointParameters.new(
|
34
|
+
region: context.config.region,
|
35
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
36
|
+
use_fips: context.config.use_fips_endpoint,
|
37
|
+
endpoint: endpoint,
|
38
|
+
)
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
class ListManagedResources
|
43
|
+
def self.build(context)
|
44
|
+
unless context.config.regional_endpoint
|
45
|
+
endpoint = context.config.endpoint.to_s
|
46
|
+
end
|
47
|
+
Aws::ARCZonalShift::EndpointParameters.new(
|
48
|
+
region: context.config.region,
|
49
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
50
|
+
use_fips: context.config.use_fips_endpoint,
|
51
|
+
endpoint: endpoint,
|
52
|
+
)
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
class ListZonalShifts
|
57
|
+
def self.build(context)
|
58
|
+
unless context.config.regional_endpoint
|
59
|
+
endpoint = context.config.endpoint.to_s
|
60
|
+
end
|
61
|
+
Aws::ARCZonalShift::EndpointParameters.new(
|
62
|
+
region: context.config.region,
|
63
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
64
|
+
use_fips: context.config.use_fips_endpoint,
|
65
|
+
endpoint: endpoint,
|
66
|
+
)
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
class StartZonalShift
|
71
|
+
def self.build(context)
|
72
|
+
unless context.config.regional_endpoint
|
73
|
+
endpoint = context.config.endpoint.to_s
|
74
|
+
end
|
75
|
+
Aws::ARCZonalShift::EndpointParameters.new(
|
76
|
+
region: context.config.region,
|
77
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
78
|
+
use_fips: context.config.use_fips_endpoint,
|
79
|
+
endpoint: endpoint,
|
80
|
+
)
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
class UpdateZonalShift
|
85
|
+
def self.build(context)
|
86
|
+
unless context.config.regional_endpoint
|
87
|
+
endpoint = context.config.endpoint.to_s
|
88
|
+
end
|
89
|
+
Aws::ARCZonalShift::EndpointParameters.new(
|
90
|
+
region: context.config.region,
|
91
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
92
|
+
use_fips: context.config.use_fips_endpoint,
|
93
|
+
endpoint: endpoint,
|
94
|
+
)
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
98
|
+
end
|
99
|
+
end
|