aws-sdk-cloudwatchevents 1.46.0 → 1.47.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
  SHA256:
3
- metadata.gz: bc34c0ff55eb3de7cdd12e19910cafc796bfec02de79eb2f34b21e0d82c74e65
4
- data.tar.gz: 451b24f2cedc1cf787625e6f29db6eb6864757722a84f981c405cd32de8b5633
3
+ metadata.gz: d0ef0a46b7e3f804fec9f465e930d7a56cc5a4144889ceb83475990b5f891483
4
+ data.tar.gz: fe47d529f6af8c7d52b22d3a834adfa92ac66ff4e3011a54cdafcbed3cc6cc46
5
5
  SHA512:
6
- metadata.gz: 28d446104758cb3d0d91ec6f242e0bddbe335c2d4789842f059e70fea32fe6fb0f797922b1a1de0a25911ecfe074f3058f477d06f5384a483ed63ae483f48898
7
- data.tar.gz: ccb0461399afb0bcde3fdf57eae7693a0e0fc9c71a8f0ced825f6646b0bf7f9061fa689619eb30d78e7333992e67f90aa2f2874c13eb4d8d5e0889bef2e72603
6
+ metadata.gz: d8c7a72aef540a8a6c68b349d22a891df7a8212039dee6a05612c8ff97000395f217666e21c423db12929c52673b8ee80c32031c9cd537aa638d0d4641e55863
7
+ data.tar.gz: d1daef8d75357f5132faaa25dae3813dd5692fd5031be03c0efc2042448639f188cec21e0cad385705d30a32bcbaa8ca15db399fbbcf29eae4c86ecc51ba6ed5
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.47.0 (2021-06-23)
5
+ ------------------
6
+
7
+ * Feature - Added the following parameters to ECS targets: CapacityProviderStrategy, EnableECSManagedTags, EnableExecuteCommand, PlacementConstraints, PlacementStrategy, PropagateTags, ReferenceId, and Tags
8
+
4
9
  1.46.0 (2021-05-14)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.46.0
1
+ 1.47.0
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-cloudwatchevents/customizations'
48
48
  # @!group service
49
49
  module Aws::CloudWatchEvents
50
50
 
51
- GEM_VERSION = '1.46.0'
51
+ GEM_VERSION = '1.47.0'
52
52
 
53
53
  end
@@ -946,6 +946,10 @@ module Aws::CloudWatchEvents
946
946
  # When you delete a rule, incoming events might continue to match to the
947
947
  # deleted rule. Allow a short period of time for changes to take effect.
948
948
  #
949
+ # If you call delete rule multiple times for the same rule, all calls
950
+ # will succeed. When you call delete rule for a non-existent custom
951
+ # eventbus, `ResourceNotFoundException` is returned.
952
+ #
949
953
  # Managed rules are rules created and managed by another AWS service on
950
954
  # your behalf. These rules are created by those other AWS services to
951
955
  # support functionality in those services. You can delete these rules
@@ -2052,6 +2056,23 @@ module Aws::CloudWatchEvents
2052
2056
  # resp.targets[0].ecs_parameters.network_configuration.awsvpc_configuration.assign_public_ip #=> String, one of "ENABLED", "DISABLED"
2053
2057
  # resp.targets[0].ecs_parameters.platform_version #=> String
2054
2058
  # resp.targets[0].ecs_parameters.group #=> String
2059
+ # resp.targets[0].ecs_parameters.capacity_provider_strategy #=> Array
2060
+ # resp.targets[0].ecs_parameters.capacity_provider_strategy[0].capacity_provider #=> String
2061
+ # resp.targets[0].ecs_parameters.capacity_provider_strategy[0].weight #=> Integer
2062
+ # resp.targets[0].ecs_parameters.capacity_provider_strategy[0].base #=> Integer
2063
+ # resp.targets[0].ecs_parameters.enable_ecs_managed_tags #=> Boolean
2064
+ # resp.targets[0].ecs_parameters.enable_execute_command #=> Boolean
2065
+ # resp.targets[0].ecs_parameters.placement_constraints #=> Array
2066
+ # resp.targets[0].ecs_parameters.placement_constraints[0].type #=> String, one of "distinctInstance", "memberOf"
2067
+ # resp.targets[0].ecs_parameters.placement_constraints[0].expression #=> String
2068
+ # resp.targets[0].ecs_parameters.placement_strategy #=> Array
2069
+ # resp.targets[0].ecs_parameters.placement_strategy[0].type #=> String, one of "random", "spread", "binpack"
2070
+ # resp.targets[0].ecs_parameters.placement_strategy[0].field #=> String
2071
+ # resp.targets[0].ecs_parameters.propagate_tags #=> String, one of "TASK_DEFINITION"
2072
+ # resp.targets[0].ecs_parameters.reference_id #=> String
2073
+ # resp.targets[0].ecs_parameters.tags #=> Array
2074
+ # resp.targets[0].ecs_parameters.tags[0].key #=> String
2075
+ # resp.targets[0].ecs_parameters.tags[0].value #=> String
2055
2076
  # resp.targets[0].batch_parameters.job_definition #=> String
