aws-sdk-pipes 1.0.0 → 1.1.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: 963ecd0cfc5d55fea2dc10ea671273ff5a2875080124a823c6783e83af56b073
4
- data.tar.gz: 19bed8abea5281767666b9fe35d12bb5b8e99dfa4b120ef997a1d97b3720c13d
3
+ metadata.gz: 84d5f67a0616234d47e6664e00c544385f1b0a7df8e5d8c431ab14fc9f6d99e7
4
+ data.tar.gz: 12a2752deaf98a9e4acf95e5af4f8c852610f34dfefba8270bd37d9f1d93382a
5
5
  SHA512:
6
- metadata.gz: d51eb8db62513e60d593083462ba6ab51a72b483e96d89d97609179a85768e3ab509e765cec8c9d12e22a81ed6b40b850698f972a3d20f7270c2cd3c7975615e
7
- data.tar.gz: c75435a9e3e3ba6124ba623409a1ee919ef100d2806bcde862fb0d42d99d45608720ec5a277254f034ec0d16c8ee77cdea12375af4ca5395ba88a246b4f7aeba
6
+ metadata.gz: 886bbec72043a7ed4bff2e1f23be5d8212d329ca26fc59a139c5a73e8abf619d22413b02dee1740b547af4eaa003f263d9c617c0e0e581bada5a21262f7dc28d
7
+ data.tar.gz: d3691d04b2b908c87cfc6f511835c19f70289272ed0a664b5183e276794eac354ad456ce5fa9d7ca7db041d775bf6bf9b223d919456f33c705ac4a657a7354f2
data/CHANGELOG.md CHANGED
@@ -1,6 +1,13 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.1.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
+
4
11
  1.0.0 (2022-12-01)
5
12
  ------------------
6
13
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.1.0
@@ -1578,7 +1578,7 @@ module Aws::Pipes
1578
1578
  params: params,
1579
1579
  config: config)
1580
1580
  context[:gem_name] = 'aws-sdk-pipes'
1581
- context[:gem_version] = '1.0.0'
1581
+ context[:gem_version] = '1.1.0'
1582
1582
  Seahorse::Client::Request.new(handlers, context)
1583
1583
  end
1584
1584
 
@@ -9,102 +9,43 @@
9
9
 
10
10
  module Aws::Pipes
11
11
  class EndpointProvider
12
- def initialize(rule_set = nil)
13
- @@rule_set ||= begin
14
- endpoint_rules = Aws::Json.load(Base64.decode64(RULES))
15
- Aws::Endpoints::RuleSet.new(
16
- version: endpoint_rules['version'],
17
- service_id: endpoint_rules['serviceId'],
18
- parameters: endpoint_rules['parameters'],
19
- rules: endpoint_rules['rules']
20
- )
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://pipes-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://pipes-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://pipes.#{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://pipes.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
21
46
  end
22
- @provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
23
- end
47
+ raise ArgumentError, 'No endpoint could be resolved'
24
48
 
25
- def resolve_endpoint(parameters)
26
- @provider.resolve_endpoint(parameters)
27
49
  end
28
-
29
- # @api private
30
- RULES = <<-JSON
31
- eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
32
- bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOnRydWUsImRvY3VtZW50
33
- YXRpb24iOiJUaGUgQVdTIHJlZ2lvbiB1c2VkIHRvIGRpc3BhdGNoIHRoZSBy
34
- ZXF1ZXN0LiIsInR5cGUiOiJTdHJpbmcifSwiVXNlRHVhbFN0YWNrIjp7ImJ1
35
- aWx0SW4iOiJBV1M6OlVzZUR1YWxTdGFjayIsInJlcXVpcmVkIjp0cnVlLCJk
36
- ZWZhdWx0Ij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vdCBzdXBwb3J0IER1
103
- YWxTdGFjayIsInR5cGUiOiJlcnJvciJ9XX0seyJjb25kaXRpb25zIjpbXSwi
104
- ZW5kcG9pbnQiOnsidXJsIjoiaHR0cHM6Ly9waXBlcy57UmVnaW9ufS57UGFy
105
- dGl0aW9uUmVzdWx0I2Ruc1N1ZmZpeH0iLCJwcm9wZXJ0aWVzIjp7fSwiaGVh
106
- ZGVycyI6e319LCJ0eXBlIjoiZW5kcG9pbnQifV19XX0=
107
-
108
- JSON
109
50
  end
110
51
  end
@@ -1147,6 +1147,10 @@ module Aws::Pipes
1147
1147
 
1148
1148
  # The Secrets Manager secret that stores your broker credentials.
1149
1149
  #
1150
+ # @note MQBrokerAccessCredentials is a union - when making an API calls you must set exactly one of the members.
1151
+ #
1152
+ # @note MQBrokerAccessCredentials is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of MQBrokerAccessCredentials corresponding to the set member.
1153
+ #
1150
1154
  # @!attribute [rw] basic_auth
1151
1155
  # The ARN of the Secrets Manager secret.
1152
1156
  # @return [String]
@@ -1166,6 +1170,10 @@ module Aws::Pipes
1166
1170
 
1167
1171
  # The Secrets Manager secret that stores your stream credentials.
1168
1172
  #
1173
+ # @note MSKAccessCredentials is a union - when making an API calls you must set exactly one of the members.
1174
+ #
1175
+ # @note MSKAccessCredentials is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of MSKAccessCredentials corresponding to the set member.
1176
+ #
1169
1177
  # @!attribute [rw] client_certificate_tls_auth
1170
1178
  # The ARN of the Secrets Manager secret.
1171
1179
  # @return [String]
@@ -2328,6 +2336,10 @@ module Aws::Pipes
2328
2336
 
2329
2337
  # The Secrets Manager secret that stores your stream credentials.
2330
2338
  #
2339
+ # @note SelfManagedKafkaAccessConfigurationCredentials is a union - when making an API calls you must set exactly one of the members.
2340
+ #
2341
+ # @note SelfManagedKafkaAccessConfigurationCredentials is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of SelfManagedKafkaAccessConfigurationCredentials corresponding to the set member.
2342
+ #
2331
2343
  # @!attribute [rw] basic_auth
2332
2344
  # The ARN of the Secrets Manager secret.
2333
2345
  # @return [String]
data/lib/aws-sdk-pipes.rb CHANGED
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-pipes/customizations'
52
52
  # @!group service
53
53
  module Aws::Pipes
54
54
 
55
- GEM_VERSION = '1.0.0'
55
+ GEM_VERSION = '1.1.0'
56
56
 
57
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-pipes
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.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-12-01 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