aws-sdk-supportapp 1.3.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: 0eb5f25948b02f81d3acd48f55ee13e25e5fe66ae7af5f0da8ed1c605fb6ca5e
4
- data.tar.gz: c8c54dd864b3599f1196273ca22d9826f3cf94cf64dce85678d1cab91be053de
3
+ metadata.gz: 98d3316a71992e07413c72048ed20806159ef2d254281faa0493c10e8e62febe
4
+ data.tar.gz: 8ef7ae201483858a8d1bca86b5447c36dc7ab390e93ea9b497a8133b0e98b0eb
5
5
  SHA512:
6
- metadata.gz: dd3df5619836647fb307f20d3367af417321213ae36e7fc7b8506b037e2a2b9f2bd50b7bc397231a6863835e3347916dcc77cef3079d884440779b38767cd1a7
7
- data.tar.gz: 355934a09069e74cada1c30566e11814c54c0d7faf9bbc4f9ece2602fcdb4fc2ff1611fa5a66b9bcbc23ff2493e2c212d40e4113a70c6f5f1e8b215bf063e080
6
+ metadata.gz: 4480b2796656d2d19610abf8eff5bcb9fefd6ae2139f79f4b7816924479dbcfc2bbea2711b39cf362d157edd276cd7db929aa8c3c0db9d532459b2b1ee31b63a
7
+ data.tar.gz: 6d1e59779b12ec53182f26f5d79d2d134ab5e3068c58a94c04b816b944b4a79631702401297bf14ba3f69807e4e48f7248cd5c0fb1e5f1aedbbc56c5ab529da7
data/CHANGELOG.md CHANGED
@@ -1,6 +1,13 @@
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
+
4
11
  1.3.0 (2022-10-28)
5
12
  ------------------
6
13
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.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.3.0'
873
+ context[:gem_version] = '1.4.0'
874
874
  Seahorse::Client::Request.new(handlers, context)
875
875
  end
876
876
 
@@ -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
- eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
32
- bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOmZhbHNlLCJkb2N1bWVu
33
- dGF0aW9uIjoiVGhlIEFXUyByZWdpb24gdXNlZCB0byBkaXNwYXRjaCB0aGUg
34
- cmVxdWVzdC4iLCJ0eXBlIjoiU3RyaW5nIn0sIlVzZUR1YWxTdGFjayI6eyJi
35
- dWlsdEluIjoiQVdTOjpVc2VEd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yb3Ii
102
- OiJEdWFsU3RhY2sgaXMgZW5hYmxlZCBidXQgdGhpcyBwYXJ0aXRpb24gZG9l
103
- cyBub3Qgc3VwcG9ydCBEdWFsU3RhY2siLCJ0eXBlIjoiZXJyb3IifV19LHsi
104
- Y29uZGl0aW9ucyI6W10sImVuZHBvaW50Ijp7InVybCI6Imh0dHBzOi8vc3Vw
105
- cG9ydGFwcC57UmVnaW9ufS57UGFydGl0aW9uUmVzdWx0I2Ruc1N1ZmZpeH0i
106
- LCJwcm9wZXJ0aWVzIjp7fSwiaGVhZGVycyI6e319LCJ0eXBlIjoiZW5kcG9p
107
- bnQifV19XX0=
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.3.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.3.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-28 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