2056
2077
  # resp.targets[0].batch_parameters.job_name #=> String
2057
2078
  # resp.targets[0].batch_parameters.array_properties.size #=> Integer
@@ -2097,7 +2118,7 @@ module Aws::CloudWatchEvents
2097
2118
  # @return [Types::PutEventsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2098
2119
  #
2099
2120
  # * {Types::PutEventsResponse#failed_entry_count #failed_entry_count} => Integer
2100
- # * {Types::PutEventsResponse#entries #entries} => Array<Types::PutEventsResultEntry>
2121
+ # * {Types::PutEventsResponse#entries #data.entries} => Array<Types::PutEventsResultEntry> (This method conflicts with a method on Response, call it through the data member)
2101
2122
  #
2102
2123
  # @example Request syntax with placeholder values
2103
2124
  #
@@ -2118,10 +2139,10 @@ module Aws::CloudWatchEvents
2118
2139
  # @example Response structure
2119
2140
  #
2120
2141
  # resp.failed_entry_count #=> Integer
2121
- # resp.entries #=> Array
2122
- # resp.entries[0].event_id #=> String
2123
- # resp.entries[0].error_code #=> String
2124
- # resp.entries[0].error_message #=> String
2142
+ # resp.data.entries #=> Array
2143
+ # resp.data.entries[0].event_id #=> String
2144
+ # resp.data.entries[0].error_code #=> String
2145
+ # resp.data.entries[0].error_message #=> String
2125
2146
  #
2126
2147
  # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutEvents AWS API Documentation
2127
2148
  #
@@ -2141,7 +2162,7 @@ module Aws::CloudWatchEvents
2141
2162
  # @return [Types::PutPartnerEventsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2142
2163
  #
2143
2164
  # * {Types::PutPartnerEventsResponse#failed_entry_count #failed_entry_count} => Integer
2144
- # * {Types::PutPartnerEventsResponse#entries #entries} => Array<Types::PutPartnerEventsResultEntry>
2165
+ # * {Types::PutPartnerEventsResponse#entries #data.entries} => Array<Types::PutPartnerEventsResultEntry> (This method conflicts with a method on Response, call it through the data member)
2145
2166
  #
2146
2167
  # @example Request syntax with placeholder values
2147
2168
  #
@@ -2160,10 +2181,10 @@ module Aws::CloudWatchEvents
2160
2181
  # @example Response structure
2161
2182
  #
2162
2183
  # resp.failed_entry_count #=> Integer
2163
- # resp.entries #=> Array
2164
- # resp.entries[0].event_id #=> String
2165
- # resp.entries[0].error_code #=> String
2166
- # resp.entries[0].error_message #=> String
2184
+ # resp.data.entries #=> Array
2185
+ # resp.data.entries[0].event_id #=> String
2186
+ # resp.data.entries[0].error_code #=> String
2187
+ # resp.data.entries[0].error_message #=> String
2167
2188
  #
2168
2189
  # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutPartnerEvents AWS API Documentation
2169
2190
  #
@@ -2416,43 +2437,57 @@ module Aws::CloudWatchEvents
2416
2437
  #
2417
2438
  # You can configure the following as targets for Events:
2418
2439
  #
2419
- # * EC2 instances
2440
+ # * [API destination][1]
2420
2441
  #
2421
- # * SSM Run Command
2442
+ # * Amazon API Gateway REST API endpoints
2422
2443
  #
2423
- # * SSM Automation
2444
+ # * API Gateway
2445
+ #
2446
+ # * AWS Batch job queue
2447
+ #
2448
+ # * CloudWatch Logs group
2449
+ #
2450
+ # * CodeBuild project
2424
2451
  #
2425
- # * AWS Lambda functions
2452
+ # * CodePineline
2426
2453
  #
2427
- # * Data streams in Amazon Kinesis Data Streams
2454
+ # * Amazon EC2 `CreateSnapshot` API call
2428
2455
  #
2429
- # * Data delivery streams in Amazon Kinesis Data Firehose
2456
+ # * Amazon EC2 `RebootInstances` API call
2457
+ #
2458
+ # * Amazon EC2 `StopInstances` API call
2459
+ #
2460
+ # * Amazon EC2 `TerminateInstances` API call
2430
2461
  #
2431
2462
  # * Amazon ECS tasks
2432
2463
  #
2433
- # * AWS Step Functions state machines
2464
+ # * Event bus in a different AWS account or Region.
2465
+ #
2466
+ # You can use an event bus in the US East (N. Virginia) us-east-1, US
2467
+ # West (Oregon) us-west-2, or Europe (Ireland) eu-west-1 Regions as a
2468
+ # target for a rule.
2434
2469
  #
2435
- # * AWS Batch jobs
2470
+ # * Firehose delivery stream (Kinesis Data Firehose)
2436
2471
  #
