aws-sdk-migrationhubconfig 1.29.0 → 1.30.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: ab72934d16fb49a32591faab21bc80f46bbd5a21668afc327552f925092ce163
4
- data.tar.gz: 7e70f21354266c8db37d7ef7a5abeb2a68c2dbf8d58fce3eb38c8680ff417fa2
3
+ metadata.gz: 473ffef5fdd6c7f7abd8caccb374a164f457ff03aa352f363b3723377961709a
4
+ data.tar.gz: be7a23cdedfb5bf91522d7a843e29cedb83c446d1c1f27003ca73880b7f7c27b
5
5
  SHA512:
6
- metadata.gz: 9d5b5538a9d5a754a58eeb6b60aad6677898408e696c672ede4c500bdd980416ed02b98e6cc0161184af6aca651ea4e47e76680caa0f48ebec1c350eb98a4055
7
- data.tar.gz: 6c5d272b2879e35db5f91e424f1358ad82b962d8777446d34bae934e18584b01b7a48d6516abe29aae97709c7f3ba34eb462040e6327fac4e3a5b1cdc22d2026
6
+ metadata.gz: 04ecdf85cb41d377cd7338aac5435908853caf5cf1db31d6eb4640ca68cb1d980a1349fc4825a963556ff201f82d31fde4f2cefb4cc3aeabb68526e5baded61d
7
+ data.tar.gz: 775e006568f4b781910478413244da44e90064e057cf0c3e8a1228549c5896b18ec305a5b4be258c561104d76e8bb8d1681612e65cef709f0dd31c407bc5b190
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.30.0 (2023-10-24)
5
+ ------------------
6
+
7
+ * Feature - This release introduces DeleteHomeRegionControl API that customers can use to delete the Migration Hub Home Region configuration
8
+
4
9
  1.29.0 (2023-09-27)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.29.0
1
+ 1.30.0
@@ -443,6 +443,32 @@ module Aws::MigrationHubConfig
443
443
  req.send_request(options)
444
444
  end
445
445
 
446
+ # This operation deletes the home region configuration for the calling
447
+ # account. The operation does not delete discovery or migration tracking
448
+ # data in the home region.
449
+ #
450
+ # @option params [required, String] :control_id
451
+ # A unique identifier that's generated for each home region control.
452
+ # It's always a string that begins with "hrc-" followed by 12
453
+ # lowercase letters and numbers.
454
+ #
455
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
456
+ #
457
+ # @example Request syntax with placeholder values
458
+ #
459
+ # resp = client.delete_home_region_control({
460
+ # control_id: "ControlId", # required
461
+ # })
462
+ #
463
+ # @see http://docs.aws.amazon.com/goto/WebAPI/migrationhub-config-2019-06-30/DeleteHomeRegionControl AWS API Documentation
464
+ #
465
+ # @overload delete_home_region_control(params = {})
466
+ # @param [Hash] params ({})
467
+ def delete_home_region_control(params = {}, options = {})
468
+ req = build_request(:delete_home_region_control, params)
469
+ req.send_request(options)
470
+ end
471
+
446
472
  # This API permits filtering on the `ControlId` and `HomeRegion` fields.
447
473
  #
448
474
  # @option params [String] :control_id
@@ -541,7 +567,7 @@ module Aws::MigrationHubConfig
541
567
  params: params,
542
568
  config: config)
543
569
  context[:gem_name] = 'aws-sdk-migrationhubconfig'
544
- context[:gem_version] = '1.29.0'
570
+ context[:gem_version] = '1.30.0'
545
571
  Seahorse::Client::Request.new(handlers, context)
546
572
  end
547
573
 
@@ -17,6 +17,8 @@ module Aws::MigrationHubConfig
17
17
  ControlId = Shapes::StringShape.new(name: 'ControlId')
18
18
  CreateHomeRegionControlRequest = Shapes::StructureShape.new(name: 'CreateHomeRegionControlRequest')
19
19
  CreateHomeRegionControlResult = Shapes::StructureShape.new(name: 'CreateHomeRegionControlResult')
20
+ DeleteHomeRegionControlRequest = Shapes::StructureShape.new(name: 'DeleteHomeRegionControlRequest')
21
+ DeleteHomeRegionControlResult = Shapes::StructureShape.new(name: 'DeleteHomeRegionControlResult')
20
22
  DescribeHomeRegionControlsMaxResults = Shapes::IntegerShape.new(name: 'DescribeHomeRegionControlsMaxResults')
21
23
  DescribeHomeRegionControlsRequest = Shapes::StructureShape.new(name: 'DescribeHomeRegionControlsRequest')
22
24
  DescribeHomeRegionControlsResult = Shapes::StructureShape.new(name: 'DescribeHomeRegionControlsResult')
@@ -50,6 +52,11 @@ module Aws::MigrationHubConfig
50
52
  CreateHomeRegionControlResult.add_member(:home_region_control, Shapes::ShapeRef.new(shape: HomeRegionControl, location_name: "HomeRegionControl"))
51
53
  CreateHomeRegionControlResult.struct_class = Types::CreateHomeRegionControlResult
