aws-sdk-osis 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-osis/client.rb +1048 -0
- data/lib/aws-sdk-osis/client_api.rb +494 -0
- data/lib/aws-sdk-osis/customizations.rb +0 -0
- data/lib/aws-sdk-osis/endpoint_parameters.rb +66 -0
- data/lib/aws-sdk-osis/endpoint_provider.rb +54 -0
- data/lib/aws-sdk-osis/endpoints.rb +211 -0
- data/lib/aws-sdk-osis/errors.rb +126 -0
- data/lib/aws-sdk-osis/plugins/endpoints.rb +96 -0
- data/lib/aws-sdk-osis/resource.rb +26 -0
- data/lib/aws-sdk-osis/types.rb +816 -0
- data/lib/aws-sdk-osis.rb +57 -0
- metadata +94 -0
@@ -0,0 +1,494 @@
|
|
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::OSIS
|
11
|
+
# @api private
|
12
|
+
module ClientApi
|
13
|
+
|
14
|
+
include Seahorse::Model
|
15
|
+
|
16
|
+
AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
|
17
|
+
Boolean = Shapes::BooleanShape.new(name: 'Boolean')
|
18
|
+
ChangeProgressStage = Shapes::StructureShape.new(name: 'ChangeProgressStage')
|
19
|
+
ChangeProgressStageList = Shapes::ListShape.new(name: 'ChangeProgressStageList')
|
20
|
+
ChangeProgressStageStatuses = Shapes::StringShape.new(name: 'ChangeProgressStageStatuses')
|
21
|
+
ChangeProgressStatus = Shapes::StructureShape.new(name: 'ChangeProgressStatus')
|
22
|
+
ChangeProgressStatusList = Shapes::ListShape.new(name: 'ChangeProgressStatusList')
|
23
|
+
ChangeProgressStatuses = Shapes::StringShape.new(name: 'ChangeProgressStatuses')
|
24
|
+
CloudWatchLogDestination = Shapes::StructureShape.new(name: 'CloudWatchLogDestination')
|
25
|
+
ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
|
26
|
+
CreatePipelineRequest = Shapes::StructureShape.new(name: 'CreatePipelineRequest')
|
27
|
+
CreatePipelineResponse = Shapes::StructureShape.new(name: 'CreatePipelineResponse')
|
28
|
+
DeletePipelineRequest = Shapes::StructureShape.new(name: 'DeletePipelineRequest')
|
29
|
+
DeletePipelineResponse = Shapes::StructureShape.new(name: 'DeletePipelineResponse')
|
30
|
+
GetPipelineBlueprintRequest = Shapes::StructureShape.new(name: 'GetPipelineBlueprintRequest')
|
31
|
+
GetPipelineBlueprintResponse = Shapes::StructureShape.new(name: 'GetPipelineBlueprintResponse')
|
32
|
+
GetPipelineChangeProgressRequest = Shapes::StructureShape.new(name: 'GetPipelineChangeProgressRequest')
|
33
|
+
GetPipelineChangeProgressResponse = Shapes::StructureShape.new(name: 'GetPipelineChangeProgressResponse')
|
34
|
+
GetPipelineRequest = Shapes::StructureShape.new(name: 'GetPipelineRequest')
|
35
|
+
GetPipelineResponse = Shapes::StructureShape.new(name: 'GetPipelineResponse')
|
36
|
+
IngestEndpointUrlsList = Shapes::ListShape.new(name: 'IngestEndpointUrlsList')
|
37
|
+
Integer = Shapes::IntegerShape.new(name: 'Integer')
|
38
|
+
InternalException = Shapes::StructureShape.new(name: 'InternalException')
|
39
|
+
InvalidPaginationTokenException = Shapes::StructureShape.new(name: 'InvalidPaginationTokenException')
|
40
|
+
LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
|
41
|
+
ListPipelineBlueprintsRequest = Shapes::StructureShape.new(name: 'ListPipelineBlueprintsRequest')
|
42
|
+
ListPipelineBlueprintsResponse = Shapes::StructureShape.new(name: 'ListPipelineBlueprintsResponse')
|
43
|
+
ListPipelinesRequest = Shapes::StructureShape.new(name: 'ListPipelinesRequest')
|
44
|
+
ListPipelinesResponse = Shapes::StructureShape.new(name: 'ListPipelinesResponse')
|
45
|
+
ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
|
46
|
+
ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
|
47
|
+
LogGroup = Shapes::StringShape.new(name: 'LogGroup')
|
48
|
+
LogPublishingOptions = Shapes::StructureShape.new(name: 'LogPublishingOptions')
|
49
|
+
MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
|
50
|
+
NextToken = Shapes::StringShape.new(name: 'NextToken')
|
51
|
+
Pipeline = Shapes::StructureShape.new(name: 'Pipeline')
|
52
|
+
PipelineArn = Shapes::StringShape.new(name: 'PipelineArn')
|
53
|
+
PipelineBlueprint = Shapes::StructureShape.new(name: 'PipelineBlueprint')
|
54
|
+
PipelineBlueprintSummary = Shapes::StructureShape.new(name: 'PipelineBlueprintSummary')
|
55
|
+
PipelineBlueprintsSummaryList = Shapes::ListShape.new(name: 'PipelineBlueprintsSummaryList')
|
56
|
+
PipelineConfigurationBody = Shapes::StringShape.new(name: 'PipelineConfigurationBody')
|
57
|
+
PipelineName = Shapes::StringShape.new(name: 'PipelineName')
|
58
|
+
PipelineStatus = Shapes::StringShape.new(name: 'PipelineStatus')
|
59
|
+
PipelineStatusReason = Shapes::StructureShape.new(name: 'PipelineStatusReason')
|
60
|
+
PipelineSummary = Shapes::StructureShape.new(name: 'PipelineSummary')
|
61
|
+
PipelineSummaryList = Shapes::ListShape.new(name: 'PipelineSummaryList')
|
62
|
+
PipelineUnits = Shapes::IntegerShape.new(name: 'PipelineUnits')
|
63
|
+
ResourceAlreadyExistsException = Shapes::StructureShape.new(name: 'ResourceAlreadyExistsException')
|
64
|
+
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
65
|
+
SecurityGroupId = Shapes::StringShape.new(name: 'SecurityGroupId')
|
66
|
+
SecurityGroupIds = Shapes::ListShape.new(name: 'SecurityGroupIds')
|
67
|
+
StartPipelineRequest = Shapes::StructureShape.new(name: 'StartPipelineRequest')
|
68
|
+
StartPipelineResponse = Shapes::StructureShape.new(name: 'StartPipelineResponse')
|
69
|
+
StopPipelineRequest = Shapes::StructureShape.new(name: 'StopPipelineRequest')
|
70
|
+
StopPipelineResponse = Shapes::StructureShape.new(name: 'StopPipelineResponse')
|
71
|
+
String = Shapes::StringShape.new(name: 'String')
|
72
|
+
StringList = Shapes::ListShape.new(name: 'StringList')
|
73
|
+
SubnetId = Shapes::StringShape.new(name: 'SubnetId')
|
74
|
+
SubnetIds = Shapes::ListShape.new(name: 'SubnetIds')
|
75
|
+
Tag = Shapes::StructureShape.new(name: 'Tag')
|
76
|
+
TagKey = Shapes::StringShape.new(name: 'TagKey')
|
77
|
+
TagList = Shapes::ListShape.new(name: 'TagList')
|
78
|
+
TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
|
79
|
+
TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
|
80
|
+
TagValue = Shapes::StringShape.new(name: 'TagValue')
|
81
|
+
Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
|
82
|
+
UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
|
83
|
+
UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
|
84
|
+
UpdatePipelineRequest = Shapes::StructureShape.new(name: 'UpdatePipelineRequest')
|
85
|
+
UpdatePipelineResponse = Shapes::StructureShape.new(name: 'UpdatePipelineResponse')
|
86
|
+
ValidatePipelineRequest = Shapes::StructureShape.new(name: 'ValidatePipelineRequest')
|
87
|
+
ValidatePipelineResponse = Shapes::StructureShape.new(name: 'ValidatePipelineResponse')
|
88
|
+
ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
|
89
|
+
ValidationMessage = Shapes::StructureShape.new(name: 'ValidationMessage')
|
90
|
+
ValidationMessageList = Shapes::ListShape.new(name: 'ValidationMessageList')
|
91
|
+
VpcEndpoint = Shapes::StructureShape.new(name: 'VpcEndpoint')
|
92
|
+
VpcEndpointsList = Shapes::ListShape.new(name: 'VpcEndpointsList')
|
93
|
+
VpcOptions = Shapes::StructureShape.new(name: 'VpcOptions')
|
94
|
+
|
95
|
+
AccessDeniedException.struct_class = Types::AccessDeniedException
|
96
|
+
|
97
|
+
ChangeProgressStage.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "Name"))
|
98
|
+
ChangeProgressStage.add_member(:status, Shapes::ShapeRef.new(shape: ChangeProgressStageStatuses, location_name: "Status"))
|
99
|
+
ChangeProgressStage.add_member(:description, Shapes::ShapeRef.new(shape: String, location_name: "Description"))
|
100
|
+
ChangeProgressStage.add_member(:last_updated_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LastUpdatedAt"))
|
101
|
+
ChangeProgressStage.struct_class = Types::ChangeProgressStage
|
102
|
+
|
103
|
+
ChangeProgressStageList.member = Shapes::ShapeRef.new(shape: ChangeProgressStage)
|
104
|
+
|
105
|
+
ChangeProgressStatus.add_member(:start_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "StartTime"))
|
106
|
+
ChangeProgressStatus.add_member(:status, Shapes::ShapeRef.new(shape: ChangeProgressStatuses, location_name: "Status"))
|
107
|
+
ChangeProgressStatus.add_member(:total_number_of_stages, Shapes::ShapeRef.new(shape: Integer, location_name: "TotalNumberOfStages"))
|
108
|
+
ChangeProgressStatus.add_member(:change_progress_stages, Shapes::ShapeRef.new(shape: ChangeProgressStageList, location_name: "ChangeProgressStages"))
|
109
|
+
ChangeProgressStatus.struct_class = Types::ChangeProgressStatus
|
110
|
+
|
111
|
+
ChangeProgressStatusList.member = Shapes::ShapeRef.new(shape: ChangeProgressStatus)
|
112
|
+
|
113
|
+
CloudWatchLogDestination.add_member(:log_group, Shapes::ShapeRef.new(shape: LogGroup, required: true, location_name: "LogGroup"))
|
114
|
+
CloudWatchLogDestination.struct_class = Types::CloudWatchLogDestination
|
115
|
+
|
116
|
+
ConflictException.struct_class = Types::ConflictException
|
117
|
+
|
118
|
+
CreatePipelineRequest.add_member(:pipeline_name, Shapes::ShapeRef.new(shape: PipelineName, required: true, location_name: "PipelineName"))
|
119
|
+
CreatePipelineRequest.add_member(:min_units, Shapes::ShapeRef.new(shape: PipelineUnits, required: true, location_name: "MinUnits"))
|
120
|
+
CreatePipelineRequest.add_member(:max_units, Shapes::ShapeRef.new(shape: PipelineUnits, required: true, location_name: "MaxUnits"))
|
121
|
+
CreatePipelineRequest.add_member(:pipeline_configuration_body, Shapes::ShapeRef.new(shape: PipelineConfigurationBody, required: true, location_name: "PipelineConfigurationBody"))
|
122
|
+
CreatePipelineRequest.add_member(:log_publishing_options, Shapes::ShapeRef.new(shape: LogPublishingOptions, location_name: "LogPublishingOptions"))
|
123
|
+
CreatePipelineRequest.add_member(:vpc_options, Shapes::ShapeRef.new(shape: VpcOptions, location_name: "VpcOptions"))
|
124
|
+
CreatePipelineRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
|
125
|
+
CreatePipelineRequest.struct_class = Types::CreatePipelineRequest
|
126
|
+
|
127
|
+
CreatePipelineResponse.add_member(:pipeline, Shapes::ShapeRef.new(shape: Pipeline, location_name: "Pipeline"))
|
128
|
+
CreatePipelineResponse.struct_class = Types::CreatePipelineResponse
|
129
|
+
|
130
|
+
DeletePipelineRequest.add_member(:pipeline_name, Shapes::ShapeRef.new(shape: PipelineName, required: true, location: "uri", location_name: "PipelineName"))
|
131
|
+
DeletePipelineRequest.struct_class = Types::DeletePipelineRequest
|
132
|
+
|
133
|
+
DeletePipelineResponse.struct_class = Types::DeletePipelineResponse
|
134
|
+
|
135
|
+
GetPipelineBlueprintRequest.add_member(:blueprint_name, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "BlueprintName"))
|
136
|
+
GetPipelineBlueprintRequest.struct_class = Types::GetPipelineBlueprintRequest
|
137
|
+
|
138
|
+
GetPipelineBlueprintResponse.add_member(:blueprint, Shapes::ShapeRef.new(shape: PipelineBlueprint, location_name: "Blueprint"))
|
139
|
+
GetPipelineBlueprintResponse.struct_class = Types::GetPipelineBlueprintResponse
|
140
|
+
|
141
|
+
GetPipelineChangeProgressRequest.add_member(:pipeline_name, Shapes::ShapeRef.new(shape: PipelineName, required: true, location: "uri", location_name: "PipelineName"))
|
142
|
+
GetPipelineChangeProgressRequest.struct_class = Types::GetPipelineChangeProgressRequest
|
143
|
+
|
144
|
+
GetPipelineChangeProgressResponse.add_member(:change_progress_statuses, Shapes::ShapeRef.new(shape: ChangeProgressStatusList, location_name: "ChangeProgressStatuses"))
|
145
|
+
GetPipelineChangeProgressResponse.struct_class = Types::GetPipelineChangeProgressResponse
|
146
|
+
|
147
|
+
GetPipelineRequest.add_member(:pipeline_name, Shapes::ShapeRef.new(shape: PipelineName, required: true, location: "uri", location_name: "PipelineName"))
|
148
|
+
GetPipelineRequest.struct_class = Types::GetPipelineRequest
|
149
|
+
|
150
|
+
GetPipelineResponse.add_member(:pipeline, Shapes::ShapeRef.new(shape: Pipeline, location_name: "Pipeline"))
|
151
|
+
GetPipelineResponse.struct_class = Types::GetPipelineResponse
|
152
|
+
|
153
|
+
IngestEndpointUrlsList.member = Shapes::ShapeRef.new(shape: String)
|
154
|
+
|
155
|
+
InternalException.struct_class = Types::InternalException
|
156
|
+
|
157
|
+
InvalidPaginationTokenException.struct_class = Types::InvalidPaginationTokenException
|
158
|
+
|
159
|
+
LimitExceededException.struct_class = Types::LimitExceededException
|
160
|
+
|
161
|
+
ListPipelineBlueprintsRequest.struct_class = Types::ListPipelineBlueprintsRequest
|
162
|
+
|
163
|
+
ListPipelineBlueprintsResponse.add_member(:blueprints, Shapes::ShapeRef.new(shape: PipelineBlueprintsSummaryList, location_name: "Blueprints"))
|
164
|
+
ListPipelineBlueprintsResponse.struct_class = Types::ListPipelineBlueprintsResponse
|
165
|
+
|
166
|
+
ListPipelinesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
|
167
|
+
ListPipelinesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "nextToken"))
|
168
|
+
ListPipelinesRequest.struct_class = Types::ListPipelinesRequest
|
169
|
+
|
170
|
+
ListPipelinesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
171
|
+
ListPipelinesResponse.add_member(:pipelines, Shapes::ShapeRef.new(shape: PipelineSummaryList, location_name: "Pipelines"))
|
172
|
+
ListPipelinesResponse.struct_class = Types::ListPipelinesResponse
|
173
|
+
|
174
|
+
ListTagsForResourceRequest.add_member(:arn, Shapes::ShapeRef.new(shape: PipelineArn, required: true, location: "querystring", location_name: "arn"))
|
175
|
+
ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
|
176
|
+
|
177
|
+
ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
|
178
|
+
ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
|
179
|
+
|
180
|
+
LogPublishingOptions.add_member(:is_logging_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "IsLoggingEnabled"))
|
181
|
+
LogPublishingOptions.add_member(:cloud_watch_log_destination, Shapes::ShapeRef.new(shape: CloudWatchLogDestination, location_name: "CloudWatchLogDestination"))
|
182
|
+
LogPublishingOptions.struct_class = Types::LogPublishingOptions
|
183
|
+
|
184
|
+
Pipeline.add_member(:pipeline_name, Shapes::ShapeRef.new(shape: String, location_name: "PipelineName"))
|
185
|
+
Pipeline.add_member(:pipeline_arn, Shapes::ShapeRef.new(shape: String, location_name: "PipelineArn"))
|
186
|
+
Pipeline.add_member(:min_units, Shapes::ShapeRef.new(shape: Integer, location_name: "MinUnits"))
|
187
|
+
Pipeline.add_member(:max_units, Shapes::ShapeRef.new(shape: Integer, location_name: "MaxUnits"))
|
188
|
+
Pipeline.add_member(:status, Shapes::ShapeRef.new(shape: PipelineStatus, location_name: "Status"))
|
189
|
+
Pipeline.add_member(:status_reason, Shapes::ShapeRef.new(shape: PipelineStatusReason, location_name: "StatusReason"))
|
190
|
+
Pipeline.add_member(:pipeline_configuration_body, Shapes::ShapeRef.new(shape: String, location_name: "PipelineConfigurationBody"))
|
191
|
+
Pipeline.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreatedAt"))
|
192
|
+
Pipeline.add_member(:last_updated_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LastUpdatedAt"))
|
193
|
+
Pipeline.add_member(:ingest_endpoint_urls, Shapes::ShapeRef.new(shape: IngestEndpointUrlsList, location_name: "IngestEndpointUrls"))
|
194
|
+
Pipeline.add_member(:log_publishing_options, Shapes::ShapeRef.new(shape: LogPublishingOptions, location_name: "LogPublishingOptions"))
|
195
|
+
Pipeline.add_member(:vpc_endpoints, Shapes::ShapeRef.new(shape: VpcEndpointsList, location_name: "VpcEndpoints"))
|
196
|
+
Pipeline.struct_class = Types::Pipeline
|
197
|
+
|
198
|
+
PipelineBlueprint.add_member(:blueprint_name, Shapes::ShapeRef.new(shape: String, location_name: "BlueprintName"))
|
199
|
+
PipelineBlueprint.add_member(:pipeline_configuration_body, Shapes::ShapeRef.new(shape: String, location_name: "PipelineConfigurationBody"))
|
200
|
+
PipelineBlueprint.struct_class = Types::PipelineBlueprint
|
201
|
+
|
202
|
+
PipelineBlueprintSummary.add_member(:blueprint_name, Shapes::ShapeRef.new(shape: String, location_name: "BlueprintName"))
|
203
|
+
PipelineBlueprintSummary.struct_class = Types::PipelineBlueprintSummary
|
204
|
+
|
205
|
+
PipelineBlueprintsSummaryList.member = Shapes::ShapeRef.new(shape: PipelineBlueprintSummary)
|
206
|
+
|
207
|
+
PipelineStatusReason.add_member(:description, Shapes::ShapeRef.new(shape: String, location_name: "Description"))
|
208
|
+
PipelineStatusReason.struct_class = Types::PipelineStatusReason
|
209
|
+
|
210
|
+
PipelineSummary.add_member(:status, Shapes::ShapeRef.new(shape: PipelineStatus, location_name: "Status"))
|
211
|
+
PipelineSummary.add_member(:status_reason, Shapes::ShapeRef.new(shape: PipelineStatusReason, location_name: "StatusReason"))
|
212
|
+
PipelineSummary.add_member(:pipeline_name, Shapes::ShapeRef.new(shape: PipelineName, location_name: "PipelineName"))
|
213
|
+
PipelineSummary.add_member(:pipeline_arn, Shapes::ShapeRef.new(shape: PipelineArn, location_name: "PipelineArn"))
|
214
|
+
PipelineSummary.add_member(:min_units, Shapes::ShapeRef.new(shape: PipelineUnits, location_name: "MinUnits"))
|
215
|
+
PipelineSummary.add_member(:max_units, Shapes::ShapeRef.new(shape: PipelineUnits, location_name: "MaxUnits"))
|
216
|
+
PipelineSummary.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreatedAt"))
|
217
|
+
PipelineSummary.add_member(:last_updated_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LastUpdatedAt"))
|
218
|
+
PipelineSummary.struct_class = Types::PipelineSummary
|
219
|
+
|
220
|
+
PipelineSummaryList.member = Shapes::ShapeRef.new(shape: PipelineSummary)
|
221
|
+
|
222
|
+
ResourceAlreadyExistsException.struct_class = Types::ResourceAlreadyExistsException
|
223
|
+
|
224
|
+
ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
|
225
|
+
|
226
|
+
SecurityGroupIds.member = Shapes::ShapeRef.new(shape: SecurityGroupId)
|
227
|
+
|
228
|
+
StartPipelineRequest.add_member(:pipeline_name, Shapes::ShapeRef.new(shape: PipelineName, required: true, location: "uri", location_name: "PipelineName"))
|
229
|
+
StartPipelineRequest.struct_class = Types::StartPipelineRequest
|
230
|
+
|
231
|
+
StartPipelineResponse.add_member(:pipeline, Shapes::ShapeRef.new(shape: Pipeline, location_name: "Pipeline"))
|
232
|
+
StartPipelineResponse.struct_class = Types::StartPipelineResponse
|
233
|
+
|
234
|
+
StopPipelineRequest.add_member(:pipeline_name, Shapes::ShapeRef.new(shape: PipelineName, required: true, location: "uri", location_name: "PipelineName"))
|
235
|
+
StopPipelineRequest.struct_class = Types::StopPipelineRequest
|
236
|
+
|
237
|
+
StopPipelineResponse.add_member(:pipeline, Shapes::ShapeRef.new(shape: Pipeline, location_name: "Pipeline"))
|
238
|
+
StopPipelineResponse.struct_class = Types::StopPipelineResponse
|
239
|
+
|
240
|
+
StringList.member = Shapes::ShapeRef.new(shape: String)
|
241
|
+
|
242
|
+
SubnetIds.member = Shapes::ShapeRef.new(shape: SubnetId)
|
243
|
+
|
244
|
+
Tag.add_member(:key, Shapes::ShapeRef.new(shape: TagKey, required: true, location_name: "Key"))
|
245
|
+
Tag.add_member(:value, Shapes::ShapeRef.new(shape: TagValue, required: true, location_name: "Value"))
|
246
|
+
Tag.struct_class = Types::Tag
|
247
|
+
|
248
|
+
TagList.member = Shapes::ShapeRef.new(shape: Tag)
|
249
|
+
|
250
|
+
TagResourceRequest.add_member(:arn, Shapes::ShapeRef.new(shape: PipelineArn, required: true, location: "querystring", location_name: "arn"))
|
251
|
+
TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, required: true, location_name: "Tags"))
|
252
|
+
TagResourceRequest.struct_class = Types::TagResourceRequest
|
253
|
+
|
254
|
+
TagResourceResponse.struct_class = Types::TagResourceResponse
|
255
|
+
|
256
|
+
UntagResourceRequest.add_member(:arn, Shapes::ShapeRef.new(shape: PipelineArn, required: true, location: "querystring", location_name: "arn"))
|
257
|
+
UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: StringList, required: true, location_name: "TagKeys"))
|
258
|
+
UntagResourceRequest.struct_class = Types::UntagResourceRequest
|
259
|
+
|
260
|
+
UntagResourceResponse.struct_class = Types::UntagResourceResponse
|
261
|
+
|
262
|
+
UpdatePipelineRequest.add_member(:pipeline_name, Shapes::ShapeRef.new(shape: PipelineName, required: true, location: "uri", location_name: "PipelineName"))
|
263
|
+
UpdatePipelineRequest.add_member(:min_units, Shapes::ShapeRef.new(shape: PipelineUnits, location_name: "MinUnits"))
|
264
|
+
UpdatePipelineRequest.add_member(:max_units, Shapes::ShapeRef.new(shape: PipelineUnits, location_name: "MaxUnits"))
|
265
|
+
UpdatePipelineRequest.add_member(:pipeline_configuration_body, Shapes::ShapeRef.new(shape: PipelineConfigurationBody, location_name: "PipelineConfigurationBody"))
|
266
|
+
UpdatePipelineRequest.add_member(:log_publishing_options, Shapes::ShapeRef.new(shape: LogPublishingOptions, location_name: "LogPublishingOptions"))
|
267
|
+
UpdatePipelineRequest.struct_class = Types::UpdatePipelineRequest
|
268
|
+
|
269
|
+
UpdatePipelineResponse.add_member(:pipeline, Shapes::ShapeRef.new(shape: Pipeline, location_name: "Pipeline"))
|
270
|
+
UpdatePipelineResponse.struct_class = Types::UpdatePipelineResponse
|
271
|
+
|
272
|
+
ValidatePipelineRequest.add_member(:pipeline_configuration_body, Shapes::ShapeRef.new(shape: PipelineConfigurationBody, required: true, location_name: "PipelineConfigurationBody"))
|
273
|
+
ValidatePipelineRequest.struct_class = Types::ValidatePipelineRequest
|
274
|
+
|
275
|
+
ValidatePipelineResponse.add_member(:is_valid, Shapes::ShapeRef.new(shape: Boolean, location_name: "isValid"))
|
276
|
+
ValidatePipelineResponse.add_member(:errors, Shapes::ShapeRef.new(shape: ValidationMessageList, location_name: "Errors"))
|
277
|
+
ValidatePipelineResponse.struct_class = Types::ValidatePipelineResponse
|
278
|
+
|
279
|
+
ValidationException.struct_class = Types::ValidationException
|
280
|
+
|
281
|
+
ValidationMessage.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
|
282
|
+
ValidationMessage.struct_class = Types::ValidationMessage
|
283
|
+
|
284
|
+
ValidationMessageList.member = Shapes::ShapeRef.new(shape: ValidationMessage)
|
285
|
+
|
286
|
+
VpcEndpoint.add_member(:vpc_endpoint_id, Shapes::ShapeRef.new(shape: String, location_name: "VpcEndpointId"))
|
287
|
+
VpcEndpoint.add_member(:vpc_id, Shapes::ShapeRef.new(shape: String, location_name: "VpcId"))
|
288
|
+
VpcEndpoint.add_member(:vpc_options, Shapes::ShapeRef.new(shape: VpcOptions, location_name: "VpcOptions"))
|
289
|
+
VpcEndpoint.struct_class = Types::VpcEndpoint
|
290
|
+
|
291
|
+
VpcEndpointsList.member = Shapes::ShapeRef.new(shape: VpcEndpoint)
|
292
|
+
|
293
|
+
VpcOptions.add_member(:subnet_ids, Shapes::ShapeRef.new(shape: SubnetIds, required: true, location_name: "SubnetIds"))
|
294
|
+
VpcOptions.add_member(:security_group_ids, Shapes::ShapeRef.new(shape: SecurityGroupIds, location_name: "SecurityGroupIds"))
|
295
|
+
VpcOptions.struct_class = Types::VpcOptions
|
296
|
+
|
297
|
+
|
298
|
+
# @api private
|
299
|
+
API = Seahorse::Model::Api.new.tap do |api|
|
300
|
+
|
301
|
+
api.version = "2022-01-01"
|
302
|
+
|
303
|
+
api.metadata = {
|
304
|
+
"apiVersion" => "2022-01-01",
|
305
|
+
"endpointPrefix" => "osis",
|
306
|
+
"protocol" => "rest-json",
|
307
|
+
"serviceFullName" => "Amazon OpenSearch Ingestion",
|
308
|
+
"serviceId" => "OSIS",
|
309
|
+
"signatureVersion" => "v4",
|
310
|
+
"uid" => "osis-2022-01-01",
|
311
|
+
}
|
312
|
+
|
313
|
+
api.add_operation(:create_pipeline, Seahorse::Model::Operation.new.tap do |o|
|
314
|
+
o.name = "CreatePipeline"
|
315
|
+
o.http_method = "POST"
|
316
|
+
o.http_request_uri = "/2022-01-01/osis/createPipeline"
|
317
|
+
o.input = Shapes::ShapeRef.new(shape: CreatePipelineRequest)
|
318
|
+
o.output = Shapes::ShapeRef.new(shape: CreatePipelineResponse)
|
319
|
+
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
320
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
321
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalException)
|
322
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
323
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceAlreadyExistsException)
|
324
|
+
end)
|
325
|
+
|
326
|
+
api.add_operation(:delete_pipeline, Seahorse::Model::Operation.new.tap do |o|
|
327
|
+
o.name = "DeletePipeline"
|
328
|
+
o.http_method = "DELETE"
|
329
|
+
o.http_request_uri = "/2022-01-01/osis/deletePipeline/{PipelineName}"
|
330
|
+
o.input = Shapes::ShapeRef.new(shape: DeletePipelineRequest)
|
331
|
+
o.output = Shapes::ShapeRef.new(shape: DeletePipelineResponse)
|
332
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
333
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalException)
|
334
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
335
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
336
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
337
|
+
end)
|
338
|
+
|
339
|
+
api.add_operation(:get_pipeline, Seahorse::Model::Operation.new.tap do |o|
|
340
|
+
o.name = "GetPipeline"
|
341
|
+
o.http_method = "GET"
|
342
|
+
o.http_request_uri = "/2022-01-01/osis/getPipeline/{PipelineName}"
|
343
|
+
o.input = Shapes::ShapeRef.new(shape: GetPipelineRequest)
|
344
|
+
o.output = Shapes::ShapeRef.new(shape: GetPipelineResponse)
|
345
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
346
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalException)
|
347
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
348
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
349
|
+
end)
|
350
|
+
|
351
|
+
api.add_operation(:get_pipeline_blueprint, Seahorse::Model::Operation.new.tap do |o|
|
352
|
+
o.name = "GetPipelineBlueprint"
|
353
|
+
o.http_method = "GET"
|
354
|
+
o.http_request_uri = "/2022-01-01/osis/getPipelineBlueprint/{BlueprintName}"
|
355
|
+
o.input = Shapes::ShapeRef.new(shape: GetPipelineBlueprintRequest)
|
356
|
+
o.output = Shapes::ShapeRef.new(shape: GetPipelineBlueprintResponse)
|
357
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
358
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalException)
|
359
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
360
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
361
|
+
end)
|
362
|
+
|
363
|
+
api.add_operation(:get_pipeline_change_progress, Seahorse::Model::Operation.new.tap do |o|
|
364
|
+
o.name = "GetPipelineChangeProgress"
|
365
|
+
o.http_method = "GET"
|
366
|
+
o.http_request_uri = "/2022-01-01/osis/getPipelineChangeProgress/{PipelineName}"
|
367
|
+
o.input = Shapes::ShapeRef.new(shape: GetPipelineChangeProgressRequest)
|
368
|
+
o.output = Shapes::ShapeRef.new(shape: GetPipelineChangeProgressResponse)
|
369
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
370
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalException)
|
371
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
372
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
373
|
+
end)
|
374
|
+
|
375
|
+
api.add_operation(:list_pipeline_blueprints, Seahorse::Model::Operation.new.tap do |o|
|
376
|
+
o.name = "ListPipelineBlueprints"
|
377
|
+
o.http_method = "POST"
|
378
|
+
o.http_request_uri = "/2022-01-01/osis/listPipelineBlueprints"
|
379
|
+
o.input = Shapes::ShapeRef.new(shape: ListPipelineBlueprintsRequest)
|
380
|
+
o.output = Shapes::ShapeRef.new(shape: ListPipelineBlueprintsResponse)
|
381
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
382
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalException)
|
383
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
384
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidPaginationTokenException)
|
385
|
+
end)
|
386
|
+
|
387
|
+
api.add_operation(:list_pipelines, Seahorse::Model::Operation.new.tap do |o|
|
388
|
+
o.name = "ListPipelines"
|
389
|
+
o.http_method = "GET"
|
390
|
+
o.http_request_uri = "/2022-01-01/osis/listPipelines"
|
391
|
+
o.input = Shapes::ShapeRef.new(shape: ListPipelinesRequest)
|
392
|
+
o.output = Shapes::ShapeRef.new(shape: ListPipelinesResponse)
|
393
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
394
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalException)
|
395
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
396
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidPaginationTokenException)
|
397
|
+
o[:pager] = Aws::Pager.new(
|
398
|
+
limit_key: "max_results",
|
399
|
+
tokens: {
|
400
|
+
"next_token" => "next_token"
|
401
|
+
}
|
402
|
+
)
|
403
|
+
end)
|
404
|
+
|
405
|
+
api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
|
406
|
+
o.name = "ListTagsForResource"
|
407
|
+
o.http_method = "GET"
|
408
|
+
o.http_request_uri = "/2022-01-01/osis/listTagsForResource/"
|
409
|
+
o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
|
410
|
+
o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
|
411
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
412
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
413
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalException)
|
414
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
415
|
+
end)
|
416
|
+
|
417
|
+
api.add_operation(:start_pipeline, Seahorse::Model::Operation.new.tap do |o|
|
418
|
+
o.name = "StartPipeline"
|
419
|
+
o.http_method = "PUT"
|
420
|
+
o.http_request_uri = "/2022-01-01/osis/startPipeline/{PipelineName}"
|
421
|
+
o.input = Shapes::ShapeRef.new(shape: StartPipelineRequest)
|
422
|
+
o.output = Shapes::ShapeRef.new(shape: StartPipelineResponse)
|
423
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
424
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
425
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalException)
|
426
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
427
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
428
|
+
end)
|
429
|
+
|
430
|
+
api.add_operation(:stop_pipeline, Seahorse::Model::Operation.new.tap do |o|
|
431
|
+
o.name = "StopPipeline"
|
432
|
+
o.http_method = "PUT"
|
433
|
+
o.http_request_uri = "/2022-01-01/osis/stopPipeline/{PipelineName}"
|
434
|
+
o.input = Shapes::ShapeRef.new(shape: StopPipelineRequest)
|
435
|
+
o.output = Shapes::ShapeRef.new(shape: StopPipelineResponse)
|
436
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
437
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
438
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalException)
|
439
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
440
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
441
|
+
end)
|
442
|
+
|
443
|
+
api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
|
444
|
+
o.name = "TagResource"
|
445
|
+
o.http_method = "POST"
|
446
|
+
o.http_request_uri = "/2022-01-01/osis/tagResource/"
|
447
|
+
o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
|
448
|
+
o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
|
449
|
+
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
450
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
451
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalException)
|
452
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
453
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
454
|
+
end)
|
455
|
+
|
456
|
+
api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
|
457
|
+
o.name = "UntagResource"
|
458
|
+
o.http_method = "POST"
|
459
|
+
o.http_request_uri = "/2022-01-01/osis/untagResource/"
|
460
|
+
o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
|
461
|
+
o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
|
462
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
463
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
464
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalException)
|
465
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
466
|
+
end)
|
467
|
+
|
468
|
+
api.add_operation(:update_pipeline, Seahorse::Model::Operation.new.tap do |o|
|
469
|
+
o.name = "UpdatePipeline"
|
470
|
+
o.http_method = "PUT"
|
471
|
+
o.http_request_uri = "/2022-01-01/osis/updatePipeline/{PipelineName}"
|
472
|
+
o.input = Shapes::ShapeRef.new(shape: UpdatePipelineRequest)
|
473
|
+
o.output = Shapes::ShapeRef.new(shape: UpdatePipelineResponse)
|
474
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
475
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalException)
|
476
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
477
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
478
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
479
|
+
end)
|
480
|
+
|
481
|
+
api.add_operation(:validate_pipeline, Seahorse::Model::Operation.new.tap do |o|
|
482
|
+
o.name = "ValidatePipeline"
|
483
|
+
o.http_method = "POST"
|
484
|
+
o.http_request_uri = "/2022-01-01/osis/validatePipeline"
|
485
|
+
o.input = Shapes::ShapeRef.new(shape: ValidatePipelineRequest)
|
486
|
+
o.output = Shapes::ShapeRef.new(shape: ValidatePipelineResponse)
|
487
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
488
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalException)
|
489
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
490
|
+
end)
|
491
|
+
end
|
492
|
+
|
493
|
+
end
|
494
|
+
end
|
File without changes
|
@@ -0,0 +1,66 @@
|
|
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::OSIS
|
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
|
+
self[:use_dual_stack] = options[:use_dual_stack]
|
54
|
+
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
55
|
+
if self[:use_dual_stack].nil?
|
56
|
+
raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
|
57
|
+
end
|
58
|
+
self[:use_fips] = options[:use_fips]
|
59
|
+
self[:use_fips] = false if self[:use_fips].nil?
|
60
|
+
if self[:use_fips].nil?
|
61
|
+
raise ArgumentError, "Missing required EndpointParameter: :use_fips"
|
62
|
+
end
|
63
|
+
self[:endpoint] = options[:endpoint]
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
@@ -0,0 +1,54 @@
|
|
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::OSIS
|
11
|
+
class EndpointProvider
|
12
|
+
def resolve_endpoint(parameters)
|
13
|
+
region = parameters.region
|
14
|
+
use_dual_stack = parameters.use_dual_stack
|
15
|
+
use_fips = parameters.use_fips
|
16
|
+
endpoint = parameters.endpoint
|
17
|
+
if Aws::Endpoints::Matchers.set?(endpoint)
|
18
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
19
|
+
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
20
|
+
end
|
21
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
22
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
23
|
+
end
|
24
|
+
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
25
|
+
end
|
26
|
+
if Aws::Endpoints::Matchers.set?(region)
|
27
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
28
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
29
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
30
|
+
return Aws::Endpoints::Endpoint.new(url: "https://osis-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
31
|
+
end
|
32
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
33
|
+
end
|
34
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
35
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
36
|
+
return Aws::Endpoints::Endpoint.new(url: "https://osis-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
37
|
+
end
|
38
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
39
|
+
end
|
40
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
41
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
42
|
+
return Aws::Endpoints::Endpoint.new(url: "https://osis.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
43
|
+
end
|
44
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
45
|
+
end
|
46
|
+
return Aws::Endpoints::Endpoint.new(url: "https://osis.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
47
|
+
end
|
48
|
+
end
|
49
|
+
raise ArgumentError, "Invalid Configuration: Missing Region"
|
50
|
+
raise ArgumentError, 'No endpoint could be resolved'
|
51
|
+
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|