2437
- # * AWS CodeBuild projects
2472
+ # * Inspector assessment template (Amazon Inspector)
2438
2473
  #
2439
- # * Pipelines in AWS CodePipeline
2474
+ # * Kinesis stream (Kinesis Data Stream)
2440
2475
  #
2441
- # * Amazon Inspector assessment templates
2476
+ # * AWS Lambda function
2442
2477
  #
2443
- # * Amazon SNS topics
2478
+ # * Redshift clusters (Data API statement execution)
2444
2479
  #
2445
- # * Amazon SQS queues, including FIFO queues
2480
+ # * Amazon SNS topic
2446
2481
  #
2447
- # * The default event bus of another AWS account
2482
+ # * Amazon SQS queues (includes FIFO queues
2448
2483
  #
2449
- # * Amazon API Gateway REST APIs
2484
+ # * SSM Automation
2450
2485
  #
2451
- # * Redshift Clusters to invoke Data API ExecuteStatement on
2486
+ # * SSM OpsItem
2452
2487
  #
2453
- # * Custom/SaaS HTTPS APIs via EventBridge API Destinations
2488
+ # * SSM Run Command
2454
2489
  #
2455
- # * Amazon SageMaker Model Building Pipelines
2490
+ # * Step Functions state machines
2456
2491
  #
2457
2492
  # Creating rules with built-in targets is supported only in the AWS
2458
2493
  # Management Console. The built-in targets are `EC2 CreateSnapshot API
@@ -2472,7 +2507,7 @@ module Aws::CloudWatchEvents
2472
2507
  # streams, AWS Step Functions state machines and API Gateway REST APIs,
2473
2508
  # EventBridge relies on IAM roles that you specify in the `RoleARN`
2474
2509
  # argument in `PutTargets`. For more information, see [Authentication
2475
- # and Access Control][1] in the *Amazon EventBridge User Guide*.
2510
+ # and Access Control][2] in the *Amazon EventBridge User Guide*.
2476
2511
  #
2477
2512
  # If another AWS account is in the same region and has granted you
2478
2513
  # permission (using `PutPermission`), you can send events to that
@@ -2483,7 +2518,7 @@ module Aws::CloudWatchEvents
2483
2518
  # account is charged for each sent event. Each event sent to another
2484
2519
  # account is charged as a custom event. The account receiving the event
2485
2520
  # is not charged. For more information, see [Amazon EventBridge
2486
- # (CloudWatch Events) Pricing][2].
2521
+ # (CloudWatch Events) Pricing][3].
2487
2522
  #
2488
2523
  # <note markdown="1"> `Input`, `InputPath`, and `InputTransformer` are not available with
2489
2524
  # `PutTarget` if the target is an event bus of a different AWS account.
@@ -2495,7 +2530,7 @@ module Aws::CloudWatchEvents
2495
2530
  # organization instead of directly by the account ID, then you must
2496
2531
  # specify a `RoleArn` with proper permissions in the `Target` structure.
2497
2532
  # For more information, see [Sending and Receiving Events Between AWS
2498
- # Accounts][3] in the *Amazon EventBridge User Guide*.
2533
+ # Accounts][4] in the *Amazon EventBridge User Guide*.
2499
2534
  #
2500
2535
  # For more information about enabling cross-account events, see
2501
2536
  # PutPermission.
@@ -2535,9 +2570,10 @@ module Aws::CloudWatchEvents
2535
2570
  #
2536
2571
  #
2537
2572
  #
2538
- # [1]: https://docs.aws.amazon.com/eventbridge/latest/userguide/auth-and-access-control-eventbridge.html
2539
- # [2]: https://aws.amazon.com/eventbridge/pricing/
2540
- # [3]: https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-cross-account-event-delivery.html
2573
+ # [1]: https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-api-destinations.html
2574
+ # [2]: https://docs.aws.amazon.com/eventbridge/latest/userguide/auth-and-access-control-eventbridge.html
2575
+ # [3]: https://aws.amazon.com/eventbridge/pricing/
2576
+ # [4]: https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-cross-account-event-delivery.html
2541
2577
  #
2542
2578
  # @option params [required, String] :rule
2543
2579
  # The name of the rule.
@@ -2596,6 +2632,35 @@ module Aws::CloudWatchEvents
2596
2632
  # },
2597
2633
  # platform_version: "String",
2598
2634
  # group: "String",
2635
+ # capacity_provider_strategy: [
2636
+ # {
2637
+ # capacity_provider: "CapacityProvider", # required
2638
+ # weight: 1,
2639
+ # base: 1,
2640
+ # },
2641
+ # ],
2642
+ # enable_ecs_managed_tags: false,
2643
+ # enable_execute_command: false,
2644
+ # placement_constraints: [
2645
+ # {
2646
+ # type: "distinctInstance", # accepts distinctInstance, memberOf
2647
+ # expression: "PlacementConstraintExpression",
2648
+ # },
2649
+ # ],
2650
+ # placement_strategy: [
2651
+ # {
2652
+ # type: "random", # accepts random, spread, binpack
2653
+ # field: "PlacementStrategyField",
2654
+ # },
2655
+ # ],
2656
+ # propagate_tags: "TASK_DEFINITION", # accepts TASK_DEFINITION
2657
+ # reference_id: "ReferenceId",
2658
+ # tags: [
2659
+ # {
2660
+ # key: "TagKey", # required
2661
+ # value: "TagValue", # required
2662
+ # },
2663
+ # ],
2599
2664
  # },
