aws-sdk-cloudwatchevents 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3cadaf1443d575dcf8af329d5abfee80278d431c
|
4
|
+
data.tar.gz: 10dd0b222eb1d3a3f91cbcf97ec899fe6d80aa00
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d08a7f5387ee32e77119789c90407e2315cc680284b163e072dbc51493800882411fd2240b793a0c4700a35e034cc28702af48a145113ee907387fce30b5d809
|
7
|
+
data.tar.gz: 0d5cbdda1f81211e2c5dbdc3ce06506717cffade908425193e5c0bbb51e3c4e068d3cb10807671a88eaf87bbf19be93f29e9dd565de5cad9a251125cd2d5194c
|
@@ -436,6 +436,10 @@ module Aws::CloudWatchEvents
|
|
436
436
|
# resp.targets[0].run_command_parameters.run_command_targets[0].values[0] #=> String
|
437
437
|
# resp.targets[0].ecs_parameters.task_definition_arn #=> String
|
438
438
|
# resp.targets[0].ecs_parameters.task_count #=> Integer
|
439
|
+
# resp.targets[0].batch_parameters.job_definition #=> String
|
440
|
+
# resp.targets[0].batch_parameters.job_name #=> String
|
441
|
+
# resp.targets[0].batch_parameters.array_properties.size #=> Integer
|
442
|
+
# resp.targets[0].batch_parameters.retry_strategy.attempts #=> Integer
|
439
443
|
# resp.next_token #=> String
|
440
444
|
#
|
441
445
|
# @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListTargetsByRule AWS API Documentation
|
@@ -550,6 +554,11 @@ module Aws::CloudWatchEvents
|
|
550
554
|
# or based on value of the state. You can disable a rule using
|
551
555
|
# DisableRule.
|
552
556
|
#
|
557
|
+
# If you are updating an existing rule, the rule is completely replaced
|
558
|
+
# with what you specify in this `PutRule` command. If you omit arguments
|
559
|
+
# in `PutRule`, the old values for those arguments are not kept.
|
560
|
+
# Instead, they are replaced with null values.
|
561
|
+
#
|
553
562
|
# When you create or update a rule, incoming events might not
|
554
563
|
# immediately start matching to new or updated rules. Please allow a
|
555
564
|
# short period of time for changes to take effect.
|
@@ -639,6 +648,8 @@ module Aws::CloudWatchEvents
|
|
639
648
|
#
|
640
649
|
# * AWS Step Functions state machines
|
641
650
|
#
|
651
|
+
# * AWS Batch jobs
|
652
|
+
#
|
642
653
|
# * Pipelines in Amazon Code Pipeline
|
643
654
|
#
|
644
655
|
# * Amazon Inspector assessment templates
|
@@ -702,8 +713,8 @@ module Aws::CloudWatchEvents
|
|
702
713
|
# JSONPaths are extracted from the event and used as values in a
|
703
714
|
# template that you specify as the input to the target.
|
704
715
|
#
|
705
|
-
# When you specify `
|
706
|
-
#
|
716
|
+
# When you specify `InputPath` or `InputTransformer`, you must use JSON
|
717
|
+
# dot notation, not bracket notation.
|
707
718
|
#
|
708
719
|
# When you add targets to a rule and the associated rule triggers soon
|
709
720
|
# after, new or updated targets might not be immediately invoked. Please
|
@@ -762,6 +773,16 @@ module Aws::CloudWatchEvents
|
|
762
773
|
# task_definition_arn: "Arn", # required
|
763
774
|
# task_count: 1,
|
764
775
|
# },
|
776
|
+
# batch_parameters: {
|
777
|
+
# job_definition: "String", # required
|
778
|
+
# job_name: "String", # required
|
779
|
+
# array_properties: {
|
780
|
+
# size: 1,
|
781
|
+
# },
|
782
|
+
# retry_strategy: {
|
783
|
+
# attempts: 1,
|
784
|
+
# },
|
785
|
+
# },
|
765
786
|
# },
|
766
787
|
# ],
|
767
788
|
# })
|
@@ -913,7 +934,7 @@ module Aws::CloudWatchEvents
|
|
913
934
|
params: params,
|
914
935
|
config: config)
|
915
936
|
context[:gem_name] = 'aws-sdk-cloudwatchevents'
|
916
|
-
context[:gem_version] = '1.
|
937
|
+
context[:gem_version] = '1.2.0'
|
917
938
|
Seahorse::Client::Request.new(handlers, context)
|
918
939
|
end
|
919
940
|
|
@@ -13,6 +13,9 @@ module Aws::CloudWatchEvents
|
|
13
13
|
|
14
14
|
Action = Shapes::StringShape.new(name: 'Action')
|
15
15
|
Arn = Shapes::StringShape.new(name: 'Arn')
|
16
|
+
BatchArrayProperties = Shapes::StructureShape.new(name: 'BatchArrayProperties')
|
17
|
+
BatchParameters = Shapes::StructureShape.new(name: 'BatchParameters')
|
18
|
+
BatchRetryStrategy = Shapes::StructureShape.new(name: 'BatchRetryStrategy')
|
16
19
|
Boolean = Shapes::BooleanShape.new(name: 'Boolean')
|
17
20
|
ConcurrentModificationException = Shapes::StructureShape.new(name: 'ConcurrentModificationException')
|
18
21
|
DeleteRuleRequest = Shapes::StructureShape.new(name: 'DeleteRuleRequest')
|
@@ -97,6 +100,18 @@ module Aws::CloudWatchEvents
|
|
97
100
|
TransformerInput = Shapes::StringShape.new(name: 'TransformerInput')
|
98
101
|
TransformerPaths = Shapes::MapShape.new(name: 'TransformerPaths')
|
99
102
|
|
103
|
+
BatchArrayProperties.add_member(:size, Shapes::ShapeRef.new(shape: Integer, location_name: "Size"))
|
104
|
+
BatchArrayProperties.struct_class = Types::BatchArrayProperties
|
105
|
+
|
106
|
+
BatchParameters.add_member(:job_definition, Shapes::ShapeRef.new(shape: String, required: true, location_name: "JobDefinition"))
|
107
|
+
BatchParameters.add_member(:job_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "JobName"))
|
108
|
+
BatchParameters.add_member(:array_properties, Shapes::ShapeRef.new(shape: BatchArrayProperties, location_name: "ArrayProperties"))
|
109
|
+
BatchParameters.add_member(:retry_strategy, Shapes::ShapeRef.new(shape: BatchRetryStrategy, location_name: "RetryStrategy"))
|
110
|
+
BatchParameters.struct_class = Types::BatchParameters
|
111
|
+
|
112
|
+
BatchRetryStrategy.add_member(:attempts, Shapes::ShapeRef.new(shape: Integer, location_name: "Attempts"))
|
113
|
+
BatchRetryStrategy.struct_class = Types::BatchRetryStrategy
|
114
|
+
|
100
115
|
DeleteRuleRequest.add_member(:name, Shapes::ShapeRef.new(shape: RuleName, required: true, location_name: "Name"))
|
101
116
|
DeleteRuleRequest.struct_class = Types::DeleteRuleRequest
|
102
117
|
|
@@ -270,6 +285,7 @@ module Aws::CloudWatchEvents
|
|
270
285
|
Target.add_member(:kinesis_parameters, Shapes::ShapeRef.new(shape: KinesisParameters, location_name: "KinesisParameters"))
|
271
286
|
Target.add_member(:run_command_parameters, Shapes::ShapeRef.new(shape: RunCommandParameters, location_name: "RunCommandParameters"))
|
272
287
|
Target.add_member(:ecs_parameters, Shapes::ShapeRef.new(shape: EcsParameters, location_name: "EcsParameters"))
|
288
|
+
Target.add_member(:batch_parameters, Shapes::ShapeRef.new(shape: BatchParameters, location_name: "BatchParameters"))
|
273
289
|
Target.struct_class = Types::Target
|
274
290
|
|
275
291
|
TargetIdList.member = Shapes::ShapeRef.new(shape: TargetId)
|
@@ -8,6 +8,104 @@
|
|
8
8
|
module Aws::CloudWatchEvents
|
9
9
|
module Types
|
10
10
|
|
11
|
+
# The array properties for the submitted job, such as the size of the
|
12
|
+
# array. The array size can be between 2 and 10,000. If you specify
|
13
|
+
# array properties for a job, it becomes an array job. This parameter is
|
14
|
+
# used only if the target is an AWS Batch job.
|
15
|
+
#
|
16
|
+
# @note When making an API call, you may pass BatchArrayProperties
|
17
|
+
# data as a hash:
|
18
|
+
#
|
19
|
+
# {
|
20
|
+
# size: 1,
|
21
|
+
# }
|
22
|
+
#
|
23
|
+
# @!attribute [rw] size
|
24
|
+
# The size of the array, if this is an array batch job. Valid values
|
25
|
+
# are integers between 2 and 10,000.
|
26
|
+
# @return [Integer]
|
27
|
+
#
|
28
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/BatchArrayProperties AWS API Documentation
|
29
|
+
#
|
30
|
+
class BatchArrayProperties < Struct.new(
|
31
|
+
:size)
|
32
|
+
include Aws::Structure
|
33
|
+
end
|
34
|
+
|
35
|
+
# The custom parameters to be used when the target is an AWS Batch job.
|
36
|
+
#
|
37
|
+
# @note When making an API call, you may pass BatchParameters
|
38
|
+
# data as a hash:
|
39
|
+
#
|
40
|
+
# {
|
41
|
+
# job_definition: "String", # required
|
42
|
+
# job_name: "String", # required
|
43
|
+
# array_properties: {
|
44
|
+
# size: 1,
|
45
|
+
# },
|
46
|
+
# retry_strategy: {
|
47
|
+
# attempts: 1,
|
48
|
+
# },
|
49
|
+
# }
|
50
|
+
#
|
51
|
+
# @!attribute [rw] job_definition
|
52
|
+
# The ARN or name of the job definition to use if the event target is
|
53
|
+
# an AWS Batch job. This job definition must already exist.
|
54
|
+
# @return [String]
|
55
|
+
#
|
56
|
+
# @!attribute [rw] job_name
|
57
|
+
# The name to use for this execution of the job, if the target is an
|
58
|
+
# AWS Batch job.
|
59
|
+
# @return [String]
|
60
|
+
#
|
61
|
+
# @!attribute [rw] array_properties
|
62
|
+
# The array properties for the submitted job, such as the size of the
|
63
|
+
# array. The array size can be between 2 and 10,000. If you specify
|
64
|
+
# array properties for a job, it becomes an array job. This parameter
|
65
|
+
# is used only if the target is an AWS Batch job.
|
66
|
+
# @return [Types::BatchArrayProperties]
|
67
|
+
#
|
68
|
+
# @!attribute [rw] retry_strategy
|
69
|
+
# The retry strategy to use for failed jobs, if the target is an AWS
|
70
|
+
# Batch job. The retry strategy is the number of times to retry the
|
71
|
+
# failed job execution. Valid values are 1 to 10. When you specify a
|
72
|
+
# retry strategy here, it overrides the retry strategy defined in the
|
73
|
+
# job definition.
|
74
|
+
# @return [Types::BatchRetryStrategy]
|
75
|
+
#
|
76
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/BatchParameters AWS API Documentation
|
77
|
+
#
|
78
|
+
class BatchParameters < Struct.new(
|
79
|
+
:job_definition,
|
80
|
+
:job_name,
|
81
|
+
:array_properties,
|
82
|
+
:retry_strategy)
|
83
|
+
include Aws::Structure
|
84
|
+
end
|
85
|
+
|
86
|
+
# The retry strategy to use for failed jobs, if the target is an AWS
|
87
|
+
# Batch job. If you specify a retry strategy here, it overrides the
|
88
|
+
# retry strategy defined in the job definition.
|
89
|
+
#
|
90
|
+
# @note When making an API call, you may pass BatchRetryStrategy
|
91
|
+
# data as a hash:
|
92
|
+
#
|
93
|
+
# {
|
94
|
+
# attempts: 1,
|
95
|
+
# }
|
96
|
+
#
|
97
|
+
# @!attribute [rw] attempts
|
98
|
+
# The number of times to attempt to retry, if the job fails. Valid
|
99
|
+
# values are 1 to 10.
|
100
|
+
# @return [Integer]
|
101
|
+
#
|
102
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/BatchRetryStrategy AWS API Documentation
|
103
|
+
#
|
104
|
+
class BatchRetryStrategy < Struct.new(
|
105
|
+
:attempts)
|
106
|
+
include Aws::Structure
|
107
|
+
end
|
108
|
+
|
11
109
|
# @note When making an API call, you may pass DeleteRuleRequest
|
12
110
|
# data as a hash:
|
13
111
|
#
|
@@ -458,9 +556,8 @@ module Aws::CloudWatchEvents
|
|
458
556
|
# @return [String]
|
459
557
|
#
|
460
558
|
# @!attribute [rw] detail
|
461
|
-
#
|
462
|
-
# contain nested subobjects.
|
463
|
-
# contents.
|
559
|
+
# A valid JSON string. There is no other schema imposed. The JSON
|
560
|
+
# string may contain fields and nested subobjects.
|
464
561
|
# @return [String]
|
465
562
|
#
|
466
563
|
# @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutEventsRequestEntry AWS API Documentation
|
@@ -657,6 +754,16 @@ module Aws::CloudWatchEvents
|
|
657
754
|
# task_definition_arn: "Arn", # required
|
658
755
|
# task_count: 1,
|
659
756
|
# },
|
757
|
+
# batch_parameters: {
|
758
|
+
# job_definition: "String", # required
|
759
|
+
# job_name: "String", # required
|
760
|
+
# array_properties: {
|
761
|
+
# size: 1,
|
762
|
+
# },
|
763
|
+
# retry_strategy: {
|
764
|
+
# attempts: 1,
|
765
|
+
# },
|
766
|
+
# },
|
660
767
|
# },
|
661
768
|
# ],
|
662
769
|
# }
|
@@ -944,6 +1051,16 @@ module Aws::CloudWatchEvents
|
|
944
1051
|
# task_definition_arn: "Arn", # required
|
945
1052
|
# task_count: 1,
|
946
1053
|
# },
|
1054
|
+
# batch_parameters: {
|
1055
|
+
# job_definition: "String", # required
|
1056
|
+
# job_name: "String", # required
|
1057
|
+
# array_properties: {
|
1058
|
+
# size: 1,
|
1059
|
+
# },
|
1060
|
+
# retry_strategy: {
|
1061
|
+
# attempts: 1,
|
1062
|
+
# },
|
1063
|
+
# },
|
947
1064
|
# }
|
948
1065
|
#
|
949
1066
|
# @!attribute [rw] id
|
@@ -962,8 +1079,7 @@ module Aws::CloudWatchEvents
|
|
962
1079
|
#
|
963
1080
|
# @!attribute [rw] input
|
964
1081
|
# Valid JSON text passed to the target. In this case, nothing from the
|
965
|
-
# event itself is passed to the target.
|
966
|
-
# notation, not bracket notation. For more information, see [The
|
1082
|
+
# event itself is passed to the target. For more information, see [The
|
967
1083
|
# JavaScript Object Notation (JSON) Data Interchange Format][1].
|
968
1084
|
#
|
969
1085
|
#
|
@@ -1011,6 +1127,16 @@ module Aws::CloudWatchEvents
|
|
1011
1127
|
# [1]: http://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_defintions.html
|
1012
1128
|
# @return [Types::EcsParameters]
|
1013
1129
|
#
|
1130
|
+
# @!attribute [rw] batch_parameters
|
1131
|
+
# Contains the job definition, job name, and other parameters if the
|
1132
|
+
# event target is an AWS Batch job. For more information about AWS
|
1133
|
+
# Batch, see [Jobs][1] in the *AWS Batch User Guide*.
|
1134
|
+
#
|
1135
|
+
#
|
1136
|
+
#
|
1137
|
+
# [1]: http://docs.aws.amazon.com/batch/latest/userguide/jobs.html
|
1138
|
+
# @return [Types::BatchParameters]
|
1139
|
+
#
|
1014
1140
|
# @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/Target AWS API Documentation
|
1015
1141
|
#
|
1016
1142
|
class Target < Struct.new(
|
@@ -1022,7 +1148,8 @@ module Aws::CloudWatchEvents
|
|
1022
1148
|
:input_transformer,
|
1023
1149
|
:kinesis_parameters,
|
1024
1150
|
:run_command_parameters,
|
1025
|
-
:ecs_parameters
|
1151
|
+
:ecs_parameters,
|
1152
|
+
:batch_parameters)
|
1026
1153
|
include Aws::Structure
|
1027
1154
|
end
|
1028
1155
|
|
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.2.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: 2018-03-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|