aws-sdk-controltower 1.34.0 → 1.35.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: '00591f69d511d4c509655f227935c9befdd02a2ef803defb989302fa4af0a93f'
4
- data.tar.gz: 827d8eb58414521077c29d9896a5c5818ad4078f2a0584580c974d9cc55f6ba0
3
+ metadata.gz: d9ff1de29f393987010b2669d7f91e6e72e0d41d31bb28ca96621d94e696d64f
4
+ data.tar.gz: c5918e927d19a28f1048c627b9f1b26bc01c82f0885a4db9b0668f2a6c34daf2
5
5
  SHA512:
6
- metadata.gz: 46341a9ade2d90e4f2025a63d5796cb6855f4f3bcf4bfb9f47a06130dde4bdf01b988f0f51e73ef3c6532b79b73e1217c4d433e34af7aad77991cf3ff16bfeb5
7
- data.tar.gz: cca205d215200e899148999b8603c3d97b8836d62e843586c84c2e08dd3ead3123a361c882df61e6cd05eb2e0021373692ec0ec485caa187567385cfb3cae11b
6
+ metadata.gz: 8ed3be31e3ca302b639ee7e98404d91f2433c52f494e31004055cc582001e3f99da88337ac8de8d79c6d17b4690b78d1e85848ff69058ef2a29762646d46a24c
7
+ data.tar.gz: 07b7455fd74efeedea6b240cd41e4b623af39ba519ca6295e0fb552076245a1b5a54823464794947130ea2c2f1d30cf715017c2689a4b88e31fe37ffe6c3538f
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.35.0 (2024-11-12)
5
+ ------------------
6
+
7
+ * Feature - Added ResetEnabledControl API.
8
+
4
9
  1.34.0 (2024-10-18)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.34.0
1
+ 1.35.0
@@ -863,7 +863,7 @@ module Aws::ControlTower
863
863
  # resp.control_operation.enabled_control_identifier #=> String
864
864
  # resp.control_operation.end_time #=> Time
865
865
  # resp.control_operation.operation_identifier #=> String
866
- # resp.control_operation.operation_type #=> String, one of "ENABLE_CONTROL", "DISABLE_CONTROL", "UPDATE_ENABLED_CONTROL"
866
+ # resp.control_operation.operation_type #=> String, one of "ENABLE_CONTROL", "DISABLE_CONTROL", "UPDATE_ENABLED_CONTROL", "RESET_ENABLED_CONTROL"
867
867
  # resp.control_operation.start_time #=> Time
868
868
  # resp.control_operation.status #=> String, one of "SUCCEEDED", "FAILED", "IN_PROGRESS"
869
869
  # resp.control_operation.status_message #=> String
@@ -1097,7 +1097,7 @@ module Aws::ControlTower
1097
1097
  # resp = client.list_control_operations({
1098
1098
  # filter: {
1099
1099
  # control_identifiers: ["ControlIdentifier"],
1100
- # control_operation_types: ["ENABLE_CONTROL"], # accepts ENABLE_CONTROL, DISABLE_CONTROL, UPDATE_ENABLED_CONTROL
1100
+ # control_operation_types: ["ENABLE_CONTROL"], # accepts ENABLE_CONTROL, DISABLE_CONTROL, UPDATE_ENABLED_CONTROL, RESET_ENABLED_CONTROL
1101
1101
  # enabled_control_identifiers: ["Arn"],
1102
1102
  # statuses: ["SUCCEEDED"], # accepts SUCCEEDED, FAILED, IN_PROGRESS
1103
1103
  # target_identifiers: ["TargetIdentifier"],
@@ -1113,7 +1113,7 @@ module Aws::ControlTower
1113
1113
  # resp.control_operations[0].enabled_control_identifier #=> String
1114
1114
  # resp.control_operations[0].end_time #=> Time
1115
1115
  # resp.control_operations[0].operation_identifier #=> String
1116
- # resp.control_operations[0].operation_type #=> String, one of "ENABLE_CONTROL", "DISABLE_CONTROL", "UPDATE_ENABLED_CONTROL"
1116
+ # resp.control_operations[0].operation_type #=> String, one of "ENABLE_CONTROL", "DISABLE_CONTROL", "UPDATE_ENABLED_CONTROL", "RESET_ENABLED_CONTROL"
1117
1117
  # resp.control_operations[0].start_time #=> Time