2600
2665
  # batch_parameters: {
2601
2666
  # job_definition: "String", # required
@@ -2938,7 +3003,7 @@ module Aws::CloudWatchEvents
2938
3003
  end
2939
3004
 
2940
3005
  # Removes one or more tags from the specified EventBridge resource. In
2941
- # Amazon EventBridge (CloudWatch Events, rules and event buses can be
3006
+ # Amazon EventBridge (CloudWatch Events), rules and event buses can be
2942
3007
  # tagged.
2943
3008
  #
2944
3009
  # @option params [required, String] :resource_arn
@@ -3190,7 +3255,7 @@ module Aws::CloudWatchEvents
3190
3255
  params: params,
3191
3256
  config: config)
3192
3257
  context[:gem_name] = 'aws-sdk-cloudwatchevents'
3193
- context[:gem_version] = '1.46.0'
3258
+ context[:gem_version] = '1.47.0'
3194
3259
  Seahorse::Client::Request.new(handlers, context)
3195
3260
  end
3196
3261
 
@@ -41,6 +41,11 @@ module Aws::CloudWatchEvents
41
41
  Boolean = Shapes::BooleanShape.new(name: 'Boolean')
42
42
  CancelReplayRequest = Shapes::StructureShape.new(name: 'CancelReplayRequest')
43
43
  CancelReplayResponse = Shapes::StructureShape.new(name: 'CancelReplayResponse')
44
+ CapacityProvider = Shapes::StringShape.new(name: 'CapacityProvider')
45
+ CapacityProviderStrategy = Shapes::ListShape.new(name: 'CapacityProviderStrategy')
46
+ CapacityProviderStrategyItem = Shapes::StructureShape.new(name: 'CapacityProviderStrategyItem')
47
+ CapacityProviderStrategyItemBase = Shapes::IntegerShape.new(name: 'CapacityProviderStrategyItemBase')
48
+ CapacityProviderStrategyItemWeight = Shapes::IntegerShape.new(name: 'CapacityProviderStrategyItemWeight')
44
49
  ConcurrentModificationException = Shapes::StructureShape.new(name: 'ConcurrentModificationException')
45
50
  Condition = Shapes::StructureShape.new(name: 'Condition')
46
51
  Connection = Shapes::StructureShape.new(name: 'Connection')
@@ -189,8 +194,17 @@ module Aws::CloudWatchEvents
189
194
  PartnerEventSourceNamePrefix = Shapes::StringShape.new(name: 'PartnerEventSourceNamePrefix')
190
195
  PathParameter = Shapes::StringShape.new(name: 'PathParameter')
191
196
  PathParameterList = Shapes::ListShape.new(name: 'PathParameterList')
197
+ PlacementConstraint = Shapes::StructureShape.new(name: 'PlacementConstraint')
198
+ PlacementConstraintExpression = Shapes::StringShape.new(name: 'PlacementConstraintExpression')
199
+ PlacementConstraintType = Shapes::StringShape.new(name: 'PlacementConstraintType')
200
+ PlacementConstraints = Shapes::ListShape.new(name: 'PlacementConstraints')
201
+ PlacementStrategies = Shapes::ListShape.new(name: 'PlacementStrategies')
202
+ PlacementStrategy = Shapes::StructureShape.new(name: 'PlacementStrategy')
203
+ PlacementStrategyField = Shapes::StringShape.new(name: 'PlacementStrategyField')
204
+ PlacementStrategyType = Shapes::StringShape.new(name: 'PlacementStrategyType')
192
205
  PolicyLengthExceededException = Shapes::StructureShape.new(name: 'PolicyLengthExceededException')
193
206
  Principal = Shapes::StringShape.new(name: 'Principal')
207
+ PropagateTags = Shapes::StringShape.new(name: 'PropagateTags')
194
208
  PutEventsRequest = Shapes::StructureShape.new(name: 'PutEventsRequest')
195
209
  PutEventsRequestEntry = Shapes::StructureShape.new(name: 'PutEventsRequestEntry')
196
210
  PutEventsRequestEntryList = Shapes::ListShape.new(name: 'PutEventsRequestEntryList')
@@ -215,6 +229,7 @@ module Aws::CloudWatchEvents
215
229
  QueryStringValue = Shapes::StringShape.new(name: 'QueryStringValue')
216
230
  RedshiftDataParameters = Shapes::StructureShape.new(name: 'RedshiftDataParameters')
217
231
  RedshiftSecretManagerArn = Shapes::StringShape.new(name: 'RedshiftSecretManagerArn')
