aws-sdk-migrationhubrefactorspaces 1.9.0 → 1.11.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: '02739ae09b62424c7ee99f583b280073e481c78686b6c0b94cd1e8bb5e01de24'
4
- data.tar.gz: '096e45a1a0cfb39001f679a2690e953b1ee56a838d6aec28a1582e16d45ab4c5'
3
+ metadata.gz: cc18d710ef9cc0a460878db5bfa66c04e9f70bc926c46ec8883177c90d8de32a
4
+ data.tar.gz: 83190ec30f992ca96b71ec3759ffe25760a4b70f9cd030f3daaac8027e19e789
5
5
  SHA512:
6
- metadata.gz: 4b06b0feb6eb636919c1fe672f9fc8502f165e8f08d7267d35e3e42030f47692a14dee92cb524e3eef7059e1a87e2fd9ef45d37e8b7f192aba2edc8e6c4f179b
7
- data.tar.gz: f71ba195dc8b79ec1235cc044d7df8102ef09db9bded2d99d55773cdd1c2f63678430b787e82afd6ac5997d93fae917e9e2df75961cb22f11338764aa850cfa9
6
+ metadata.gz: 11db53b35abd93924b44e438edb4151abb0f41090f08572572e0d6f7c003ad1baad3b4aaff383ca9469f2065981c1dccdec77a0375cc2a6b1ae53f1f0d8dc543
7
+ data.tar.gz: 24876314599149cb4a265c896f467964b21d83b3c3464aa4bcde4d3158379d39c0ea0299a7d3ce6955f345efb93a1fb5b7082b89a74d8dc89ccd551395563d6c
data/CHANGELOG.md CHANGED
@@ -1,6 +1,18 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.11.0 (2023-02-09)
5
+ ------------------
6
+
7
+ * Feature - This release adds support for creating environments with a network fabric type of NONE
8
+
9
+ 1.10.0 (2023-01-18)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
14
+ * Issue - Replace runtime endpoint resolution approach with generated ruby code.
15
+
4
16
  1.9.0 (2022-12-12)
5
17
  ------------------
6
18
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.9.0
1
+ 1.11.0
@@ -469,8 +469,11 @@ module Aws::MigrationHubRefactorSpaces
469
469
  # environment. They are referred to as the *environment owner*. The
470
470
  # environment owner has cross-account visibility and control of Refactor
471
471
  # Spaces resources that are added to the environment by other accounts
472
- # that the environment is shared with. When creating an environment,
473
- # Refactor Spaces provisions a transit gateway in your account.
472
+ # that the environment is shared with.
473
+ #
474
+ # When creating an environment with a network fabric type of
475
+ # `TRANSIT_GATEWAY`, Refactor Spaces provisions a transit gateway in
476
+ # your account.
474
477
  #
475
478
  # @option params [String] :client_token
476
479
  # A unique, case-sensitive identifier that you provide to ensure the
@@ -512,7 +515,7 @@ module Aws::MigrationHubRefactorSpaces
512
515
  # client_token: "ClientToken",
513
516
  # description: "Description",
514
517
  # name: "EnvironmentName", # required
515
- # network_fabric_type: "TRANSIT_GATEWAY", # required, accepts TRANSIT_GATEWAY
518
+ # network_fabric_type: "TRANSIT_GATEWAY", # required, accepts TRANSIT_GATEWAY, NONE
516
519
  # tags: {
517
520
  # "TagMapKeyString" => "TagMapValueString",
518
521
  # },
@@ -526,7 +529,7 @@ module Aws::MigrationHubRefactorSpaces
526
529
  # resp.environment_id #=> String
527
530
  # resp.last_updated_time #=> Time
528
531
  # resp.name #=> String
529
- # resp.network_fabric_type #=> String, one of "TRANSIT_GATEWAY"
532
+ # resp.network_fabric_type #=> String, one of "TRANSIT_GATEWAY", "NONE"
530
533
  # resp.owner_account_id #=> String
531
534
  # resp.state #=> String, one of "CREATING", "ACTIVE", "DELETING", "FAILED"
532
535
  # resp.tags #=> Hash
@@ -1154,7 +1157,7 @@ module Aws::MigrationHubRefactorSpaces
1154
1157
  # resp.error.resource_type #=> String, one of "ENVIRONMENT", "APPLICATION", "ROUTE", "SERVICE", "TRANSIT_GATEWAY", "TRANSIT_GATEWAY_ATTACHMENT", "API_GATEWAY", "NLB", "TARGET_GROUP", "LOAD_BALANCER_LISTENER", "VPC_LINK", "LAMBDA", "VPC", "SUBNET", "ROUTE_TABLE", "SECURITY_GROUP", "VPC_ENDPOINT_SERVICE_CONFIGURATION", "RESOURCE_SHARE", "IAM_ROLE"
