aws-sdk-pcaconnectorscep 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,437 @@
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::PcaConnectorScep
11
+ # @api private
12
+ module ClientApi
13
+
14
+ include Seahorse::Model
15
+
16
+ AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
17
+ AzureApplicationId = Shapes::StringShape.new(name: 'AzureApplicationId')
18
+ AzureDomain = Shapes::StringShape.new(name: 'AzureDomain')
19
+ BadRequestException = Shapes::StructureShape.new(name: 'BadRequestException')
20
+ CertificateAuthorityArn = Shapes::StringShape.new(name: 'CertificateAuthorityArn')
21
+ Challenge = Shapes::StructureShape.new(name: 'Challenge')
22
+ ChallengeArn = Shapes::StringShape.new(name: 'ChallengeArn')
23
+ ChallengeMetadata = Shapes::StructureShape.new(name: 'ChallengeMetadata')
24
+ ChallengeMetadataList = Shapes::ListShape.new(name: 'ChallengeMetadataList')
25
+ ChallengeMetadataSummary = Shapes::StructureShape.new(name: 'ChallengeMetadataSummary')
26
+ ClientToken = Shapes::StringShape.new(name: 'ClientToken')
27
+ ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
28
+ Connector = Shapes::StructureShape.new(name: 'Connector')
29
+ ConnectorArn = Shapes::StringShape.new(name: 'ConnectorArn')
30
+ ConnectorList = Shapes::ListShape.new(name: 'ConnectorList')
31
+ ConnectorStatus = Shapes::StringShape.new(name: 'ConnectorStatus')
32
+ ConnectorStatusReason = Shapes::StringShape.new(name: 'ConnectorStatusReason')
33
+ ConnectorSummary = Shapes::StructureShape.new(name: 'ConnectorSummary')
34
+ ConnectorType = Shapes::StringShape.new(name: 'ConnectorType')
35
+ CreateChallengeRequest = Shapes::StructureShape.new(name: 'CreateChallengeRequest')
36
+ CreateChallengeResponse = Shapes::StructureShape.new(name: 'CreateChallengeResponse')
37
+ CreateConnectorRequest = Shapes::StructureShape.new(name: 'CreateConnectorRequest')
38
+ CreateConnectorResponse = Shapes::StructureShape.new(name: 'CreateConnectorResponse')
39
+ DeleteChallengeRequest = Shapes::StructureShape.new(name: 'DeleteChallengeRequest')
40
+ DeleteConnectorRequest = Shapes::StructureShape.new(name: 'DeleteConnectorRequest')
41
+ GetChallengeMetadataRequest = Shapes::StructureShape.new(name: 'GetChallengeMetadataRequest')
42
+ GetChallengeMetadataResponse = Shapes::StructureShape.new(name: 'GetChallengeMetadataResponse')
43
+ GetChallengePasswordRequest = Shapes::StructureShape.new(name: 'GetChallengePasswordRequest')
44
+ GetChallengePasswordResponse = Shapes::StructureShape.new(name: 'GetChallengePasswordResponse')
45
+ GetConnectorRequest = Shapes::StructureShape.new(name: 'GetConnectorRequest')
46
+ GetConnectorResponse = Shapes::StructureShape.new(name: 'GetConnectorResponse')
47
+ InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
48
+ IntuneConfiguration = Shapes::StructureShape.new(name: 'IntuneConfiguration')
49
+ ListChallengeMetadataRequest = Shapes::StructureShape.new(name: 'ListChallengeMetadataRequest')
50
+ ListChallengeMetadataResponse = Shapes::StructureShape.new(name: 'ListChallengeMetadataResponse')
51
+ ListConnectorsRequest = Shapes::StructureShape.new(name: 'ListConnectorsRequest')
52
+ ListConnectorsResponse = Shapes::StructureShape.new(name: 'ListConnectorsResponse')
53
+ ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
54
+ ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
55
+ MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
56
+ MobileDeviceManagement = Shapes::UnionShape.new(name: 'MobileDeviceManagement')
57
+ NextToken = Shapes::StringShape.new(name: 'NextToken')
58
+ OpenIdConfiguration = Shapes::StructureShape.new(name: 'OpenIdConfiguration')
59
+ ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
60
+ SensitiveString = Shapes::StringShape.new(name: 'SensitiveString')
61
+ ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
62
+ String = Shapes::StringShape.new(name: 'String')
63
+ TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
64
+ TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
65
+ Tags = Shapes::MapShape.new(name: 'Tags')
66
+ ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
67
+ Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
68
+ UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
69
+ ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
70
+ ValidationExceptionReason = Shapes::StringShape.new(name: 'ValidationExceptionReason')
71
+
72
+ AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Message"))
73
+ AccessDeniedException.struct_class = Types::AccessDeniedException
74
+
75
+ BadRequestException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Message"))
76
+ BadRequestException.struct_class = Types::BadRequestException
77
+
78
+ Challenge.add_member(:arn, Shapes::ShapeRef.new(shape: ChallengeArn, location_name: "Arn"))
79
+ Challenge.add_member(:connector_arn, Shapes::ShapeRef.new(shape: ConnectorArn, location_name: "ConnectorArn"))
80
+ Challenge.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreatedAt"))
81
+ Challenge.add_member(:updated_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "UpdatedAt"))
82
+ Challenge.add_member(:password, Shapes::ShapeRef.new(shape: SensitiveString, location_name: "Password"))
83
+ Challenge.struct_class = Types::Challenge
84
+
85
+ ChallengeMetadata.add_member(:arn, Shapes::ShapeRef.new(shape: ChallengeArn, location_name: "Arn"))
86
+ ChallengeMetadata.add_member(:connector_arn, Shapes::ShapeRef.new(shape: ConnectorArn, location_name: "ConnectorArn"))
87
+ ChallengeMetadata.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreatedAt"))
88
+ ChallengeMetadata.add_member(:updated_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "UpdatedAt"))
89
+ ChallengeMetadata.struct_class = Types::ChallengeMetadata
90
+
91
+ ChallengeMetadataList.member = Shapes::ShapeRef.new(shape: ChallengeMetadataSummary)
92
+
93
+ ChallengeMetadataSummary.add_member(:arn, Shapes::ShapeRef.new(shape: ChallengeArn, location_name: "Arn"))
94
+ ChallengeMetadataSummary.add_member(:connector_arn, Shapes::ShapeRef.new(shape: ConnectorArn, location_name: "ConnectorArn"))
95
+ ChallengeMetadataSummary.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreatedAt"))
96
+ ChallengeMetadataSummary.add_member(:updated_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "UpdatedAt"))
97
+ ChallengeMetadataSummary.struct_class = Types::ChallengeMetadataSummary
98
+
99
+ ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Message"))
100
+ ConflictException.add_member(:resource_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "ResourceId"))
101
+ ConflictException.add_member(:resource_type, Shapes::ShapeRef.new(shape: String, required: true, location_name: "ResourceType"))
102
+ ConflictException.struct_class = Types::ConflictException
103
+
104
+ Connector.add_member(:arn, Shapes::ShapeRef.new(shape: ConnectorArn, location_name: "Arn"))
105
+ Connector.add_member(:certificate_authority_arn, Shapes::ShapeRef.new(shape: CertificateAuthorityArn, location_name: "CertificateAuthorityArn"))
106
+ Connector.add_member(:type, Shapes::ShapeRef.new(shape: ConnectorType, location_name: "Type"))
107
+ Connector.add_member(:mobile_device_management, Shapes::ShapeRef.new(shape: MobileDeviceManagement, location_name: "MobileDeviceManagement"))
108
+ Connector.add_member(:open_id_configuration, Shapes::ShapeRef.new(shape: OpenIdConfiguration, location_name: "OpenIdConfiguration"))
109
+ Connector.add_member(:status, Shapes::ShapeRef.new(shape: ConnectorStatus, location_name: "Status"))
110
+ Connector.add_member(:status_reason, Shapes::ShapeRef.new(shape: ConnectorStatusReason, location_name: "StatusReason"))
111
+ Connector.add_member(:endpoint, Shapes::ShapeRef.new(shape: String, location_name: "Endpoint"))
112
+ Connector.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreatedAt"))
113
+ Connector.add_member(:updated_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "UpdatedAt"))
114
+ Connector.struct_class = Types::Connector
115
+
116
+ ConnectorList.member = Shapes::ShapeRef.new(shape: ConnectorSummary)
117
+
118
+ ConnectorSummary.add_member(:arn, Shapes::ShapeRef.new(shape: ConnectorArn, location_name: "Arn"))
119
+ ConnectorSummary.add_member(:certificate_authority_arn, Shapes::ShapeRef.new(shape: CertificateAuthorityArn, location_name: "CertificateAuthorityArn"))
120
+ ConnectorSummary.add_member(:type, Shapes::ShapeRef.new(shape: ConnectorType, location_name: "Type"))
121
+ ConnectorSummary.add_member(:mobile_device_management, Shapes::ShapeRef.new(shape: MobileDeviceManagement, location_name: "MobileDeviceManagement"))
122
+ ConnectorSummary.add_member(:open_id_configuration, Shapes::ShapeRef.new(shape: OpenIdConfiguration, location_name: "OpenIdConfiguration"))
123
+ ConnectorSummary.add_member(:status, Shapes::ShapeRef.new(shape: ConnectorStatus, location_name: "Status"))
124
+ ConnectorSummary.add_member(:status_reason, Shapes::ShapeRef.new(shape: ConnectorStatusReason, location_name: "StatusReason"))
125
+ ConnectorSummary.add_member(:endpoint, Shapes::ShapeRef.new(shape: String, location_name: "Endpoint"))
126
+ ConnectorSummary.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreatedAt"))
127
+ ConnectorSummary.add_member(:updated_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "UpdatedAt"))
128
+ ConnectorSummary.struct_class = Types::ConnectorSummary
129
+
130
+ CreateChallengeRequest.add_member(:connector_arn, Shapes::ShapeRef.new(shape: ConnectorArn, required: true, location_name: "ConnectorArn"))
131
+ CreateChallengeRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "ClientToken", metadata: {"idempotencyToken"=>true}))
132
+ CreateChallengeRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "Tags"))
133
+ CreateChallengeRequest.struct_class = Types::CreateChallengeRequest
134
+
135
+ CreateChallengeResponse.add_member(:challenge, Shapes::ShapeRef.new(shape: Challenge, location_name: "Challenge"))
136
+ CreateChallengeResponse.struct_class = Types::CreateChallengeResponse
137
+
138
+ CreateConnectorRequest.add_member(:certificate_authority_arn, Shapes::ShapeRef.new(shape: CertificateAuthorityArn, required: true, location_name: "CertificateAuthorityArn"))
139
+ CreateConnectorRequest.add_member(:mobile_device_management, Shapes::ShapeRef.new(shape: MobileDeviceManagement, location_name: "MobileDeviceManagement"))
140
+ CreateConnectorRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "ClientToken", metadata: {"idempotencyToken"=>true}))
141
+ CreateConnectorRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "Tags"))
142
+ CreateConnectorRequest.struct_class = Types::CreateConnectorRequest
143
+
144
+ CreateConnectorResponse.add_member(:connector_arn, Shapes::ShapeRef.new(shape: ConnectorArn, location_name: "ConnectorArn"))
145
+ CreateConnectorResponse.struct_class = Types::CreateConnectorResponse
146
+
147
+ DeleteChallengeRequest.add_member(:challenge_arn, Shapes::ShapeRef.new(shape: ChallengeArn, required: true, location: "uri", location_name: "ChallengeArn"))
148
+ DeleteChallengeRequest.struct_class = Types::DeleteChallengeRequest
149
+
150
+ DeleteConnectorRequest.add_member(:connector_arn, Shapes::ShapeRef.new(shape: ConnectorArn, required: true, location: "uri", location_name: "ConnectorArn"))
151
+ DeleteConnectorRequest.struct_class = Types::DeleteConnectorRequest
152
+
153
+ GetChallengeMetadataRequest.add_member(:challenge_arn, Shapes::ShapeRef.new(shape: ChallengeArn, required: true, location: "uri", location_name: "ChallengeArn"))
154
+ GetChallengeMetadataRequest.struct_class = Types::GetChallengeMetadataRequest
155
+
156
+ GetChallengeMetadataResponse.add_member(:challenge_metadata, Shapes::ShapeRef.new(shape: ChallengeMetadata, location_name: "ChallengeMetadata"))
157
+ GetChallengeMetadataResponse.struct_class = Types::GetChallengeMetadataResponse
158
+
159
+ GetChallengePasswordRequest.add_member(:challenge_arn, Shapes::ShapeRef.new(shape: ChallengeArn, required: true, location: "uri", location_name: "ChallengeArn"))
160
+ GetChallengePasswordRequest.struct_class = Types::GetChallengePasswordRequest
161
+
162
+ GetChallengePasswordResponse.add_member(:password, Shapes::ShapeRef.new(shape: SensitiveString, location_name: "Password"))
163
+ GetChallengePasswordResponse.struct_class = Types::GetChallengePasswordResponse
164
+
165
+ GetConnectorRequest.add_member(:connector_arn, Shapes::ShapeRef.new(shape: ConnectorArn, required: true, location: "uri", location_name: "ConnectorArn"))
166
+ GetConnectorRequest.struct_class = Types::GetConnectorRequest
167
+
168
+ GetConnectorResponse.add_member(:connector, Shapes::ShapeRef.new(shape: Connector, location_name: "Connector"))
169
+ GetConnectorResponse.struct_class = Types::GetConnectorResponse
170
+
171
+ InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Message"))
172
+ InternalServerException.struct_class = Types::InternalServerException
173
+
174
+ IntuneConfiguration.add_member(:azure_application_id, Shapes::ShapeRef.new(shape: AzureApplicationId, required: true, location_name: "AzureApplicationId"))
175
+ IntuneConfiguration.add_member(:domain, Shapes::ShapeRef.new(shape: AzureDomain, required: true, location_name: "Domain"))
176
+ IntuneConfiguration.struct_class = Types::IntuneConfiguration
177
+
178
+ ListChallengeMetadataRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "MaxResults"))
179
+ ListChallengeMetadataRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "NextToken"))
180
+ ListChallengeMetadataRequest.add_member(:connector_arn, Shapes::ShapeRef.new(shape: ConnectorArn, required: true, location: "querystring", location_name: "ConnectorArn"))
181
+ ListChallengeMetadataRequest.struct_class = Types::ListChallengeMetadataRequest
182
+
183
+ ListChallengeMetadataResponse.add_member(:challenges, Shapes::ShapeRef.new(shape: ChallengeMetadataList, location_name: "Challenges"))
184
+ ListChallengeMetadataResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
185
+ ListChallengeMetadataResponse.struct_class = Types::ListChallengeMetadataResponse
186
+
187
+ ListConnectorsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "MaxResults"))
188
+ ListConnectorsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "NextToken"))
189
+ ListConnectorsRequest.struct_class = Types::ListConnectorsRequest
190
+
191
+ ListConnectorsResponse.add_member(:connectors, Shapes::ShapeRef.new(shape: ConnectorList, location_name: "Connectors"))
192
+ ListConnectorsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
193
+ ListConnectorsResponse.struct_class = Types::ListConnectorsResponse
194
+
195
+ ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "ResourceArn"))
196
+ ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
197
+
198
+ ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "Tags"))
199
+ ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
200
+
201
+ MobileDeviceManagement.add_member(:intune, Shapes::ShapeRef.new(shape: IntuneConfiguration, location_name: "Intune"))
202
+ MobileDeviceManagement.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
203
+ MobileDeviceManagement.add_member_subclass(:intune, Types::MobileDeviceManagement::Intune)
204
+ MobileDeviceManagement.add_member_subclass(:unknown, Types::MobileDeviceManagement::Unknown)
205
+ MobileDeviceManagement.struct_class = Types::MobileDeviceManagement
206
+
207
+ OpenIdConfiguration.add_member(:issuer, Shapes::ShapeRef.new(shape: String, location_name: "Issuer"))
208
+ OpenIdConfiguration.add_member(:subject, Shapes::ShapeRef.new(shape: String, location_name: "Subject"))
209
+ OpenIdConfiguration.add_member(:audience, Shapes::ShapeRef.new(shape: String, location_name: "Audience"))
210
+ OpenIdConfiguration.struct_class = Types::OpenIdConfiguration
211
+
212
+ ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Message"))
213
+ ResourceNotFoundException.add_member(:resource_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "ResourceId"))
214
+ ResourceNotFoundException.add_member(:resource_type, Shapes::ShapeRef.new(shape: String, required: true, location_name: "ResourceType"))
215
+ ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
216
+
217
+ ServiceQuotaExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Message"))
218
+ ServiceQuotaExceededException.add_member(:resource_type, Shapes::ShapeRef.new(shape: String, required: true, location_name: "ResourceType"))
219
+ ServiceQuotaExceededException.add_member(:service_code, Shapes::ShapeRef.new(shape: String, required: true, location_name: "ServiceCode"))
220
+ ServiceQuotaExceededException.add_member(:quota_code, Shapes::ShapeRef.new(shape: String, required: true, location_name: "QuotaCode"))
221
+ ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
222
+
223
+ TagKeyList.member = Shapes::ShapeRef.new(shape: String)
224
+
225
+ TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "ResourceArn"))
226
+ TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, required: true, location_name: "Tags"))
227
+ TagResourceRequest.struct_class = Types::TagResourceRequest
228
+
229
+ Tags.key = Shapes::ShapeRef.new(shape: String)
230
+ Tags.value = Shapes::ShapeRef.new(shape: String)
231
+
232
+ ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Message"))
233
+ ThrottlingException.struct_class = Types::ThrottlingException
234
+
235
+ UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "ResourceArn"))
236
+ UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location: "querystring", location_name: "tagKeys"))
237
+ UntagResourceRequest.struct_class = Types::UntagResourceRequest
238
+
239
+ ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Message"))
240
+ ValidationException.add_member(:reason, Shapes::ShapeRef.new(shape: ValidationExceptionReason, location_name: "Reason"))
241
+ ValidationException.struct_class = Types::ValidationException
242
+
243
+
244
+ # @api private
245
+ API = Seahorse::Model::Api.new.tap do |api|
246
+
247
+ api.version = "2018-05-10"
248
+
249
+ api.metadata = {
250
+ "apiVersion" => "2018-05-10",
251
+ "endpointPrefix" => "pca-connector-scep",
252
+ "protocol" => "rest-json",
253
+ "protocols" => ["rest-json"],
254
+ "serviceFullName" => "Private CA Connector for SCEP",
255
+ "serviceId" => "Pca Connector Scep",
256
+ "signatureVersion" => "v4",
257
+ "signingName" => "pca-connector-scep",
258
+ "uid" => "pca-connector-scep-2018-05-10",
259
+ }
260
+
261
+ api.add_operation(:create_challenge, Seahorse::Model::Operation.new.tap do |o|
262
+ o.name = "CreateChallenge"
263
+ o.http_method = "POST"
264
+ o.http_request_uri = "/challenges"
265
+ o.input = Shapes::ShapeRef.new(shape: CreateChallengeRequest)
266
+ o.output = Shapes::ShapeRef.new(shape: CreateChallengeResponse)
267
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
268
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
269
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
270
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
271
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
272
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
273
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
274
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
275
+ end)
276
+
277
+ api.add_operation(:create_connector, Seahorse::Model::Operation.new.tap do |o|
278
+ o.name = "CreateConnector"
279
+ o.http_method = "POST"
280
+ o.http_request_uri = "/connectors"
281
+ o.input = Shapes::ShapeRef.new(shape: CreateConnectorRequest)
282
+ o.output = Shapes::ShapeRef.new(shape: CreateConnectorResponse)
283
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
284
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
285
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
286
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
287
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
288
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
289
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
290
+ end)
291
+
292
+ api.add_operation(:delete_challenge, Seahorse::Model::Operation.new.tap do |o|
293
+ o.name = "DeleteChallenge"
294
+ o.http_method = "DELETE"
295
+ o.http_request_uri = "/challenges/{ChallengeArn}"
296
+ o.input = Shapes::ShapeRef.new(shape: DeleteChallengeRequest)
297
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
298
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
299
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
300
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
301
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
302
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
303
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
304
+ end)
305
+
306
+ api.add_operation(:delete_connector, Seahorse::Model::Operation.new.tap do |o|
307
+ o.name = "DeleteConnector"
308
+ o.http_method = "DELETE"
309
+ o.http_request_uri = "/connectors/{ConnectorArn}"
310
+ o.input = Shapes::ShapeRef.new(shape: DeleteConnectorRequest)
311
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
312
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
313
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
314
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
315
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
316
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
317
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
318
+ end)
319
+
320
+ api.add_operation(:get_challenge_metadata, Seahorse::Model::Operation.new.tap do |o|
321
+ o.name = "GetChallengeMetadata"
322
+ o.http_method = "GET"
323
+ o.http_request_uri = "/challengeMetadata/{ChallengeArn}"
324
+ o.input = Shapes::ShapeRef.new(shape: GetChallengeMetadataRequest)
325
+ o.output = Shapes::ShapeRef.new(shape: GetChallengeMetadataResponse)
326
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
327
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
328
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
329
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
330
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
331
+ end)
332
+
333
+ api.add_operation(:get_challenge_password, Seahorse::Model::Operation.new.tap do |o|
334
+ o.name = "GetChallengePassword"
335
+ o.http_method = "GET"
336
+ o.http_request_uri = "/challengePasswords/{ChallengeArn}"
337
+ o.input = Shapes::ShapeRef.new(shape: GetChallengePasswordRequest)
338
+ o.output = Shapes::ShapeRef.new(shape: GetChallengePasswordResponse)
339
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
340
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
341
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
342
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
343
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
344
+ end)
345
+
346
+ api.add_operation(:get_connector, Seahorse::Model::Operation.new.tap do |o|
347
+ o.name = "GetConnector"
348
+ o.http_method = "GET"
349
+ o.http_request_uri = "/connectors/{ConnectorArn}"
350
+ o.input = Shapes::ShapeRef.new(shape: GetConnectorRequest)
351
+ o.output = Shapes::ShapeRef.new(shape: GetConnectorResponse)
352
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
353
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
354
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
355
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
356
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
357
+ end)
358
+
359
+ api.add_operation(:list_challenge_metadata, Seahorse::Model::Operation.new.tap do |o|
360
+ o.name = "ListChallengeMetadata"
361
+ o.http_method = "GET"
362
+ o.http_request_uri = "/challengeMetadata"
363
+ o.input = Shapes::ShapeRef.new(shape: ListChallengeMetadataRequest)
364
+ o.output = Shapes::ShapeRef.new(shape: ListChallengeMetadataResponse)
365
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
366
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
367
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
368
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
369
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
370
+ o[:pager] = Aws::Pager.new(
371
+ limit_key: "max_results",
372
+ tokens: {
373
+ "next_token" => "next_token"
374
+ }
375
+ )
376
+ end)
377
+
378
+ api.add_operation(:list_connectors, Seahorse::Model::Operation.new.tap do |o|
379
+ o.name = "ListConnectors"
380
+ o.http_method = "GET"
381
+ o.http_request_uri = "/connectors"
382
+ o.input = Shapes::ShapeRef.new(shape: ListConnectorsRequest)
383
+ o.output = Shapes::ShapeRef.new(shape: ListConnectorsResponse)
384
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
385
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
386
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
387
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
388
+ o[:pager] = Aws::Pager.new(
389
+ limit_key: "max_results",
390
+ tokens: {
391
+ "next_token" => "next_token"
392
+ }
393
+ )
394
+ end)
395
+
396
+ api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
397
+ o.name = "ListTagsForResource"
398
+ o.http_method = "GET"
399
+ o.http_request_uri = "/tags/{ResourceArn}"
400
+ o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
401
+ o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
402
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
403
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
404
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
405
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
406
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
407
+ end)
408
+
409
+ api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
410
+ o.name = "TagResource"
411
+ o.http_method = "POST"
412
+ o.http_request_uri = "/tags/{ResourceArn}"
413
+ o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
414
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
415
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
416
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
417
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
418
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
419
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
420
+ end)
421
+
422
+ api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
423
+ o.name = "UntagResource"
424
+ o.http_method = "DELETE"
425
+ o.http_request_uri = "/tags/{ResourceArn}"
426
+ o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
427
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
428
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
429
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
430
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
431
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
432
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
433
+ end)
434
+ end
435
+
436
+ end
437
+ 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::PcaConnectorScep
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::PcaConnectorScep
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://pca-connector-scep-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?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
36
+ return Aws::Endpoints::Endpoint.new(url: "https://pca-connector-scep-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://pca-connector-scep.#{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://pca-connector-scep.#{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