aws-sdk-controltower 1.10.0 → 1.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-controltower/client.rb +112 -15
- data/lib/aws-sdk-controltower/client_api.rb +68 -0
- data/lib/aws-sdk-controltower/endpoint_provider.rb +1 -1
- data/lib/aws-sdk-controltower/endpoints.rb +42 -0
- data/lib/aws-sdk-controltower/plugins/endpoints.rb +6 -0
- data/lib/aws-sdk-controltower/types.rb +80 -13
- data/lib/aws-sdk-controltower.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 364d73ffc9e515a45806de599a150a080fa9bfb5b6145824b439cc783385e6f6
|
4
|
+
data.tar.gz: 43e15e9676f50e108378703502788745df33a189143bc3a55c7fdd18e0d5bc86
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 532f26dc1214d70849ee3d05d33cc0f1f810b9e787846fd40dee3b77b28cbdf425cc19353cf83f229f9408be0c0ceed46db4591a082b4deedb24a77d4bd880c0
|
7
|
+
data.tar.gz: ea295c3b4d8858f143cc37cc406776ed5954d080a215e1db42885f088a1148198dc233bab3227dcb42ee46c103140aab8d555541d11c09995d3be61b1f16d6f8
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.12.0 (2023-11-22)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
1.11.0 (2023-11-10)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - AWS Control Tower supports tagging for enabled controls. This release introduces TagResource, UntagResource and ListTagsForResource APIs to manage tags in existing enabled controls. It updates EnabledControl API to tag resources at creation time.
|
13
|
+
|
4
14
|
1.10.0 (2023-10-12)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.12.0
|
@@ -444,7 +444,7 @@ module Aws::ControlTower
|
|
444
444
|
# that creates AWS resources on the specified organizational unit and
|
445
445
|
# the accounts it contains. The resources created will vary according to
|
446
446
|
# the control that you specify. For usage examples, see [ *the AWS
|
447
|
-
# Control Tower User Guide* ][1]
|
447
|
+
# Control Tower User Guide* ][1].
|
448
448
|
#
|
449
449
|
#
|
450
450
|
#
|
@@ -460,6 +460,9 @@ module Aws::ControlTower
|
|
460
460
|
#
|
461
461
|
# [1]: https://docs.aws.amazon.com/controltower/latest/APIReference/Welcome.html
|
462
462
|
#
|
463
|
+
# @option params [Hash<String,String>] :tags
|
464
|
+
# Tags to be applied to the `EnabledControl` resource.
|
465
|
+
#
|
463
466
|
# @option params [required, String] :target_identifier
|
464
467
|
# The ARN of the organizational unit. For information on how to find the
|
465
468
|
# `targetIdentifier`, see [the overview page][1].
|
@@ -470,17 +473,22 @@ module Aws::ControlTower
|
|
470
473
|
#
|
471
474
|
# @return [Types::EnableControlOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
472
475
|
#
|
476
|
+
# * {Types::EnableControlOutput#arn #arn} => String
|
473
477
|
# * {Types::EnableControlOutput#operation_identifier #operation_identifier} => String
|
474
478
|
#
|
475
479
|
# @example Request syntax with placeholder values
|
476
480
|
#
|
477
481
|
# resp = client.enable_control({
|
478
482
|
# control_identifier: "ControlIdentifier", # required
|
483
|
+
# tags: {
|
484
|
+
# "TagKey" => "TagValue",
|
485
|
+
# },
|
479
486
|
# target_identifier: "TargetIdentifier", # required
|
480
487
|
# })
|
481
488
|
#
|
482
489
|
# @example Response structure
|
483
490
|
#
|
491
|
+
# resp.arn #=> String
|
484
492
|
# resp.operation_identifier #=> String
|
485
493
|
#
|
486
494
|
# @see http://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/EnableControl AWS API Documentation
|
@@ -495,7 +503,7 @@ module Aws::ControlTower
|
|
495
503
|
# Returns the status of a particular `EnableControl` or `DisableControl`
|
496
504
|
# operation. Displays a message in case of error. Details for an
|
497
505
|
# operation are available for 90 days. For usage examples, see [ *the
|
498
|
-
# AWS Control Tower User Guide* ][1]
|
506
|
+
# AWS Control Tower User Guide* ][1].
|
499
507
|
#
|
500
508
|
#
|
501
509
|
#
|
@@ -532,24 +540,15 @@ module Aws::ControlTower
|
|
532
540
|
req.send_request(options)
|
533
541
|
end
|
534
542
|
|
535
|
-
#
|
543
|
+
# Retrieves details about an enabled control. For usage examples, see [
|
536
544
|
# *the AWS Control Tower User Guide* ][1].
|
537
545
|
#
|
538
|
-
# **Returned values**
|
539
|
-
#
|
540
|
-
# * TargetRegions: Shows target AWS Regions where the enabled control is
|
541
|
-
# available to be deployed.
|
542
|
-
#
|
543
|
-
# * StatusSummary: Provides a detailed summary of the deployment status.
|
544
|
-
#
|
545
|
-
# * DriftSummary: Provides a detailed summary of the drifted status.
|
546
|
-
#
|
547
546
|
#
|
548
547
|
#
|
549
548
|
# [1]: https://docs.aws.amazon.com/controltower/latest/userguide/control-api-examples-short.html
|
550
549
|
#
|
551
550
|
# @option params [required, String] :enabled_control_identifier
|
552
|
-
# The
|
551
|
+
# The `controlIdentifier` of the enabled control.
|
553
552
|
#
|
554
553
|
# @return [Types::GetEnabledControlOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
555
554
|
#
|
@@ -583,7 +582,7 @@ module Aws::ControlTower
|
|
583
582
|
|
584
583
|
# Lists the controls enabled by AWS Control Tower on the specified
|
585
584
|
# organizational unit and the accounts it contains. For usage examples,
|
586
|
-
# see [ *the AWS Control Tower User Guide* ][1]
|
585
|
+
# see [ *the AWS Control Tower User Guide* ][1].
|
587
586
|
#
|
588
587
|
#
|
589
588
|
#
|
@@ -639,6 +638,104 @@ module Aws::ControlTower
|
|
639
638
|
req.send_request(options)
|
640
639
|
end
|
641
640
|
|
641
|
+
# Returns a list of tags associated with the resource. For usage
|
642
|
+
# examples, see [ *the AWS Control Tower User Guide* ][1].
|
643
|
+
#
|
644
|
+
#
|
645
|
+
#
|
646
|
+
# [1]: https://docs.aws.amazon.com/controltower/latest/userguide/control-api-examples-short.html
|
647
|
+
#
|
648
|
+
# @option params [required, String] :resource_arn
|
649
|
+
# The ARN of the resource.
|
650
|
+
#
|
651
|
+
# @return [Types::ListTagsForResourceOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
652
|
+
#
|
653
|
+
# * {Types::ListTagsForResourceOutput#tags #tags} => Hash<String,String>
|
654
|
+
#
|
655
|
+
# @example Request syntax with placeholder values
|
656
|
+
#
|
657
|
+
# resp = client.list_tags_for_resource({
|
658
|
+
# resource_arn: "Arn", # required
|
659
|
+
# })
|
660
|
+
#
|
661
|
+
# @example Response structure
|
662
|
+
#
|
663
|
+
# resp.tags #=> Hash
|
664
|
+
# resp.tags["TagKey"] #=> String
|
665
|
+
#
|
666
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/ListTagsForResource AWS API Documentation
|
667
|
+
#
|
668
|
+
# @overload list_tags_for_resource(params = {})
|
669
|
+
# @param [Hash] params ({})
|
670
|
+
def list_tags_for_resource(params = {}, options = {})
|
671
|
+
req = build_request(:list_tags_for_resource, params)
|
672
|
+
req.send_request(options)
|
673
|
+
end
|
674
|
+
|
675
|
+
# Applies tags to a resource. For usage examples, see [ *the AWS Control
|
676
|
+
# Tower User Guide* ][1].
|
677
|
+
#
|
678
|
+
#
|
679
|
+
#
|
680
|
+
# [1]: https://docs.aws.amazon.com/controltower/latest/userguide/control-api-examples-short.html
|
681
|
+
#
|
682
|
+
# @option params [required, String] :resource_arn
|
683
|
+
# The ARN of the resource to be tagged.
|
684
|
+
#
|
685
|
+
# @option params [required, Hash<String,String>] :tags
|
686
|
+
# Tags to be applied to the resource.
|
687
|
+
#
|
688
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
689
|
+
#
|
690
|
+
# @example Request syntax with placeholder values
|
691
|
+
#
|
692
|
+
# resp = client.tag_resource({
|
693
|
+
# resource_arn: "Arn", # required
|
694
|
+
# tags: { # required
|
695
|
+
# "TagKey" => "TagValue",
|
696
|
+
# },
|
697
|
+
# })
|
698
|
+
#
|
699
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/TagResource AWS API Documentation
|
700
|
+
#
|
701
|
+
# @overload tag_resource(params = {})
|
702
|
+
# @param [Hash] params ({})
|
703
|
+
def tag_resource(params = {}, options = {})
|
704
|
+
req = build_request(:tag_resource, params)
|
705
|
+
req.send_request(options)
|
706
|
+
end
|
707
|
+
|
708
|
+
# Removes tags from a resource. For usage examples, see [ *the AWS
|
709
|
+
# Control Tower User Guide* ][1].
|
710
|
+
#
|
711
|
+
#
|
712
|
+
#
|
713
|
+
# [1]: https://docs.aws.amazon.com/controltower/latest/userguide/control-api-examples-short.html
|
714
|
+
#
|
715
|
+
# @option params [required, String] :resource_arn
|
716
|
+
# The ARN of the resource.
|
717
|
+
#
|
718
|
+
# @option params [required, Array<String>] :tag_keys
|
719
|
+
# Tag keys to be removed from the resource.
|
720
|
+
#
|
721
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
722
|
+
#
|
723
|
+
# @example Request syntax with placeholder values
|
724
|
+
#
|
725
|
+
# resp = client.untag_resource({
|
726
|
+
# resource_arn: "Arn", # required
|
727
|
+
# tag_keys: ["TagKey"], # required
|
728
|
+
# })
|
729
|
+
#
|
730
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/UntagResource AWS API Documentation
|
731
|
+
#
|
732
|
+
# @overload untag_resource(params = {})
|
733
|
+
# @param [Hash] params ({})
|
734
|
+
def untag_resource(params = {}, options = {})
|
735
|
+
req = build_request(:untag_resource, params)
|
736
|
+
req.send_request(options)
|
737
|
+
end
|
738
|
+
|
642
739
|
# @!endgroup
|
643
740
|
|
644
741
|
# @param params ({})
|
@@ -652,7 +749,7 @@ module Aws::ControlTower
|
|
652
749
|
params: params,
|
653
750
|
config: config)
|
654
751
|
context[:gem_name] = 'aws-sdk-controltower'
|
655
|
-
context[:gem_version] = '1.
|
752
|
+
context[:gem_version] = '1.12.0'
|
656
753
|
Seahorse::Client::Request.new(handlers, context)
|
657
754
|
end
|
658
755
|
|
@@ -39,6 +39,8 @@ module Aws::ControlTower
|
|
39
39
|
InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
|
40
40
|
ListEnabledControlsInput = Shapes::StructureShape.new(name: 'ListEnabledControlsInput')
|
41
41
|
ListEnabledControlsOutput = Shapes::StructureShape.new(name: 'ListEnabledControlsOutput')
|
42
|
+
ListTagsForResourceInput = Shapes::StructureShape.new(name: 'ListTagsForResourceInput')
|
43
|
+
ListTagsForResourceOutput = Shapes::StructureShape.new(name: 'ListTagsForResourceOutput')
|
42
44
|
MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
|
43
45
|
OperationIdentifier = Shapes::StringShape.new(name: 'OperationIdentifier')
|
44
46
|
Region = Shapes::StructureShape.new(name: 'Region')
|
@@ -47,9 +49,17 @@ module Aws::ControlTower
|
|
47
49
|
ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
|
48
50
|
String = Shapes::StringShape.new(name: 'String')
|
49
51
|
SyntheticTimestamp_date_time = Shapes::TimestampShape.new(name: 'SyntheticTimestamp_date_time', timestampFormat: "iso8601")
|
52
|
+
TagKey = Shapes::StringShape.new(name: 'TagKey')
|
53
|
+
TagKeys = Shapes::ListShape.new(name: 'TagKeys')
|
54
|
+
TagMap = Shapes::MapShape.new(name: 'TagMap')
|
55
|
+
TagResourceInput = Shapes::StructureShape.new(name: 'TagResourceInput')
|
56
|
+
TagResourceOutput = Shapes::StructureShape.new(name: 'TagResourceOutput')
|
57
|
+
TagValue = Shapes::StringShape.new(name: 'TagValue')
|
50
58
|
TargetIdentifier = Shapes::StringShape.new(name: 'TargetIdentifier')
|
51
59
|
TargetRegions = Shapes::ListShape.new(name: 'TargetRegions')
|
52
60
|
ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
|
61
|
+
UntagResourceInput = Shapes::StructureShape.new(name: 'UntagResourceInput')
|
62
|
+
UntagResourceOutput = Shapes::StructureShape.new(name: 'UntagResourceOutput')
|
53
63
|
ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
|
54
64
|
|
55
65
|
AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
@@ -76,9 +86,11 @@ module Aws::ControlTower
|
|
76
86
|
DriftStatusSummary.struct_class = Types::DriftStatusSummary
|
77
87
|
|
78
88
|
EnableControlInput.add_member(:control_identifier, Shapes::ShapeRef.new(shape: ControlIdentifier, required: true, location_name: "controlIdentifier"))
|
89
|
+
EnableControlInput.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
|
79
90
|
EnableControlInput.add_member(:target_identifier, Shapes::ShapeRef.new(shape: TargetIdentifier, required: true, location_name: "targetIdentifier"))
|
80
91
|
EnableControlInput.struct_class = Types::EnableControlInput
|
81
92
|
|
93
|
+
EnableControlOutput.add_member(:arn, Shapes::ShapeRef.new(shape: Arn, location_name: "arn"))
|
82
94
|
EnableControlOutput.add_member(:operation_identifier, Shapes::ShapeRef.new(shape: OperationIdentifier, required: true, location_name: "operationIdentifier"))
|
83
95
|
EnableControlOutput.struct_class = Types::EnableControlOutput
|
84
96
|
|
@@ -127,6 +139,12 @@ module Aws::ControlTower
|
|
127
139
|
ListEnabledControlsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
|
128
140
|
ListEnabledControlsOutput.struct_class = Types::ListEnabledControlsOutput
|
129
141
|
|
142
|
+
ListTagsForResourceInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location: "uri", location_name: "resourceArn"))
|
143
|
+
ListTagsForResourceInput.struct_class = Types::ListTagsForResourceInput
|
144
|
+
|
145
|
+
ListTagsForResourceOutput.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, required: true, location_name: "tags"))
|
146
|
+
ListTagsForResourceOutput.struct_class = Types::ListTagsForResourceOutput
|
147
|
+
|
130
148
|
Region.add_member(:name, Shapes::ShapeRef.new(shape: RegionName, location_name: "name"))
|
131
149
|
Region.struct_class = Types::Region
|
132
150
|
|
@@ -136,6 +154,17 @@ module Aws::ControlTower
|
|
136
154
|
ServiceQuotaExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
137
155
|
ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
|
138
156
|
|
157
|
+
TagKeys.member = Shapes::ShapeRef.new(shape: TagKey)
|
158
|
+
|
159
|
+
TagMap.key = Shapes::ShapeRef.new(shape: TagKey)
|
160
|
+
TagMap.value = Shapes::ShapeRef.new(shape: TagValue)
|
161
|
+
|
162
|
+
TagResourceInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location: "uri", location_name: "resourceArn"))
|
163
|
+
TagResourceInput.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, required: true, location_name: "tags"))
|
164
|
+
TagResourceInput.struct_class = Types::TagResourceInput
|
165
|
+
|
166
|
+
TagResourceOutput.struct_class = Types::TagResourceOutput
|
167
|
+
|
139
168
|
TargetRegions.member = Shapes::ShapeRef.new(shape: Region)
|
140
169
|
|
141
170
|
ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
@@ -144,6 +173,12 @@ module Aws::ControlTower
|
|
144
173
|
ThrottlingException.add_member(:service_code, Shapes::ShapeRef.new(shape: String, location_name: "serviceCode"))
|
145
174
|
ThrottlingException.struct_class = Types::ThrottlingException
|
146
175
|
|
176
|
+
UntagResourceInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location: "uri", location_name: "resourceArn"))
|
177
|
+
UntagResourceInput.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeys, required: true, location: "querystring", location_name: "tagKeys"))
|
178
|
+
UntagResourceInput.struct_class = Types::UntagResourceInput
|
179
|
+
|
180
|
+
UntagResourceOutput.struct_class = Types::UntagResourceOutput
|
181
|
+
|
147
182
|
ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
148
183
|
ValidationException.struct_class = Types::ValidationException
|
149
184
|
|
@@ -239,6 +274,39 @@ module Aws::ControlTower
|
|
239
274
|
}
|
240
275
|
)
|
241
276
|
end)
|
277
|
+
|
278
|
+
api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
|
279
|
+
o.name = "ListTagsForResource"
|
280
|
+
o.http_method = "GET"
|
281
|
+
o.http_request_uri = "/tags/{resourceArn}"
|
282
|
+
o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceInput)
|
283
|
+
o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceOutput)
|
284
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
285
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
286
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
287
|
+
end)
|
288
|
+
|
289
|
+
api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
|
290
|
+
o.name = "TagResource"
|
291
|
+
o.http_method = "POST"
|
292
|
+
o.http_request_uri = "/tags/{resourceArn}"
|
293
|
+
o.input = Shapes::ShapeRef.new(shape: TagResourceInput)
|
294
|
+
o.output = Shapes::ShapeRef.new(shape: TagResourceOutput)
|
295
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
296
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
297
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
298
|
+
end)
|
299
|
+
|
300
|
+
api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
|
301
|
+
o.name = "UntagResource"
|
302
|
+
o.http_method = "DELETE"
|
303
|
+
o.http_request_uri = "/tags/{resourceArn}"
|
304
|
+
o.input = Shapes::ShapeRef.new(shape: UntagResourceInput)
|
305
|
+
o.output = Shapes::ShapeRef.new(shape: UntagResourceOutput)
|
306
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
307
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
308
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
309
|
+
end)
|
242
310
|
end
|
243
311
|
|
244
312
|
end
|
@@ -32,7 +32,7 @@ module Aws::ControlTower
|
|
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?(
|
35
|
+
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
36
36
|
return Aws::Endpoints::Endpoint.new(url: "https://controltower-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
37
37
|
end
|
38
38
|
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
@@ -82,5 +82,47 @@ module Aws::ControlTower
|
|
82
82
|
end
|
83
83
|
end
|
84
84
|
|
85
|
+
class ListTagsForResource
|
86
|
+
def self.build(context)
|
87
|
+
unless context.config.regional_endpoint
|
88
|
+
endpoint = context.config.endpoint.to_s
|
89
|
+
end
|
90
|
+
Aws::ControlTower::EndpointParameters.new(
|
91
|
+
region: context.config.region,
|
92
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
93
|
+
use_fips: context.config.use_fips_endpoint,
|
94
|
+
endpoint: endpoint,
|
95
|
+
)
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
99
|
+
class TagResource
|
100
|
+
def self.build(context)
|
101
|
+
unless context.config.regional_endpoint
|
102
|
+
endpoint = context.config.endpoint.to_s
|
103
|
+
end
|
104
|
+
Aws::ControlTower::EndpointParameters.new(
|
105
|
+
region: context.config.region,
|
106
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
107
|
+
use_fips: context.config.use_fips_endpoint,
|
108
|
+
endpoint: endpoint,
|
109
|
+
)
|
110
|
+
end
|
111
|
+
end
|
112
|
+
|
113
|
+
class UntagResource
|
114
|
+
def self.build(context)
|
115
|
+
unless context.config.regional_endpoint
|
116
|
+
endpoint = context.config.endpoint.to_s
|
117
|
+
end
|
118
|
+
Aws::ControlTower::EndpointParameters.new(
|
119
|
+
region: context.config.region,
|
120
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
121
|
+
use_fips: context.config.use_fips_endpoint,
|
122
|
+
endpoint: endpoint,
|
123
|
+
)
|
124
|
+
end
|
125
|
+
end
|
126
|
+
|
85
127
|
end
|
86
128
|
end
|
@@ -66,6 +66,12 @@ module Aws::ControlTower
|
|
66
66
|
Aws::ControlTower::Endpoints::GetEnabledControl.build(context)
|
67
67
|
when :list_enabled_controls
|
68
68
|
Aws::ControlTower::Endpoints::ListEnabledControls.build(context)
|
69
|
+
when :list_tags_for_resource
|
70
|
+
Aws::ControlTower::Endpoints::ListTagsForResource.build(context)
|
71
|
+
when :tag_resource
|
72
|
+
Aws::ControlTower::Endpoints::TagResource.build(context)
|
73
|
+
when :untag_resource
|
74
|
+
Aws::ControlTower::Endpoints::UntagResource.build(context)
|
69
75
|
end
|
70
76
|
end
|
71
77
|
end
|
@@ -157,6 +157,10 @@ module Aws::ControlTower
|
|
157
157
|
# [1]: https://docs.aws.amazon.com/controltower/latest/APIReference/Welcome.html
|
158
158
|
# @return [String]
|
159
159
|
#
|
160
|
+
# @!attribute [rw] tags
|
161
|
+
# Tags to be applied to the `EnabledControl` resource.
|
162
|
+
# @return [Hash<String,String>]
|
163
|
+
#
|
160
164
|
# @!attribute [rw] target_identifier
|
161
165
|
# The ARN of the organizational unit. For information on how to find
|
162
166
|
# the `targetIdentifier`, see [the overview page][1].
|
@@ -170,11 +174,16 @@ module Aws::ControlTower
|
|
170
174
|
#
|
171
175
|
class EnableControlInput < Struct.new(
|
172
176
|
:control_identifier,
|
177
|
+
:tags,
|
173
178
|
:target_identifier)
|
174
179
|
SENSITIVE = []
|
175
180
|
include Aws::Structure
|
176
181
|
end
|
177
182
|
|
183
|
+
# @!attribute [rw] arn
|
184
|
+
# The ARN of the `EnabledControl` resource.
|
185
|
+
# @return [String]
|
186
|
+
#
|
178
187
|
# @!attribute [rw] operation_identifier
|
179
188
|
# The ID of the asynchronous operation, which is used to track status.
|
180
189
|
# The operation is available for 90 days.
|
@@ -183,6 +192,7 @@ module Aws::ControlTower
|
|
183
192
|
# @see http://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/EnableControlOutput AWS API Documentation
|
184
193
|
#
|
185
194
|
class EnableControlOutput < Struct.new(
|
195
|
+
:arn,
|
186
196
|
:operation_identifier)
|
187
197
|
SENSITIVE = []
|
188
198
|
include Aws::Structure
|
@@ -237,21 +247,14 @@ module Aws::ControlTower
|
|
237
247
|
include Aws::Structure
|
238
248
|
end
|
239
249
|
|
240
|
-
#
|
250
|
+
# Returns a summary of information about an enabled control.
|
241
251
|
#
|
242
252
|
# @!attribute [rw] arn
|
243
253
|
# The ARN of the enabled control.
|
244
254
|
# @return [String]
|
245
255
|
#
|
246
256
|
# @!attribute [rw] control_identifier
|
247
|
-
# The
|
248
|
-
# **Elective** controls are permitted, with the exception of the
|
249
|
-
# **Region deny** control. For information on how to find the
|
250
|
-
# `controlIdentifier`, see [the overview page][1].
|
251
|
-
#
|
252
|
-
#
|
253
|
-
#
|
254
|
-
# [1]: https://docs.aws.amazon.com/controltower/latest/APIReference/Welcome.html
|
257
|
+
# The `controlIdentifier` of the enabled control.
|
255
258
|
# @return [String]
|
256
259
|
#
|
257
260
|
# @!attribute [rw] drift_status_summary
|
@@ -259,9 +262,7 @@ module Aws::ControlTower
|
|
259
262
|
# @return [Types::DriftStatusSummary]
|
260
263
|
#
|
261
264
|
# @!attribute [rw] status_summary
|
262
|
-
#
|
263
|
-
#
|
264
|
-
# <xhtml />
|
265
|
+
# A short description of the status of the enabled control.
|
265
266
|
# @return [Types::EnablementStatusSummary]
|
266
267
|
#
|
267
268
|
# @!attribute [rw] target_identifier
|
@@ -334,7 +335,7 @@ module Aws::ControlTower
|
|
334
335
|
end
|
335
336
|
|
336
337
|
# @!attribute [rw] enabled_control_identifier
|
337
|
-
# The
|
338
|
+
# The `controlIdentifier` of the enabled control.
|
338
339
|
# @return [String]
|
339
340
|
#
|
340
341
|
# @see http://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/GetEnabledControlInput AWS API Documentation
|
@@ -417,6 +418,30 @@ module Aws::ControlTower
|
|
417
418
|
include Aws::Structure
|
418
419
|
end
|
419
420
|
|
421
|
+
# @!attribute [rw] resource_arn
|
422
|
+
# The ARN of the resource.
|
423
|
+
# @return [String]
|
424
|
+
#
|
425
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/ListTagsForResourceInput AWS API Documentation
|
426
|
+
#
|
427
|
+
class ListTagsForResourceInput < Struct.new(
|
428
|
+
:resource_arn)
|
429
|
+
SENSITIVE = []
|
430
|
+
include Aws::Structure
|
431
|
+
end
|
432
|
+
|
433
|
+
# @!attribute [rw] tags
|
434
|
+
# A list of tags, as `key:value` strings.
|
435
|
+
# @return [Hash<String,String>]
|
436
|
+
#
|
437
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/ListTagsForResourceOutput AWS API Documentation
|
438
|
+
#
|
439
|
+
class ListTagsForResourceOutput < Struct.new(
|
440
|
+
:tags)
|
441
|
+
SENSITIVE = []
|
442
|
+
include Aws::Structure
|
443
|
+
end
|
444
|
+
|
420
445
|
# An AWS Region in which AWS Control Tower expects to find the control
|
421
446
|
# deployed.
|
422
447
|
#
|
@@ -468,6 +493,27 @@ module Aws::ControlTower
|
|
468
493
|
include Aws::Structure
|
469
494
|
end
|
470
495
|
|
496
|
+
# @!attribute [rw] resource_arn
|
497
|
+
# The ARN of the resource to be tagged.
|
498
|
+
# @return [String]
|
499
|
+
#
|
500
|
+
# @!attribute [rw] tags
|
501
|
+
# Tags to be applied to the resource.
|
502
|
+
# @return [Hash<String,String>]
|
503
|
+
#
|
504
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/TagResourceInput AWS API Documentation
|
505
|
+
#
|
506
|
+
class TagResourceInput < Struct.new(
|
507
|
+
:resource_arn,
|
508
|
+
:tags)
|
509
|
+
SENSITIVE = []
|
510
|
+
include Aws::Structure
|
511
|
+
end
|
512
|
+
|
513
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/TagResourceOutput AWS API Documentation
|
514
|
+
#
|
515
|
+
class TagResourceOutput < Aws::EmptyStructure; end
|
516
|
+
|
471
517
|
# Request was denied due to request throttling.
|
472
518
|
#
|
473
519
|
# @!attribute [rw] message
|
@@ -496,6 +542,27 @@ module Aws::ControlTower
|
|
496
542
|
include Aws::Structure
|
497
543
|
end
|
498
544
|
|
545
|
+
# @!attribute [rw] resource_arn
|
546
|
+
# The ARN of the resource.
|
547
|
+
# @return [String]
|
548
|
+
#
|
549
|
+
# @!attribute [rw] tag_keys
|
550
|
+
# Tag keys to be removed from the resource.
|
551
|
+
# @return [Array<String>]
|
552
|
+
#
|
553
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/UntagResourceInput AWS API Documentation
|
554
|
+
#
|
555
|
+
class UntagResourceInput < Struct.new(
|
556
|
+
:resource_arn,
|
557
|
+
:tag_keys)
|
558
|
+
SENSITIVE = []
|
559
|
+
include Aws::Structure
|
560
|
+
end
|
561
|
+
|
562
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/UntagResourceOutput AWS API Documentation
|
563
|
+
#
|
564
|
+
class UntagResourceOutput < Aws::EmptyStructure; end
|
565
|
+
|
499
566
|
# The input fails to satisfy the constraints specified by an AWS
|
500
567
|
# service.
|
501
568
|
#
|
data/lib/aws-sdk-controltower.rb
CHANGED
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.
|
4
|
+
version: 1.12.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-
|
11
|
+
date: 2023-11-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.188.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.188.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -80,7 +80,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
80
80
|
requirements:
|
81
81
|
- - ">="
|
82
82
|
- !ruby/object:Gem::Version
|
83
|
-
version: '2.
|
83
|
+
version: '2.5'
|
84
84
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
85
85
|
requirements:
|
86
86
|
- - ">="
|