aws-sdk-ecs 1.152.0 → 1.153.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: 760912f7aedf1fe350d8d670e032df818bd93ec1fa07879f27e48460d680782a
4
- data.tar.gz: dfce34693986030fe358df790e223479c6267eb3ada28cbb36ae03cb27db9b6c
3
+ metadata.gz: 93ed3e7df1cbd25815a7d9537e41771a006a65f3556917d4edfca405ed509563
4
+ data.tar.gz: 69fbffb5733e5e7e76da34d91936759af4df0ea368cda19e35e968c5fea8b0c7
5
5
  SHA512:
6
- metadata.gz: a459988b0e207f68d2e9038419b754dc98faf1f0ac8cb5ee03f5aa2cf78c9777c5d0b059992a9970af210d60ee848a5a30f04892745e336618ddbd7d653b7697
7
- data.tar.gz: 4b87c7f936b078b2a2e0eb62018c83c0175a319315c7aab9f2fadd7c0afb2d95254028ec32b546161054c8a0ffa5cbc2b2db02bd3b82eafc6ce52c268e92fee4
6
+ metadata.gz: 7ebd984cf41fa8096ae0a6c0408b44a29f41ef462652b3ea5c4897926a5479f918ad910d358f02655f00733f652be67254c7869346695da6233be650c92657fd
7
+ data.tar.gz: 6212f970998f5d9046a2adac806f8d7d039d59670764f14c01b6f3e173087e02d9a9c13fc4e5d1dead17123f8f35a51a3cedf9325b4058e1ec5e40bb9f291ab0
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.153.0 (2024-08-15)
5
+ ------------------
6
+
7
+ * Feature - This release introduces a new ContainerDefinition configuration to support the customer-managed keys for ECS container restart feature.
8
+
4
9
  1.152.0 (2024-08-02)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.152.0
1
+ 1.153.0
@@ -1749,7 +1749,7 @@ module Aws::ECS
1749
1749
  #
1750
1750
  # </note>
1751
1751
  #
1752
- # For information about the maximum number of task sets and otther
1752
+ # For information about the maximum number of task sets and other
1753
1753
  # quotas, see [Amazon ECS service quotas][2] in the *Amazon Elastic
1754
1754
  # Container Service Developer Guide*.
1755
1755
  #
@@ -2596,6 +2596,10 @@ module Aws::ECS
2596
2596
  # resp.task_definitions[0].container_definitions[0].port_mappings[0].app_protocol #=> String, one of "http", "http2", "grpc"
2597
2597
  # resp.task_definitions[0].container_definitions[0].port_mappings[0].container_port_range #=> String
2598
2598
  # resp.task_definitions[0].container_definitions[0].essential #=> Boolean
2599
+ # resp.task_definitions[0].container_definitions[0].restart_policy.enabled #=> Boolean
2600
+ # resp.task_definitions[0].container_definitions[0].restart_policy.ignored_exit_codes #=> Array
2601
+ # resp.task_definitions[0].container_definitions[0].restart_policy.ignored_exit_codes[0] #=> Integer
2602
+ # resp.task_definitions[0].container_definitions[0].restart_policy.restart_attempt_period #=> Integer
2599
2603
  # resp.task_definitions[0].container_definitions[0].entry_point #=> Array
2600
2604
  # resp.task_definitions[0].container_definitions[0].entry_point[0] #=> String
2601
2605
  # resp.task_definitions[0].container_definitions[0].command #=> Array
@@ -3053,6 +3057,10 @@ module Aws::ECS
3053
3057
  # resp.task_definition.container_definitions[0].port_mappings[0].app_protocol #=> String, one of "http", "http2", "grpc"
3054
3058
  # resp.task_definition.container_definitions[0].port_mappings[0].container_port_range #=> String
3055
3059
  # resp.task_definition.container_definitions[0].essential #=> Boolean
3060
+ # resp.task_definition.container_definitions[0].restart_policy.enabled #=> Boolean
3061
+ # resp.task_definition.container_definitions[0].restart_policy.ignored_exit_codes #=> Array
3062
+ # resp.task_definition.container_definitions[0].restart_policy.ignored_exit_codes[0] #=> Integer
3063
+ # resp.task_definition.container_definitions[0].restart_policy.restart_attempt_period #=> Integer
3056
3064
  # resp.task_definition.container_definitions[0].entry_point #=> Array
3057
3065
  # resp.task_definition.container_definitions[0].entry_point[0] #=> String
