aws-sdk-cloudwatchevents 1.15.0 → 1.16.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
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b3bc167ac75c634681b256fed31ff4f7c4921d16
|
|
4
|
+
data.tar.gz: 41794146629070893448b91664c9e2292eeb78da
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 59ec42577b5712389aec2d1f734cdf69a4bdc2c8e1e85e68372e98c9b706ab0a9669452d14b1419809fb85eaa0f79034a0db0ca04ebb1996f1a12f85da37acae
|
|
7
|
+
data.tar.gz: 9422539d537c8badffa342a35115ac730357c7de72500c5614b5e971d49947fcf59ef0ddfd536fa17abe778371b9dc17ebc74200d872fefc04d8432d8f8c70b3
|
|
@@ -475,6 +475,37 @@ module Aws::CloudWatchEvents
|
|
|
475
475
|
req.send_request(options)
|
|
476
476
|
end
|
|
477
477
|
|
|
478
|
+
# Displays the tags associated with a CloudWatch Events resource. In
|
|
479
|
+
# CloudWatch Events, rules can be tagged.
|
|
480
|
+
#
|
|
481
|
+
# @option params [required, String] :resource_arn
|
|
482
|
+
# The ARN of the CloudWatch Events rule for which you want to view tags.
|
|
483
|
+
#
|
|
484
|
+
# @return [Types::ListTagsForResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
485
|
+
#
|
|
486
|
+
# * {Types::ListTagsForResourceResponse#tags #tags} => Array<Types::Tag>
|
|
487
|
+
#
|
|
488
|
+
# @example Request syntax with placeholder values
|
|
489
|
+
#
|
|
490
|
+
# resp = client.list_tags_for_resource({
|
|
491
|
+
# resource_arn: "Arn", # required
|
|
492
|
+
# })
|
|
493
|
+
#
|
|
494
|
+
# @example Response structure
|
|
495
|
+
#
|
|
496
|
+
# resp.tags #=> Array
|
|
497
|
+
# resp.tags[0].key #=> String
|
|
498
|
+
# resp.tags[0].value #=> String
|
|
499
|
+
#
|
|
500
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListTagsForResource AWS API Documentation
|
|
501
|
+
#
|
|
502
|
+
# @overload list_tags_for_resource(params = {})
|
|
503
|
+
# @param [Hash] params ({})
|
|
504
|
+
def list_tags_for_resource(params = {}, options = {})
|
|
505
|
+
req = build_request(:list_tags_for_resource, params)
|
|
506
|
+
req.send_request(options)
|
|
507
|
+
end
|
|
508
|
+
|
|
478
509
|
# Lists the targets assigned to the specified rule.
|
|
479
510
|
#
|
|
480
511
|
# @option params [required, String] :rule
|
|
@@ -613,7 +644,7 @@ module Aws::CloudWatchEvents
|
|
|
613
644
|
#
|
|
614
645
|
#
|
|
615
646
|
#
|
|
616
|
-
# [1]:
|
|
647
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/CloudWatchEvents-CrossAccountEventDelivery.html
|
|
617
648
|
#
|
|
618
649
|
# @option params [required, String] :action
|
|
619
650
|
# The action that you are enabling the other account to perform.
|
|
@@ -652,7 +683,7 @@ module Aws::CloudWatchEvents
|
|
|
652
683
|
#
|
|
653
684
|
#
|
|
654
685
|
#
|
|
655
|
-
# [1]:
|
|
686
|
+
# [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_introduction.html
|
|
656
687
|
#
|
|
657
688
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
658
689
|
#
|
|
@@ -698,6 +729,17 @@ module Aws::CloudWatchEvents
|
|
|
698
729
|
# ScheduleExpression, in which case the rule triggers on matching events
|
|
699
730
|
# as well as on a schedule.
|
|
700
731
|
#
|
|
732
|
+
# When you initially create a rule, you can optionally assign one or
|
|
733
|
+
# more tags to the rule. Tags can help you organize and categorize your
|
|
734
|
+
# resources. You can also use them to scope user permissions, by
|
|
735
|
+
# granting a user permission to access or change only rules with certain
|
|
736
|
+
# tag values. To use the `PutRule` operation and assign tags, you must
|
|
737
|
+
# have both the `events:PutRule` and `events:TagResource` permissions.
|
|
738
|
+
#
|
|
739
|
+
# If you are updating an existing rule, any tags you specify in the
|
|
740
|
+
# `PutRule` operation are ignored. To update the tags of an existing
|
|
741
|
+
# rule, use TagResource and UntagResource.
|
|
742
|
+
#
|
|
701
743
|
# Most services in AWS treat : or / as the same character in Amazon
|
|
702
744
|
# Resource Names (ARNs). However, CloudWatch Events uses an exact match
|
|
703
745
|
# in event patterns and rules. Be sure to use the correct ARN characters
|
|
@@ -722,7 +764,7 @@ module Aws::CloudWatchEvents
|
|
|
722
764
|
#
|
|
723
765
|
#
|
|
724
766
|
#
|
|
725
|
-
# [1]:
|
|
767
|
+
# [1]: https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/budgets-managing-costs.html
|
|
726
768
|
#
|
|
727
769
|
# @option params [required, String] :name
|
|
728
770
|
# The name of the rule that you are creating or updating.
|
|
@@ -737,7 +779,7 @@ module Aws::CloudWatchEvents
|
|
|
737
779
|
#
|
|
738
780
|
#
|
|
739
781
|
#
|
|
740
|
-
# [1]:
|
|
782
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/CloudWatchEventsandEventPatterns.html
|
|
741
783
|
#
|
|
742
784
|
# @option params [String] :state
|
|
743
785
|
# Indicates whether the rule is enabled or disabled.
|
|
@@ -749,6 +791,9 @@ module Aws::CloudWatchEvents
|
|
|
749
791
|
# The Amazon Resource Name (ARN) of the IAM role associated with the
|
|
750
792
|
# rule.
|
|
751
793
|
#
|
|
794
|
+
# @option params [Array<Types::Tag>] :tags
|
|
795
|
+
# The list of key-value pairs to associate with the rule.
|
|
796
|
+
#
|
|
752
797
|
# @return [Types::PutRuleResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
753
798
|
#
|
|
754
799
|
# * {Types::PutRuleResponse#rule_arn #rule_arn} => String
|
|
@@ -762,6 +807,12 @@ module Aws::CloudWatchEvents
|
|
|
762
807
|
# state: "ENABLED", # accepts ENABLED, DISABLED
|
|
763
808
|
# description: "RuleDescription",
|
|
764
809
|
# role_arn: "RoleArn",
|
|
810
|
+
# tags: [
|
|
811
|
+
# {
|
|
812
|
+
# key: "TagKey", # required
|
|
813
|
+
# value: "TagValue", # required
|
|
814
|
+
# },
|
|
815
|
+
# ],
|
|
765
816
|
# })
|
|
766
817
|
#
|
|
767
818
|
# @example Response structure
|
|
@@ -890,9 +941,9 @@ module Aws::CloudWatchEvents
|
|
|
890
941
|
#
|
|
891
942
|
#
|
|
892
943
|
#
|
|
893
|
-
# [1]:
|
|
944
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/auth-and-access-control-cwe.html
|
|
894
945
|
# [2]: https://aws.amazon.com/cloudwatch/pricing/
|
|
895
|
-
# [3]:
|
|
946
|
+
# [3]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/CloudWatchEvents-CrossAccountEventDelivery.html
|
|
896
947
|
#
|
|
897
948
|
# @option params [required, String] :rule
|
|
898
949
|
# The name of the rule.
|
|
@@ -1063,6 +1114,52 @@ module Aws::CloudWatchEvents
|
|
|
1063
1114
|
req.send_request(options)
|
|
1064
1115
|
end
|
|
1065
1116
|
|
|
1117
|
+
# Assigns one or more tags (key-value pairs) to the specified CloudWatch
|
|
1118
|
+
# Events resource. Tags can help you organize and categorize your
|
|
1119
|
+
# resources. You can also use them to scope user permissions by granting
|
|
1120
|
+
# a user permission to access or change only resources with certain tag
|
|
1121
|
+
# values. In CloudWatch Events, rules can be tagged.
|
|
1122
|
+
#
|
|
1123
|
+
# Tags don't have any semantic meaning to AWS and are interpreted
|
|
1124
|
+
# strictly as strings of characters.
|
|
1125
|
+
#
|
|
1126
|
+
# You can use the `TagResource` action with a rule that already has
|
|
1127
|
+
# tags. If you specify a new tag key for the rule, this tag is appended
|
|
1128
|
+
# to the list of tags associated with the rule. If you specify a tag key
|
|
1129
|
+
# that is already associated with the rule, the new tag value that you
|
|
1130
|
+
# specify replaces the previous value for that tag.
|
|
1131
|
+
#
|
|
1132
|
+
# You can associate as many as 50 tags with a resource.
|
|
1133
|
+
#
|
|
1134
|
+
# @option params [required, String] :resource_arn
|
|
1135
|
+
# The ARN of the CloudWatch Events rule that you're adding tags to.
|
|
1136
|
+
#
|
|
1137
|
+
# @option params [required, Array<Types::Tag>] :tags
|
|
1138
|
+
# The list of key-value pairs to associate with the rule.
|
|
1139
|
+
#
|
|
1140
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
1141
|
+
#
|
|
1142
|
+
# @example Request syntax with placeholder values
|
|
1143
|
+
#
|
|
1144
|
+
# resp = client.tag_resource({
|
|
1145
|
+
# resource_arn: "Arn", # required
|
|
1146
|
+
# tags: [ # required
|
|
1147
|
+
# {
|
|
1148
|
+
# key: "TagKey", # required
|
|
1149
|
+
# value: "TagValue", # required
|
|
1150
|
+
# },
|
|
1151
|
+
# ],
|
|
1152
|
+
# })
|
|
1153
|
+
#
|
|
1154
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/TagResource AWS API Documentation
|
|
1155
|
+
#
|
|
1156
|
+
# @overload tag_resource(params = {})
|
|
1157
|
+
# @param [Hash] params ({})
|
|
1158
|
+
def tag_resource(params = {}, options = {})
|
|
1159
|
+
req = build_request(:tag_resource, params)
|
|
1160
|
+
req.send_request(options)
|
|
1161
|
+
end
|
|
1162
|
+
|
|
1066
1163
|
# Tests whether the specified event pattern matches the provided event.
|
|
1067
1164
|
#
|
|
1068
1165
|
# Most services in AWS treat : or / as the same character in Amazon
|
|
@@ -1077,7 +1174,7 @@ module Aws::CloudWatchEvents
|
|
|
1077
1174
|
#
|
|
1078
1175
|
#
|
|
1079
1176
|
#
|
|
1080
|
-
# [1]:
|
|
1177
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/CloudWatchEventsandEventPatterns.html
|
|
1081
1178
|
#
|
|
1082
1179
|
# @option params [required, String] :event
|
|
1083
1180
|
# The event, in JSON format, to test against the event pattern.
|
|
@@ -1106,6 +1203,34 @@ module Aws::CloudWatchEvents
|
|
|
1106
1203
|
req.send_request(options)
|
|
1107
1204
|
end
|
|
1108
1205
|
|
|
1206
|
+
# Removes one or more tags from the specified CloudWatch Events
|
|
1207
|
+
# resource. In CloudWatch Events, rules can be tagged.
|
|
1208
|
+
#
|
|
1209
|
+
# @option params [required, String] :resource_arn
|
|
1210
|
+
# The ARN of the CloudWatch Events rule from which you are removing
|
|
1211
|
+
# tags.
|
|
1212
|
+
#
|
|
1213
|
+
# @option params [required, Array<String>] :tag_keys
|
|
1214
|
+
# The list of tag keys to remove from the resource.
|
|
1215
|
+
#
|
|
1216
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
1217
|
+
#
|
|
1218
|
+
# @example Request syntax with placeholder values
|
|
1219
|
+
#
|
|
1220
|
+
# resp = client.untag_resource({
|
|
1221
|
+
# resource_arn: "Arn", # required
|
|
1222
|
+
# tag_keys: ["TagKey"], # required
|
|
1223
|
+
# })
|
|
1224
|
+
#
|
|
1225
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/UntagResource AWS API Documentation
|
|
1226
|
+
#
|
|
1227
|
+
# @overload untag_resource(params = {})
|
|
1228
|
+
# @param [Hash] params ({})
|
|
1229
|
+
def untag_resource(params = {}, options = {})
|
|
1230
|
+
req = build_request(:untag_resource, params)
|
|
1231
|
+
req.send_request(options)
|
|
1232
|
+
end
|
|
1233
|
+
|
|
1109
1234
|
# @!endgroup
|
|
1110
1235
|
|
|
1111
1236
|
# @param params ({})
|
|
@@ -1119,7 +1244,7 @@ module Aws::CloudWatchEvents
|
|
|
1119
1244
|
params: params,
|
|
1120
1245
|
config: config)
|
|
1121
1246
|
context[:gem_name] = 'aws-sdk-cloudwatchevents'
|
|
1122
|
-
context[:gem_version] = '1.
|
|
1247
|
+
context[:gem_version] = '1.16.0'
|
|
1123
1248
|
Seahorse::Client::Request.new(handlers, context)
|
|
1124
1249
|
end
|
|
1125
1250
|
|
|
@@ -50,6 +50,8 @@ module Aws::CloudWatchEvents
|
|
|
50
50
|
ListRuleNamesByTargetResponse = Shapes::StructureShape.new(name: 'ListRuleNamesByTargetResponse')
|
|
51
51
|
ListRulesRequest = Shapes::StructureShape.new(name: 'ListRulesRequest')
|
|
52
52
|
ListRulesResponse = Shapes::StructureShape.new(name: 'ListRulesResponse')
|
|
53
|
+
ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
|
|
54
|
+
ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
|
|
53
55
|
ListTargetsByRuleRequest = Shapes::StructureShape.new(name: 'ListTargetsByRuleRequest')
|
|
54
56
|
ListTargetsByRuleResponse = Shapes::StructureShape.new(name: 'ListTargetsByRuleResponse')
|
|
55
57
|
ManagedBy = Shapes::StringShape.new(name: 'ManagedBy')
|
|
@@ -97,6 +99,13 @@ module Aws::CloudWatchEvents
|
|
|
97
99
|
StatementId = Shapes::StringShape.new(name: 'StatementId')
|
|
98
100
|
String = Shapes::StringShape.new(name: 'String')
|
|
99
101
|
StringList = Shapes::ListShape.new(name: 'StringList')
|
|
102
|
+
Tag = Shapes::StructureShape.new(name: 'Tag')
|
|
103
|
+
TagKey = Shapes::StringShape.new(name: 'TagKey')
|
|
104
|
+
TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
|
|
105
|
+
TagList = Shapes::ListShape.new(name: 'TagList')
|
|
106
|
+
TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
|
|
107
|
+
TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
|
|
108
|
+
TagValue = Shapes::StringShape.new(name: 'TagValue')
|
|
100
109
|
Target = Shapes::StructureShape.new(name: 'Target')
|
|
101
110
|
TargetArn = Shapes::StringShape.new(name: 'TargetArn')
|
|
102
111
|
TargetId = Shapes::StringShape.new(name: 'TargetId')
|
|
@@ -109,6 +118,8 @@ module Aws::CloudWatchEvents
|
|
|
109
118
|
TestEventPatternResponse = Shapes::StructureShape.new(name: 'TestEventPatternResponse')
|
|
110
119
|
TransformerInput = Shapes::StringShape.new(name: 'TransformerInput')
|
|
111
120
|
TransformerPaths = Shapes::MapShape.new(name: 'TransformerPaths')
|
|
121
|
+
UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
|
|
122
|
+
UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
|
|
112
123
|
|
|
113
124
|
AwsVpcConfiguration.add_member(:subnets, Shapes::ShapeRef.new(shape: StringList, required: true, location_name: "Subnets"))
|
|
114
125
|
AwsVpcConfiguration.add_member(:security_groups, Shapes::ShapeRef.new(shape: StringList, location_name: "SecurityGroups"))
|
|
@@ -197,6 +208,12 @@ module Aws::CloudWatchEvents
|
|
|
197
208
|
ListRulesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
|
198
209
|
ListRulesResponse.struct_class = Types::ListRulesResponse
|
|
199
210
|
|
|
211
|
+
ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "ResourceARN"))
|
|
212
|
+
ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
|
|
213
|
+
|
|
214
|
+
ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
|
|
215
|
+
ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
|
|
216
|
+
|
|
200
217
|
ListTargetsByRuleRequest.add_member(:rule, Shapes::ShapeRef.new(shape: RuleName, required: true, location_name: "Rule"))
|
|
201
218
|
ListTargetsByRuleRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
|
202
219
|
ListTargetsByRuleRequest.add_member(:limit, Shapes::ShapeRef.new(shape: LimitMax100, location_name: "Limit"))
|
|
@@ -244,6 +261,7 @@ module Aws::CloudWatchEvents
|
|
|
244
261
|
PutRuleRequest.add_member(:state, Shapes::ShapeRef.new(shape: RuleState, location_name: "State"))
|
|
245
262
|
PutRuleRequest.add_member(:description, Shapes::ShapeRef.new(shape: RuleDescription, location_name: "Description"))
|
|
246
263
|
PutRuleRequest.add_member(:role_arn, Shapes::ShapeRef.new(shape: RoleArn, location_name: "RoleArn"))
|
|
264
|
+
PutRuleRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
|
|
247
265
|
PutRuleRequest.struct_class = Types::PutRuleRequest
|
|
248
266
|
|
|
249
267
|
PutRuleResponse.add_member(:rule_arn, Shapes::ShapeRef.new(shape: RuleArn, location_name: "RuleArn"))
|
|
@@ -313,6 +331,20 @@ module Aws::CloudWatchEvents
|
|
|
313
331
|
|
|
314
332
|
StringList.member = Shapes::ShapeRef.new(shape: String)
|
|
315
333
|
|
|
334
|
+
Tag.add_member(:key, Shapes::ShapeRef.new(shape: TagKey, required: true, location_name: "Key"))
|
|
335
|
+
Tag.add_member(:value, Shapes::ShapeRef.new(shape: TagValue, required: true, location_name: "Value"))
|
|
336
|
+
Tag.struct_class = Types::Tag
|
|
337
|
+
|
|
338
|
+
TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
|
|
339
|
+
|
|
340
|
+
TagList.member = Shapes::ShapeRef.new(shape: Tag)
|
|
341
|
+
|
|
342
|
+
TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "ResourceARN"))
|
|
343
|
+
TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, required: true, location_name: "Tags"))
|
|
344
|
+
TagResourceRequest.struct_class = Types::TagResourceRequest
|
|
345
|
+
|
|
346
|
+
TagResourceResponse.struct_class = Types::TagResourceResponse
|
|
347
|
+
|
|
316
348
|
Target.add_member(:id, Shapes::ShapeRef.new(shape: TargetId, required: true, location_name: "Id"))
|
|
317
349
|
Target.add_member(:arn, Shapes::ShapeRef.new(shape: TargetArn, required: true, location_name: "Arn"))
|
|
318
350
|
Target.add_member(:role_arn, Shapes::ShapeRef.new(shape: RoleArn, location_name: "RoleArn"))
|
|
@@ -340,6 +372,12 @@ module Aws::CloudWatchEvents
|
|
|
340
372
|
TransformerPaths.key = Shapes::ShapeRef.new(shape: InputTransformerPathKey)
|
|
341
373
|
TransformerPaths.value = Shapes::ShapeRef.new(shape: TargetInputPath)
|
|
342
374
|
|
|
375
|
+
UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "ResourceARN"))
|
|
376
|
+
UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location_name: "TagKeys"))
|
|
377
|
+
UntagResourceRequest.struct_class = Types::UntagResourceRequest
|
|
378
|
+
|
|
379
|
+
UntagResourceResponse.struct_class = Types::UntagResourceResponse
|
|
380
|
+
|
|
343
381
|
|
|
344
382
|
# @api private
|
|
345
383
|
API = Seahorse::Model::Api.new.tap do |api|
|
|
@@ -431,6 +469,16 @@ module Aws::CloudWatchEvents
|
|
|
431
469
|
o.errors << Shapes::ShapeRef.new(shape: InternalException)
|
|
432
470
|
end)
|
|
433
471
|
|
|
472
|
+
api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
|
|
473
|
+
o.name = "ListTagsForResource"
|
|
474
|
+
o.http_method = "POST"
|
|
475
|
+
o.http_request_uri = "/"
|
|
476
|
+
o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
|
|
477
|
+
o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
|
|
478
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
|
479
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalException)
|
|
480
|
+
end)
|
|
481
|
+
|
|
434
482
|
api.add_operation(:list_targets_by_rule, Seahorse::Model::Operation.new.tap do |o|
|
|
435
483
|
o.name = "ListTargetsByRule"
|
|
436
484
|
o.http_method = "POST"
|
|
@@ -511,6 +559,18 @@ module Aws::CloudWatchEvents
|
|
|
511
559
|
o.errors << Shapes::ShapeRef.new(shape: InternalException)
|
|
512
560
|
end)
|
|
513
561
|
|
|
562
|
+
api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
|
|
563
|
+
o.name = "TagResource"
|
|
564
|
+
o.http_method = "POST"
|
|
565
|
+
o.http_request_uri = "/"
|
|
566
|
+
o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
|
|
567
|
+
o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
|
|
568
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
|
569
|
+
o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
|
|
570
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalException)
|
|
571
|
+
o.errors << Shapes::ShapeRef.new(shape: ManagedRuleException)
|
|
572
|
+
end)
|
|
573
|
+
|
|
514
574
|
api.add_operation(:test_event_pattern, Seahorse::Model::Operation.new.tap do |o|
|
|
515
575
|
o.name = "TestEventPattern"
|
|
516
576
|
o.http_method = "POST"
|
|
@@ -520,6 +580,18 @@ module Aws::CloudWatchEvents
|
|
|
520
580
|
o.errors << Shapes::ShapeRef.new(shape: InvalidEventPatternException)
|
|
521
581
|
o.errors << Shapes::ShapeRef.new(shape: InternalException)
|
|
522
582
|
end)
|
|
583
|
+
|
|
584
|
+
api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
|
|
585
|
+
o.name = "UntagResource"
|
|
586
|
+
o.http_method = "POST"
|
|
587
|
+
o.http_request_uri = "/"
|
|
588
|
+
o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
|
|
589
|
+
o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
|
|
590
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
|
591
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalException)
|
|
592
|
+
o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
|
|
593
|
+
o.errors << Shapes::ShapeRef.new(shape: ManagedRuleException)
|
|
594
|
+
end)
|
|
523
595
|
end
|
|
524
596
|
|
|
525
597
|
end
|
|
@@ -278,7 +278,7 @@ module Aws::CloudWatchEvents
|
|
|
278
278
|
#
|
|
279
279
|
#
|
|
280
280
|
#
|
|
281
|
-
# [1]:
|
|
281
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/CloudWatchEventsandEventPatterns.html
|
|
282
282
|
# @return [String]
|
|
283
283
|
#
|
|
284
284
|
# @!attribute [rw] schedule_expression
|
|
@@ -378,7 +378,7 @@ module Aws::CloudWatchEvents
|
|
|
378
378
|
#
|
|
379
379
|
#
|
|
380
380
|
#
|
|
381
|
-
# [1]:
|
|
381
|
+
# [1]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/AWS-Fargate.html
|
|
382
382
|
# @return [String]
|
|
383
383
|
#
|
|
384
384
|
# @!attribute [rw] network_configuration
|
|
@@ -403,7 +403,7 @@ module Aws::CloudWatchEvents
|
|
|
403
403
|
#
|
|
404
404
|
#
|
|
405
405
|
#
|
|
406
|
-
# [1]:
|
|
406
|
+
# [1]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html
|
|
407
407
|
# @return [String]
|
|
408
408
|
#
|
|
409
409
|
# @!attribute [rw] group
|
|
@@ -537,7 +537,7 @@ module Aws::CloudWatchEvents
|
|
|
537
537
|
#
|
|
538
538
|
#
|
|
539
539
|
#
|
|
540
|
-
# [1]:
|
|
540
|
+
# [1]: https://docs.aws.amazon.com/streams/latest/dev/key-concepts.html#partition-key
|
|
541
541
|
# @return [String]
|
|
542
542
|
#
|
|
543
543
|
# @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/KinesisParameters AWS API Documentation
|
|
@@ -643,6 +643,37 @@ module Aws::CloudWatchEvents
|
|
|
643
643
|
include Aws::Structure
|
|
644
644
|
end
|
|
645
645
|
|
|
646
|
+
# @note When making an API call, you may pass ListTagsForResourceRequest
|
|
647
|
+
# data as a hash:
|
|
648
|
+
#
|
|
649
|
+
# {
|
|
650
|
+
# resource_arn: "Arn", # required
|
|
651
|
+
# }
|
|
652
|
+
#
|
|
653
|
+
# @!attribute [rw] resource_arn
|
|
654
|
+
# The ARN of the CloudWatch Events rule for which you want to view
|
|
655
|
+
# tags.
|
|
656
|
+
# @return [String]
|
|
657
|
+
#
|
|
658
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListTagsForResourceRequest AWS API Documentation
|
|
659
|
+
#
|
|
660
|
+
class ListTagsForResourceRequest < Struct.new(
|
|
661
|
+
:resource_arn)
|
|
662
|
+
include Aws::Structure
|
|
663
|
+
end
|
|
664
|
+
|
|
665
|
+
# @!attribute [rw] tags
|
|
666
|
+
# The list of tag keys and values associated with the rule you
|
|
667
|
+
# specified
|
|
668
|
+
# @return [Array<Types::Tag>]
|
|
669
|
+
#
|
|
670
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListTagsForResourceResponse AWS API Documentation
|
|
671
|
+
#
|
|
672
|
+
class ListTagsForResourceResponse < Struct.new(
|
|
673
|
+
:tags)
|
|
674
|
+
include Aws::Structure
|
|
675
|
+
end
|
|
676
|
+
|
|
646
677
|
# @note When making an API call, you may pass ListTargetsByRuleRequest
|
|
647
678
|
# data as a hash:
|
|
648
679
|
#
|
|
@@ -896,7 +927,7 @@ module Aws::CloudWatchEvents
|
|
|
896
927
|
#
|
|
897
928
|
#
|
|
898
929
|
#
|
|
899
|
-
# [1]:
|
|
930
|
+
# [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_introduction.html
|
|
900
931
|
# @return [Types::Condition]
|
|
901
932
|
#
|
|
902
933
|
# @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutPermissionRequest AWS API Documentation
|
|
@@ -919,6 +950,12 @@ module Aws::CloudWatchEvents
|
|
|
919
950
|
# state: "ENABLED", # accepts ENABLED, DISABLED
|
|
920
951
|
# description: "RuleDescription",
|
|
921
952
|
# role_arn: "RoleArn",
|
|
953
|
+
# tags: [
|
|
954
|
+
# {
|
|
955
|
+
# key: "TagKey", # required
|
|
956
|
+
# value: "TagValue", # required
|
|
957
|
+
# },
|
|
958
|
+
# ],
|
|
922
959
|
# }
|
|
923
960
|
#
|
|
924
961
|
# @!attribute [rw] name
|
|
@@ -936,7 +973,7 @@ module Aws::CloudWatchEvents
|
|
|
936
973
|
#
|
|
937
974
|
#
|
|
938
975
|
#
|
|
939
|
-
# [1]:
|
|
976
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/CloudWatchEventsandEventPatterns.html
|
|
940
977
|
# @return [String]
|
|
941
978
|
#
|
|
942
979
|
# @!attribute [rw] state
|
|
@@ -952,6 +989,10 @@ module Aws::CloudWatchEvents
|
|
|
952
989
|
# rule.
|
|
953
990
|
# @return [String]
|
|
954
991
|
#
|
|
992
|
+
# @!attribute [rw] tags
|
|
993
|
+
# The list of key-value pairs to associate with the rule.
|
|
994
|
+
# @return [Array<Types::Tag>]
|
|
995
|
+
#
|
|
955
996
|
# @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutRuleRequest AWS API Documentation
|
|
956
997
|
#
|
|
957
998
|
class PutRuleRequest < Struct.new(
|
|
@@ -960,7 +1001,8 @@ module Aws::CloudWatchEvents
|
|
|
960
1001
|
:event_pattern,
|
|
961
1002
|
:state,
|
|
962
1003
|
:description,
|
|
963
|
-
:role_arn
|
|
1004
|
+
:role_arn,
|
|
1005
|
+
:tags)
|
|
964
1006
|
include Aws::Structure
|
|
965
1007
|
end
|
|
966
1008
|
|
|
@@ -1202,7 +1244,7 @@ module Aws::CloudWatchEvents
|
|
|
1202
1244
|
#
|
|
1203
1245
|
#
|
|
1204
1246
|
#
|
|
1205
|
-
# [1]:
|
|
1247
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/CloudWatchEventsandEventPatterns.html
|
|
1206
1248
|
# @return [String]
|
|
1207
1249
|
#
|
|
1208
1250
|
# @!attribute [rw] state
|
|
@@ -1321,6 +1363,67 @@ module Aws::CloudWatchEvents
|
|
|
1321
1363
|
include Aws::Structure
|
|
1322
1364
|
end
|
|
1323
1365
|
|
|
1366
|
+
# A key-value pair associated with an AWS resource. In CloudWatch
|
|
1367
|
+
# Events, rules support tagging.
|
|
1368
|
+
#
|
|
1369
|
+
# @note When making an API call, you may pass Tag
|
|
1370
|
+
# data as a hash:
|
|
1371
|
+
#
|
|
1372
|
+
# {
|
|
1373
|
+
# key: "TagKey", # required
|
|
1374
|
+
# value: "TagValue", # required
|
|
1375
|
+
# }
|
|
1376
|
+
#
|
|
1377
|
+
# @!attribute [rw] key
|
|
1378
|
+
# A string you can use to assign a value. The combination of tag keys
|
|
1379
|
+
# and values can help you organize and categorize your resources.
|
|
1380
|
+
# @return [String]
|
|
1381
|
+
#
|
|
1382
|
+
# @!attribute [rw] value
|
|
1383
|
+
# The value for the specified tag key.
|
|
1384
|
+
# @return [String]
|
|
1385
|
+
#
|
|
1386
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/Tag AWS API Documentation
|
|
1387
|
+
#
|
|
1388
|
+
class Tag < Struct.new(
|
|
1389
|
+
:key,
|
|
1390
|
+
:value)
|
|
1391
|
+
include Aws::Structure
|
|
1392
|
+
end
|
|
1393
|
+
|
|
1394
|
+
# @note When making an API call, you may pass TagResourceRequest
|
|
1395
|
+
# data as a hash:
|
|
1396
|
+
#
|
|
1397
|
+
# {
|
|
1398
|
+
# resource_arn: "Arn", # required
|
|
1399
|
+
# tags: [ # required
|
|
1400
|
+
# {
|
|
1401
|
+
# key: "TagKey", # required
|
|
1402
|
+
# value: "TagValue", # required
|
|
1403
|
+
# },
|
|
1404
|
+
# ],
|
|
1405
|
+
# }
|
|
1406
|
+
#
|
|
1407
|
+
# @!attribute [rw] resource_arn
|
|
1408
|
+
# The ARN of the CloudWatch Events rule that you're adding tags to.
|
|
1409
|
+
# @return [String]
|
|
1410
|
+
#
|
|
1411
|
+
# @!attribute [rw] tags
|
|
1412
|
+
# The list of key-value pairs to associate with the rule.
|
|
1413
|
+
# @return [Array<Types::Tag>]
|
|
1414
|
+
#
|
|
1415
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/TagResourceRequest AWS API Documentation
|
|
1416
|
+
#
|
|
1417
|
+
class TagResourceRequest < Struct.new(
|
|
1418
|
+
:resource_arn,
|
|
1419
|
+
:tags)
|
|
1420
|
+
include Aws::Structure
|
|
1421
|
+
end
|
|
1422
|
+
|
|
1423
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/TagResourceResponse AWS API Documentation
|
|
1424
|
+
#
|
|
1425
|
+
class TagResourceResponse < Aws::EmptyStructure; end
|
|
1426
|
+
|
|
1324
1427
|
# Targets are the resources to be invoked when a rule is triggered. For
|
|
1325
1428
|
# a complete list of services and resources that can be set as a target,
|
|
1326
1429
|
# see PutTargets.
|
|
@@ -1334,7 +1437,7 @@ module Aws::CloudWatchEvents
|
|
|
1334
1437
|
#
|
|
1335
1438
|
#
|
|
1336
1439
|
#
|
|
1337
|
-
# [1]:
|
|
1440
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/CloudWatchEvents-CrossAccountEventDelivery.html
|
|
1338
1441
|
#
|
|
1339
1442
|
# @note When making an API call, you may pass Target
|
|
1340
1443
|
# data as a hash:
|
|
@@ -1452,7 +1555,7 @@ module Aws::CloudWatchEvents
|
|
|
1452
1555
|
#
|
|
1453
1556
|
#
|
|
1454
1557
|
#
|
|
1455
|
-
# [1]:
|
|
1558
|
+
# [1]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_defintions.html
|
|
1456
1559
|
# @return [Types::EcsParameters]
|
|
1457
1560
|
#
|
|
1458
1561
|
# @!attribute [rw] batch_parameters
|
|
@@ -1462,7 +1565,7 @@ module Aws::CloudWatchEvents
|
|
|
1462
1565
|
#
|
|
1463
1566
|
#
|
|
1464
1567
|
#
|
|
1465
|
-
# [1]:
|
|
1568
|
+
# [1]: https://docs.aws.amazon.com/batch/latest/userguide/jobs.html
|
|
1466
1569
|
# @return [Types::BatchParameters]
|
|
1467
1570
|
#
|
|
1468
1571
|
# @!attribute [rw] sqs_parameters
|
|
@@ -1504,7 +1607,7 @@ module Aws::CloudWatchEvents
|
|
|
1504
1607
|
#
|
|
1505
1608
|
#
|
|
1506
1609
|
#
|
|
1507
|
-
# [1]:
|
|
1610
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/CloudWatchEventsandEventPatterns.html
|
|
1508
1611
|
# @return [String]
|
|
1509
1612
|
#
|
|
1510
1613
|
# @!attribute [rw] event
|
|
@@ -1530,5 +1633,34 @@ module Aws::CloudWatchEvents
|
|
|
1530
1633
|
include Aws::Structure
|
|
1531
1634
|
end
|
|
1532
1635
|
|
|
1636
|
+
# @note When making an API call, you may pass UntagResourceRequest
|
|
1637
|
+
# data as a hash:
|
|
1638
|
+
#
|
|
1639
|
+
# {
|
|
1640
|
+
# resource_arn: "Arn", # required
|
|
1641
|
+
# tag_keys: ["TagKey"], # required
|
|
1642
|
+
# }
|
|
1643
|
+
#
|
|
1644
|
+
# @!attribute [rw] resource_arn
|
|
1645
|
+
# The ARN of the CloudWatch Events rule from which you are removing
|
|
1646
|
+
# tags.
|
|
1647
|
+
# @return [String]
|
|
1648
|
+
#
|
|
1649
|
+
# @!attribute [rw] tag_keys
|
|
1650
|
+
# The list of tag keys to remove from the resource.
|
|
1651
|
+
# @return [Array<String>]
|
|
1652
|
+
#
|
|
1653
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/UntagResourceRequest AWS API Documentation
|
|
1654
|
+
#
|
|
1655
|
+
class UntagResourceRequest < Struct.new(
|
|
1656
|
+
:resource_arn,
|
|
1657
|
+
:tag_keys)
|
|
1658
|
+
include Aws::Structure
|
|
1659
|
+
end
|
|
1660
|
+
|
|
1661
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/UntagResourceResponse AWS API Documentation
|
|
1662
|
+
#
|
|
1663
|
+
class UntagResourceResponse < Aws::EmptyStructure; end
|
|
1664
|
+
|
|
1533
1665
|
end
|
|
1534
1666
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: aws-sdk-cloudwatchevents
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.16.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: 2019-03-
|
|
11
|
+
date: 2019-03-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: aws-sdk-core
|