232
+ ReferenceId = Shapes::StringShape.new(name: 'ReferenceId')
218
233
  RemovePermissionRequest = Shapes::StructureShape.new(name: 'RemovePermissionRequest')
219
234
  RemoveTargetsRequest = Shapes::StructureShape.new(name: 'RemoveTargetsRequest')
220
235
  RemoveTargetsResponse = Shapes::StructureShape.new(name: 'RemoveTargetsResponse')
@@ -351,6 +366,13 @@ module Aws::CloudWatchEvents
351
366
  CancelReplayResponse.add_member(:state_reason, Shapes::ShapeRef.new(shape: ReplayStateReason, location_name: "StateReason"))
352
367
  CancelReplayResponse.struct_class = Types::CancelReplayResponse
353
368
 
369
+ CapacityProviderStrategy.member = Shapes::ShapeRef.new(shape: CapacityProviderStrategyItem)
370
+
371
+ CapacityProviderStrategyItem.add_member(:capacity_provider, Shapes::ShapeRef.new(shape: CapacityProvider, required: true, location_name: "capacityProvider"))
372
+ CapacityProviderStrategyItem.add_member(:weight, Shapes::ShapeRef.new(shape: CapacityProviderStrategyItemWeight, location_name: "weight"))
373
+ CapacityProviderStrategyItem.add_member(:base, Shapes::ShapeRef.new(shape: CapacityProviderStrategyItemBase, location_name: "base"))
374
+ CapacityProviderStrategyItem.struct_class = Types::CapacityProviderStrategyItem
375
+
354
376
  ConcurrentModificationException.struct_class = Types::ConcurrentModificationException
355
377
 