3058
3066
  # resp.task_definition.container_definitions[0].command #=> Array
@@ -3999,6 +4007,10 @@ module Aws::ECS
3999
4007
  # resp.task_definition.container_definitions[0].port_mappings[0].app_protocol #=> String, one of "http", "http2", "grpc"
4000
4008
  # resp.task_definition.container_definitions[0].port_mappings[0].container_port_range #=> String
4001
4009
  # resp.task_definition.container_definitions[0].essential #=> Boolean
4010
+ # resp.task_definition.container_definitions[0].restart_policy.enabled #=> Boolean
4011
+ # resp.task_definition.container_definitions[0].restart_policy.ignored_exit_codes #=> Array
4012
+ # resp.task_definition.container_definitions[0].restart_policy.ignored_exit_codes[0] #=> Integer
4013
+ # resp.task_definition.container_definitions[0].restart_policy.restart_attempt_period #=> Integer
4002
4014
  # resp.task_definition.container_definitions[0].entry_point #=> Array
4003
4015
  # resp.task_definition.container_definitions[0].entry_point[0] #=> String
4004
4016
  # resp.task_definition.container_definitions[0].command #=> Array
@@ -6405,21 +6417,18 @@ module Aws::ECS
6405
6417
  # Tasks][2] in the *Amazon Elastic Container Service Developer Guide*.
6406
6418
  #
6407
6419
  # You can specify a Docker networking mode for the containers in your
6408
- # task definition with the `networkMode` parameter. The available
6409
- # network modes correspond to those described in [Network settings][3]
6410
- # in the Docker run reference. If you specify the `awsvpc` network mode,
6411
- # the task is allocated an elastic network interface, and you must
6412
- # specify a NetworkConfiguration when you create a service or run a task
6413
- # with the task definition. For more information, see [Task
6414
- # Networking][4] in the *Amazon Elastic Container Service Developer
6415
- # Guide*.
6420
+ # task definition with the `networkMode` parameter. If you specify the
6421
+ # `awsvpc` network mode, the task is allocated an elastic network
6422
+ # interface, and you must specify a NetworkConfiguration when you create
6423
+ # a service or run a task with the task definition. For more
6424
+ # information, see [Task Networking][3] in the *Amazon Elastic Container
6425
+ # Service Developer Guide*.
6416
6426
  #
6417
6427
  #
6418
6428
  #
6419
6429
  # [1]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_defintions.html
6420
6430
  # [2]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-iam-roles.html
6421
- # [3]: https://docs.docker.com/engine/reference/run/#/network-settings
6422
- # [4]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-networking.html
6431
+ # [3]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-networking.html
6423
6432
  #
6424
6433
  # @option params [required, String] :family
6425
6434
  # You must specify a `family` for a task definition. You can use it
@@ -6441,14 +6450,13 @@ module Aws::ECS
6441
6450
  # @option params [String] :execution_role_arn
6442
6451
  # The Amazon Resource Name (ARN) of the task execution role that grants
6443
6452
  # the Amazon ECS container agent permission to make Amazon Web Services
6444
- # API calls on your behalf. The task execution IAM role is required
6445
- # depending on the requirements of your task. For more information, see
6446
- # [Amazon ECS task execution IAM role][1] in the *Amazon Elastic
6447
- # Container Service Developer Guide*.
6453
+ # API calls on your behalf. For informationabout the required IAM roles
6454
+ # for Amazon ECS, see [IAM roles for Amazon ECS][1] in the *Amazon
6455
+ # Elastic Container Service Developer Guide*.
6448
6456
  #
6449
6457
  #
6450
6458
  #
6451
- # [1]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_execution_IAM_role.html
6459
+ # [1]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/security-ecs-iam-role-overview.html
6452
6460
  #
6453
6461
  # @option params [String] :network_mode
6454
6462
  # The Docker networking mode to use for the containers in the task. The
@@ -6477,22 +6485,19 @@ module Aws::ECS
6477
6485
  # non-root user.
6478
6486
  #
6479
6487
  # If the network mode is `awsvpc`, the task is allocated an elastic
6480
- # network interface, and you must specify a NetworkConfiguration value
6481
- # when you create a service or run a task with the task definition. For
6482
- # more information, see [Task Networking][1] in the *Amazon Elastic
6483
- # Container Service Developer Guide*.
6488
+ # network interface, and you must specify a [NetworkConfiguration][1]
6489
+ # value when you create a service or run a task with the task
6490
+ # definition. For more information, see [Task Networking][2] in the
6491
+ # *Amazon Elastic Container Service Developer Guide*.
6484
6492
  #