52
54
 
55
+ DeleteHomeRegionControlRequest.add_member(:control_id, Shapes::ShapeRef.new(shape: ControlId, required: true, location_name: "ControlId"))
56
+ DeleteHomeRegionControlRequest.struct_class = Types::DeleteHomeRegionControlRequest
57
+
58
+ DeleteHomeRegionControlResult.struct_class = Types::DeleteHomeRegionControlResult
59
+
53
60
  DescribeHomeRegionControlsRequest.add_member(:control_id, Shapes::ShapeRef.new(shape: ControlId, location_name: "ControlId"))
54
61
  DescribeHomeRegionControlsRequest.add_member(:home_region, Shapes::ShapeRef.new(shape: HomeRegion, location_name: "HomeRegion"))
55
62
  DescribeHomeRegionControlsRequest.add_member(:target, Shapes::ShapeRef.new(shape: Target, location_name: "Target"))
@@ -127,6 +134,19 @@ module Aws::MigrationHubConfig
127
134
  o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
128
135
  end)
129
136
 
137
+ api.add_operation(:delete_home_region_control, Seahorse::Model::Operation.new.tap do |o|
138
+ o.name = "DeleteHomeRegionControl"
139
+ o.http_method = "POST"
140
+ o.http_request_uri = "/"
141
+ o.input = Shapes::ShapeRef.new(shape: DeleteHomeRegionControlRequest)
142
+ o.output = Shapes::ShapeRef.new(shape: DeleteHomeRegionControlResult)
143
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
144
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
145
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
146
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
147
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
148
+ end)
149
+
130
150
  api.add_operation(:describe_home_region_controls, Seahorse::Model::Operation.new.tap do |o|
131
151
  o.name = "DescribeHomeRegionControls"
132
152
  o.http_method = "POST"
@@ -32,7 +32,7 @@ module Aws::MigrationHubConfig
32
32
  raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
33
33
  end
34
34
  if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
35
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
+ if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
36
36
  return Aws::Endpoints::Endpoint.new(url: "https://migrationhub-config-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
37
37
  end
38
38
  raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
@@ -26,6 +26,20 @@ module Aws::MigrationHubConfig
26
26
  end
27
27
  end
28
28
 
29
+ class DeleteHomeRegionControl
30
+ def self.build(context)
31
+ unless context.config.regional_endpoint
32
+ endpoint = context.config.endpoint.to_s
33
+ end
34
+ Aws::MigrationHubConfig::EndpointParameters.new(
35
+ region: context.config.region,
36
+ use_dual_stack: context.config.use_dualstack_endpoint,
37
+ use_fips: context.config.use_fips_endpoint,
38
+ endpoint: endpoint,
39
+ )
40
+ end
41
+ end
42
+
29
43
  class DescribeHomeRegionControls
30
44
  def self.build(context)
31
45
  unless context.config.regional_endpoint
@@ -58,6 +58,8 @@ module Aws::MigrationHubConfig
58
58
  case context.operation_name
59
59
  when :create_home_region_control
60
60
  Aws::MigrationHubConfig::Endpoints::CreateHomeRegionControl.build(context)
61
+ when :delete_home_region_control
62
+ Aws::MigrationHubConfig::Endpoints::DeleteHomeRegionControl.build(context)
61
63
  when :describe_home_region_controls
62
64
  Aws::MigrationHubConfig::Endpoints::DescribeHomeRegionControls.build(context)
63
65
  when :get_home_region
@@ -60,6 +60,24 @@ module Aws::MigrationHubConfig
60
60
  include Aws::Structure
61
61
  end
62
62
 
63
+ # @!attribute [rw] control_id
64
+ # A unique identifier that's generated for each home region control.
65
+ # It's always a string that begins with "hrc-" followed by 12
66
+ # lowercase letters and numbers.
67
+ # @return [String]
68
+ #
69
+ # @see http://docs.aws.amazon.com/goto/WebAPI/migrationhub-config-2019-06-30/DeleteHomeRegionControlRequest AWS API Documentation
70
+ #
71
+ class DeleteHomeRegionControlRequest < Struct.new(
72
+ :control_id)
73
+ SENSITIVE = []
74
+ include Aws::Structure
75
+ end
76
+
77
+ # @see http://docs.aws.amazon.com/goto/WebAPI/migrationhub-config-2019-06-30/DeleteHomeRegionControlResult AWS API Documentation
78
+ #
79
+ class DeleteHomeRegionControlResult < Aws::EmptyStructure; end
80
+
63
81
  # @!attribute [rw] control_id
64
82
  # The `ControlID` is a unique identifier string of your
65
83
  # `HomeRegionControl` object.
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-migrationhubconfig/customizations'
52
52
  # @!group service
53
53
  module Aws::MigrationHubConfig
54
54
 
55
- GEM_VERSION = '1.29.0'
55
+ GEM_VERSION = '1.30.0'
56
56
 
57
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-migrationhubconfig
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.29.0
4
+ version: 1.30.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: 2023-09-27 00:00:00.000000000 Z
11
+ date: 2023-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core