aws-sdk-supportapp 1.2.0 → 1.4.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4ef6b9825c427b008a8e6c43308a483ab422118ef5dab4be9d0d8aa913313697
4
- data.tar.gz: 4338bc563f239a09bb4cac2a169c061a905c909403fed31c681e394660604e2d
3
+ metadata.gz: 98d3316a71992e07413c72048ed20806159ef2d254281faa0493c10e8e62febe
4
+ data.tar.gz: 8ef7ae201483858a8d1bca86b5447c36dc7ab390e93ea9b497a8133b0e98b0eb
5
5
  SHA512:
6
- metadata.gz: fe2b3fbc8192664baef26ad75d55c01bfd029fdca4e26772a5547352e85dfd1a19bc2282772cee97709714e88cd217b69b8848505914cf573d7202481351313a
7
- data.tar.gz: e343cbf5d43b74b3221c648ecf31591e9bf2c351f9510e9e8350128fa0e998cec127ddb3b166853c20bab4641f47503249804f5b239d143c9e6363c48da007d0
6
+ metadata.gz: 4480b2796656d2d19610abf8eff5bcb9fefd6ae2139f79f4b7816924479dbcfc2bbea2711b39cf362d157edd276cd7db929aa8c3c0db9d532459b2b1ee31b63a
7
+ data.tar.gz: 6d1e59779b12ec53182f26f5d79d2d134ab5e3068c58a94c04b816b944b4a79631702401297bf14ba3f69807e4e48f7248cd5c0fb1e5f1aedbbc56c5ab529da7
data/CHANGELOG.md CHANGED
@@ -1,6 +1,18 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.4.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.3.0 (2022-10-28)
12
+ ------------------
13
+
14
+ * Feature - Fix incorrect endpoint-prefix in endpoint ruleset.
15
+
4
16
  1.2.0 (2022-10-25)
5
17
  ------------------
6
18
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.0
1
+ 1.4.0
@@ -870,7 +870,7 @@ module Aws::SupportApp
870
870
  params: params,
871
871
  config: config)
872
872
  context[:gem_name] = 'aws-sdk-supportapp'
873
- context[:gem_version] = '1.2.0'
873
+ context[:gem_version] = '1.4.0'
874
874
  Seahorse::Client::Request.new(handlers, context)
875
875
  end
876
876
 
@@ -50,9 +50,6 @@ module Aws::SupportApp
50
50
 
51
51
  def initialize(options = {})
52
52
  self[:region] = options[:region]
53
- if self[:region].nil?
54
- raise ArgumentError, "Missing required EndpointParameter: :region"
55
- end
56
53
  self[:use_dual_stack] = options[:use_dual_stack]
57
54
  self[:use_dual_stack] = false if self[:use_dual_stack].nil?
58
55
  if self[:use_dual_stack].nil?
@@ -9,103 +9,43 @@
9
9
 
10
10
  module Aws::SupportApp
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://supportapp-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://supportapp-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://supportapp.#{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://supportapp.#{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
- eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW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JydWxl
98
- cyI6W3siY29uZGl0aW9ucyI6W10sImVuZHBvaW50Ijp7InVybCI6Imh0dHBz
99
- Oi8vc3VwcG9ydC1hcHAue1JlZ2lvbn0ue1BhcnRpdGlvblJlc3VsdCNkdWFs
100
- U3RhY2tEbnNTdWZmaXh9IiwicHJvcGVydGllcyI6e30sImhlYWRlcnMiOnt9
101
- fSwidHlwZSI6ImVuZHBvaW50In1dfSx7ImNvbmRpdGlvbnMiOltdLCJlcnJv
102
- ciI6IkR1YWxTdGFjayBpcyBlbmFibGVkIGJ1dCB0aGlzIHBhcnRpdGlvbiBk
103
- b2VzIG5vdCBzdXBwb3J0IER1YWxTdGFjayIsInR5cGUiOiJlcnJvciJ9XX0s
104
- eyJjb25kaXRpb25zIjpbXSwiZW5kcG9pbnQiOnsidXJsIjoiaHR0cHM6Ly9z
105
- dXBwb3J0LWFwcC57UmVnaW9ufS57UGFydGl0aW9uUmVzdWx0I2Ruc1N1ZmZp
106
- eH0iLCJwcm9wZXJ0aWVzIjp7fSwiaGVhZGVycyI6e319LCJ0eXBlIjoiZW5k
107
- cG9pbnQifV19XX0=
108
-
109
- JSON
110
50
  end
111
51
  end
@@ -55,20 +55,6 @@ module Aws::SupportApp
55
55
  include Aws::Structure
56
56
  end
57
57
 
