aws-sdk-fms 1.20.0 → 1.21.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 +4 -4
- data/lib/aws-sdk-fms.rb +1 -1
- data/lib/aws-sdk-fms/client.rb +105 -3
- data/lib/aws-sdk-fms/client_api.rb +77 -2
- data/lib/aws-sdk-fms/types.rb +149 -7
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: adfc803791c34f82032ee231b4b31cfbceac424f
|
4
|
+
data.tar.gz: 464895184f7eb4ee30941a6cdbff41ee649a0e00
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cdd80bf1792481a06ff26ca159f342f4a6de1144aeb80b1798d6d2e0a6746e863f6a9829700989d38c443bedc740b430e9845aa13c0468ba56e569f82c4c5d2c
|
7
|
+
data.tar.gz: 3ecde26a385d6e1f8b077c4ff351a57bacc82368fc5e8587a28148355cd33b52981264d1b3bbff5563490608c18d92a6ab803c32551ed8f675321ec3b44d8949
|
data/lib/aws-sdk-fms.rb
CHANGED
data/lib/aws-sdk-fms/client.rb
CHANGED
@@ -765,6 +765,38 @@ module Aws::FMS
|
|
765
765
|
req.send_request(options)
|
766
766
|
end
|
767
767
|
|
768
|
+
# Retrieves the list of tags for the specified AWS resource.
|
769
|
+
#
|
770
|
+
# @option params [required, String] :resource_arn
|
771
|
+
# The Amazon Resource Name (ARN) of the resource to return tags for. The
|
772
|
+
# Firewall Manager policy is the only AWS resource that supports
|
773
|
+
# tagging, so this ARN is a policy ARN..
|
774
|
+
#
|
775
|
+
# @return [Types::ListTagsForResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
776
|
+
#
|
777
|
+
# * {Types::ListTagsForResourceResponse#tag_list #tag_list} => Array<Types::Tag>
|
778
|
+
#
|
779
|
+
# @example Request syntax with placeholder values
|
780
|
+
#
|
781
|
+
# resp = client.list_tags_for_resource({
|
782
|
+
# resource_arn: "ResourceArn", # required
|
783
|
+
# })
|
784
|
+
#
|
785
|
+
# @example Response structure
|
786
|
+
#
|
787
|
+
# resp.tag_list #=> Array
|
788
|
+
# resp.tag_list[0].key #=> String
|
789
|
+
# resp.tag_list[0].value #=> String
|
790
|
+
#
|
791
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/fms-2018-01-01/ListTagsForResource AWS API Documentation
|
792
|
+
#
|
793
|
+
# @overload list_tags_for_resource(params = {})
|
794
|
+
# @param [Hash] params ({})
|
795
|
+
def list_tags_for_resource(params = {}, options = {})
|
796
|
+
req = build_request(:list_tags_for_resource, params)
|
797
|
+
req.send_request(options)
|
798
|
+
end
|
799
|
+
|
768
800
|
# Designates the IAM role and Amazon Simple Notification Service (SNS)
|
769
801
|
# topic that AWS Firewall Manager uses to record SNS logs.
|
770
802
|
#
|
@@ -822,6 +854,9 @@ module Aws::FMS
|
|
822
854
|
# @option params [required, Types::Policy] :policy
|
823
855
|
# The details of the AWS Firewall Manager policy to be created.
|
824
856
|
#
|
857
|
+
# @option params [Array<Types::Tag>] :tag_list
|
858
|
+
# The tags to add to the AWS resource.
|
859
|
+
#
|
825
860
|
# @return [Types::PutPolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
826
861
|
#
|
827
862
|
# * {Types::PutPolicyResponse#policy #policy} => Types::Policy
|
@@ -842,8 +877,8 @@ module Aws::FMS
|
|
842
877
|
# resource_type_list: ["ResourceType"],
|
843
878
|
# resource_tags: [
|
844
879
|
# {
|
845
|
-
# key: "
|
846
|
-
# value: "
|
880
|
+
# key: "ResourceTagKey", # required
|
881
|
+
# value: "ResourceTagValue",
|
847
882
|
# },
|
848
883
|
# ],
|
849
884
|
# exclude_resource_tags: false, # required
|
@@ -855,6 +890,12 @@ module Aws::FMS
|
|
855
890
|
# "ACCOUNT" => ["CustomerPolicyScopeId"],
|
856
891
|
# },
|
857
892
|
# },
|
893
|
+
# tag_list: [
|
894
|
+
# {
|
895
|
+
# key: "TagKey", # required
|
896
|
+
# value: "TagValue", # required
|
897
|
+
# },
|
898
|
+
# ],
|
858
899
|
# })
|
859
900
|
#
|
860
901
|
# @example Response structure
|
@@ -889,6 +930,67 @@ module Aws::FMS
|
|
889
930
|
req.send_request(options)
|
890
931
|
end
|
891
932
|
|
933
|
+
# Adds one or more tags to an AWS resource.
|
934
|
+
#
|
935
|
+
# @option params [required, String] :resource_arn
|
936
|
+
# The Amazon Resource Name (ARN) of the resource. The Firewall Manager
|
937
|
+
# policy is the only AWS resource that supports tagging, so this ARN is
|
938
|
+
# a policy ARN.
|
939
|
+
#
|
940
|
+
# @option params [required, Array<Types::Tag>] :tag_list
|
941
|
+
# The tags to add to the resource.
|
942
|
+
#
|
943
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
944
|
+
#
|
945
|
+
# @example Request syntax with placeholder values
|
946
|
+
#
|
947
|
+
# resp = client.tag_resource({
|
948
|
+
# resource_arn: "ResourceArn", # required
|
949
|
+
# tag_list: [ # required
|
950
|
+
# {
|
951
|
+
# key: "TagKey", # required
|
952
|
+
# value: "TagValue", # required
|
953
|
+
# },
|
954
|
+
# ],
|
955
|
+
# })
|
956
|
+
#
|
957
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/fms-2018-01-01/TagResource AWS API Documentation
|
958
|
+
#
|
959
|
+
# @overload tag_resource(params = {})
|
960
|
+
# @param [Hash] params ({})
|
961
|
+
def tag_resource(params = {}, options = {})
|
962
|
+
req = build_request(:tag_resource, params)
|
963
|
+
req.send_request(options)
|
964
|
+
end
|
965
|
+
|
966
|
+
# Removes one or more tags from an AWS resource.
|
967
|
+
#
|
968
|
+
# @option params [required, String] :resource_arn
|
969
|
+
# The Amazon Resource Name (ARN) of the resource. The Firewall Manager
|
970
|
+
# policy is the only AWS resource that supports tagging, so this ARN is
|
971
|
+
# a policy ARN.
|
972
|
+
#
|
973
|
+
# @option params [required, Array<String>] :tag_keys
|
974
|
+
# The keys of the tags to remove from the resource.
|
975
|
+
#
|
976
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
977
|
+
#
|
978
|
+
# @example Request syntax with placeholder values
|
979
|
+
#
|
980
|
+
# resp = client.untag_resource({
|
981
|
+
# resource_arn: "ResourceArn", # required
|
982
|
+
# tag_keys: ["TagKey"], # required
|
983
|
+
# })
|
984
|
+
#
|
985
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/fms-2018-01-01/UntagResource AWS API Documentation
|
986
|
+
#
|
987
|
+
# @overload untag_resource(params = {})
|
988
|
+
# @param [Hash] params ({})
|
989
|
+
def untag_resource(params = {}, options = {})
|
990
|
+
req = build_request(:untag_resource, params)
|
991
|
+
req.send_request(options)
|
992
|
+
end
|
993
|
+
|
892
994
|
# @!endgroup
|
893
995
|
|
894
996
|
# @param params ({})
|
@@ -902,7 +1004,7 @@ module Aws::FMS
|
|
902
1004
|
params: params,
|
903
1005
|
config: config)
|
904
1006
|
context[:gem_name] = 'aws-sdk-fms'
|
905
|
-
context[:gem_version] = '1.
|
1007
|
+
context[:gem_version] = '1.21.0'
|
906
1008
|
Seahorse::Client::Request.new(handlers, context)
|
907
1009
|
end
|
908
1010
|
|
@@ -51,6 +51,8 @@ module Aws::FMS
|
|
51
51
|
ListMemberAccountsResponse = Shapes::StructureShape.new(name: 'ListMemberAccountsResponse')
|
52
52
|
ListPoliciesRequest = Shapes::StructureShape.new(name: 'ListPoliciesRequest')
|
53
53
|
ListPoliciesResponse = Shapes::StructureShape.new(name: 'ListPoliciesResponse')
|
54
|
+
ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
|
55
|
+
ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
|
54
56
|
ManagedServiceData = Shapes::StringShape.new(name: 'ManagedServiceData')
|
55
57
|
MemberAccounts = Shapes::ListShape.new(name: 'MemberAccounts')
|
56
58
|
PaginationMaxResults = Shapes::IntegerShape.new(name: 'PaginationMaxResults')
|
@@ -74,14 +76,23 @@ module Aws::FMS
|
|
74
76
|
ResourceName = Shapes::StringShape.new(name: 'ResourceName')
|
75
77
|
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
76
78
|
ResourceTag = Shapes::StructureShape.new(name: 'ResourceTag')
|
79
|
+
ResourceTagKey = Shapes::StringShape.new(name: 'ResourceTagKey')
|
80
|
+
ResourceTagValue = Shapes::StringShape.new(name: 'ResourceTagValue')
|
77
81
|
ResourceTags = Shapes::ListShape.new(name: 'ResourceTags')
|
78
82
|
ResourceType = Shapes::StringShape.new(name: 'ResourceType')
|
79
83
|
ResourceTypeList = Shapes::ListShape.new(name: 'ResourceTypeList')
|
80
84
|
SecurityServicePolicyData = Shapes::StructureShape.new(name: 'SecurityServicePolicyData')
|
81
85
|
SecurityServiceType = Shapes::StringShape.new(name: 'SecurityServiceType')
|
86
|
+
Tag = Shapes::StructureShape.new(name: 'Tag')
|
82
87
|
TagKey = Shapes::StringShape.new(name: 'TagKey')
|
88
|
+
TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
|
89
|
+
TagList = Shapes::ListShape.new(name: 'TagList')
|
90
|
+
TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
|
91
|
+
TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
|
83
92
|
TagValue = Shapes::StringShape.new(name: 'TagValue')
|
84
93
|
TimeStamp = Shapes::TimestampShape.new(name: 'TimeStamp')
|
94
|
+
UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
|
95
|
+
UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
|
85
96
|
ViolationReason = Shapes::StringShape.new(name: 'ViolationReason')
|
86
97
|
|
87
98
|
AssociateAdminAccountRequest.add_member(:admin_account, Shapes::ShapeRef.new(shape: AWSAccountId, required: true, location_name: "AdminAccount"))
|
@@ -197,6 +208,12 @@ module Aws::FMS
|
|
197
208
|
ListPoliciesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
|
198
209
|
ListPoliciesResponse.struct_class = Types::ListPoliciesResponse
|
199
210
|
|
211
|
+
ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location_name: "ResourceArn"))
|
212
|
+
ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
|
213
|
+
|
214
|
+
ListTagsForResourceResponse.add_member(:tag_list, Shapes::ShapeRef.new(shape: TagList, location_name: "TagList"))
|
215
|
+
ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
|
216
|
+
|
200
217
|
MemberAccounts.member = Shapes::ShapeRef.new(shape: AWSAccountId)
|
201
218
|
|
202
219
|
Policy.add_member(:policy_id, Shapes::ShapeRef.new(shape: PolicyId, location_name: "PolicyId"))
|
@@ -247,6 +264,7 @@ module Aws::FMS
|
|
247
264
|
PutNotificationChannelRequest.struct_class = Types::PutNotificationChannelRequest
|
248
265
|
|
249
266
|
PutPolicyRequest.add_member(:policy, Shapes::ShapeRef.new(shape: Policy, required: true, location_name: "Policy"))
|
267
|
+
PutPolicyRequest.add_member(:tag_list, Shapes::ShapeRef.new(shape: TagList, location_name: "TagList"))
|
250
268
|
PutPolicyRequest.struct_class = Types::PutPolicyRequest
|
251
269
|
|
252
270
|
PutPolicyResponse.add_member(:policy, Shapes::ShapeRef.new(shape: Policy, location_name: "Policy"))
|
@@ -256,8 +274,8 @@ module Aws::FMS
|
|
256
274
|
ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
257
275
|
ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
|
258
276
|
|
259
|
-
ResourceTag.add_member(:key, Shapes::ShapeRef.new(shape:
|
260
|
-
ResourceTag.add_member(:value, Shapes::ShapeRef.new(shape:
|
277
|
+
ResourceTag.add_member(:key, Shapes::ShapeRef.new(shape: ResourceTagKey, required: true, location_name: "Key"))
|
278
|
+
ResourceTag.add_member(:value, Shapes::ShapeRef.new(shape: ResourceTagValue, location_name: "Value"))
|
261
279
|
ResourceTag.struct_class = Types::ResourceTag
|
262
280
|
|
263
281
|
ResourceTags.member = Shapes::ShapeRef.new(shape: ResourceTag)
|
@@ -268,6 +286,26 @@ module Aws::FMS
|
|
268
286
|
SecurityServicePolicyData.add_member(:managed_service_data, Shapes::ShapeRef.new(shape: ManagedServiceData, location_name: "ManagedServiceData"))
|
269
287
|
SecurityServicePolicyData.struct_class = Types::SecurityServicePolicyData
|
270
288
|
|
289
|
+
Tag.add_member(:key, Shapes::ShapeRef.new(shape: TagKey, required: true, location_name: "Key"))
|
290
|
+
Tag.add_member(:value, Shapes::ShapeRef.new(shape: TagValue, required: true, location_name: "Value"))
|
291
|
+
Tag.struct_class = Types::Tag
|
292
|
+
|
293
|
+
TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
|
294
|
+
|
295
|
+
TagList.member = Shapes::ShapeRef.new(shape: Tag)
|
296
|
+
|
297
|
+
TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location_name: "ResourceArn"))
|
298
|
+
TagResourceRequest.add_member(:tag_list, Shapes::ShapeRef.new(shape: TagList, required: true, location_name: "TagList"))
|
299
|
+
TagResourceRequest.struct_class = Types::TagResourceRequest
|
300
|
+
|
301
|
+
TagResourceResponse.struct_class = Types::TagResourceResponse
|
302
|
+
|
303
|
+
UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location_name: "ResourceArn"))
|
304
|
+
UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location_name: "TagKeys"))
|
305
|
+
UntagResourceRequest.struct_class = Types::UntagResourceRequest
|
306
|
+
|
307
|
+
UntagResourceResponse.struct_class = Types::UntagResourceResponse
|
308
|
+
|
271
309
|
|
272
310
|
# @api private
|
273
311
|
API = Seahorse::Model::Api.new.tap do |api|
|
@@ -437,6 +475,18 @@ module Aws::FMS
|
|
437
475
|
)
|
438
476
|
end)
|
439
477
|
|
478
|
+
api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
|
479
|
+
o.name = "ListTagsForResource"
|
480
|
+
o.http_method = "POST"
|
481
|
+
o.http_request_uri = "/"
|
482
|
+
o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
|
483
|
+
o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
|
484
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
485
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidOperationException)
|
486
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
|
487
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
|
488
|
+
end)
|
489
|
+
|
440
490
|
api.add_operation(:put_notification_channel, Seahorse::Model::Operation.new.tap do |o|
|
441
491
|
o.name = "PutNotificationChannel"
|
442
492
|
o.http_method = "POST"
|
@@ -461,6 +511,31 @@ module Aws::FMS
|
|
461
511
|
o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
|
462
512
|
o.errors << Shapes::ShapeRef.new(shape: InvalidTypeException)
|
463
513
|
end)
|
514
|
+
|
515
|
+
api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
|
516
|
+
o.name = "TagResource"
|
517
|
+
o.http_method = "POST"
|
518
|
+
o.http_request_uri = "/"
|
519
|
+
o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
|
520
|
+
o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
|
521
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
522
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidOperationException)
|
523
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
|
524
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
|
525
|
+
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
526
|
+
end)
|
527
|
+
|
528
|
+
api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
|
529
|
+
o.name = "UntagResource"
|
530
|
+
o.http_method = "POST"
|
531
|
+
o.http_request_uri = "/"
|
532
|
+
o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
|
533
|
+
o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
|
534
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
535
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidOperationException)
|
536
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
|
537
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
|
538
|
+
end)
|
464
539
|
end
|
465
540
|
|
466
541
|
end
|
data/lib/aws-sdk-fms/types.rb
CHANGED
@@ -640,6 +640,37 @@ module Aws::FMS
|
|
640
640
|
include Aws::Structure
|
641
641
|
end
|
642
642
|
|
643
|
+
# @note When making an API call, you may pass ListTagsForResourceRequest
|
644
|
+
# data as a hash:
|
645
|
+
#
|
646
|
+
# {
|
647
|
+
# resource_arn: "ResourceArn", # required
|
648
|
+
# }
|
649
|
+
#
|
650
|
+
# @!attribute [rw] resource_arn
|
651
|
+
# The Amazon Resource Name (ARN) of the resource to return tags for.
|
652
|
+
# The Firewall Manager policy is the only AWS resource that supports
|
653
|
+
# tagging, so this ARN is a policy ARN..
|
654
|
+
# @return [String]
|
655
|
+
#
|
656
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/fms-2018-01-01/ListTagsForResourceRequest AWS API Documentation
|
657
|
+
#
|
658
|
+
class ListTagsForResourceRequest < Struct.new(
|
659
|
+
:resource_arn)
|
660
|
+
include Aws::Structure
|
661
|
+
end
|
662
|
+
|
663
|
+
# @!attribute [rw] tag_list
|
664
|
+
# The tags associated with the resource.
|
665
|
+
# @return [Array<Types::Tag>]
|
666
|
+
#
|
667
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/fms-2018-01-01/ListTagsForResourceResponse AWS API Documentation
|
668
|
+
#
|
669
|
+
class ListTagsForResourceResponse < Struct.new(
|
670
|
+
:tag_list)
|
671
|
+
include Aws::Structure
|
672
|
+
end
|
673
|
+
|
643
674
|
# An AWS Firewall Manager policy.
|
644
675
|
#
|
645
676
|
# @note When making an API call, you may pass Policy
|
@@ -657,8 +688,8 @@ module Aws::FMS
|
|
657
688
|
# resource_type_list: ["ResourceType"],
|
658
689
|
# resource_tags: [
|
659
690
|
# {
|
660
|
-
# key: "
|
661
|
-
# value: "
|
691
|
+
# key: "ResourceTagKey", # required
|
692
|
+
# value: "ResourceTagValue",
|
662
693
|
# },
|
663
694
|
# ],
|
664
695
|
# exclude_resource_tags: false, # required
|
@@ -968,8 +999,8 @@ module Aws::FMS
|
|
968
999
|
# resource_type_list: ["ResourceType"],
|
969
1000
|
# resource_tags: [
|
970
1001
|
# {
|
971
|
-
# key: "
|
972
|
-
# value: "
|
1002
|
+
# key: "ResourceTagKey", # required
|
1003
|
+
# value: "ResourceTagValue",
|
973
1004
|
# },
|
974
1005
|
# ],
|
975
1006
|
# exclude_resource_tags: false, # required
|
@@ -981,16 +1012,27 @@ module Aws::FMS
|
|
981
1012
|
# "ACCOUNT" => ["CustomerPolicyScopeId"],
|
982
1013
|
# },
|
983
1014
|
# },
|
1015
|
+
# tag_list: [
|
1016
|
+
# {
|
1017
|
+
# key: "TagKey", # required
|
1018
|
+
# value: "TagValue", # required
|
1019
|
+
# },
|
1020
|
+
# ],
|
984
1021
|
# }
|
985
1022
|
#
|
986
1023
|
# @!attribute [rw] policy
|
987
1024
|
# The details of the AWS Firewall Manager policy to be created.
|
988
1025
|
# @return [Types::Policy]
|
989
1026
|
#
|
1027
|
+
# @!attribute [rw] tag_list
|
1028
|
+
# The tags to add to the AWS resource.
|
1029
|
+
# @return [Array<Types::Tag>]
|
1030
|
+
#
|
990
1031
|
# @see http://docs.aws.amazon.com/goto/WebAPI/fms-2018-01-01/PutPolicyRequest AWS API Documentation
|
991
1032
|
#
|
992
1033
|
class PutPolicyRequest < Struct.new(
|
993
|
-
:policy
|
1034
|
+
:policy,
|
1035
|
+
:tag_list)
|
994
1036
|
include Aws::Structure
|
995
1037
|
end
|
996
1038
|
|
@@ -1040,8 +1082,8 @@ module Aws::FMS
|
|
1040
1082
|
# data as a hash:
|
1041
1083
|
#
|
1042
1084
|
# {
|
1043
|
-
# key: "
|
1044
|
-
# value: "
|
1085
|
+
# key: "ResourceTagKey", # required
|
1086
|
+
# value: "ResourceTagValue",
|
1045
1087
|
# }
|
1046
1088
|
#
|
1047
1089
|
# @!attribute [rw] key
|
@@ -1125,5 +1167,105 @@ module Aws::FMS
|
|
1125
1167
|
include Aws::Structure
|
1126
1168
|
end
|
1127
1169
|
|
1170
|
+
# A collection of key:value pairs associated with an AWS resource. The
|
1171
|
+
# key:value pair can be anything you define. Typically, the tag key
|
1172
|
+
# represents a category (such as "environment") and the tag value
|
1173
|
+
# represents a specific value within that category (such as "test,"
|
1174
|
+
# "development," or "production"). You can add up to 50 tags to each
|
1175
|
+
# AWS resource.
|
1176
|
+
#
|
1177
|
+
# @note When making an API call, you may pass Tag
|
1178
|
+
# data as a hash:
|
1179
|
+
#
|
1180
|
+
# {
|
1181
|
+
# key: "TagKey", # required
|
1182
|
+
# value: "TagValue", # required
|
1183
|
+
# }
|
1184
|
+
#
|
1185
|
+
# @!attribute [rw] key
|
1186
|
+
# Part of the key:value pair that defines a tag. You can use a tag key
|
1187
|
+
# to describe a category of information, such as "customer." Tag
|
1188
|
+
# keys are case-sensitive.
|
1189
|
+
# @return [String]
|
1190
|
+
#
|
1191
|
+
# @!attribute [rw] value
|
1192
|
+
# Part of the key:value pair that defines a tag. You can use a tag
|
1193
|
+
# value to describe a specific value within a category, such as
|
1194
|
+
# "companyA" or "companyB." Tag values are case-sensitive.
|
1195
|
+
# @return [String]
|
1196
|
+
#
|
1197
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/fms-2018-01-01/Tag AWS API Documentation
|
1198
|
+
#
|
1199
|
+
class Tag < Struct.new(
|
1200
|
+
:key,
|
1201
|
+
:value)
|
1202
|
+
include Aws::Structure
|
1203
|
+
end
|
1204
|
+
|
1205
|
+
# @note When making an API call, you may pass TagResourceRequest
|
1206
|
+
# data as a hash:
|
1207
|
+
#
|
1208
|
+
# {
|
1209
|
+
# resource_arn: "ResourceArn", # required
|
1210
|
+
# tag_list: [ # required
|
1211
|
+
# {
|
1212
|
+
# key: "TagKey", # required
|
1213
|
+
# value: "TagValue", # required
|
1214
|
+
# },
|
1215
|
+
# ],
|
1216
|
+
# }
|
1217
|
+
#
|
1218
|
+
# @!attribute [rw] resource_arn
|
1219
|
+
# The Amazon Resource Name (ARN) of the resource. The Firewall Manager
|
1220
|
+
# policy is the only AWS resource that supports tagging, so this ARN
|
1221
|
+
# is a policy ARN.
|
1222
|
+
# @return [String]
|
1223
|
+
#
|
1224
|
+
# @!attribute [rw] tag_list
|
1225
|
+
# The tags to add to the resource.
|
1226
|
+
# @return [Array<Types::Tag>]
|
1227
|
+
#
|
1228
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/fms-2018-01-01/TagResourceRequest AWS API Documentation
|
1229
|
+
#
|
1230
|
+
class TagResourceRequest < Struct.new(
|
1231
|
+
:resource_arn,
|
1232
|
+
:tag_list)
|
1233
|
+
include Aws::Structure
|
1234
|
+
end
|
1235
|
+
|
1236
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/fms-2018-01-01/TagResourceResponse AWS API Documentation
|
1237
|
+
#
|
1238
|
+
class TagResourceResponse < Aws::EmptyStructure; end
|
1239
|
+
|
1240
|
+
# @note When making an API call, you may pass UntagResourceRequest
|
1241
|
+
# data as a hash:
|
1242
|
+
#
|
1243
|
+
# {
|
1244
|
+
# resource_arn: "ResourceArn", # required
|
1245
|
+
# tag_keys: ["TagKey"], # required
|
1246
|
+
# }
|
1247
|
+
#
|
1248
|
+
# @!attribute [rw] resource_arn
|
1249
|
+
# The Amazon Resource Name (ARN) of the resource. The Firewall Manager
|
1250
|
+
# policy is the only AWS resource that supports tagging, so this ARN
|
1251
|
+
# is a policy ARN.
|
1252
|
+
# @return [String]
|
1253
|
+
#
|
1254
|
+
# @!attribute [rw] tag_keys
|
1255
|
+
# The keys of the tags to remove from the resource.
|
1256
|
+
# @return [Array<String>]
|
1257
|
+
#
|
1258
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/fms-2018-01-01/UntagResourceRequest AWS API Documentation
|
1259
|
+
#
|
1260
|
+
class UntagResourceRequest < Struct.new(
|
1261
|
+
:resource_arn,
|
1262
|
+
:tag_keys)
|
1263
|
+
include Aws::Structure
|
1264
|
+
end
|
1265
|
+
|
1266
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/fms-2018-01-01/UntagResourceResponse AWS API Documentation
|
1267
|
+
#
|
1268
|
+
class UntagResourceResponse < Aws::EmptyStructure; end
|
1269
|
+
|
1128
1270
|
end
|
1129
1271
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-fms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.21.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:
|
11
|
+
date: 2020-01-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|