aws-sdk-signer 1.38.0 → 1.40.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 20a2f74707c0d06d005ca6e06c947bf35363795313a9111c4bf462478b8bc925
4
- data.tar.gz: bbd827a8be5683f3967a466f82bdced5e635e1f1fa74d7a056727a670e7835c5
3
+ metadata.gz: 9aad46fb4c5fdaaee35e3ccb0c330595b8534c2fe14e8c6fb44ff81ec130ad7a
4
+ data.tar.gz: d81a3eab098de28c0ecc362ff15c21e2626faeca31d3aff417cc603778d9d62b
5
5
  SHA512:
6
- metadata.gz: d4d2a1da27ff778db40d7f3cbc5fcd303b5ee2a47dfb725271753145ef92e6b16b2a64156ee93fc20b334e35fcc0c310ad7c15fb70f4c9df788ea04040a45185
7
- data.tar.gz: 1c8b0a97cb88162085e59fd72c208f613dff7e2dc4e492ab25da23ecc89736d38e92da977787d34b6a2b67e6fb479bb12544572e18a26528fff429648dcc1c3a
6
+ metadata.gz: b82bd7580bce30eb1fd9f8b215ad797c1733cb5b014d54cce59e44245d98498111a33e5df081ce1c6feaf1938e21d000fcd439b7fb88f6c52f5a316d24d1e3cf
7
+ data.tar.gz: 8b353d8317fe373bef89d28660b46858e6410a13cd5196613e211f0951de10e55928a0f6c27cd8500c7058fccb3186ac8931d88d758f37192b5b98609ceabed1
data/CHANGELOG.md CHANGED
@@ -1,6 +1,18 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.40.0 (2023-01-18)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ * Issue - Replace runtime endpoint resolution approach with generated ruby code.
10
+
11
+ 1.39.0 (2022-10-25)
12
+ ------------------
13
+
14
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
15
+
4
16
  1.38.0 (2022-02-24)
5
17
  ------------------
6
18
 
@@ -202,4 +214,4 @@ Unreleased Changes
202
214
  1.0.0 (2018-08-27)
203
215
  ------------------
204
216
 
205
- * Feature - Initial release of `aws-sdk-signer`.
217
+ * Feature - Initial release of `aws-sdk-signer`.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.38.0
1
+ 1.40.0
@@ -30,7 +30,7 @@ require 'aws-sdk-core/plugins/http_checksum.rb'
30
30
  require 'aws-sdk-core/plugins/checksum_algorithm.rb'
31
31
  require 'aws-sdk-core/plugins/defaults_mode.rb'
32
32
  require 'aws-sdk-core/plugins/recursion_detection.rb'
33
- require 'aws-sdk-core/plugins/signature_v4.rb'
33
+ require 'aws-sdk-core/plugins/sign.rb'
34
34
  require 'aws-sdk-core/plugins/protocols/rest_json.rb'
35
35
 
36
36
  Aws::Plugins::GlobalConfiguration.add_identifier(:signer)
@@ -79,8 +79,9 @@ module Aws::Signer
79
79
  add_plugin(Aws::Plugins::ChecksumAlgorithm)
80
80
  add_plugin(Aws::Plugins::DefaultsMode)
81
81
  add_plugin(Aws::Plugins::RecursionDetection)
82
- add_plugin(Aws::Plugins::SignatureV4)
82
+ add_plugin(Aws::Plugins::Sign)
83
83
  add_plugin(Aws::Plugins::Protocols::RestJson)
84
+ add_plugin(Aws::Signer::Plugins::Endpoints)
84
85
 
85
86
  # @overload initialize(options)
86
87
  # @param [Hash] options
@@ -287,6 +288,19 @@ module Aws::Signer
287
288
  # ** Please note ** When response stubbing is enabled, no HTTP
288
289
  # requests are made, and retries are disabled.
289
290
  #
291
+ # @option options [Aws::TokenProvider] :token_provider
292
+ # A Bearer Token Provider. This can be an instance of any one of the
293
+ # following classes:
294
+ #
295
+ # * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
296
+ # tokens.
297
+ #
298
+ # * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
299
+ # access token generated from `aws login`.
300
+ #
301
+ # When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
302
+ # will be used to search for tokens configured for your profile in shared configuration files.
303
+ #
290
304
  # @option options [Boolean] :use_dualstack_endpoint
291
305
  # When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
292
306
  # will be used if available.
@@ -300,6 +314,9 @@ module Aws::Signer
300
314
  # When `true`, request parameters are validated before
301
315
  # sending the request.
302
316
  #