58
- # @note When making an API call, you may pass CreateSlackChannelConfigurationRequest
59
- # data as a hash:
60
- #
61
- # {
62
- # channel_id: "channelId", # required
63
- # channel_name: "channelName",
64
- # channel_role_arn: "roleArn", # required
65
- # notify_on_add_correspondence_to_case: false,
66
- # notify_on_case_severity: "none", # required, accepts none, all, high
67
- # notify_on_create_or_reopen_case: false,
68
- # notify_on_resolve_case: false,
69
- # team_id: "teamId", # required
70
- # }
71
- #
72
58
  # @!attribute [rw] channel_id
73
59
  # The channel ID in Slack. This ID identifies a channel within a Slack
74
60
  # workspace.
@@ -166,14 +152,6 @@ module Aws::SupportApp
166
152
  #
167
153
  class DeleteAccountAliasResult < Aws::EmptyStructure; end
168
154
 
169
- # @note When making an API call, you may pass DeleteSlackChannelConfigurationRequest
170
- # data as a hash:
171
- #
172
- # {
173
- # channel_id: "channelId", # required
174
- # team_id: "teamId", # required
175
- # }
176
- #
177
155
  # @!attribute [rw] channel_id
178
156
  # The channel ID in Slack. This ID identifies a channel within a Slack
179
157
  # workspace.
@@ -197,13 +175,6 @@ module Aws::SupportApp
197
175
  #
198
176
  class DeleteSlackChannelConfigurationResult < Aws::EmptyStructure; end
199
177
 
200
- # @note When making an API call, you may pass DeleteSlackWorkspaceConfigurationRequest
201
- # data as a hash:
202
- #
203
- # {
204
- # team_id: "teamId", # required
205
- # }
206
- #
207
178
  # @!attribute [rw] team_id
208
179
  # The team ID in Slack. This ID uniquely identifies a Slack workspace,
209
180
  # such as `T012ABCDEFG`.
@@ -253,13 +224,6 @@ module Aws::SupportApp
253
224
  include Aws::Structure
254
225
  end
255
226
 
256
- # @note When making an API call, you may pass ListSlackChannelConfigurationsRequest
257
- # data as a hash:
258
- #
259
- # {
260
- # next_token: "paginationToken",
261
- # }
262
- #
263
227
  # @!attribute [rw] next_token
264
228
  # If the results of a search are large, the API only returns a portion
265
229
  # of the results and includes a `nextToken` pagination token in the
@@ -295,13 +259,6 @@ module Aws::SupportApp
295
259
  include Aws::Structure
296
260
  end
297
261
 
298
- # @note When making an API call, you may pass ListSlackWorkspaceConfigurationsRequest
299
- # data as a hash:
300
- #
301
- # {
302
- # next_token: "paginationToken",
303
- # }
304
- #
305
262
  # @!attribute [rw] next_token
306
263
  # If the results of a search are large, the API only returns a portion
307
264
  # of the results and includes a `nextToken` pagination token in the
@@ -337,13 +294,6 @@ module Aws::SupportApp
337
294
  include Aws::Structure
338
295
  end
339
296
 
340
- # @note When making an API call, you may pass PutAccountAliasRequest
341
- # data as a hash:
342
- #
343
- # {
344
- # account_alias: "awsAccountAlias", # required
345
- # }
346
- #
347
297
  # @!attribute [rw] account_alias
348
298
  # An alias or short name for an Amazon Web Services account.
349
299
  # @return [String]
@@ -360,13 +310,6 @@ module Aws::SupportApp
360
310
  #
361
311
  class PutAccountAliasResult < Aws::EmptyStructure; end
362
312
 
363
- # @note When making an API call, you may pass RegisterSlackWorkspaceForOrganizationRequest
364
- # data as a hash:
365
- #
366
- # {
367
- # team_id: "teamId", # required
368
- # }
369
- #
370
313
  # @!attribute [rw] team_id
371
314
  # The team ID in Slack. This ID uniquely identifies a Slack workspace,
372
315
  # such as `T012ABCDEFG`. Specify the Slack workspace that you want to
@@ -526,20 +469,6 @@ module Aws::SupportApp
526
469
  include Aws::Structure
527
470
  end
528
471
 
529
- # @note When making an API call, you may pass UpdateSlackChannelConfigurationRequest
530
- # data as a hash:
531
- #
532
- # {
533
- # channel_id: "channelId", # required
534
- # channel_name: "channelName",
535
- # channel_role_arn: "roleArn",
536
- # notify_on_add_correspondence_to_case: false,
537
- # notify_on_case_severity: "none", # accepts none, all, high
538
- # notify_on_create_or_reopen_case: false,
539
- # notify_on_resolve_case: false,
540
- # team_id: "teamId", # required
541
- # }
542
- #
543
472
  # @!attribute [rw] channel_id
544
473
  # The channel ID in Slack. This ID identifies a channel within a Slack
545
474
  # workspace.
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-supportapp/customizations'
52
52
  # @!group service
53
53
  module Aws::SupportApp
54
54
 
55
- GEM_VERSION = '1.2.0'
55
+ GEM_VERSION = '1.4.0'
56
56
 
57
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-supportapp
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.4.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-10-25 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