6485
6493
  # If the network mode is `host`, you cannot run multiple instantiations
6486
6494
  # of the same task on a single container instance when port mappings are
6487
6495
  # used.
6488
6496
  #
6489
- # For more information, see [Network settings][2] in the *Docker run
6490
- # reference*.
6491
6497
  #
6492
6498
  #
6493
- #
6494
- # [1]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-networking.html
6495
- # [2]: https://docs.docker.com/engine/reference/run/#network-settings
6499
+ # [1]: https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_NetworkConfiguration.html
6500
+ # [2]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-networking.html
6496
6501
  #
6497
6502
  # @option params [required, Array<Types::ContainerDefinition>] :container_definitions
6498
6503
  # A list of container definitions in JSON format that describe the
@@ -6655,12 +6660,10 @@ module Aws::ECS
6655
6660
  # the same process namespace.
6656
6661
  #
6657
6662
  # If no value is specified, the default is a private namespace for each
6658
- # container. For more information, see [PID settings][1] in the *Docker
6659
- # run reference*.
6663
+ # container.
6660
6664
  #
6661
6665
  # If the `host` PID mode is used, there's a heightened risk of
6662
- # undesired process namespace exposure. For more information, see
6663
- # [Docker security][2].
6666
+ # undesired process namespace exposure.
6664
6667
  #
6665
6668
  # <note markdown="1"> This parameter is not supported for Windows containers.
6666
6669
  #
@@ -6672,11 +6675,6 @@ module Aws::ECS
6672
6675
  #
6673
6676
  # </note>
6674
6677
  #
6675
- #
6676
- #
6677
- # [1]: https://docs.docker.com/engine/reference/run/#pid-settings---pid
6678
- # [2]: https://docs.docker.com/engine/security/security/
6679
- #
6680
6678
  # @option params [String] :ipc_mode
6681
6679
  # The IPC resource namespace to use for the containers in the task. The
6682
6680
  # valid values are `host`, `task`, or `none`. If `host` is specified,
@@ -6688,16 +6686,14 @@ module Aws::ECS
6688
6686
  # private and not shared with other containers in a task or on the
6689
6687
  # container instance. If no value is specified, then the IPC resource
6690
6688
  # namespace sharing depends on the Docker daemon setting on the
6691
- # container instance. For more information, see [IPC settings][1] in the
6692
- # *Docker run reference*.
6689
+ # container instance.
6693
6690
  #
6694
6691
  # If the `host` IPC mode is used, be aware that there is a heightened
6695
- # risk of undesired IPC namespace expose. For more information, see
6696
- # [Docker security][2].
6692
+ # risk of undesired IPC namespace expose.
6697
6693
  #
6698
6694
  # If you are setting namespaced kernel parameters using `systemControls`
6699
6695
  # for the containers in the task, the following will apply to your IPC
6700
- # resource namespace. For more information, see [System Controls][3] in
6696
+ # resource namespace. For more information, see [System Controls][1] in
6701
6697
  # the *Amazon Elastic Container Service Developer Guide*.
6702
6698
  #
6703
6699
  # * For tasks that use the `host` IPC mode, IPC namespace related
@@ -6713,9 +6709,7 @@ module Aws::ECS
6713
6709
  #
6714
6710
  #
6715
6711
  #
6716
- # [1]: https://docs.docker.com/engine/reference/run/#ipc-settings---ipc
6717
- # [2]: https://docs.docker.com/engine/security/security/
6718
- # [3]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html
6712
+ # [1]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html
6719
6713
  #
6720
6714
  # @option params [Types::ProxyConfiguration] :proxy_configuration
6721
6715
  # The configuration details for the App Mesh proxy.
@@ -6852,6 +6846,11 @@ module Aws::ECS
6852
6846
  # },
6853
6847
  # ],
6854
6848
  # essential: false,
6849
+ # restart_policy: {
6850
+ # enabled: false, # required
6851
+ # ignored_exit_codes: [1],
6852
+ # restart_attempt_period: 1,
6853
+ # },
6855
6854
  # entry_point: ["String"],
6856
6855
  # command: ["String"],
6857
6856
  # environment: [
@@ -7084,6 +7083,10 @@ module Aws::ECS
7084
7083
  # resp.task_definition.container_definitions[0].port_mappings[0].app_protocol #=> String, one of "http", "http2", "grpc"
7085
7084
  # resp.task_definition.container_definitions[0].port_mappings[0].container_port_range #=> String