317
+ # @option options [Aws::Signer::EndpointProvider] :endpoint_provider
318
+ # The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::Signer::EndpointParameters`
319
+ #
303
320
  # @option options [URI::HTTP,String] :http_proxy A proxy to send
304
321
  # requests through. Formatted like 'http://proxy.com:123'.
305
322
  #
@@ -1289,7 +1306,7 @@ module Aws::Signer
1289
1306
  params: params,
1290
1307
  config: config)
1291
1308
  context[:gem_name] = 'aws-sdk-signer'
1292
- context[:gem_version] = '1.38.0'
1309
+ context[:gem_version] = '1.40.0'
1293
1310
  Seahorse::Client::Request.new(handlers, context)
1294
1311
  end
1295
1312
 
@@ -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::Signer
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,51 @@
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::Signer
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 (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
18
+ if Aws::Endpoints::Matchers.set?(endpoint) && (url = Aws::Endpoints::Matchers.parse_url(endpoint))
19
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
20
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
21
+ end
22
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
23
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
24
+ end
25
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
26
+ end
27
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
28
+ 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"))
29
+ return Aws::Endpoints::Endpoint.new(url: "https://signer-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
30
+ end
31
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
32
+ end
33
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
34
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
+ return Aws::Endpoints::Endpoint.new(url: "https://signer-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
36
+ end
37
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
38
+ end
39
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
40
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
41
+ return Aws::Endpoints::Endpoint.new(url: "https://signer.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
42
+ end
43
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
44
+ end
45
+ return Aws::Endpoints::Endpoint.new(url: "https://signer.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
46
+ end
47
+ raise ArgumentError, 'No endpoint could be resolved'
48
+
49
+ end
50
+ end
51
+ end
@@ -0,0 +1,253 @@
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::Signer
12
+ module Endpoints
13
+
14
+ class AddProfilePermission
15
+ def self.build(context)
16
+ unless context.config.regional_endpoint
17
+ endpoint = context.config.endpoint.to_s
18
+ end
19
+ Aws::Signer::EndpointParameters.new(
20
+ region: context.config.region,
21
+ use_dual_stack: context.config.use_dualstack_endpoint,
22
+ use_fips: context.config.use_fips_endpoint,
23
+ endpoint: endpoint,
24
+ )
25
+ end
26
+ end
27
+
28
+ class CancelSigningProfile
29
+ def self.build(context)
30
+ unless context.config.regional_endpoint
31
+ endpoint = context.config.endpoint.to_s
32
+ end
33
+ Aws::Signer::EndpointParameters.new(
34
+ region: context.config.region,
35
+ use_dual_stack: context.config.use_dualstack_endpoint,
36
+ use_fips: context.config.use_fips_endpoint,
37
+ endpoint: endpoint,
38
+ )
39
+ end
40
+ end
41
+
42
+ class DescribeSigningJob
43
+ def self.build(context)
44
+ unless context.config.regional_endpoint
45
+ endpoint = context.config.endpoint.to_s
46
+ end
47
+ Aws::Signer::EndpointParameters.new(
48
+ region: context.config.region,
49
+ use_dual_stack: context.config.use_dualstack_endpoint,
50
+ use_fips: context.config.use_fips_endpoint,
51
+ endpoint: endpoint,
52
+ )
53
+ end
54
+ end
55
+
56
+ class GetSigningPlatform
57
+ def self.build(context)
58
+ unless context.config.regional_endpoint
59
+ endpoint = context.config.endpoint.to_s
60
+ end
61
+ Aws::Signer::EndpointParameters.new(
62
+ region: context.config.region,
63
+ use_dual_stack: context.config.use_dualstack_endpoint,
64
+ use_fips: context.config.use_fips_endpoint,
65
+ endpoint: endpoint,
66
+ )
67
+ end
68
+ end
69
+
70
+ class GetSigningProfile
71
+ def self.build(context)
72
+ unless context.config.regional_endpoint
73
+ endpoint = context.config.endpoint.to_s
74
+ end
75
+ Aws::Signer::EndpointParameters.new(
76
+ region: context.config.region,
77
+ use_dual_stack: context.config.use_dualstack_endpoint,
78
+ use_fips: context.config.use_fips_endpoint,
79
+ endpoint: endpoint,
80
+ )
81
+ end
82
+ end
83
+
84
+ class ListProfilePermissions
85
+ def self.build(context)
86
+ unless context.config.regional_endpoint
87
+ endpoint = context.config.endpoint.to_s
88
+ end
89
+ Aws::Signer::EndpointParameters.new(
90
+ region: context.config.region,
91
+ use_dual_stack: context.config.use_dualstack_endpoint,
92
+ use_fips: context.config.use_fips_endpoint,
93
+ endpoint: endpoint,
94
+ )
95
+ end
96
+ end
97
+
98
+ class ListSigningJobs
99
+ def self.build(context)
100
+ unless context.config.regional_endpoint
101
+ endpoint = context.config.endpoint.to_s
102
+ end
103
+ Aws::Signer::EndpointParameters.new(
104
+ region: context.config.region,
105
+ use_dual_stack: context.config.use_dualstack_endpoint,
106
+ use_fips: context.config.use_fips_endpoint,
107
+ endpoint: endpoint,
108
+ )
109
+ end
110
+ end
111
+
112
+ class ListSigningPlatforms
113
+ def self.build(context)
114
+ unless context.config.regional_endpoint
115
+ endpoint = context.config.endpoint.to_s
116
+ end
117
+ Aws::Signer::EndpointParameters.new(
118
+ region: context.config.region,
119
+ use_dual_stack: context.config.use_dualstack_endpoint,
120
+ use_fips: context.config.use_fips_endpoint,
121
+ endpoint: endpoint,
122
+ )
123
+ end
124
+ end
125
+
126
+ class ListSigningProfiles
127
+ def self.build(context)
128
+ unless context.config.regional_endpoint
129
+ endpoint = context.config.endpoint.to_s
130
+ end
131
+ Aws::Signer::EndpointParameters.new(
132
+ region: context.config.region,
133
+ use_dual_stack: context.config.use_dualstack_endpoint,
134
+ use_fips: context.config.use_fips_endpoint,
135
+ endpoint: endpoint,
136
+ )
137
+ end
138
+ end
139
+
140
+ class ListTagsForResource
141
+ def self.build(context)
142
+ unless context.config.regional_endpoint
143
+ endpoint = context.config.endpoint.to_s
144
+ end
145
+ Aws::Signer::EndpointParameters.new(
146
+ region: context.config.region,
147
+ use_dual_stack: context.config.use_dualstack_endpoint,
148
+ use_fips: context.config.use_fips_endpoint,
149
+ endpoint: endpoint,
150
+ )
151
+ end
152
+ end
153
+
154
+ class PutSigningProfile
155
+ def self.build(context)
156
+ unless context.config.regional_endpoint
157
+ endpoint = context.config.endpoint.to_s
158
+ end
159
+ Aws::Signer::EndpointParameters.new(
160
+ region: context.config.region,
161
+ use_dual_stack: context.config.use_dualstack_endpoint,
162
+ use_fips: context.config.use_fips_endpoint,
163
+ endpoint: endpoint,
164
+ )
165
+ end
166
+ end
167
+
168
+ class RemoveProfilePermission
169
+ def self.build(context)
170
+ unless context.config.regional_endpoint
171
+ endpoint = context.config.endpoint.to_s
172
+ end
173
+ Aws::Signer::EndpointParameters.new(
174
+ region: context.config.region,
175
+ use_dual_stack: context.config.use_dualstack_endpoint,
176
+ use_fips: context.config.use_fips_endpoint,
177
+ endpoint: endpoint,
178
+ )
179
+ end
180
+ end
181
+
182
+ class RevokeSignature
183
+ def self.build(context)
184
+ unless context.config.regional_endpoint
185
+ endpoint = context.config.endpoint.to_s
186
+ end
187
+ Aws::Signer::EndpointParameters.new(
188
+ region: context.config.region,
189
+ use_dual_stack: context.config.use_dualstack_endpoint,
190
+ use_fips: context.config.use_fips_endpoint,
191
+ endpoint: endpoint,
192
+ )
193
+ end
194
+ end
195
+
196
+ class RevokeSigningProfile
197
+ def self.build(context)
198
+ unless context.config.regional_endpoint
199
+ endpoint = context.config.endpoint.to_s
200
+ end
201
+ Aws::Signer::EndpointParameters.new(
202
+ region: context.config.region,
203
+ use_dual_stack: context.config.use_dualstack_endpoint,
204
+ use_fips: context.config.use_fips_endpoint,
205
+ endpoint: endpoint,
206
+ )
207
+ end
208
+ end
209
+
210
+ class StartSigningJob
211
+ def self.build(context)
212
+ unless context.config.regional_endpoint
213
+ endpoint = context.config.endpoint.to_s
214
+ end
215
+ Aws::Signer::EndpointParameters.new(
216
+ region: context.config.region,
217
+ use_dual_stack: context.config.use_dualstack_endpoint,
218
+ use_fips: context.config.use_fips_endpoint,
219
+ endpoint: endpoint,
220
+ )
221
+ end
222
+ end
223
+
224
+ class TagResource
225
+ def self.build(context)
226
+ unless context.config.regional_endpoint
227
+ endpoint = context.config.endpoint.to_s
228
+ end
229
+ Aws::Signer::EndpointParameters.new(
230
+ region: context.config.region,
231
+ use_dual_stack: context.config.use_dualstack_endpoint,
232
+ use_fips: context.config.use_fips_endpoint,
233
+ endpoint: endpoint,
234
+ )
235
+ end
236
+ end
237
+
238
+ class UntagResource
239
+ def self.build(context)
240
+ unless context.config.regional_endpoint
241
+ endpoint = context.config.endpoint.to_s
242
+ end
243
+ Aws::Signer::EndpointParameters.new(
244
+ region: context.config.region,
245
+ use_dual_stack: context.config.use_dualstack_endpoint,
246
+ use_fips: context.config.use_fips_endpoint,
247
+ endpoint: endpoint,
248
+ )
249
+ end
250
+ end
251
+
252
+ end
253
+ end
@@ -0,0 +1,102 @@
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::Signer
12
+ module Plugins
13
+ class Endpoints < Seahorse::Client::Plugin
14
+ option(
15
+ :endpoint_provider,
16
+ doc_type: 'Aws::Signer::EndpointProvider',
17
+ docstring: 'The endpoint provider used to resolve endpoints. Any '\
18
+ 'object that responds to `#resolve_endpoint(parameters)` '\
19
+ 'where `parameters` is a Struct similar to '\
20
+ '`Aws::Signer::EndpointParameters`'
21
+ ) do |cfg|
22
+ Aws::Signer::EndpointProvider.new
23
+ end
24
+
25
+ # @api private
26
+ class Handler < Seahorse::Client::Handler
27
+ def call(context)
28
+ # If endpoint was discovered, do not resolve or apply the endpoint.
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
+ end
36
+
37
+ context[:endpoint_params] = params
38
+ context[:auth_scheme] =
39
+ Aws::Endpoints.resolve_auth_scheme(context, endpoint)
40
+
41
+ @handler.call(context)
42
+ end
43
+
44
+ private
45
+
46
+ def apply_endpoint_headers(context, headers)
47
+ headers.each do |key, values|
48
+ value = values
49
+ .compact
50
+ .map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
51
+ .join(',')
52
+
53
+ context.http_request.headers[key] = value
54
+ end
55
+ end
56
+
57
+ def parameters_for_operation(context)
58
+ case context.operation_name
59
+ when :add_profile_permission
60
+ Aws::Signer::Endpoints::AddProfilePermission.build(context)
61
+ when :cancel_signing_profile
62
+ Aws::Signer::Endpoints::CancelSigningProfile.build(context)
63
+ when :describe_signing_job
64
+ Aws::Signer::Endpoints::DescribeSigningJob.build(context)
65
+ when :get_signing_platform
66
+ Aws::Signer::Endpoints::GetSigningPlatform.build(context)
67
+ when :get_signing_profile
68
+ Aws::Signer::Endpoints::GetSigningProfile.build(context)
69
+ when :list_profile_permissions
70
+ Aws::Signer::Endpoints::ListProfilePermissions.build(context)
71
+ when :list_signing_jobs
72
+ Aws::Signer::Endpoints::ListSigningJobs.build(context)
73
+ when :list_signing_platforms
74
+ Aws::Signer::Endpoints::ListSigningPlatforms.build(context)
75
+ when :list_signing_profiles
76
+ Aws::Signer::Endpoints::ListSigningProfiles.build(context)
77
+ when :list_tags_for_resource
78
+ Aws::Signer::Endpoints::ListTagsForResource.build(context)
79
+ when :put_signing_profile
80
+ Aws::Signer::Endpoints::PutSigningProfile.build(context)
81
+ when :remove_profile_permission
82
+ Aws::Signer::Endpoints::RemoveProfilePermission.build(context)
83
+ when :revoke_signature
84
+ Aws::Signer::Endpoints::RevokeSignature.build(context)
85
+ when :revoke_signing_profile
86
+ Aws::Signer::Endpoints::RevokeSigningProfile.build(context)
87
+ when :start_signing_job
88
+ Aws::Signer::Endpoints::StartSigningJob.build(context)
89
+ when :tag_resource
90
+ Aws::Signer::Endpoints::TagResource.build(context)
91
+ when :untag_resource
92
+ Aws::Signer::Endpoints::UntagResource.build(context)
93
+ end
94
+ end
95
+ end
96
+
97
+ def add_handlers(handlers, _config)
98
+ handlers.add(Handler, step: :build, priority: 75)
99
+ end
100
+ end
101
+ end
102
+ end
@@ -27,18 +27,6 @@ module Aws::Signer
27
27
  include Aws::Structure
28
28
  end
29
29
 
30
- # @note When making an API call, you may pass AddProfilePermissionRequest
31
- # data as a hash:
32
- #
33
- # {
34
- # profile_name: "ProfileName", # required
35
- # profile_version: "ProfileVersion",
36
- # action: "String", # required
37
- # principal: "String", # required
38
- # revision_id: "String",
39
- # statement_id: "String", # required
40
- # }
41
- #
42
30
  # @!attribute [rw] profile_name
43
31
  # The human-readable name of the signing profile.
44
32
  # @return [String]
@@ -109,13 +97,6 @@ module Aws::Signer
109
97
  include Aws::Structure
110
98
  end
111
99
 
112
- # @note When making an API call, you may pass CancelSigningProfileRequest
113
- # data as a hash:
114
- #
115
- # {
116
- # profile_name: "ProfileName", # required
117
- # }
118
- #
119
100
  # @!attribute [rw] profile_name
120
101
  # The name of the signing profile to be canceled.
121
102
  # @return [String]
@@ -145,13 +126,6 @@ module Aws::Signer
145
126
  include Aws::Structure
146
127
  end
147
128
 
148
- # @note When making an API call, you may pass DescribeSigningJobRequest
149
- # data as a hash:
150
- #
151
- # {
152
- # job_id: "JobId", # required
153
- # }
154
- #
155
129
  # @!attribute [rw] job_id
156
130
  # The ID of the signing job on input.
157
131
  # @return [String]
@@ -278,16 +252,6 @@ module Aws::Signer
278
252
  # Points to an `S3Destination` object that contains information about
279
253
  # your S3 bucket.
280
254
  #
281
- # @note When making an API call, you may pass Destination
282
- # data as a hash:
283
- #
284
- # {
285
- # s3: {
286
- # bucket_name: "BucketName",
287
- # prefix: "Prefix",
288
- # },
289
- # }
290
- #
291
255
  # @!attribute [rw] s3
292
256
  # The `S3Destination` object.
293
257
  # @return [Types::S3Destination]
@@ -321,13 +285,6 @@ module Aws::Signer
321
285
  include Aws::Structure
322
286
  end
323
287
 
324
- # @note When making an API call, you may pass GetSigningPlatformRequest
325
- # data as a hash:
326
- #
327
- # {
328
- # platform_id: "PlatformId", # required
329
- # }
330
- #
331
288
  # @!attribute [rw] platform_id
332
289
  # The ID of the target signing platform.
333
290
  # @return [String]
@@ -394,14 +351,6 @@ module Aws::Signer
394
351
  include Aws::Structure
395
352
  end
396
353
 
397
- # @note When making an API call, you may pass GetSigningProfileRequest
398
- # data as a hash:
399
- #
400
- # {
401
- # profile_name: "ProfileName", # required
402
- # profile_owner: "AccountId",
403
- # }
404
- #
405
354
  # @!attribute [rw] profile_name
406
355
  # The name of the target signing profile.
407
356
  # @return [String]
@@ -536,14 +485,6 @@ module Aws::Signer
536
485
  include Aws::Structure
537
486
  end
538
487
 
539
- # @note When making an API call, you may pass ListProfilePermissionsRequest
540
- # data as a hash:
541
- #
542
- # {
543
- # profile_name: "ProfileName", # required
544
- # next_token: "String",
545
- # }
546
- #
547
488
  # @!attribute [rw] profile_name
548
489
  # Name of the signing profile containing the cross-account
549
490
  # permissions.
@@ -590,21 +531,6 @@ module Aws::Signer
590
531
  include Aws::Structure
591
532
  end
592
533
 
593
- # @note When making an API call, you may pass ListSigningJobsRequest
594
- # data as a hash:
595
- #
596
- # {
597
- # status: "InProgress", # accepts InProgress, Failed, Succeeded
598
- # platform_id: "PlatformId",
599
- # requested_by: "RequestedBy",
600
- # max_results: 1,
601
- # next_token: "NextToken",
602
- # is_revoked: false,
603
- # signature_expires_before: Time.now,
604
- # signature_expires_after: Time.now,
605
- # job_invoker: "AccountId",
606
- # }
607
- #
608
534
  # @!attribute [rw] status
609
535
  # A status value with which to filter your results.
610
536
  # @return [String]
@@ -685,17 +611,6 @@ module Aws::Signer
685
611
  include Aws::Structure
686
612
  end
687
613
 
688
- # @note When making an API call, you may pass ListSigningPlatformsRequest
689
- # data as a hash:
690
- #
691
- # {
692
- # category: "String",
693
- # partner: "String",
694
- # target: "String",
695
- # max_results: 1,
696
- # next_token: "String",
697
- # }
698
- #
699
614
  # @!attribute [rw] category
700
615
  # The category type of a signing platform.
701
616
  # @return [String]
@@ -748,17 +663,6 @@ module Aws::Signer
748
663
  include Aws::Structure
749
664
  end
750
665
 
751
- # @note When making an API call, you may pass ListSigningProfilesRequest
752
- # data as a hash:
753
- #
754
- # {
755
- # include_canceled: false,
756
- # max_results: 1,
757
- # next_token: "NextToken",
758
- # platform_id: "PlatformId",
759
- # statuses: ["Active"], # accepts Active, Canceled, Revoked
760
- # }
761
- #
762
666
  # @!attribute [rw] include_canceled
763
667
  # Designates whether to include profiles with the status of
764
668
  # `CANCELED`.
@@ -816,13 +720,6 @@ module Aws::Signer
816
720
  include Aws::Structure
817
721
  end
818
722
 
819
- # @note When making an API call, you may pass ListTagsForResourceRequest
820
- # data as a hash:
821
- #
822
- # {
823
- # resource_arn: "String", # required
824
- # }
825
- #
826
723
  # @!attribute [rw] resource_arn
827
724
  # The Amazon Resource Name (ARN) for the signing profile.
828
725
  # @return [String]
@@ -893,34 +790,6 @@ module Aws::Signer
893
790
  include Aws::Structure
894
791
  end
895
792
 
896
- # @note When making an API call, you may pass PutSigningProfileRequest
897
- # data as a hash:
898
- #
899
- # {
900
- # profile_name: "ProfileName", # required
901
- # signing_material: {
902
- # certificate_arn: "CertificateArn", # required
903
- # },
904
- # signature_validity_period: {
905
- # value: 1,
906
- # type: "DAYS", # accepts DAYS, MONTHS, YEARS
907
- # },
908
- # platform_id: "PlatformId", # required
909
- # overrides: {
910
- # signing_configuration: {
911
- # encryption_algorithm: "RSA", # accepts RSA, ECDSA
912
- # hash_algorithm: "SHA1", # accepts SHA1, SHA256
913
- # },
914
- # signing_image_format: "JSON", # accepts JSON, JSONEmbedded, JSONDetached
915
- # },
916
- # signing_parameters: {
917
- # "SigningParameterKey" => "SigningParameterValue",
918
- # },
919
- # tags: {
920
- # "TagKey" => "TagValue",
921
- # },
922
- # }
923
- #
924
793
  # @!attribute [rw] profile_name
925
794
  # The name of the signing profile to be created.
926
795
  # @return [String]
@@ -992,15 +861,6 @@ module Aws::Signer
992
861
  include Aws::Structure
993
862
  end
994
863
 
995
- # @note When making an API call, you may pass RemoveProfilePermissionRequest
996
- # data as a hash:
997
- #
998
- # {
999
- # profile_name: "ProfileName", # required
1000
- # revision_id: "String", # required
1001
- # statement_id: "String", # required
1002
- # }
1003
- #
1004
864
  # @!attribute [rw] profile_name
1005
865
  # A human-readable name for the signing profile with permissions to be
1006
866
  # removed.
@@ -1054,15 +914,6 @@ module Aws::Signer
1054
914
  include Aws::Structure
1055
915
  end
1056
916
 
1057
- # @note When making an API call, you may pass RevokeSignatureRequest
1058
- # data as a hash:
1059
- #
1060
- # {
1061
- # job_id: "JobId", # required
1062
- # job_owner: "AccountId",
1063
- # reason: "RevocationReasonString", # required
1064
- # }
1065
- #
1066
917
  # @!attribute [rw] job_id
1067
918
  # ID of the signing job to be revoked.
1068
919
  # @return [String]
@@ -1085,16 +936,6 @@ module Aws::Signer
1085
936
  include Aws::Structure
1086
937
  end
1087
938
 
1088
- # @note When making an API call, you may pass RevokeSigningProfileRequest
1089
- # data as a hash:
1090
- #
1091
- # {
1092
- # profile_name: "ProfileName", # required
1093
- # profile_version: "ProfileVersion", # required
1094
- # reason: "RevocationReasonString", # required
1095
- # effective_time: Time.now, # required
1096
- # }
1097
- #
1098
939
  # @!attribute [rw] profile_name
1099
940
  # The name of the signing profile to be revoked.
1100
941
  # @return [String]
@@ -1127,14 +968,6 @@ module Aws::Signer
1127
968
  # The name and prefix of the S3 bucket where code signing saves your
1128
969
  # signed objects.
1129
970
  #
1130
- # @note When making an API call, you may pass S3Destination
1131
- # data as a hash:
1132
- #
1133
- # {
1134
- # bucket_name: "BucketName",
1135
- # prefix: "Prefix",
1136
- # }
1137
- #
1138
971
  # @!attribute [rw] bucket_name
1139
972
  # Name of the S3 bucket.
1140
973
  # @return [String]
@@ -1176,15 +1009,6 @@ module Aws::Signer
1176
1009
 
1177
1010
  # Information about the S3 bucket where you saved your unsigned code.
1178
1011
  #
1179
- # @note When making an API call, you may pass S3Source
1180
- # data as a hash:
1181
- #
1182
- # {
1183
- # bucket_name: "BucketName", # required
1184
- # key: "Key", # required
1185
- # version: "Version", # required
1186
- # }
1187
- #
1188
1012
  # @!attribute [rw] bucket_name
1189
1013
  # Name of the S3 bucket.
1190
1014
  # @return [String]
@@ -1226,14 +1050,6 @@ module Aws::Signer
1226
1050
 
1227
1051
  # The validity period for a signing job.
1228
1052
  #
1229
- # @note When making an API call, you may pass SignatureValidityPeriod
1230
- # data as a hash:
1231
- #
1232
- # {
1233
- # value: 1,
1234
- # type: "DAYS", # accepts DAYS, MONTHS, YEARS
1235
- # }
1236
- #
1237
1053
  # @!attribute [rw] value
1238
1054
  # The numerical value of the time unit for signature validity.
1239
1055
  # @return [Integer]
@@ -1290,14 +1106,6 @@ module Aws::Signer
1290
1106
  # A signing configuration that overrides the default encryption or hash
1291
1107
  # algorithm of a signing job.
1292
1108
  #
1293
- # @note When making an API call, you may pass SigningConfigurationOverrides
1294
- # data as a hash:
1295
- #
1296
- # {
1297
- # encryption_algorithm: "RSA", # accepts RSA, ECDSA
1298
- # hash_algorithm: "SHA1", # accepts SHA1, SHA256
1299
- # }
1300
- #
1301
1109
  # @!attribute [rw] encryption_algorithm
1302
1110
  # A specified override of the default encryption algorithm that is
1303
1111
  # used in a code signing job.
@@ -1444,13 +1252,6 @@ module Aws::Signer
1444
1252
 
1445
1253
  # The ACM certificate that is used to sign your code.
1446
1254
  #
1447
- # @note When making an API call, you may pass SigningMaterial
1448
- # data as a hash:
1449
- #
1450
- # {
1451
- # certificate_arn: "CertificateArn", # required
1452
- # }
1453
- #
1454
1255
  # @!attribute [rw] certificate_arn
1455
1256
  # The Amazon Resource Name (ARN) of the certificates that is used to
1456
1257
  # sign your code.
@@ -1525,17 +1326,6 @@ module Aws::Signer
1525
1326
  # Any overrides that are applied to the signing configuration of a code
1526
1327
  # signing platform.
1527
1328
  #
1528
- # @note When making an API call, you may pass SigningPlatformOverrides
1529
- # data as a hash:
1530
- #
1531
- # {
1532
- # signing_configuration: {
1533
- # encryption_algorithm: "RSA", # accepts RSA, ECDSA
1534
- # hash_algorithm: "SHA1", # accepts SHA1, SHA256
1535
- # },
1536
- # signing_image_format: "JSON", # accepts JSON, JSONEmbedded, JSONDetached
1537
- # }
1538
- #
1539
1329
  # @!attribute [rw] signing_configuration
1540
1330
  # A signing configuration that overrides the default encryption or
1541
1331
  # hash algorithm of a signing job.
@@ -1653,17 +1443,6 @@ module Aws::Signer
1653
1443
  # An `S3Source` object that contains information about the S3 bucket
1654
1444
  # where you saved your unsigned code.
1655
1445
  #
1656
- # @note When making an API call, you may pass Source
1657
- # data as a hash:
1658
- #
1659
- # {
1660
- # s3: {
1661
- # bucket_name: "BucketName", # required
1662
- # key: "Key", # required
1663
- # version: "Version", # required
1664
- # },
1665
- # }
1666
- #
1667
1446
  # @!attribute [rw] s3
1668
1447
  # The `S3Source` object.
1669
1448
  # @return [Types::S3Source]
@@ -1676,28 +1455,6 @@ module Aws::Signer
1676
1455
  include Aws::Structure
1677
1456
  end
1678
1457
 
1679
- # @note When making an API call, you may pass StartSigningJobRequest
1680
- # data as a hash:
1681
- #
1682
- # {
1683
- # source: { # required
1684
- # s3: {
1685
- # bucket_name: "BucketName", # required
1686
- # key: "Key", # required
1687
- # version: "Version", # required
1688
- # },
1689
- # },
1690
- # destination: { # required
1691
- # s3: {
1692
- # bucket_name: "BucketName",
1693
- # prefix: "Prefix",
1694
- # },
1695
- # },
1696
- # profile_name: "ProfileName", # required
1697
- # client_request_token: "ClientRequestToken", # required
1698
- # profile_owner: "AccountId",
1699
- # }
1700
- #
1701
1458
  # @!attribute [rw] source
1702
1459
  # The S3 bucket that contains the object to sign or a BLOB that
1703
1460
  # contains your raw code.
@@ -1754,16 +1511,6 @@ module Aws::Signer
1754
1511
  include Aws::Structure
1755
1512
  end
1756
1513
 
1757
- # @note When making an API call, you may pass TagResourceRequest
1758
- # data as a hash:
1759
- #
1760
- # {
1761
- # resource_arn: "String", # required
1762
- # tags: { # required
1763
- # "TagKey" => "TagValue",
1764
- # },
1765
- # }
1766
- #
1767
1514
  # @!attribute [rw] resource_arn
1768
1515
  # The Amazon Resource Name (ARN) for the signing profile.
1769
1516
  # @return [String]
@@ -1823,14 +1570,6 @@ module Aws::Signer
1823
1570
  include Aws::Structure
1824
1571
  end
1825
1572
 
1826
- # @note When making an API call, you may pass UntagResourceRequest
1827
- # data as a hash:
1828
- #
1829
- # {
1830
- # resource_arn: "String", # required
1831
- # tag_keys: ["TagKey"], # required
1832
- # }
1833
- #
1834
1573
  # @!attribute [rw] resource_arn
1835
1574
  # The Amazon Resource Name (ARN) for the signing profile.
1836
1575
  # @return [String]
@@ -13,10 +13,14 @@ require 'aws-sigv4'
13
13
 
14
14
  require_relative 'aws-sdk-signer/types'
15
15
  require_relative 'aws-sdk-signer/client_api'
16
+ require_relative 'aws-sdk-signer/plugins/endpoints.rb'
16
17
  require_relative 'aws-sdk-signer/client'
17
18
  require_relative 'aws-sdk-signer/errors'
18
19
  require_relative 'aws-sdk-signer/waiters'
19
20
  require_relative 'aws-sdk-signer/resource'
21
+ require_relative 'aws-sdk-signer/endpoint_parameters'
22
+ require_relative 'aws-sdk-signer/endpoint_provider'
23
+ require_relative 'aws-sdk-signer/endpoints'
20
24
  require_relative 'aws-sdk-signer/customizations'
21
25
 
22
26
  # This module provides support for AWS Signer. This module is available in the
@@ -49,6 +53,6 @@ require_relative 'aws-sdk-signer/customizations'
49
53
  # @!group service
50
54
  module Aws::Signer
51
55
 
52
- GEM_VERSION = '1.38.0'
56
+ GEM_VERSION = '1.40.0'
53
57
 
54
58
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-signer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.38.0
4
+ version: 1.40.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-24 00:00:00.000000000 Z
11
+ date: 2023-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.127.0
22
+ version: 3.165.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.127.0
32
+ version: 3.165.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -59,7 +59,11 @@ files:
59
59
  - lib/aws-sdk-signer/client.rb
60
60
  - lib/aws-sdk-signer/client_api.rb
61
61
  - lib/aws-sdk-signer/customizations.rb
62
+ - lib/aws-sdk-signer/endpoint_parameters.rb
63
+ - lib/aws-sdk-signer/endpoint_provider.rb
64
+ - lib/aws-sdk-signer/endpoints.rb
62
65
  - lib/aws-sdk-signer/errors.rb
66
+ - lib/aws-sdk-signer/plugins/endpoints.rb
63
67
  - lib/aws-sdk-signer/resource.rb
64
68
  - lib/aws-sdk-signer/types.rb
65
69
  - lib/aws-sdk-signer/waiters.rb