1155
1158
  # resp.last_updated_time #=> Time
1156
1159
  # resp.name #=> String
1157
- # resp.network_fabric_type #=> String, one of "TRANSIT_GATEWAY"
1160
+ # resp.network_fabric_type #=> String, one of "TRANSIT_GATEWAY", "NONE"
1158
1161
  # resp.owner_account_id #=> String
1159
1162
  # resp.state #=> String, one of "CREATING", "ACTIVE", "DELETING", "FAILED"
1160
1163
  # resp.tags #=> Hash
@@ -1515,7 +1518,7 @@ module Aws::MigrationHubRefactorSpaces
1515
1518
  # resp.environment_summary_list[0].error.resource_type #=> String, one of "ENVIRONMENT", "APPLICATION", "ROUTE", "SERVICE", "TRANSIT_GATEWAY", "TRANSIT_GATEWAY_ATTACHMENT", "API_GATEWAY", "NLB", "TARGET_GROUP", "LOAD_BALANCER_LISTENER", "VPC_LINK", "LAMBDA", "VPC", "SUBNET", "ROUTE_TABLE", "SECURITY_GROUP", "VPC_ENDPOINT_SERVICE_CONFIGURATION", "RESOURCE_SHARE", "IAM_ROLE"
1516
1519
  # resp.environment_summary_list[0].last_updated_time #=> Time
1517
1520
  # resp.environment_summary_list[0].name #=> String
1518
- # resp.environment_summary_list[0].network_fabric_type #=> String, one of "TRANSIT_GATEWAY"
1521
+ # resp.environment_summary_list[0].network_fabric_type #=> String, one of "TRANSIT_GATEWAY", "NONE"
1519
1522
  # resp.environment_summary_list[0].owner_account_id #=> String
1520
1523
  # resp.environment_summary_list[0].state #=> String, one of "CREATING", "ACTIVE", "DELETING", "FAILED"
1521
1524
  # resp.environment_summary_list[0].tags #=> Hash
@@ -1871,7 +1874,7 @@ module Aws::MigrationHubRefactorSpaces
1871
1874
  params: params,
1872
1875
  config: config)
1873
1876
  context[:gem_name] = 'aws-sdk-migrationhubrefactorspaces'
1874
- context[:gem_version] = '1.9.0'
1877
+ context[:gem_version] = '1.11.0'
1875
1878
  Seahorse::Client::Request.new(handlers, context)
1876
1879
  end
1877
1880
 
@@ -50,6 +50,9 @@ module Aws::MigrationHubRefactorSpaces
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
53
56
  self[:use_dual_stack] = options[:use_dual_stack]
54
57
  self[:use_dual_stack] = false if self[:use_dual_stack].nil?
55
58
  if self[:use_dual_stack].nil?
@@ -9,103 +9,43 @@
9
9
 
10
10
  module Aws::MigrationHubRefactorSpaces
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)
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://refactor-spaces-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://refactor-spaces-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://refactor-spaces.#{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://refactor-spaces.#{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
- cmVxdWVzdC4iLCJ0eXBlIjo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SIsInByb3BlcnRpZXMiOnt9
101
- LCJoZWFkZXJzIjp7fX0sInR5cGUiOiJlbmRwb2ludCJ9XX0seyJjb25kaXRp
102
- b25zIjpbXSwiZXJyb3IiOiJEdWFsU3RhY2sgaXMgZW5hYmxlZCBidXQgdGhp
103
- cyBwYXJ0aXRpb24gZG9lcyBub3Qgc3VwcG9ydCBEdWFsU3RhY2siLCJ0eXBl
104
- IjoiZXJyb3IifV19LHsiY29uZGl0aW9ucyI6W10sImVuZHBvaW50Ijp7InVy
105
- bCI6Imh0dHBzOi8vcmVmYWN0b3Itc3BhY2VzLntSZWdpb259LntQYXJ0aXRp
106
- b25SZXN1bHQjZG5zU3VmZml4fSIsInByb3BlcnRpZXMiOnt9LCJoZWFkZXJz
107
- Ijp7fX0sInR5cGUiOiJlbmRwb2ludCJ9XX1dfQ==
108
-
109
- JSON
110
50
  end
111
51
  end
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-migrationhubrefactorspaces/customizations'
52
52
  # @!group service
53
53
  module Aws::MigrationHubRefactorSpaces
54
54
 
55
- GEM_VERSION = '1.9.0'
55
+ GEM_VERSION = '1.11.0'
56
56
 
57
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-migrationhubrefactorspaces
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.0
4
+ version: 1.11.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-12 00:00:00.000000000 Z
11
+ date: 2023-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core