7086
7085
  # resp.task_definition.container_definitions[0].essential #=> Boolean
7086
+ # resp.task_definition.container_definitions[0].restart_policy.enabled #=> Boolean
7087
+ # resp.task_definition.container_definitions[0].restart_policy.ignored_exit_codes #=> Array
7088
+ # resp.task_definition.container_definitions[0].restart_policy.ignored_exit_codes[0] #=> Integer
7089
+ # resp.task_definition.container_definitions[0].restart_policy.restart_attempt_period #=> Integer
7087
7090
  # resp.task_definition.container_definitions[0].entry_point #=> Array
7088
7091
  # resp.task_definition.container_definitions[0].entry_point[0] #=> String
7089
7092
  # resp.task_definition.container_definitions[0].command #=> Array
@@ -7442,13 +7445,18 @@ module Aws::ECS
7442
7445
  # automatically trigger a task to run a batch process job, you could
7443
7446
  # apply a unique identifier for that job to your task with the
7444
7447
  # `startedBy` parameter. You can then identify which tasks belong to
7445
- # that job by filtering the results of a ListTasks call with the
7448
+ # that job by filtering the results of a [ListTasks][1] call with the
7446
7449
  # `startedBy` value. Up to 128 letters (uppercase and lowercase),
7447
- # numbers, hyphens (-), and underscores (\_) are allowed.
7450
+ # numbers, hyphens (-), forward slash (/), and underscores (\_) are
7451
+ # allowed.
7448
7452
  #
7449
7453
  # If a task is started by an Amazon ECS service, then the `startedBy`
7450
7454
  # parameter contains the deployment ID of the service that starts it.
7451
7455
  #
7456
+ #
7457
+ #
7458
+ # [1]: https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ListTasks.html
7459
+ #
7452
7460
  # @option params [Array<Types::Tag>] :tags
7453
7461
  # The metadata that you apply to the task to help you categorize and
7454
7462
  # organize them. Each tag consists of a key and an optional value, both
@@ -7912,13 +7920,18 @@ module Aws::ECS
7912
7920
  # automatically trigger a task to run a batch process job, you could
7913
7921
  # apply a unique identifier for that job to your task with the
7914
7922
  # `startedBy` parameter. You can then identify which tasks belong to
7915
- # that job by filtering the results of a ListTasks call with the
7923
+ # that job by filtering the results of a [ListTasks][1] call with the
7916
7924
  # `startedBy` value. Up to 36 letters (uppercase and lowercase),
7917
- # numbers, hyphens (-), and underscores (\_) are allowed.
7925
+ # numbers, hyphens (-), forward slash (/), and underscores (\_) are
7926
+ # allowed.
7918
7927
  #
7919
7928
  # If a task is started by an Amazon ECS service, the `startedBy`
7920
7929
  # parameter contains the deployment ID of the service that starts it.
7921
7930
  #
7931
+ #
7932
+ #
7933
+ # [1]: https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ListTasks.html
7934
+ #
7922
7935
  # @option params [Array<Types::Tag>] :tags
7923
7936
  # The metadata that you apply to the task to help you categorize and
7924
7937
  # organize them. Each tag consists of a key and an optional value, both
@@ -9135,12 +9148,16 @@ module Aws::ECS
9135
9148
  # manually.
9136
9149
  #
9137
9150
  # A container instance has completed draining when it has no more
9138
- # `RUNNING` tasks. You can verify this using ListTasks.
9151
+ # `RUNNING` tasks. You can verify this using [ListTasks][1].
9139
9152
  #
9140
9153
  # When a container instance has been drained, you can set a container
9141
9154
  # instance to `ACTIVE` status and once it has reached that status the
9142
9155
  # Amazon ECS scheduler can begin scheduling tasks on the instance again.
9143
9156
  #
9157
+ #
9158
+ #
9159
+ # [1]: https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ListTasks.html
9160
+ #
9144
9161
  # @option params [String] :cluster
9145
9162
  # The short name or full Amazon Resource Name (ARN) of the cluster that
9146
9163
  # hosts the container instance to update. If you do not specify a
@@ -10331,7 +10348,7 @@ module Aws::ECS
10331
10348
  params: params,
10332
10349
  config: config)
10333
10350
  context[:gem_name] = 'aws-sdk-ecs'
10334
- context[:gem_version] = '1.152.0'
10351
+ context[:gem_version] = '1.153.0'
10335
10352
  Seahorse::Client::Request.new(handlers, context)
