aws-sdk-eventbridge 1.39.0 → 1.41.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 +4 -4
- data/CHANGELOG.md +13 -1
- data/VERSION +1 -1
- data/lib/aws-sdk-eventbridge/client.rb +20 -5
- data/lib/aws-sdk-eventbridge/endpoint_parameters.rb +74 -0
- data/lib/aws-sdk-eventbridge/endpoint_provider.rb +76 -0
- data/lib/aws-sdk-eventbridge/endpoints.rb +855 -0
- data/lib/aws-sdk-eventbridge/plugins/endpoints.rb +180 -0
- data/lib/aws-sdk-eventbridge/types.rb +0 -1557
- data/lib/aws-sdk-eventbridge.rb +5 -1
- metadata +8 -5
- data/lib/aws-sdk-eventbridge/plugins/multi_region_endpoint.rb +0 -75
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9648253d0ce6f24dad21657cea9e57c57142f9e13f560b64d295bc57b58fd338
|
4
|
+
data.tar.gz: 77d15742d7b366b25255f91e54bd0437085f3aec716dee6a808d3d34ed0fe456
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c2c55aba0a797aae8491259e70cc159b42289e19b53d7b3a08d758b799138e4311f0d6501b74a829828bb86699e15c9cf45a46a304b80f83945f75213fae849
|
7
|
+
data.tar.gz: be953b271d462063a3b7d6fa0cc24b34f09764e98cf3c8c726b41cd63c6db6dfb4c669075f721f0f8c7f9e11e6e1cd10b9cf8b3de96364774804f61de3d0d341
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,18 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.41.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.40.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.39.0 (2022-10-19)
|
5
17
|
------------------
|
6
18
|
|
@@ -205,4 +217,4 @@ Unreleased Changes
|
|
205
217
|
1.0.0 (2019-07-11)
|
206
218
|
------------------
|
207
219
|
|
208
|
-
* Feature - Initial release of `aws-sdk-eventbridge`.
|
220
|
+
* Feature - Initial release of `aws-sdk-eventbridge`.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.41.0
|
@@ -30,9 +30,8 @@ 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/
|
33
|
+
require 'aws-sdk-core/plugins/sign.rb'
|
34
34
|
require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
|
35
|
-
require 'aws-sdk-eventbridge/plugins/multi_region_endpoint.rb'
|
36
35
|
|
37
36
|
Aws::Plugins::GlobalConfiguration.add_identifier(:eventbridge)
|
38
37
|
|
@@ -80,9 +79,9 @@ module Aws::EventBridge
|
|
80
79
|
add_plugin(Aws::Plugins::ChecksumAlgorithm)
|
81
80
|
add_plugin(Aws::Plugins::DefaultsMode)
|
82
81
|
add_plugin(Aws::Plugins::RecursionDetection)
|
83
|
-
add_plugin(Aws::Plugins::
|
82
|
+
add_plugin(Aws::Plugins::Sign)
|
84
83
|
add_plugin(Aws::Plugins::Protocols::JsonRpc)
|
85
|
-
add_plugin(Aws::EventBridge::Plugins::
|
84
|
+
add_plugin(Aws::EventBridge::Plugins::Endpoints)
|
86
85
|
|
87
86
|
# @overload initialize(options)
|
88
87
|
# @param [Hash] options
|
@@ -299,6 +298,19 @@ module Aws::EventBridge
|
|
299
298
|
# ** Please note ** When response stubbing is enabled, no HTTP
|
300
299
|
# requests are made, and retries are disabled.
|
301
300
|
#
|
301
|
+
# @option options [Aws::TokenProvider] :token_provider
|
302
|
+
# A Bearer Token Provider. This can be an instance of any one of the
|
303
|
+
# following classes:
|
304
|
+
#
|
305
|
+
# * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
|
306
|
+
# tokens.
|
307
|
+
#
|
308
|
+
# * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
|
309
|
+
# access token generated from `aws login`.
|
310
|
+
#
|
311
|
+
# When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
|
312
|
+
# will be used to search for tokens configured for your profile in shared configuration files.
|
313
|
+
#
|
302
314
|
# @option options [Boolean] :use_dualstack_endpoint
|
303
315
|
# When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
|
304
316
|
# will be used if available.
|
@@ -312,6 +324,9 @@ module Aws::EventBridge
|
|
312
324
|
# When `true`, request parameters are validated before
|
313
325
|
# sending the request.
|
314
326
|
#
|
327
|
+
# @option options [Aws::EventBridge::EndpointProvider] :endpoint_provider
|
328
|
+
# The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::EventBridge::EndpointParameters`
|
329
|
+
#
|
315
330
|
# @option options [URI::HTTP,String] :http_proxy A proxy to send
|
316
331
|
# requests through. Formatted like 'http://proxy.com:123'.
|
317
332
|
#
|
@@ -3719,7 +3734,7 @@ module Aws::EventBridge
|
|
3719
3734
|
params: params,
|
3720
3735
|
config: config)
|
3721
3736
|
context[:gem_name] = 'aws-sdk-eventbridge'
|
3722
|
-
context[:gem_version] = '1.
|
3737
|
+
context[:gem_version] = '1.41.0'
|
3723
3738
|
Seahorse::Client::Request.new(handlers, context)
|
3724
3739
|
end
|
3725
3740
|
|
@@ -0,0 +1,74 @@
|
|
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::EventBridge
|
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
|
+
# @!attribute endpoint_id
|
34
|
+
# Operation parameter for EndpointId
|
35
|
+
#
|
36
|
+
# @return [String]
|
37
|
+
#
|
38
|
+
EndpointParameters = Struct.new(
|
39
|
+
:region,
|
40
|
+
:use_dual_stack,
|
41
|
+
:use_fips,
|
42
|
+
:endpoint,
|
43
|
+
:endpoint_id,
|
44
|
+
) do
|
45
|
+
include Aws::Structure
|
46
|
+
|
47
|
+
# @api private
|
48
|
+
class << self
|
49
|
+
PARAM_MAP = {
|
50
|
+
'Region' => :region,
|
51
|
+
'UseDualStack' => :use_dual_stack,
|
52
|
+
'UseFIPS' => :use_fips,
|
53
|
+
'Endpoint' => :endpoint,
|
54
|
+
'EndpointId' => :endpoint_id,
|
55
|
+
}.freeze
|
56
|
+
end
|
57
|
+
|
58
|
+
def initialize(options = {})
|
59
|
+
self[:region] = options[:region]
|
60
|
+
self[:use_dual_stack] = options[:use_dual_stack]
|
61
|
+
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
62
|
+
if self[:use_dual_stack].nil?
|
63
|
+
raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
|
64
|
+
end
|
65
|
+
self[:use_fips] = options[:use_fips]
|
66
|
+
self[:use_fips] = false if self[:use_fips].nil?
|
67
|
+
if self[:use_fips].nil?
|
68
|
+
raise ArgumentError, "Missing required EndpointParameter: :use_fips"
|
69
|
+
end
|
70
|
+
self[:endpoint] = options[:endpoint]
|
71
|
+
self[:endpoint_id] = options[:endpoint_id]
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
@@ -0,0 +1,76 @@
|
|
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::EventBridge
|
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
|
+
endpoint_id = parameters.endpoint_id
|
18
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
19
|
+
if Aws::Endpoints::Matchers.set?(endpoint_id)
|
20
|
+
if Aws::Endpoints::Matchers.valid_host_label?(endpoint_id, true)
|
21
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, false)
|
22
|
+
if Aws::Endpoints::Matchers.set?(endpoint)
|
23
|
+
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4a", "signingRegionSet"=>["*"], "signingName"=>"events"}]})
|
24
|
+
end
|
25
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
26
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
27
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{endpoint_id}.endpoint.events.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4a", "signingRegionSet"=>["*"], "signingName"=>"events"}]})
|
28
|
+
end
|
29
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
30
|
+
end
|
31
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{endpoint_id}.endpoint.events.#{partition_result['dnsSuffix']}", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4a", "signingRegionSet"=>["*"], "signingName"=>"events"}]})
|
32
|
+
end
|
33
|
+
raise ArgumentError, "Invalid Configuration: FIPS is not supported with EventBridge multi-region endpoints."
|
34
|
+
end
|
35
|
+
raise ArgumentError, "EndpointId must be a valid host label."
|
36
|
+
end
|
37
|
+
if Aws::Endpoints::Matchers.set?(endpoint) && (url = Aws::Endpoints::Matchers.parse_url(endpoint))
|
38
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
39
|
+
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
40
|
+
end
|
41
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
42
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
43
|
+
end
|
44
|
+
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
45
|
+
end
|
46
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
47
|
+
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"))
|
48
|
+
return Aws::Endpoints::Endpoint.new(url: "https://events-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
49
|
+
end
|
50
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
51
|
+
end
|
52
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
53
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
54
|
+
if Aws::Endpoints::Matchers.string_equals?(region, "us-gov-west-1")
|
55
|
+
return Aws::Endpoints::Endpoint.new(url: "https://events.us-gov-west-1.amazonaws.com", headers: {}, properties: {})
|
56
|
+
end
|
57
|
+
if Aws::Endpoints::Matchers.string_equals?(region, "us-gov-east-1")
|
58
|
+
return Aws::Endpoints::Endpoint.new(url: "https://events.us-gov-east-1.amazonaws.com", headers: {}, properties: {})
|
59
|
+
end
|
60
|
+
return Aws::Endpoints::Endpoint.new(url: "https://events-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
61
|
+
end
|
62
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
63
|
+
end
|
64
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
65
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
66
|
+
return Aws::Endpoints::Endpoint.new(url: "https://events.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
67
|
+
end
|
68
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
69
|
+
end
|
70
|
+
return Aws::Endpoints::Endpoint.new(url: "https://events.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
71
|
+
end
|
72
|
+
raise ArgumentError, 'No endpoint could be resolved'
|
73
|
+
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|