1118
1118
  # resp.control_operations[0].status #=> String, one of "SUCCEEDED", "FAILED", "IN_PROGRESS"
1119
1119
  # resp.control_operations[0].status_message #=> String
@@ -1415,6 +1415,34 @@ module Aws::ControlTower
1415
1415
  req.send_request(options)
1416
1416
  end
1417
1417
 
1418
+ # Resets an enabled control.
1419
+ #
1420
+ # @option params [required, String] :enabled_control_identifier
1421
+ # The ARN of the enabled control to be reset.
1422
+ #
1423
+ # @return [Types::ResetEnabledControlOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1424
+ #
1425
+ # * {Types::ResetEnabledControlOutput#operation_identifier #operation_identifier} => String
1426
+ #
1427
+ # @example Request syntax with placeholder values
1428
+ #
1429
+ # resp = client.reset_enabled_control({
1430
+ # enabled_control_identifier: "Arn", # required
1431
+ # })
1432
+ #
1433
+ # @example Response structure
1434
+ #
1435
+ # resp.operation_identifier #=> String
1436
+ #
1437
+ # @see http://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/ResetEnabledControl AWS API Documentation
1438
+ #
1439
+ # @overload reset_enabled_control(params = {})
1440
+ # @param [Hash] params ({})
1441
+ def reset_enabled_control(params = {}, options = {})
1442
+ req = build_request(:reset_enabled_control, params)
1443
+ req.send_request(options)
1444
+ end
1445
+
1418
1446
  # This API call resets a landing zone. It starts an asynchronous
1419
1447
  # operation that resets the landing zone to the parameters specified in
1420
1448
  # the original configuration, which you specified in the manifest file.
@@ -1573,11 +1601,12 @@ module Aws::ControlTower
1573
1601
  # Web Services Control Tower updates the control to match any valid
1574
1602
  # parameters that you supply.
1575
1603
  #
1576
- # If the `DriftSummary` status for the control shows as DRIFTED, you
1604
+ # If the `DriftSummary` status for the control shows as `DRIFTED`, you
1577
1605
  # cannot call this API. Instead, you can update the control by calling
1578
- # `DisableControl` and again calling `EnableControl`, or you can run an
1579
- # extending governance operation. For usage examples, see the [
1580
- # *Controls Reference Guide* ][1].
1606
+ # the `ResetEnabledControl` API. Alternatively, you can call
1607
+ # `DisableControl` and then call `EnableControl` again. Also, you can
1608
+ # run an extending governance operation to repair drift. For usage
1609
+ # examples, see the [ *Controls Reference Guide* ][1].
1581
1610
  #
1582
1611
  #
1583
1612
  #
@@ -1691,7 +1720,7 @@ module Aws::ControlTower
1691
1720
  tracer: tracer
1692
1721
  )
1693
1722
  context[:gem_name] = 'aws-sdk-controltower'
1694
- context[:gem_version] = '1.34.0'
1723
+ context[:gem_version] = '1.35.0'
1695
1724
  Seahorse::Client::Request.new(handlers, context)
1696
1725
  end
1697
1726
 
@@ -132,6 +132,8 @@ module Aws::ControlTower
132
132
  RegionName = Shapes::StringShape.new(name: 'RegionName')
133
133
  ResetEnabledBaselineInput = Shapes::StructureShape.new(name: 'ResetEnabledBaselineInput')
134
134
  ResetEnabledBaselineOutput = Shapes::StructureShape.new(name: 'ResetEnabledBaselineOutput')
135
+ ResetEnabledControlInput = Shapes::StructureShape.new(name: 'ResetEnabledControlInput')
136
+ ResetEnabledControlOutput = Shapes::StructureShape.new(name: 'ResetEnabledControlOutput')
135
137
  ResetLandingZoneInput = Shapes::StructureShape.new(name: 'ResetLandingZoneInput')
136
138
  ResetLandingZoneOutput = Shapes::StructureShape.new(name: 'ResetLandingZoneOutput')
137
139
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
@@ -505,6 +507,12 @@ module Aws::ControlTower
505
507
  ResetEnabledBaselineOutput.add_member(:operation_identifier, Shapes::ShapeRef.new(shape: OperationIdentifier, required: true, location_name: "operationIdentifier"))