356
378
  Condition.add_member(:type, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Type"))
@@ -659,6 +681,14 @@ module Aws::CloudWatchEvents
659
681
  EcsParameters.add_member(:network_configuration, Shapes::ShapeRef.new(shape: NetworkConfiguration, location_name: "NetworkConfiguration"))
660
682
  EcsParameters.add_member(:platform_version, Shapes::ShapeRef.new(shape: String, location_name: "PlatformVersion"))
661
683
  EcsParameters.add_member(:group, Shapes::ShapeRef.new(shape: String, location_name: "Group"))
684
+ EcsParameters.add_member(:capacity_provider_strategy, Shapes::ShapeRef.new(shape: CapacityProviderStrategy, location_name: "CapacityProviderStrategy"))
685
+ EcsParameters.add_member(:enable_ecs_managed_tags, Shapes::ShapeRef.new(shape: Boolean, location_name: "EnableECSManagedTags"))
686
+ EcsParameters.add_member(:enable_execute_command, Shapes::ShapeRef.new(shape: Boolean, location_name: "EnableExecuteCommand"))
687
+ EcsParameters.add_member(:placement_constraints, Shapes::ShapeRef.new(shape: PlacementConstraints, location_name: "PlacementConstraints"))
688
+ EcsParameters.add_member(:placement_strategy, Shapes::ShapeRef.new(shape: PlacementStrategies, location_name: "PlacementStrategy"))
689
+ EcsParameters.add_member(:propagate_tags, Shapes::ShapeRef.new(shape: PropagateTags, location_name: "PropagateTags"))
690
+ EcsParameters.add_member(:reference_id, Shapes::ShapeRef.new(shape: ReferenceId, location_name: "ReferenceId"))
691
+ EcsParameters.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
662
692
  EcsParameters.struct_class = Types::EcsParameters
663
693
 
664
694
  EnableRuleRequest.add_member(:name, Shapes::ShapeRef.new(shape: RuleName, required: true, location_name: "Name"))
@@ -846,6 +876,18 @@ module Aws::CloudWatchEvents
846
876
 
847
877
  PathParameterList.member = Shapes::ShapeRef.new(shape: PathParameter)
848
878
 
879
+ PlacementConstraint.add_member(:type, Shapes::ShapeRef.new(shape: PlacementConstraintType, location_name: "type"))
880
+ PlacementConstraint.add_member(:expression, Shapes::ShapeRef.new(shape: PlacementConstraintExpression, location_name: "expression"))
881
+ PlacementConstraint.struct_class = Types::PlacementConstraint
882
+
883
+ PlacementConstraints.member = Shapes::ShapeRef.new(shape: PlacementConstraint)
884
+
885
+ PlacementStrategies.member = Shapes::ShapeRef.new(shape: PlacementStrategy)
886
+
887
+ PlacementStrategy.add_member(:type, Shapes::ShapeRef.new(shape: PlacementStrategyType, location_name: "type"))
888
+ PlacementStrategy.add_member(:field, Shapes::ShapeRef.new(shape: PlacementStrategyField, location_name: "field"))
889
+ PlacementStrategy.struct_class = Types::PlacementStrategy
890
+
849
891
  PolicyLengthExceededException.struct_class = Types::PolicyLengthExceededException
850
892
 
851
893
  PutEventsRequest.add_member(:entries, Shapes::ShapeRef.new(shape: PutEventsRequestEntryList, required: true, location_name: "Entries"))
@@ -320,6 +320,50 @@ module Aws::CloudWatchEvents
320
320
  include Aws::Structure
321
321
  end
322
322
 
323
+ # The details of a capacity provider strategy. To learn more, see
324
+ # [CapacityProviderStrategyItem][1] in the Amazon ECS API Reference.
325
+ #
326
+ #
327
+ #
328
+ # [1]: https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CapacityProviderStrategyItem.html
329
+ #
330
+ # @note When making an API call, you may pass CapacityProviderStrategyItem
331
+ # data as a hash:
332
+ #
333
+ # {
334
+ # capacity_provider: "CapacityProvider", # required
335
+ # weight: 1,
336
+ # base: 1,
337
+ # }
338
+ #
339
+ # @!attribute [rw] capacity_provider
340
+ # The short name of the capacity provider.
341
+ # @return [String]
342
+ #
343
+ # @!attribute [rw] weight
344
+ # The weight value designates the relative percentage of the total
345
+ # number of tasks launched that should use the specified capacity
346
+ # provider. The weight value is taken into consideration after the
347
+ # base value, if defined, is satisfied.
348
+ # @return [Integer]
349
+ #
350
+ # @!attribute [rw] base
351
+ # The base value designates how many tasks, at a minimum, to run on
352
+ # the specified capacity provider. Only one capacity provider in a
353
+ # capacity provider strategy can have a base defined. If no value is
354
+ # specified, the default value of 0 is used.
355
+ # @return [Integer]
356
+ #
357
+ # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CapacityProviderStrategyItem AWS API Documentation
358
+ #
359
+ class CapacityProviderStrategyItem < Struct.new(
360
+ :capacity_provider,
361
+ :weight,
362
+ :base)
363
+ SENSITIVE = []
364
+ include Aws::Structure
365
+ end
366
+
323
367
  # There is concurrent modification on a rule, target, archive, or
324
368
  # replay.
325
369
  #
@@ -2212,6 +2256,35 @@ module Aws::CloudWatchEvents
2212
2256
  # },
2213
2257
  # platform_version: "String",
2214
2258
  # group: "String",
2259
+ # capacity_provider_strategy: [
2260
+ # {
2261
+ # capacity_provider: "CapacityProvider", # required
2262
+ # weight: 1,
2263
+ # base: 1,
2264
+ # },
2265
+ # ],
2266
+ # enable_ecs_managed_tags: false,
2267
+ # enable_execute_command: false,
2268
+ # placement_constraints: [
2269
+ # {
2270
+ # type: "distinctInstance", # accepts distinctInstance, memberOf
2271
+ # expression: "PlacementConstraintExpression",
2272
+ # },
2273
+ # ],
2274
+ # placement_strategy: [
2275
+ # {
2276
+ # type: "random", # accepts random, spread, binpack
2277
+ # field: "PlacementStrategyField",
2278
+ # },
2279
+ # ],
2280
+ # propagate_tags: "TASK_DEFINITION", # accepts TASK_DEFINITION
2281
+ # reference_id: "ReferenceId",
2282
+ # tags: [
2283
+ # {
2284
+ # key: "TagKey", # required
2285
+ # value: "TagValue", # required
2286
+ # },
2287
+ # ],
2215
2288
  # }
2216
2289
  #
2217
2290
  # @!attribute [rw] task_definition_arn
@@ -2267,6 +2340,64 @@ module Aws::CloudWatchEvents
2267
2340
  # characters.
2268
2341
  # @return [String]
2269
2342
  #
2343
+ # @!attribute [rw] capacity_provider_strategy
2344
+ # The capacity provider strategy to use for the task.
2345
+ #
2346
+ # If a `capacityProviderStrategy` is specified, the `launchType`
2347
+ # parameter must be omitted. If no `capacityProviderStrategy` or
2348
+ # launchType is specified, the `defaultCapacityProviderStrategy` for
2349
+ # the cluster is used.
2350
+ # @return [Array<Types::CapacityProviderStrategyItem>]
2351
+ #
2352
+ # @!attribute [rw] enable_ecs_managed_tags
2353
+ # Specifies whether to enable Amazon ECS managed tags for the task.
2354
+ # For more information, see [Tagging Your Amazon ECS Resources][1] in
2355
+ # the Amazon Elastic Container Service Developer Guide.
2356
+ #
2357
+ #
2358
+ #
2359
+ # [1]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-using-tags.html
2360
+ # @return [Boolean]
2361
+ #
2362
+ # @!attribute [rw] enable_execute_command
2363
+ # Whether or not to enable the execute command functionality for the
2364
+ # containers in this task. If true, this enables execute command
2365
+ # functionality on all containers in the task.
2366
+ # @return [Boolean]
2367
+ #
2368
+ # @!attribute [rw] placement_constraints
2369
+ # An array of placement constraint objects to use for the task. You
2370
+ # can specify up to 10 constraints per task (including constraints in
2371
+ # the task definition and those specified at runtime).
2372
+ # @return [Array<Types::PlacementConstraint>]
2373
+ #
2374
+ # @!attribute [rw] placement_strategy
2375
+ # The placement strategy objects to use for the task. You can specify
2376
+ # a maximum of five strategy rules per task.
2377
+ # @return [Array<Types::PlacementStrategy>]
2378
+ #
2379
+ # @!attribute [rw] propagate_tags
2380
+ # Specifies whether to propagate the tags from the task definition to
2381
+ # the task. If no value is specified, the tags are not propagated.
2382
+ # Tags can only be propagated to the task during task creation. To add
2383
+ # tags to a task after task creation, use the TagResource API action.
2384
+ # @return [String]
2385
+ #
2386
+ # @!attribute [rw] reference_id
2387
+ # The reference ID to use for the task.
2388
+ # @return [String]
2389
+ #
2390
+ # @!attribute [rw] tags
2391
+ # The metadata that you apply to the task to help you categorize and
2392
+ # organize them. Each tag consists of a key and an optional value,
2393
+ # both of which you define. To learn more, see [RunTask][1] in the
2394
+ # Amazon ECS API Reference.
2395
+ #
2396
+ #
2397
+ #
2398
+ # [1]: https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_RunTask.html#ECS-RunTask-request-tags
2399
+ # @return [Array<Types::Tag>]
2400
+ #
2270
2401
  # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/EcsParameters AWS API Documentation
2271
2402
  #
2272
2403
  class EcsParameters < Struct.new(
@@ -2275,7 +2406,15 @@ module Aws::CloudWatchEvents
2275
2406
  :launch_type,
2276
2407
  :network_configuration,
2277
2408
  :platform_version,
2278
- :group)
2409
+ :group,
2410
+ :capacity_provider_strategy,
2411
+ :enable_ecs_managed_tags,
2412
+ :enable_execute_command,
2413
+ :placement_constraints,
2414
+ :placement_strategy,
2415
+ :propagate_tags,
2416
+ :reference_id,
2417
+ :tags)
2279
2418
  SENSITIVE = []
