aws-sdk-pcaconnectorscep 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/CHANGELOG.md +8 -0
- data/LICENSE.txt +202 -0
- data/VERSION +1 -0
- data/lib/aws-sdk-pcaconnectorscep/client.rb +983 -0
- data/lib/aws-sdk-pcaconnectorscep/client_api.rb +437 -0
- data/lib/aws-sdk-pcaconnectorscep/customizations.rb +0 -0
- data/lib/aws-sdk-pcaconnectorscep/endpoint_parameters.rb +66 -0
- data/lib/aws-sdk-pcaconnectorscep/endpoint_provider.rb +54 -0
- data/lib/aws-sdk-pcaconnectorscep/endpoints.rb +184 -0
- data/lib/aws-sdk-pcaconnectorscep/errors.rb +218 -0
- data/lib/aws-sdk-pcaconnectorscep/plugins/endpoints.rb +94 -0
- data/lib/aws-sdk-pcaconnectorscep/resource.rb +26 -0
- data/lib/aws-sdk-pcaconnectorscep/types.rb +907 -0
- data/lib/aws-sdk-pcaconnectorscep/waiters.rb +15 -0
- data/lib/aws-sdk-pcaconnectorscep.rb +58 -0
- data/sig/client.rbs +198 -0
- data/sig/errors.rbs +48 -0
- data/sig/resource.rbs +79 -0
- data/sig/types.rbs +248 -0
- data/sig/waiters.rbs +13 -0
- metadata +100 -0
@@ -0,0 +1,184 @@
|
|
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::PcaConnectorScep
|
12
|
+
# @api private
|
13
|
+
module Endpoints
|
14
|
+
|
15
|
+
class CreateChallenge
|
16
|
+
def self.build(context)
|
17
|
+
unless context.config.regional_endpoint
|
18
|
+
endpoint = context.config.endpoint.to_s
|
19
|
+
end
|
20
|
+
Aws::PcaConnectorScep::EndpointParameters.new(
|
21
|
+
region: context.config.region,
|
22
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
23
|
+
use_fips: context.config.use_fips_endpoint,
|
24
|
+
endpoint: endpoint,
|
25
|
+
)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
class CreateConnector
|
30
|
+
def self.build(context)
|
31
|
+
unless context.config.regional_endpoint
|
32
|
+
endpoint = context.config.endpoint.to_s
|
33
|
+
end
|
34
|
+
Aws::PcaConnectorScep::EndpointParameters.new(
|
35
|
+
region: context.config.region,
|
36
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
37
|
+
use_fips: context.config.use_fips_endpoint,
|
38
|
+
endpoint: endpoint,
|
39
|
+
)
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
class DeleteChallenge
|
44
|
+
def self.build(context)
|
45
|
+
unless context.config.regional_endpoint
|
46
|
+
endpoint = context.config.endpoint.to_s
|
47
|
+
end
|
48
|
+
Aws::PcaConnectorScep::EndpointParameters.new(
|
49
|
+
region: context.config.region,
|
50
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
51
|
+
use_fips: context.config.use_fips_endpoint,
|
52
|
+
endpoint: endpoint,
|
53
|
+
)
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
class DeleteConnector
|
58
|
+
def self.build(context)
|
59
|
+
unless context.config.regional_endpoint
|
60
|
+
endpoint = context.config.endpoint.to_s
|
61
|
+
end
|
62
|
+
Aws::PcaConnectorScep::EndpointParameters.new(
|
63
|
+
region: context.config.region,
|
64
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
65
|
+
use_fips: context.config.use_fips_endpoint,
|
66
|
+
endpoint: endpoint,
|
67
|
+
)
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
class GetChallengeMetadata
|
72
|
+
def self.build(context)
|
73
|
+
unless context.config.regional_endpoint
|
74
|
+
endpoint = context.config.endpoint.to_s
|
75
|
+
end
|
76
|
+
Aws::PcaConnectorScep::EndpointParameters.new(
|
77
|
+
region: context.config.region,
|
78
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
79
|
+
use_fips: context.config.use_fips_endpoint,
|
80
|
+
endpoint: endpoint,
|
81
|
+
)
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
class GetChallengePassword
|
86
|
+
def self.build(context)
|
87
|
+
unless context.config.regional_endpoint
|
88
|
+
endpoint = context.config.endpoint.to_s
|
89
|
+
end
|
90
|
+
Aws::PcaConnectorScep::EndpointParameters.new(
|
91
|
+
region: context.config.region,
|
92
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
93
|
+
use_fips: context.config.use_fips_endpoint,
|
94
|
+
endpoint: endpoint,
|
95
|
+
)
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
99
|
+
class GetConnector
|
100
|
+
def self.build(context)
|
101
|
+
unless context.config.regional_endpoint
|
102
|
+
endpoint = context.config.endpoint.to_s
|
103
|
+
end
|
104
|
+
Aws::PcaConnectorScep::EndpointParameters.new(
|
105
|
+
region: context.config.region,
|
106
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
107
|
+
use_fips: context.config.use_fips_endpoint,
|
108
|
+
endpoint: endpoint,
|
109
|
+
)
|
110
|
+
end
|
111
|
+
end
|
112
|
+
|
113
|
+
class ListChallengeMetadata
|
114
|
+
def self.build(context)
|
115
|
+
unless context.config.regional_endpoint
|
116
|
+
endpoint = context.config.endpoint.to_s
|
117
|
+
end
|
118
|
+
Aws::PcaConnectorScep::EndpointParameters.new(
|
119
|
+
region: context.config.region,
|
120
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
121
|
+
use_fips: context.config.use_fips_endpoint,
|
122
|
+
endpoint: endpoint,
|
123
|
+
)
|
124
|
+
end
|
125
|
+
end
|
126
|
+
|
127
|
+
class ListConnectors
|
128
|
+
def self.build(context)
|
129
|
+
unless context.config.regional_endpoint
|
130
|
+
endpoint = context.config.endpoint.to_s
|
131
|
+
end
|
132
|
+
Aws::PcaConnectorScep::EndpointParameters.new(
|
133
|
+
region: context.config.region,
|
134
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
135
|
+
use_fips: context.config.use_fips_endpoint,
|
136
|
+
endpoint: endpoint,
|
137
|
+
)
|
138
|
+
end
|
139
|
+
end
|
140
|
+
|
141
|
+
class ListTagsForResource
|
142
|
+
def self.build(context)
|
143
|
+
unless context.config.regional_endpoint
|
144
|
+
endpoint = context.config.endpoint.to_s
|
145
|
+
end
|
146
|
+
Aws::PcaConnectorScep::EndpointParameters.new(
|
147
|
+
region: context.config.region,
|
148
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
149
|
+
use_fips: context.config.use_fips_endpoint,
|
150
|
+
endpoint: endpoint,
|
151
|
+
)
|
152
|
+
end
|
153
|
+
end
|
154
|
+
|
155
|
+
class TagResource
|
156
|
+
def self.build(context)
|
157
|
+
unless context.config.regional_endpoint
|
158
|
+
endpoint = context.config.endpoint.to_s
|
159
|
+
end
|
160
|
+
Aws::PcaConnectorScep::EndpointParameters.new(
|
161
|
+
region: context.config.region,
|
162
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
163
|
+
use_fips: context.config.use_fips_endpoint,
|
164
|
+
endpoint: endpoint,
|
165
|
+
)
|
166
|
+
end
|
167
|
+
end
|
168
|
+
|
169
|
+
class UntagResource
|
170
|
+
def self.build(context)
|
171
|
+
unless context.config.regional_endpoint
|
172
|
+
endpoint = context.config.endpoint.to_s
|
173
|
+
end
|
174
|
+
Aws::PcaConnectorScep::EndpointParameters.new(
|
175
|
+
region: context.config.region,
|
176
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
177
|
+
use_fips: context.config.use_fips_endpoint,
|
178
|
+
endpoint: endpoint,
|
179
|
+
)
|
180
|
+
end
|
181
|
+
end
|
182
|
+
|
183
|
+
end
|
184
|
+
end
|
@@ -0,0 +1,218 @@
|
|
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
|
+
|
12
|
+
# When PcaConnectorScep returns an error response, the Ruby SDK constructs and raises an error.
|
13
|
+
# These errors all extend Aws::PcaConnectorScep::Errors::ServiceError < {Aws::Errors::ServiceError}
|
14
|
+
#
|
15
|
+
# You can rescue all PcaConnectorScep errors using ServiceError:
|
16
|
+
#
|
17
|
+
# begin
|
18
|
+
# # do stuff
|
19
|
+
# rescue Aws::PcaConnectorScep::Errors::ServiceError
|
20
|
+
# # rescues all PcaConnectorScep API errors
|
21
|
+
# end
|
22
|
+
#
|
23
|
+
#
|
24
|
+
# ## Request Context
|
25
|
+
# ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
|
26
|
+
# information about the request that generated the error.
|
27
|
+
# See {Seahorse::Client::RequestContext} for more information.
|
28
|
+
#
|
29
|
+
# ## Error Classes
|
30
|
+
# * {AccessDeniedException}
|
31
|
+
# * {BadRequestException}
|
32
|
+
# * {ConflictException}
|
33
|
+
# * {InternalServerException}
|
34
|
+
# * {ResourceNotFoundException}
|
35
|
+
# * {ServiceQuotaExceededException}
|
36
|
+
# * {ThrottlingException}
|
37
|
+
# * {ValidationException}
|
38
|
+
#
|
39
|
+
# Additionally, error classes are dynamically generated for service errors based on the error code
|
40
|
+
# if they are not defined above.
|
41
|
+
module Errors
|
42
|
+
|
43
|
+
extend Aws::Errors::DynamicErrors
|
44
|
+
|
45
|
+
class AccessDeniedException < ServiceError
|
46
|
+
|
47
|
+
# @param [Seahorse::Client::RequestContext] context
|
48
|
+
# @param [String] message
|
49
|
+
# @param [Aws::PcaConnectorScep::Types::AccessDeniedException] data
|
50
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
51
|
+
super(context, message, data)
|
52
|
+
end
|
53
|
+
|
54
|
+
# @return [String]
|
55
|
+
def message
|
56
|
+
@message || @data[:message]
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
class BadRequestException < ServiceError
|
61
|
+
|
62
|
+
# @param [Seahorse::Client::RequestContext] context
|
63
|
+
# @param [String] message
|
64
|
+
# @param [Aws::PcaConnectorScep::Types::BadRequestException] data
|
65
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
66
|
+
super(context, message, data)
|
67
|
+
end
|
68
|
+
|
69
|
+
# @return [String]
|
70
|
+
def message
|
71
|
+
@message || @data[:message]
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
class ConflictException < ServiceError
|
76
|
+
|
77
|
+
# @param [Seahorse::Client::RequestContext] context
|
78
|
+
# @param [String] message
|
79
|
+
# @param [Aws::PcaConnectorScep::Types::ConflictException] data
|
80
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
81
|
+
super(context, message, data)
|
82
|
+
end
|
83
|
+
|
84
|
+
# @return [String]
|
85
|
+
def message
|
86
|
+
@message || @data[:message]
|
87
|
+
end
|
88
|
+
|
89
|
+
# @return [String]
|
90
|
+
def resource_id
|
91
|
+
@data[:resource_id]
|
92
|
+
end
|
93
|
+
|
94
|
+
# @return [String]
|
95
|
+
def resource_type
|
96
|
+
@data[:resource_type]
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
100
|
+
class InternalServerException < ServiceError
|
101
|
+
|
102
|
+
# @param [Seahorse::Client::RequestContext] context
|
103
|
+
# @param [String] message
|
104
|
+
# @param [Aws::PcaConnectorScep::Types::InternalServerException] data
|
105
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
106
|
+
super(context, message, data)
|
107
|
+
end
|
108
|
+
|
109
|
+
# @return [String]
|
110
|
+
def message
|
111
|
+
@message || @data[:message]
|
112
|
+
end
|
113
|
+
|
114
|
+
def retryable?
|
115
|
+
true
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
119
|
+
class ResourceNotFoundException < ServiceError
|
120
|
+
|
121
|
+
# @param [Seahorse::Client::RequestContext] context
|
122
|
+
# @param [String] message
|
123
|
+
# @param [Aws::PcaConnectorScep::Types::ResourceNotFoundException] data
|
124
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
125
|
+
super(context, message, data)
|
126
|
+
end
|
127
|
+
|
128
|
+
# @return [String]
|
129
|
+
def message
|
130
|
+
@message || @data[:message]
|
131
|
+
end
|
132
|
+
|
133
|
+
# @return [String]
|
134
|
+
def resource_id
|
135
|
+
@data[:resource_id]
|
136
|
+
end
|
137
|
+
|
138
|
+
# @return [String]
|
139
|
+
def resource_type
|
140
|
+
@data[:resource_type]
|
141
|
+
end
|
142
|
+
end
|
143
|
+
|
144
|
+
class ServiceQuotaExceededException < ServiceError
|
145
|
+
|
146
|
+
# @param [Seahorse::Client::RequestContext] context
|
147
|
+
# @param [String] message
|
148
|
+
# @param [Aws::PcaConnectorScep::Types::ServiceQuotaExceededException] data
|
149
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
150
|
+
super(context, message, data)
|
151
|
+
end
|
152
|
+
|
153
|
+
# @return [String]
|
154
|
+
def message
|
155
|
+
@message || @data[:message]
|
156
|
+
end
|
157
|
+
|
158
|
+
# @return [String]
|
159
|
+
def resource_type
|
160
|
+
@data[:resource_type]
|
161
|
+
end
|
162
|
+
|
163
|
+
# @return [String]
|
164
|
+
def service_code
|
165
|
+
@data[:service_code]
|
166
|
+
end
|
167
|
+
|
168
|
+
# @return [String]
|
169
|
+
def quota_code
|
170
|
+
@data[:quota_code]
|
171
|
+
end
|
172
|
+
end
|
173
|
+
|
174
|
+
class ThrottlingException < ServiceError
|
175
|
+
|
176
|
+
# @param [Seahorse::Client::RequestContext] context
|
177
|
+
# @param [String] message
|
178
|
+
# @param [Aws::PcaConnectorScep::Types::ThrottlingException] data
|
179
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
180
|
+
super(context, message, data)
|
181
|
+
end
|
182
|
+
|
183
|
+
# @return [String]
|
184
|
+
def message
|
185
|
+
@message || @data[:message]
|
186
|
+
end
|
187
|
+
|
188
|
+
def retryable?
|
189
|
+
true
|
190
|
+
end
|
191
|
+
|
192
|
+
def throttling?
|
193
|
+
true
|
194
|
+
end
|
195
|
+
end
|
196
|
+
|
197
|
+
class ValidationException < ServiceError
|
198
|
+
|
199
|
+
# @param [Seahorse::Client::RequestContext] context
|
200
|
+
# @param [String] message
|
201
|
+
# @param [Aws::PcaConnectorScep::Types::ValidationException] data
|
202
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
203
|
+
super(context, message, data)
|
204
|
+
end
|
205
|
+
|
206
|
+
# @return [String]
|
207
|
+
def message
|
208
|
+
@message || @data[:message]
|
209
|
+
end
|
210
|
+
|
211
|
+
# @return [String]
|
212
|
+
def reason
|
213
|
+
@data[:reason]
|
214
|
+
end
|
215
|
+
end
|
216
|
+
|
217
|
+
end
|
218
|
+
end
|
@@ -0,0 +1,94 @@
|
|
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::PcaConnectorScep
|
12
|
+
module Plugins
|
13
|
+
class Endpoints < Seahorse::Client::Plugin
|
14
|
+
option(
|
15
|
+
:endpoint_provider,
|
16
|
+
doc_type: 'Aws::PcaConnectorScep::EndpointProvider',
|
17
|
+
rbs_type: 'untyped',
|
18
|
+
docstring: 'The endpoint provider used to resolve endpoints. Any '\
|
19
|
+
'object that responds to `#resolve_endpoint(parameters)` '\
|
20
|
+
'where `parameters` is a Struct similar to '\
|
21
|
+
'`Aws::PcaConnectorScep::EndpointParameters`'
|
22
|
+
) do |cfg|
|
23
|
+
Aws::PcaConnectorScep::EndpointProvider.new
|
24
|
+
end
|
25
|
+
|
26
|
+
# @api private
|
27
|
+
class Handler < Seahorse::Client::Handler
|
28
|
+
def call(context)
|
29
|
+
unless context[:discovered_endpoint]
|
30
|
+
params = parameters_for_operation(context)
|
31
|
+
endpoint = context.config.endpoint_provider.resolve_endpoint(params)
|
32
|
+
|
33
|
+
context.http_request.endpoint = endpoint.url
|
34
|
+
apply_endpoint_headers(context, endpoint.headers)
|
35
|
+
|
36
|
+
context[:endpoint_params] = params
|
37
|
+
context[:endpoint_properties] = endpoint.properties
|
38
|
+
end
|
39
|
+
|
40
|
+
context[:auth_scheme] =
|
41
|
+
Aws::Endpoints.resolve_auth_scheme(context, endpoint)
|
42
|
+
|
43
|
+
@handler.call(context)
|
44
|
+
end
|
45
|
+
|
46
|
+
private
|
47
|
+
|
48
|
+
def apply_endpoint_headers(context, headers)
|
49
|
+
headers.each do |key, values|
|
50
|
+
value = values
|
51
|
+
.compact
|
52
|
+
.map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
|
53
|
+
.join(',')
|
54
|
+
|
55
|
+
context.http_request.headers[key] = value
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
def parameters_for_operation(context)
|
60
|
+
case context.operation_name
|
61
|
+
when :create_challenge
|
62
|
+
Aws::PcaConnectorScep::Endpoints::CreateChallenge.build(context)
|
63
|
+
when :create_connector
|
64
|
+
Aws::PcaConnectorScep::Endpoints::CreateConnector.build(context)
|
65
|
+
when :delete_challenge
|
66
|
+
Aws::PcaConnectorScep::Endpoints::DeleteChallenge.build(context)
|
67
|
+
when :delete_connector
|
68
|
+
Aws::PcaConnectorScep::Endpoints::DeleteConnector.build(context)
|
69
|
+
when :get_challenge_metadata
|
70
|
+
Aws::PcaConnectorScep::Endpoints::GetChallengeMetadata.build(context)
|
71
|
+
when :get_challenge_password
|
72
|
+
Aws::PcaConnectorScep::Endpoints::GetChallengePassword.build(context)
|
73
|
+
when :get_connector
|
74
|
+
Aws::PcaConnectorScep::Endpoints::GetConnector.build(context)
|
75
|
+
when :list_challenge_metadata
|
76
|
+
Aws::PcaConnectorScep::Endpoints::ListChallengeMetadata.build(context)
|
77
|
+
when :list_connectors
|
78
|
+
Aws::PcaConnectorScep::Endpoints::ListConnectors.build(context)
|
79
|
+
when :list_tags_for_resource
|
80
|
+
Aws::PcaConnectorScep::Endpoints::ListTagsForResource.build(context)
|
81
|
+
when :tag_resource
|
82
|
+
Aws::PcaConnectorScep::Endpoints::TagResource.build(context)
|
83
|
+
when :untag_resource
|
84
|
+
Aws::PcaConnectorScep::Endpoints::UntagResource.build(context)
|
85
|
+
end
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
89
|
+
def add_handlers(handlers, _config)
|
90
|
+
handlers.add(Handler, step: :build, priority: 75)
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|
94
|
+
end
|
@@ -0,0 +1,26 @@
|
|
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
|
+
|
12
|
+
class Resource
|
13
|
+
|
14
|
+
# @param options ({})
|
15
|
+
# @option options [Client] :client
|
16
|
+
def initialize(options = {})
|
17
|
+
@client = options[:client] || Client.new(options)
|
18
|
+
end
|
19
|
+
|
20
|
+
# @return [Client]
|
21
|
+
def client
|
22
|
+
@client
|
23
|
+
end
|
24
|
+
|
25
|
+
end
|
26
|
+
end
|