10336
10353
  end
10337
10354
 
@@ -76,6 +76,7 @@ module Aws::ECS
76
76
  ContainerInstances = Shapes::ListShape.new(name: 'ContainerInstances')
77
77
  ContainerOverride = Shapes::StructureShape.new(name: 'ContainerOverride')
78
78
  ContainerOverrides = Shapes::ListShape.new(name: 'ContainerOverrides')
79
+ ContainerRestartPolicy = Shapes::StructureShape.new(name: 'ContainerRestartPolicy')
79
80
  ContainerStateChange = Shapes::StructureShape.new(name: 'ContainerStateChange')
80
81
  ContainerStateChanges = Shapes::ListShape.new(name: 'ContainerStateChanges')
81
82
  Containers = Shapes::ListShape.new(name: 'Containers')
@@ -185,6 +186,7 @@ module Aws::ECS
185
186
  InstanceHealthCheckState = Shapes::StringShape.new(name: 'InstanceHealthCheckState')
186
187
  InstanceHealthCheckType = Shapes::StringShape.new(name: 'InstanceHealthCheckType')
187
188
  Integer = Shapes::IntegerShape.new(name: 'Integer')
189
+ IntegerList = Shapes::ListShape.new(name: 'IntegerList')
188
190
  InvalidParameterException = Shapes::StructureShape.new(name: 'InvalidParameterException')
189
191
  IpcMode = Shapes::StringShape.new(name: 'IpcMode')
190
192
  KernelCapabilities = Shapes::StructureShape.new(name: 'KernelCapabilities')
@@ -562,6 +564,7 @@ module Aws::ECS
562
564
  ContainerDefinition.add_member(:links, Shapes::ShapeRef.new(shape: StringList, location_name: "links"))
563
565
  ContainerDefinition.add_member(:port_mappings, Shapes::ShapeRef.new(shape: PortMappingList, location_name: "portMappings"))
564
566
  ContainerDefinition.add_member(:essential, Shapes::ShapeRef.new(shape: BoxedBoolean, location_name: "essential"))
567
+ ContainerDefinition.add_member(:restart_policy, Shapes::ShapeRef.new(shape: ContainerRestartPolicy, location_name: "restartPolicy"))
565
568
  ContainerDefinition.add_member(:entry_point, Shapes::ShapeRef.new(shape: StringList, location_name: "entryPoint"))
566
569
  ContainerDefinition.add_member(:command, Shapes::ShapeRef.new(shape: StringList, location_name: "command"))
567
570
  ContainerDefinition.add_member(:environment, Shapes::ShapeRef.new(shape: EnvironmentVariables, location_name: "environment"))
@@ -643,6 +646,11 @@ module Aws::ECS
643
646
 
644
647
  ContainerOverrides.member = Shapes::ShapeRef.new(shape: ContainerOverride)
645
648
 
649
+ ContainerRestartPolicy.add_member(:enabled, Shapes::ShapeRef.new(shape: BoxedBoolean, required: true, location_name: "enabled"))
650
+ ContainerRestartPolicy.add_member(:ignored_exit_codes, Shapes::ShapeRef.new(shape: IntegerList, location_name: "ignoredExitCodes"))
651
+ ContainerRestartPolicy.add_member(:restart_attempt_period, Shapes::ShapeRef.new(shape: BoxedInteger, location_name: "restartAttemptPeriod"))
652
+ ContainerRestartPolicy.struct_class = Types::ContainerRestartPolicy
653
+
646
654
  ContainerStateChange.add_member(:container_name, Shapes::ShapeRef.new(shape: String, location_name: "containerName"))
647
655
  ContainerStateChange.add_member(:image_digest, Shapes::ShapeRef.new(shape: String, location_name: "imageDigest"))
648
656
  ContainerStateChange.add_member(:runtime_id, Shapes::ShapeRef.new(shape: String, location_name: "runtimeId"))
@@ -1049,6 +1057,8 @@ module Aws::ECS
1049
1057
 
1050
1058
  InstanceHealthCheckResultList.member = Shapes::ShapeRef.new(shape: InstanceHealthCheckResult)
1051
1059
 
1060
+ IntegerList.member = Shapes::ShapeRef.new(shape: BoxedInteger)
1061
+
1052
1062
  InvalidParameterException.struct_class = Types::InvalidParameterException
1053
1063
 
1054
1064
  KernelCapabilities.add_member(:add, Shapes::ShapeRef.new(shape: StringList, location_name: "add"))