2280
2419
  include Aws::Structure
2281
2420
  end
@@ -2308,11 +2447,10 @@ module Aws::CloudWatchEvents
2308
2447
 
2309
2448
  # An event bus receives events from a source and routes them to rules
2310
2449
  # associated with that event bus. Your account's default event bus
2311
- # receives rules from AWS services. A custom event bus can receive rules
2312
- # from AWS services as well as your custom applications and services. A
2313
- # partner event bus receives events from an event source created by an
2314
- # SaaS partner. These events come from the partners services or
2315
- # applications.
2450
+ # receives events from AWS services. A custom event bus can receive
2451
+ # events from your custom applications and services. A partner event bus
2452
+ # receives events from an event source created by an SaaS partner. These
2453
+ # events come from the partners services or applications.
2316
2454
  #
2317
2455
  # @!attribute [rw] name
2318
2456
  # The name of the event bus.
@@ -3344,6 +3482,95 @@ module Aws::CloudWatchEvents
3344
3482
  include Aws::Structure
3345
3483
  end
3346
3484
 
3485
+ # An object representing a constraint on task placement. To learn more,
3486
+ # see [Task Placement Constraints][1] in the Amazon Elastic Container
3487
+ # Service Developer Guide.
3488
+ #
3489
+ #
3490
+ #
3491
+ # [1]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement-constraints.html
3492
+ #
3493
+ # @note When making an API call, you may pass PlacementConstraint
3494
+ # data as a hash:
3495
+ #
3496
+ # {
3497
+ # type: "distinctInstance", # accepts distinctInstance, memberOf
3498
+ # expression: "PlacementConstraintExpression",
3499
+ # }
3500
+ #
3501
+ # @!attribute [rw] type
3502
+ # The type of constraint. Use distinctInstance to ensure that each
3503
+ # task in a particular group is running on a different container
3504
+ # instance. Use memberOf to restrict the selection to a group of valid
3505
+ # candidates.
3506
+ # @return [String]
3507
+ #
3508
+ # @!attribute [rw] expression
3509
+ # A cluster query language expression to apply to the constraint. You
3510
+ # cannot specify an expression if the constraint type is
3511
+ # `distinctInstance`. To learn more, see [Cluster Query Language][1]
3512
+ # in the Amazon Elastic Container Service Developer Guide.
3513
+ #
3514
+ #
3515
+ #
3516
+ # [1]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/cluster-query-language.html
3517
+ # @return [String]
3518
+ #
3519
+ # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PlacementConstraint AWS API Documentation
3520
+ #
3521
+ class PlacementConstraint < Struct.new(
3522
+ :type,
3523
+ :expression)
3524
+ SENSITIVE = []
3525
+ include Aws::Structure
3526
+ end
3527
+
3528
+ # The task placement strategy for a task or service. To learn more, see
3529
+ # [Task Placement Strategies][1] in the Amazon Elastic Container Service
3530
+ # Developer Guide.
3531
+ #
3532
+ #
3533
+ #
3534
+ # [1]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement-strategies.html
3535
+ #
3536
+ # @note When making an API call, you may pass PlacementStrategy
3537
+ # data as a hash:
3538
+ #
3539
+ # {
3540
+ # type: "random", # accepts random, spread, binpack
3541
+ # field: "PlacementStrategyField",
3542
+ # }
3543
+ #
3544
+ # @!attribute [rw] type
3545
+ # The type of placement strategy. The random placement strategy
3546
+ # randomly places tasks on available candidates. The spread placement
3547
+ # strategy spreads placement across available candidates evenly based
3548
+ # on the field parameter. The binpack strategy places tasks on
3549
+ # available candidates that have the least available amount of the
3550
+ # resource that is specified with the field parameter. For example, if
3551
+ # you binpack on memory, a task is placed on the instance with the
3552
+ # least amount of remaining memory (but still enough to run the task).
3553
+ # @return [String]
3554
+ #
3555
+ # @!attribute [rw] field
3556
+ # The field to apply the placement strategy against. For the spread
3557
+ # placement strategy, valid values are instanceId (or host, which has
3558
+ # the same effect), or any platform or custom attribute that is
3559
+ # applied to a container instance, such as
3560
+ # attribute:ecs.availability-zone. For the binpack placement strategy,
3561
+ # valid values are cpu and memory. For the random placement strategy,
3562
+ # this field is not used.
3563
+ # @return [String]
3564
+ #
3565
+ # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PlacementStrategy AWS API Documentation
3566
+ #
3567
+ class PlacementStrategy < Struct.new(
3568
+ :type,
3569
+ :field)
3570
+ SENSITIVE = []
3571
+ include Aws::Structure
3572
+ end
3573
+
3347
3574
  # The event bus policy is too long. For more information, see the