506
508
  ResetEnabledBaselineOutput.struct_class = Types::ResetEnabledBaselineOutput
507
509
 
510
+ ResetEnabledControlInput.add_member(:enabled_control_identifier, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "enabledControlIdentifier"))
511
+ ResetEnabledControlInput.struct_class = Types::ResetEnabledControlInput
512
+
513
+ ResetEnabledControlOutput.add_member(:operation_identifier, Shapes::ShapeRef.new(shape: OperationIdentifier, required: true, location_name: "operationIdentifier"))
514
+ ResetEnabledControlOutput.struct_class = Types::ResetEnabledControlOutput
515
+
508
516
  ResetLandingZoneInput.add_member(:landing_zone_identifier, Shapes::ShapeRef.new(shape: String, required: true, location_name: "landingZoneIdentifier"))
509
517
  ResetLandingZoneInput.struct_class = Types::ResetLandingZoneInput
510
518
 
@@ -903,6 +911,21 @@ module Aws::ControlTower
903
911
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
904
912
  end)
905
913
 
914
+ api.add_operation(:reset_enabled_control, Seahorse::Model::Operation.new.tap do |o|
915
+ o.name = "ResetEnabledControl"
916
+ o.http_method = "POST"
917
+ o.http_request_uri = "/reset-enabled-control"
918
+ o.input = Shapes::ShapeRef.new(shape: ResetEnabledControlInput)
919
+ o.output = Shapes::ShapeRef.new(shape: ResetEnabledControlOutput)
920
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
921
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
922
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
923
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
924
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
925
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
926
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
927
+ end)
928
+
906
929
  api.add_operation(:reset_landing_zone, Seahorse::Model::Operation.new.tap do |o|
907
930
  o.name = "ResetLandingZone"
908
931
  o.http_method = "POST"
@@ -1562,6 +1562,30 @@ module Aws::ControlTower
1562
1562
  include Aws::Structure
1563
1563
  end
1564
1564
 
1565
+ # @!attribute [rw] enabled_control_identifier
1566
+ # The ARN of the enabled control to be reset.
1567
+ # @return [String]
1568
+ #
1569
+ # @see http://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/ResetEnabledControlInput AWS API Documentation
1570
+ #
1571
+ class ResetEnabledControlInput < Struct.new(
1572
+ :enabled_control_identifier)
1573
+ SENSITIVE = []
1574
+ include Aws::Structure
1575
+ end
1576
+
1577
+ # @!attribute [rw] operation_identifier
1578
+ # The operation identifier for this `ResetEnabledControl` operation.
1579
+ # @return [String]
1580
+ #
1581
+ # @see http://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/ResetEnabledControlOutput AWS API Documentation
1582
+ #
1583
+ class ResetEnabledControlOutput < Struct.new(
1584
+ :operation_identifier)
1585
+ SENSITIVE = []
1586
+ include Aws::Structure
1587
+ end
1588
+
1565
1589
  # @!attribute [rw] landing_zone_identifier
1566
1590
  # The unique identifier of the landing zone.
1567
1591
  # @return [String]
@@ -54,7 +54,7 @@ module Aws::ControlTower
54
54
  autoload :EndpointProvider, 'aws-sdk-controltower/endpoint_provider'
55
55
  autoload :Endpoints, 'aws-sdk-controltower/endpoints'
56
56
 
57
- GEM_VERSION = '1.34.0'
57
+ GEM_VERSION = '1.35.0'
58
58
 
59
59
  end
60
60
 
data/sig/client.rbs CHANGED
@@ -254,7 +254,7 @@ module Aws
254
254
  def list_control_operations: (
255
255
  ?filter: {
256
256
  control_identifiers: Array[::String]?,
257
- control_operation_types: Array[("ENABLE_CONTROL" | "DISABLE_CONTROL" | "UPDATE_ENABLED_CONTROL")]?,
257
+ control_operation_types: Array[("ENABLE_CONTROL" | "DISABLE_CONTROL" | "UPDATE_ENABLED_CONTROL" | "RESET_ENABLED_CONTROL")]?,
258
258
  enabled_control_identifiers: Array[::String]?,
259
259
  statuses: Array[("SUCCEEDED" | "FAILED" | "IN_PROGRESS")]?,
260
260
  target_identifiers: Array[::String]?
@@ -346,6 +346,16 @@ module Aws
346
346
  ) -> _ResetEnabledBaselineResponseSuccess
347
347
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ResetEnabledBaselineResponseSuccess
348
348
 
349
+ interface _ResetEnabledControlResponseSuccess
350
+ include ::Seahorse::Client::_ResponseSuccess[Types::ResetEnabledControlOutput]
351
+ def operation_identifier: () -> ::String
352
+ end
353
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ControlTower/Client.html#reset_enabled_control-instance_method
354
+ def reset_enabled_control: (
355
+ enabled_control_identifier: ::String
356
+ ) -> _ResetEnabledControlResponseSuccess
357
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ResetEnabledControlResponseSuccess
358
+
349
359
  interface _ResetLandingZoneResponseSuccess
350
360
  include ::Seahorse::Client::_ResponseSuccess[Types::ResetLandingZoneOutput]
351
361
  def operation_identifier: () -> ::String
data/sig/types.rbs CHANGED
@@ -40,7 +40,7 @@ module Aws::ControlTower
40
40
  attr_accessor enabled_control_identifier: ::String
41
41
  attr_accessor end_time: ::Time
42
42
  attr_accessor operation_identifier: ::String
43
- attr_accessor operation_type: ("ENABLE_CONTROL" | "DISABLE_CONTROL" | "UPDATE_ENABLED_CONTROL")
43
+ attr_accessor operation_type: ("ENABLE_CONTROL" | "DISABLE_CONTROL" | "UPDATE_ENABLED_CONTROL" | "RESET_ENABLED_CONTROL")
44
44
  attr_accessor start_time: ::Time
45
45
  attr_accessor status: ("SUCCEEDED" | "FAILED" | "IN_PROGRESS")
46
46
  attr_accessor status_message: ::String
@@ -50,7 +50,7 @@ module Aws::ControlTower
50
50
 
51
51
  class ControlOperationFilter
52
52
  attr_accessor control_identifiers: ::Array[::String]
53
- attr_accessor control_operation_types: ::Array[("ENABLE_CONTROL" | "DISABLE_CONTROL" | "UPDATE_ENABLED_CONTROL")]
53
+ attr_accessor control_operation_types: ::Array[("ENABLE_CONTROL" | "DISABLE_CONTROL" | "UPDATE_ENABLED_CONTROL" | "RESET_ENABLED_CONTROL")]
54
54
  attr_accessor enabled_control_identifiers: ::Array[::String]
55
55
  attr_accessor statuses: ::Array[("SUCCEEDED" | "FAILED" | "IN_PROGRESS")]
56
56
  attr_accessor target_identifiers: ::Array[::String]
@@ -62,7 +62,7 @@ module Aws::ControlTower
62
62
  attr_accessor enabled_control_identifier: ::String
63
63
  attr_accessor end_time: ::Time
64
64
  attr_accessor operation_identifier: ::String
65
- attr_accessor operation_type: ("ENABLE_CONTROL" | "DISABLE_CONTROL" | "UPDATE_ENABLED_CONTROL")
65
+ attr_accessor operation_type: ("ENABLE_CONTROL" | "DISABLE_CONTROL" | "UPDATE_ENABLED_CONTROL" | "RESET_ENABLED_CONTROL")
66
66
  attr_accessor start_time: ::Time
67
67
  attr_accessor status: ("SUCCEEDED" | "FAILED" | "IN_PROGRESS")
68
68
  attr_accessor status_message: ::String
@@ -452,6 +452,16 @@ module Aws::ControlTower
452
452
  SENSITIVE: []
453
453
  end
454
454
 
455
+ class ResetEnabledControlInput
456
+ attr_accessor enabled_control_identifier: ::String
457
+ SENSITIVE: []
458
+ end
459
+
460
+ class ResetEnabledControlOutput
461
+ attr_accessor operation_identifier: ::String
462
+ SENSITIVE: []
463
+ end
464
+
455
465
  class ResetLandingZoneInput
456
466
  attr_accessor landing_zone_identifier: ::String
457
467
  SENSITIVE: []
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-controltower
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.34.0
4
+ version: 1.35.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: 2024-10-18 00:00:00.000000000 Z
11
+ date: 2024-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core