3348
3575
  # limits.
3349
3576
  #
@@ -3834,6 +4061,35 @@ module Aws::CloudWatchEvents
3834
4061
  # },
3835
4062
  # platform_version: "String",
3836
4063
  # group: "String",
4064
+ # capacity_provider_strategy: [
4065
+ # {
4066
+ # capacity_provider: "CapacityProvider", # required
4067
+ # weight: 1,
4068
+ # base: 1,
4069
+ # },
4070
+ # ],
4071
+ # enable_ecs_managed_tags: false,
4072
+ # enable_execute_command: false,
4073
+ # placement_constraints: [
4074
+ # {
4075
+ # type: "distinctInstance", # accepts distinctInstance, memberOf
4076
+ # expression: "PlacementConstraintExpression",
4077
+ # },
4078
+ # ],
4079
+ # placement_strategy: [
4080
+ # {
4081
+ # type: "random", # accepts random, spread, binpack
4082
+ # field: "PlacementStrategyField",
4083
+ # },
4084
+ # ],
4085
+ # propagate_tags: "TASK_DEFINITION", # accepts TASK_DEFINITION
4086
+ # reference_id: "ReferenceId",
4087
+ # tags: [
4088
+ # {
4089
+ # key: "TagKey", # required
4090
+ # value: "TagValue", # required
4091
+ # },
4092
+ # ],
3837
4093
  # },
3838
4094
  # batch_parameters: {
3839
4095
  # job_definition: "String", # required
@@ -4662,6 +4918,35 @@ module Aws::CloudWatchEvents
4662
4918
  # },
4663
4919
  # platform_version: "String",
4664
4920
  # group: "String",
4921
+ # capacity_provider_strategy: [
4922
+ # {
4923
+ # capacity_provider: "CapacityProvider", # required
4924
+ # weight: 1,
4925
+ # base: 1,
4926
+ # },
4927
+ # ],
4928
+ # enable_ecs_managed_tags: false,
4929
+ # enable_execute_command: false,
4930
+ # placement_constraints: [
4931
+ # {
4932
+ # type: "distinctInstance", # accepts distinctInstance, memberOf
4933
+ # expression: "PlacementConstraintExpression",
4934
+ # },
4935
+ # ],
4936
+ # placement_strategy: [
4937
+ # {
4938
+ # type: "random", # accepts random, spread, binpack
4939
+ # field: "PlacementStrategyField",
4940
+ # },
4941
+ # ],
4942
+ # propagate_tags: "TASK_DEFINITION", # accepts TASK_DEFINITION
4943
+ # reference_id: "ReferenceId",
4944
+ # tags: [
4945
+ # {
4946
+ # key: "TagKey", # required
4947
+ # value: "TagValue", # required
4948
+ # },
4949
+ # ],
4665
4950
  # },
4666
4951
  # batch_parameters: {
4667
4952
  # job_definition: "String", # required
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.46.0
4
+ version: 1.47.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: 2021-05-14 00:00:00.000000000 Z
11
+ date: 2021-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core