aws-sdk-ecs 1.182.0 → 1.187.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
  SHA256:
3
- metadata.gz: 84caf9dbe2dd3afcbd832abede9fd1b119a83e5ccf5e43bbe2467b84874a5bed
4
- data.tar.gz: b0bb3e5a7002934ba437a247cdbe6fec7d979030b709936e0546ec3eae8ef34c
3
+ metadata.gz: '09c619b78988ca5a2fa649f490f1cf3aecc5b3c1eed42080433dbd9772395b3c'
4
+ data.tar.gz: 4b2518777e4fb53f18a1888d685757a7eae6b3e1dc14ffaac12394079526b171
5
5
  SHA512:
6
- metadata.gz: 58c2affed577f45ed7325fc086bb7f05b90ef152b46b018a3c3c9d751a470fbca4a5aef55194ff10a5320baf5f068faecd659233b608771df2467cbaf7fe979a
7
- data.tar.gz: 5341f814222adc6f62196931d88699966ec294ffc2d8a1457f955dbdbdf8abd47dc47555889da424120566625076e539652ea1ae7174317e0310234ba0b5c101
6
+ metadata.gz: 00f4e4804053306a2c19d3d9845eb2ae858b4a476dfec8db1992781f453715b034e8b23c272705dcd0ee689a78cfe9e2500b19440661cf3e22db037c145fc352
7
+ data.tar.gz: 0d97846575b79ce159643ab3f981b4d9aca6a5a93fdf5a8fdddf1f1fcf45a62d7a5dafe8133f66e396f9ab69d6370a6a18f36a09cf18a1e383c1b17574650c7a
data/CHANGELOG.md CHANGED
@@ -1,6 +1,31 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.187.0 (2025-04-25)
5
+ ------------------
6
+
7
+ * Feature - Documentation only release for Amazon ECS.
8
+
9
+ 1.186.0 (2025-04-24)
10
+ ------------------
11
+
12
+ * Feature - Documentation only release for Amazon ECS
13
+
14
+ 1.185.0 (2025-04-23)
15
+ ------------------
16
+
17
+ * Feature - Add support to roll back an In_Progress ECS Service Deployment
18
+
19
+ 1.184.0 (2025-04-17)
20
+ ------------------
21
+
22
+ * Feature - Adds a new AccountSetting - defaultLogDriverMode for ECS.
23
+
24
+ 1.183.0 (2025-04-02)
25
+ ------------------
26
+
27
+ * Feature - This is an Amazon ECS documentation only update to address various tickets.
28
+
4
29
  1.182.0 (2025-03-28)
5
30
  ------------------
6
31
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.182.0
1
+ 1.187.0
@@ -2224,13 +2224,13 @@ module Aws::ECS
2224
2224
  # @example Request syntax with placeholder values
2225
2225
  #
2226
2226
  # resp = client.delete_account_setting({
2227
- # name: "serviceLongArnFormat", # required, accepts serviceLongArnFormat, taskLongArnFormat, containerInstanceLongArnFormat, awsvpcTrunking, containerInsights, fargateFIPSMode, tagResourceAuthorization, fargateTaskRetirementWaitPeriod, guardDutyActivate
2227
+ # name: "serviceLongArnFormat", # required, accepts serviceLongArnFormat, taskLongArnFormat, containerInstanceLongArnFormat, awsvpcTrunking, containerInsights, fargateFIPSMode, tagResourceAuthorization, fargateTaskRetirementWaitPeriod, guardDutyActivate, defaultLogDriverMode
2228
2228
  # principal_arn: "String",
2229
2229
  # })
2230
2230
  #
2231
2231
  # @example Response structure
2232
2232
  #
2233
- # resp.setting.name #=> String, one of "serviceLongArnFormat", "taskLongArnFormat", "containerInstanceLongArnFormat", "awsvpcTrunking", "containerInsights", "fargateFIPSMode", "tagResourceAuthorization", "fargateTaskRetirementWaitPeriod", "guardDutyActivate"
2233
+ # resp.setting.name #=> String, one of "serviceLongArnFormat", "taskLongArnFormat", "containerInstanceLongArnFormat", "awsvpcTrunking", "containerInsights", "fargateFIPSMode", "tagResourceAuthorization", "fargateTaskRetirementWaitPeriod", "guardDutyActivate", "defaultLogDriverMode"
2234
2234
  # resp.setting.value #=> String
2235
2235
  # resp.setting.principal_arn #=> String
2236
2236
  # resp.setting.type #=> String, one of "user", "aws_managed"
@@ -4105,12 +4105,12 @@ module Aws::ECS
4105
4105
  # Describes one or more of your service deployments.
4106
4106
  #
4107
4107
  # A service deployment happens when you release a software update for
4108
- # the service. For more information, see [Amazon ECS service
4109
- # deployments][1].
4108
+ # the service. For more information, see [View service history using
4109
+ # Amazon ECS service deployments][1].
4110
4110
  #
4111
4111
  #
4112
4112
  #
4113
- # [1]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-deployments.html
4113
+ # [1]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-deployment.html
4114
4114
  #
4115
4115
  # @option params [required, Array<String>] :service_deployment_arns
4116
4116
  # The ARN of the service deployment.
@@ -4188,7 +4188,7 @@ module Aws::ECS
4188
4188
  # resp.service_deployments[0].target_service_revision.requested_task_count #=> Integer
4189
4189
  # resp.service_deployments[0].target_service_revision.running_task_count #=> Integer
4190
4190
  # resp.service_deployments[0].target_service_revision.pending_task_count #=> Integer
4191
- # resp.service_deployments[0].status #=> String, one of "PENDING", "SUCCESSFUL", "STOPPED", "STOP_REQUESTED", "IN_PROGRESS", "ROLLBACK_IN_PROGRESS", "ROLLBACK_SUCCESSFUL", "ROLLBACK_FAILED"
4191
+ # resp.service_deployments[0].status #=> String, one of "PENDING", "SUCCESSFUL", "STOPPED", "STOP_REQUESTED", "IN_PROGRESS", "ROLLBACK_REQUESTED", "ROLLBACK_IN_PROGRESS", "ROLLBACK_SUCCESSFUL", "ROLLBACK_FAILED"
4192
4192
  # resp.service_deployments[0].status_reason #=> String
4193
4193
  # resp.service_deployments[0].deployment_configuration.deployment_circuit_breaker.enable #=> Boolean
4194
4194
  # resp.service_deployments[0].deployment_configuration.deployment_circuit_breaker.rollback #=> Boolean
@@ -5657,7 +5657,7 @@ module Aws::ECS
5657
5657
  # @example Request syntax with placeholder values
5658
5658
  #
5659
5659
  # resp = client.list_account_settings({
5660
- # name: "serviceLongArnFormat", # accepts serviceLongArnFormat, taskLongArnFormat, containerInstanceLongArnFormat, awsvpcTrunking, containerInsights, fargateFIPSMode, tagResourceAuthorization, fargateTaskRetirementWaitPeriod, guardDutyActivate
5660
+ # name: "serviceLongArnFormat", # accepts serviceLongArnFormat, taskLongArnFormat, containerInstanceLongArnFormat, awsvpcTrunking, containerInsights, fargateFIPSMode, tagResourceAuthorization, fargateTaskRetirementWaitPeriod, guardDutyActivate, defaultLogDriverMode
5661
5661
  # value: "String",
5662
5662
  # principal_arn: "String",
5663
5663
  # effective_settings: false,
@@ -5668,7 +5668,7 @@ module Aws::ECS
5668
5668
  # @example Response structure
5669
5669
  #
5670
5670
  # resp.settings #=> Array
5671
- # resp.settings[0].name #=> String, one of "serviceLongArnFormat", "taskLongArnFormat", "containerInstanceLongArnFormat", "awsvpcTrunking", "containerInsights", "fargateFIPSMode", "tagResourceAuthorization", "fargateTaskRetirementWaitPeriod", "guardDutyActivate"
5671
+ # resp.settings[0].name #=> String, one of "serviceLongArnFormat", "taskLongArnFormat", "containerInstanceLongArnFormat", "awsvpcTrunking", "containerInsights", "fargateFIPSMode", "tagResourceAuthorization", "fargateTaskRetirementWaitPeriod", "guardDutyActivate", "defaultLogDriverMode"
5672
5672
  # resp.settings[0].value #=> String
5673
5673
  # resp.settings[0].principal_arn #=> String
5674
5674
  # resp.settings[0].type #=> String, one of "user", "aws_managed"
@@ -6054,7 +6054,7 @@ module Aws::ECS
6054
6054
  # resp = client.list_service_deployments({
6055
6055
  # service: "String", # required
6056
6056
  # cluster: "String",
6057
- # status: ["PENDING"], # accepts PENDING, SUCCESSFUL, STOPPED, STOP_REQUESTED, IN_PROGRESS, ROLLBACK_IN_PROGRESS, ROLLBACK_SUCCESSFUL, ROLLBACK_FAILED
6057
+ # status: ["PENDING"], # accepts PENDING, SUCCESSFUL, STOPPED, STOP_REQUESTED, IN_PROGRESS, ROLLBACK_REQUESTED, ROLLBACK_IN_PROGRESS, ROLLBACK_SUCCESSFUL, ROLLBACK_FAILED
6058
6058
  # created_at: {
6059
6059
  # before: Time.now,
6060
6060
  # after: Time.now,
@@ -6073,7 +6073,7 @@ module Aws::ECS
6073
6073
  # resp.service_deployments[0].created_at #=> Time
6074
6074
  # resp.service_deployments[0].finished_at #=> Time
6075
6075
  # resp.service_deployments[0].target_service_revision_arn #=> String
6076
- # resp.service_deployments[0].status #=> String, one of "PENDING", "SUCCESSFUL", "STOPPED", "STOP_REQUESTED", "IN_PROGRESS", "ROLLBACK_IN_PROGRESS", "ROLLBACK_SUCCESSFUL", "ROLLBACK_FAILED"
6076
+ # resp.service_deployments[0].status #=> String, one of "PENDING", "SUCCESSFUL", "STOPPED", "STOP_REQUESTED", "IN_PROGRESS", "ROLLBACK_REQUESTED", "ROLLBACK_IN_PROGRESS", "ROLLBACK_SUCCESSFUL", "ROLLBACK_FAILED"
6077
6077
  # resp.service_deployments[0].status_reason #=> String
6078
6078
  # resp.next_token #=> String
6079
6079
  #
@@ -6775,12 +6775,23 @@ module Aws::ECS
6775
6775
  # information, see [Grant permission to tag resources on creation][6]
6776
6776
  # in the *Amazon ECS Developer Guide*.
6777
6777
  #
6778
+ # * `defaultLogDriverMode` - Amazon ECS supports setting a default
6779
+ # delivery mode of log messages from a container to the `logDriver`
6780
+ # that you specify in the container's `logConfiguration`. The
6781
+ # delivery mode affects application stability when the flow of logs
6782
+ # from the container to the log driver is interrupted. The
6783
+ # `defaultLogDriverMode` setting supports two values: `blocking` and
6784
+ # `non-blocking`. If you don't specify a delivery mode in your
6785
+ # container definition's `logConfiguration`, the mode you specify
6786
+ # using this account setting will be used as the default. For more
6787
+ # information about log delivery modes, see [LogConfiguration][7].
6788
+ #
6778
6789
  # * `guardDutyActivate` - The `guardDutyActivate` parameter is read-only
6779
6790
  # in Amazon ECS and indicates whether Amazon ECS Runtime Monitoring is
6780
6791
  # enabled or disabled by your security administrator in your Amazon
6781
6792
  # ECS account. Amazon GuardDuty controls this account setting on your
6782
6793
  # behalf. For more information, see [Protecting Amazon ECS workloads
6783
- # with Amazon ECS Runtime Monitoring][7].
6794
+ # with Amazon ECS Runtime Monitoring][8].
6784
6795
  #
6785
6796
  #
6786
6797
  #
@@ -6790,7 +6801,8 @@ module Aws::ECS
6790
6801
  # [4]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/fargate-task-networking.html#fargate-task-networking-vpc-dual-stack
6791
6802
  # [5]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-maintenance.html
6792
6803
  # [6]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/supported-iam-actions-tagging.html
6793
- # [7]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-guard-duty-integration.html
6804
+ # [7]: https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_LogConfiguration.html
6805
+ # [8]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-guard-duty-integration.html
6794
6806
  #
6795
6807
  # @option params [required, String] :value
6796
6808
  # The account setting value for the specified principal ARN. Accepted
@@ -6872,14 +6884,14 @@ module Aws::ECS
6872
6884
  # @example Request syntax with placeholder values
6873
6885
  #
6874
6886
  # resp = client.put_account_setting({
6875
- # name: "serviceLongArnFormat", # required, accepts serviceLongArnFormat, taskLongArnFormat, containerInstanceLongArnFormat, awsvpcTrunking, containerInsights, fargateFIPSMode, tagResourceAuthorization, fargateTaskRetirementWaitPeriod, guardDutyActivate
6887
+ # name: "serviceLongArnFormat", # required, accepts serviceLongArnFormat, taskLongArnFormat, containerInstanceLongArnFormat, awsvpcTrunking, containerInsights, fargateFIPSMode, tagResourceAuthorization, fargateTaskRetirementWaitPeriod, guardDutyActivate, defaultLogDriverMode
6876
6888
  # value: "String", # required
6877
6889
  # principal_arn: "String",
6878
6890
  # })
6879
6891
  #
6880
6892
  # @example Response structure
6881
6893
  #
6882
- # resp.setting.name #=> String, one of "serviceLongArnFormat", "taskLongArnFormat", "containerInstanceLongArnFormat", "awsvpcTrunking", "containerInsights", "fargateFIPSMode", "tagResourceAuthorization", "fargateTaskRetirementWaitPeriod", "guardDutyActivate"
6894
+ # resp.setting.name #=> String, one of "serviceLongArnFormat", "taskLongArnFormat", "containerInstanceLongArnFormat", "awsvpcTrunking", "containerInsights", "fargateFIPSMode", "tagResourceAuthorization", "fargateTaskRetirementWaitPeriod", "guardDutyActivate", "defaultLogDriverMode"
6883
6895
  # resp.setting.value #=> String
6884
6896
  # resp.setting.principal_arn #=> String
6885
6897
  # resp.setting.type #=> String, one of "user", "aws_managed"
@@ -6987,12 +6999,23 @@ module Aws::ECS
6987
6999
  # information, see [Grant permission to tag resources on creation][6]
6988
7000
  # in the *Amazon ECS Developer Guide*.
6989
7001
  #
7002
+ # * `defaultLogDriverMode` -Amazon ECS supports setting a default
7003
+ # delivery mode of log messages from a container to the `logDriver`
7004
+ # that you specify in the container's `logConfiguration`. The
7005
+ # delivery mode affects application stability when the flow of logs
7006
+ # from the container to the log driver is interrupted. The
7007
+ # `defaultLogDriverMode` setting supports two values: `blocking` and
7008
+ # `non-blocking`. If you don't specify a delivery mode in your
7009
+ # container definition's `logConfiguration`, the mode you specify
7010
+ # using this account setting will be used as the default. For more
7011
+ # information about log delivery modes, see [LogConfiguration][7].
7012
+ #
6990
7013
  # * `guardDutyActivate` - The `guardDutyActivate` parameter is read-only
6991
7014
  # in Amazon ECS and indicates whether Amazon ECS Runtime Monitoring is
6992
7015
  # enabled or disabled by your security administrator in your Amazon
6993
7016
  # ECS account. Amazon GuardDuty controls this account setting on your
6994
7017
  # behalf. For more information, see [Protecting Amazon ECS workloads
6995
- # with Amazon ECS Runtime Monitoring][7].
7018
+ # with Amazon ECS Runtime Monitoring][8].
6996
7019
  #
6997
7020
  #
6998
7021
  #
@@ -7002,7 +7025,8 @@ module Aws::ECS
7002
7025
  # [4]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/fargate-task-networking.html#fargate-task-networking-vpc-dual-stack
7003
7026
  # [5]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-maintenance.html
7004
7027
  # [6]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/supported-iam-actions-tagging.html
7005
- # [7]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-guard-duty-integration.html
7028
+ # [7]: https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_LogConfiguration.html
7029
+ # [8]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-guard-duty-integration.html
7006
7030
  #
7007
7031
  # @option params [required, String] :value
7008
7032
  # The account setting value for the specified principal ARN. Accepted
@@ -7048,13 +7072,13 @@ module Aws::ECS
7048
7072
  # @example Request syntax with placeholder values
7049
7073
  #
7050
7074
  # resp = client.put_account_setting_default({
7051
- # name: "serviceLongArnFormat", # required, accepts serviceLongArnFormat, taskLongArnFormat, containerInstanceLongArnFormat, awsvpcTrunking, containerInsights, fargateFIPSMode, tagResourceAuthorization, fargateTaskRetirementWaitPeriod, guardDutyActivate
7075
+ # name: "serviceLongArnFormat", # required, accepts serviceLongArnFormat, taskLongArnFormat, containerInstanceLongArnFormat, awsvpcTrunking, containerInsights, fargateFIPSMode, tagResourceAuthorization, fargateTaskRetirementWaitPeriod, guardDutyActivate, defaultLogDriverMode
7052
7076
  # value: "String", # required
7053
7077
  # })
7054
7078
  #
7055
7079
  # @example Response structure
7056
7080
  #
7057
- # resp.setting.name #=> String, one of "serviceLongArnFormat", "taskLongArnFormat", "containerInstanceLongArnFormat", "awsvpcTrunking", "containerInsights", "fargateFIPSMode", "tagResourceAuthorization", "fargateTaskRetirementWaitPeriod", "guardDutyActivate"
7081
+ # resp.setting.name #=> String, one of "serviceLongArnFormat", "taskLongArnFormat", "containerInstanceLongArnFormat", "awsvpcTrunking", "containerInsights", "fargateFIPSMode", "tagResourceAuthorization", "fargateTaskRetirementWaitPeriod", "guardDutyActivate", "defaultLogDriverMode"
7058
7082
  # resp.setting.value #=> String
7059
7083
  # resp.setting.principal_arn #=> String
7060
7084
  # resp.setting.type #=> String, one of "user", "aws_managed"
@@ -7867,37 +7891,13 @@ module Aws::ECS
7867
7891
  # (`0.125` vCPUs) and `196608` CPU units (`192` vCPUs). If you do not
7868
7892
  # specify a value, the parameter is ignored.
7869
7893
  #
7870
- # If you're using the Fargate launch type, this field is required and
7871
- # you must use one of the following values, which determines your range
7872
- # of supported values for the `memory` parameter:
7873
- #
7874
- # The CPU units cannot be less than 1 vCPU when you use Windows
7875
- # containers on Fargate.
7876
- #
7877
- # * 256 (.25 vCPU) - Available `memory` values: 512 (0.5 GB), 1024 (1
7878
- # GB), 2048 (2 GB)
7879
- #
7880
- # * 512 (.5 vCPU) - Available `memory` values: 1024 (1 GB), 2048 (2 GB),
7881
- # 3072 (3 GB), 4096 (4 GB)
7882
- #
7883
- # * 1024 (1 vCPU) - Available `memory` values: 2048 (2 GB), 3072 (3 GB),
7884
- # 4096 (4 GB), 5120 (5 GB), 6144 (6 GB), 7168 (7 GB), 8192 (8 GB)
7885
- #
7886
- # * 2048 (2 vCPU) - Available `memory` values: 4096 (4 GB) and 16384 (16
7887
- # GB) in increments of 1024 (1 GB)
7888
- #
7889
- # * 4096 (4 vCPU) - Available `memory` values: 8192 (8 GB) and 30720 (30
7890
- # GB) in increments of 1024 (1 GB)
7894
+ # This field is required for Fargate. For information about the valid
7895
+ # values, see [Task size][1] in the *Amazon Elastic Container Service
7896
+ # Developer Guide*.
7891
7897
  #
7892
- # * 8192 (8 vCPU) - Available `memory` values: 16 GB and 60 GB in 4 GB
7893
- # increments
7894
7898
  #
7895
- # This option requires Linux platform `1.4.0` or later.
7896
7899
  #
7897
- # * 16384 (16vCPU) - Available `memory` values: 32GB and 120 GB in 8 GB
7898
- # increments
7899
- #
7900
- # This option requires Linux platform `1.4.0` or later.
7900
+ # [1]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html#task_size
7901
7901
  #
7902
7902
  # @option params [String] :memory
7903
7903
  # The amount of memory (in MiB) used by the task. It can be expressed as
@@ -8634,6 +8634,19 @@ module Aws::ECS
8634
8634
  # algorithm starting with a couple of seconds of wait time, and
8635
8635
  # increase gradually up to about five minutes of wait time.
8636
8636
  #
8637
+ # If you get a `ConflictException` error, the `RunTask` request could
8638
+ # not be processed due to conflicts. The provided `clientToken` is
8639
+ # already in use with a different `RunTask` request. The `resourceIds`
8640
+ # are the existing task ARNs which are already associated with the
8641
+ # `clientToken`.
8642
+ #
8643
+ # To fix this issue:
8644
+ #
8645
+ # * Run `RunTask` with a unique `clientToken`.
8646
+ #
8647
+ # * Run `RunTask` with the `clientToken` and the original set of
8648
+ # parameters
8649
+ #
8637
8650
  #
8638
8651
  #
8639
8652
  # [1]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/scheduling_tasks.html
@@ -8658,6 +8671,9 @@ module Aws::ECS
8658
8671
  # run your task on. If you do not specify a cluster, the default cluster
8659
8672
  # is assumed.
8660
8673
  #
8674
+ # Each account receives a default cluster the first time you use the
8675
+ # service, but you may also create other clusters.
8676
+ #
8661
8677
  # @option params [Integer] :count
8662
8678
  # The number of instantiations of the specified task to place on your
8663
8679
  # cluster. You can specify up to 10 tasks for each call.
@@ -9596,6 +9612,59 @@ module Aws::ECS
9596
9612
  req.send_request(options)
9597
9613
  end
9598
9614
 
9615
+ # Stops an ongoing service deployment.
9616
+ #
9617
+ # <note markdown="1"> StopServiceDeployment isn't currently supported.
9618
+ #
9619
+ # </note>
9620
+ #
9621
+ # @option params [required, String] :service_deployment_arn
9622
+ # The ARN of the service deployment that you want to stop.
9623
+ #
9624
+ # @option params [String] :stop_type
9625
+ # How you want Amazon ECS to stop the service.
9626
+ #
9627
+ # The ROLLBACK and ABORT stopType aren't supported.
9628
+ #
9629
+ # @return [Types::StopServiceDeploymentResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
9630
+ #
9631
+ # * {Types::StopServiceDeploymentResponse#service_deployment_arn #service_deployment_arn} => String
9632
+ #
9633
+ #
9634
+ # @example Example: To stop a service deployment
9635
+ #
9636
+ # # This example stops the service deployment using the ROLLBACK option.
9637
+ #
9638
+ # resp = client.stop_service_deployment({
9639
+ # service_deployment_arn: "arn:aws:ecs:us-east-1:123456789012:service-deployment/MyCluster/MyService/r9i43YFjvgF_xlg7m2eJ1r",
9640
+ # stop_type: "ROLLBACK",
9641
+ # })
9642
+ #
9643
+ # resp.to_h outputs the following:
9644
+ # {
9645
+ # service_deployment_arn: "arn:aws:ecs:us-east-1:123456789012:service-deployment/MyCluster/MyService/r9i43YFjvgF_xlg7m2eJ1r",
9646
+ # }
9647
+ #
9648
+ # @example Request syntax with placeholder values
9649
+ #
9650
+ # resp = client.stop_service_deployment({
9651
+ # service_deployment_arn: "String", # required
9652
+ # stop_type: "ABORT", # accepts ABORT, ROLLBACK
9653
+ # })
9654
+ #
9655
+ # @example Response structure
9656
+ #
9657
+ # resp.service_deployment_arn #=> String
9658
+ #
9659
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/StopServiceDeployment AWS API Documentation
9660
+ #
9661
+ # @overload stop_service_deployment(params = {})
9662
+ # @param [Hash] params ({})
9663
+ def stop_service_deployment(params = {}, options = {})
9664
+ req = build_request(:stop_service_deployment, params)
9665
+ req.send_request(options)
9666
+ end
9667
+
9599
9668
  # Stops a running task. Any tags associated with the task will be
9600
9669
  # deleted.
9601
9670
  #
@@ -12442,7 +12511,7 @@ module Aws::ECS
12442
12511
  tracer: tracer
12443
12512
  )
12444
12513
  context[:gem_name] = 'aws-sdk-ecs'
12445
- context[:gem_version] = '1.182.0'
12514
+ context[:gem_version] = '1.187.0'
12446
12515
  Seahorse::Client::Request.new(handlers, context)
12447
12516
  end
12448
12517
 
@@ -325,6 +325,7 @@ module Aws::ECS
325
325
  ServiceDeploymentAlarms = Shapes::StructureShape.new(name: 'ServiceDeploymentAlarms')
326
326
  ServiceDeploymentBrief = Shapes::StructureShape.new(name: 'ServiceDeploymentBrief')
327
327
  ServiceDeploymentCircuitBreaker = Shapes::StructureShape.new(name: 'ServiceDeploymentCircuitBreaker')
328
+ ServiceDeploymentNotFoundException = Shapes::StructureShape.new(name: 'ServiceDeploymentNotFoundException')
328
329
  ServiceDeploymentRollbackMonitorsStatus = Shapes::StringShape.new(name: 'ServiceDeploymentRollbackMonitorsStatus')
329
330
  ServiceDeploymentStatus = Shapes::StringShape.new(name: 'ServiceDeploymentStatus')
330
331
  ServiceDeploymentStatusList = Shapes::ListShape.new(name: 'ServiceDeploymentStatusList')
@@ -356,6 +357,9 @@ module Aws::ECS
356
357
  StartTaskRequest = Shapes::StructureShape.new(name: 'StartTaskRequest')
357
358
  StartTaskResponse = Shapes::StructureShape.new(name: 'StartTaskResponse')
358
359
  Statistics = Shapes::ListShape.new(name: 'Statistics')
360
+ StopServiceDeploymentRequest = Shapes::StructureShape.new(name: 'StopServiceDeploymentRequest')
361
+ StopServiceDeploymentResponse = Shapes::StructureShape.new(name: 'StopServiceDeploymentResponse')
362
+ StopServiceDeploymentStopType = Shapes::StringShape.new(name: 'StopServiceDeploymentStopType')
359
363
  StopTaskRequest = Shapes::StructureShape.new(name: 'StopTaskRequest')
360
364
  StopTaskResponse = Shapes::StructureShape.new(name: 'StopTaskResponse')
361
365
  String = Shapes::StringShape.new(name: 'String')
@@ -1627,6 +1631,8 @@ module Aws::ECS
1627
1631
  ServiceDeploymentCircuitBreaker.add_member(:threshold, Shapes::ShapeRef.new(shape: Integer, location_name: "threshold"))
1628
1632
  ServiceDeploymentCircuitBreaker.struct_class = Types::ServiceDeploymentCircuitBreaker
1629
1633
 
1634
+ ServiceDeploymentNotFoundException.struct_class = Types::ServiceDeploymentNotFoundException
1635
+
1630
1636
  ServiceDeploymentStatusList.member = Shapes::ShapeRef.new(shape: ServiceDeploymentStatus)
1631
1637
 
1632
1638
  ServiceDeployments.member = Shapes::ShapeRef.new(shape: ServiceDeployment)
@@ -1738,6 +1744,13 @@ module Aws::ECS
1738
1744
 
1739
1745
  Statistics.member = Shapes::ShapeRef.new(shape: KeyValuePair)
1740
1746
 
1747
+ StopServiceDeploymentRequest.add_member(:service_deployment_arn, Shapes::ShapeRef.new(shape: String, required: true, location_name: "serviceDeploymentArn"))
1748
+ StopServiceDeploymentRequest.add_member(:stop_type, Shapes::ShapeRef.new(shape: StopServiceDeploymentStopType, location_name: "stopType"))
1749
+ StopServiceDeploymentRequest.struct_class = Types::StopServiceDeploymentRequest
1750
+
1751
+ StopServiceDeploymentResponse.add_member(:service_deployment_arn, Shapes::ShapeRef.new(shape: String, location_name: "serviceDeploymentArn"))
1752
+ StopServiceDeploymentResponse.struct_class = Types::StopServiceDeploymentResponse
1753
+
1741
1754
  StopTaskRequest.add_member(:cluster, Shapes::ShapeRef.new(shape: String, location_name: "cluster"))
1742
1755
  StopTaskRequest.add_member(:task, Shapes::ShapeRef.new(shape: String, required: true, location_name: "task"))
1743
1756
  StopTaskRequest.add_member(:reason, Shapes::ShapeRef.new(shape: String, location_name: "reason"))
@@ -2740,6 +2753,21 @@ module Aws::ECS
2740
2753
  o.errors << Shapes::ShapeRef.new(shape: UnsupportedFeatureException)
2741
2754
  end)
2742
2755
 
2756
+ api.add_operation(:stop_service_deployment, Seahorse::Model::Operation.new.tap do |o|
2757
+ o.name = "StopServiceDeployment"
2758
+ o.http_method = "POST"
2759
+ o.http_request_uri = "/"
2760
+ o.input = Shapes::ShapeRef.new(shape: StopServiceDeploymentRequest)
2761
+ o.output = Shapes::ShapeRef.new(shape: StopServiceDeploymentResponse)
2762
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
2763
+ o.errors << Shapes::ShapeRef.new(shape: ClientException)
2764
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
2765
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
2766
+ o.errors << Shapes::ShapeRef.new(shape: ServerException)
2767
+ o.errors << Shapes::ShapeRef.new(shape: ServiceDeploymentNotFoundException)
2768
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedFeatureException)
2769
+ end)
2770
+
2743
2771
  api.add_operation(:stop_task, Seahorse::Model::Operation.new.tap do |o|
2744
2772
  o.name = "StopTask"
2745
2773
  o.http_method = "POST"
@@ -46,6 +46,7 @@ module Aws::ECS
46
46
  # * {ResourceInUseException}
47
47
  # * {ResourceNotFoundException}
48
48
  # * {ServerException}
49
+ # * {ServiceDeploymentNotFoundException}
49
50
  # * {ServiceNotActiveException}
50
51
  # * {ServiceNotFoundException}
51
52
  # * {TargetNotConnectedException}
@@ -265,6 +266,16 @@ module Aws::ECS
265
266
  end
266
267
  end
267
268
 
269
+ class ServiceDeploymentNotFoundException < ServiceError
270
+
271
+ # @param [Seahorse::Client::RequestContext] context
272
+ # @param [String] message
273
+ # @param [Aws::ECS::Types::ServiceDeploymentNotFoundException] data
274
+ def initialize(context, message, data = Aws::EmptyStructure.new)
275
+ super(context, message, data)
276
+ end
277
+ end
278
+
268
279
  class ServiceNotActiveException < ServiceError
269
280
 
270
281
  # @param [Seahorse::Client::RequestContext] context
@@ -932,17 +932,8 @@ module Aws::ECS
932
932
  include Aws::Structure
933
933
  end
934
934
 
935
- # The `RunTask` request could not be processed due to conflicts. The
936
- # provided `clientToken` is already in use with a different `RunTask`
937
- # request. The `resourceIds` are the existing task ARNs which are
938
- # already associated with the `clientToken`.
939
- #
940
- # To fix this issue:
941
- #
942
- # * Run `RunTask` with a unique `clientToken`.
943
- #
944
- # * Run `RunTask` with the `clientToken` and the original set of
945
- # parameters
935
+ # The request could not be processed because of conflict in the current
936
+ # state of the resource.
946
937
  #
947
938
  # @!attribute [rw] resource_ids
948
939
  # The existing task ARNs which are already associated with the
@@ -6935,8 +6926,7 @@ module Aws::ECS
6935
6926
  #
6936
6927
  # awslogs-stream-prefix
6937
6928
  #
6938
- # : Required: Yes, when using the Fargate launch type.Optional for the
6939
- # EC2 launch type, required for the Fargate launch type.
6929
+ # : Required: Yes, when using Fargate.Optional when using EC2.
6940
6930
  #
6941
6931
  # Use the `awslogs-stream-prefix` option to associate a log stream
6942
6932
  # with the specified prefix, the container name, and the ID of the
@@ -7008,6 +6998,8 @@ module Aws::ECS
7008
6998
  #
7009
6999
  # </note>
7010
7000
  #
7001
+ # The following options apply to all supported log drivers.
7002
+ #
7011
7003
  # mode
7012
7004
  #
7013
7005
  # : Required: No
@@ -7015,12 +7007,12 @@ module Aws::ECS
7015
7007
  # Valid values: `non-blocking` \| `blocking`
7016
7008
  #
7017
7009
  # This option defines the delivery mode of log messages from the
7018
- # container to CloudWatch Logs. The delivery mode you choose affects
7019
- # application availability when the flow of logs from container to
7020
- # CloudWatch is interrupted.
7010
+ # container to the log driver specified using `logDriver`. The
7011
+ # delivery mode you choose affects application availability when the
7012
+ # flow of logs from container is interrupted.
7021
7013
  #
7022
- # If you use the `blocking` mode and the flow of logs to CloudWatch
7023
- # is interrupted, calls from container code to write to the `stdout`
7014
+ # If you use the `blocking` mode and the flow of logs is
7015
+ # interrupted, calls from container code to write to the `stdout`
7024
7016
  # and `stderr` streams will block. The logging thread of the
7025
7017
  # application will block as a result. This may cause the application
7026
7018
  # to become unresponsive and lead to container healthcheck failure.
@@ -7028,11 +7020,18 @@ module Aws::ECS
7028
7020
  # If you use the `non-blocking` mode, the container's logs are
7029
7021
  # instead stored in an in-memory intermediate buffer configured with
7030
7022
  # the `max-buffer-size` option. This prevents the application from
7031
- # becoming unresponsive when logs cannot be sent to CloudWatch. We
7032
- # recommend using this mode if you want to ensure service
7033
- # availability and are okay with some log loss. For more
7034
- # information, see [Preventing log loss with non-blocking mode in
7035
- # the `awslogs` container log driver][3].
7023
+ # becoming unresponsive when logs cannot be sent. We recommend using
7024
+ # this mode if you want to ensure service availability and are okay
7025
+ # with some log loss. For more information, see [Preventing log loss
7026
+ # with non-blocking mode in the `awslogs` container log driver][3].
7027
+ #
7028
+ # You can set a default `mode` for all containers in a specific
7029
+ # Amazon Web Services Region by using the `defaultLogDriverMode`
7030
+ # account setting. If you don't specify the `mode` option or
7031
+ # configure the account setting, Amazon ECS will default to the
7032
+ # `blocking` mode. For more information about the account setting,
7033
+ # see [Default log driver mode][4] in the *Amazon Elastic Container
7034
+ # Service Developer Guide*.
7036
7035
  #
7037
7036
  # max-buffer-size
7038
7037
  #
@@ -7071,7 +7070,7 @@ module Aws::ECS
7071
7070
  # options like `Name`, `Host` (OpenSearch Service endpoint without
7072
7071
  # protocol), `Port`, `Index`, `Type`, `Aws_auth`, `Aws_region`,
7073
7072
  # `Suppress_Type_Name`, and `tls`. For more information, see [Under
7074
- # the hood: FireLens for Amazon ECS Tasks][4].
7073
+ # the hood: FireLens for Amazon ECS Tasks][5].
7075
7074
  #
7076
7075
  # When you export logs to Amazon S3, you can specify the bucket using
7077
7076
  # the `bucket` option. You can also specify `region`,
@@ -7089,7 +7088,8 @@ module Aws::ECS
7089
7088
  # [1]: https://docs.docker.com/config/containers/logging/awslogs/#awslogs-datetime-format
7090
7089
  # [2]: https://docs.docker.com/config/containers/logging/awslogs/#awslogs-multiline-pattern
7091
7090
  # [3]: http://aws.amazon.com/blogs/containers/preventing-log-loss-with-non-blocking-mode-in-the-awslogs-container-log-driver/
7092
- # [4]: http://aws.amazon.com/blogs/containers/under-the-hood-firelens-for-amazon-ecs-tasks/
7091
+ # [4]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html#default-log-driver-mode
7092
+ # [5]: http://aws.amazon.com/blogs/containers/under-the-hood-firelens-for-amazon-ecs-tasks/
7093
7093
  # @return [Hash<String,String>]
7094
7094
  #
7095
7095
  # @!attribute [rw] secret_options
@@ -7989,12 +7989,23 @@ module Aws::ECS
7989
7989
  # information, see [Grant permission to tag resources on
7990
7990
  # creation][6] in the *Amazon ECS Developer Guide*.
7991
7991
  #
7992
+ # * `defaultLogDriverMode` -Amazon ECS supports setting a default
7993
+ # delivery mode of log messages from a container to the `logDriver`
7994
+ # that you specify in the container's `logConfiguration`. The
7995
+ # delivery mode affects application stability when the flow of logs
7996
+ # from the container to the log driver is interrupted. The
7997
+ # `defaultLogDriverMode` setting supports two values: `blocking` and
7998
+ # `non-blocking`. If you don't specify a delivery mode in your
7999
+ # container definition's `logConfiguration`, the mode you specify
8000
+ # using this account setting will be used as the default. For more
8001
+ # information about log delivery modes, see [LogConfiguration][7].
8002
+ #
7992
8003
  # * `guardDutyActivate` - The `guardDutyActivate` parameter is
7993
8004
  # read-only in Amazon ECS and indicates whether Amazon ECS Runtime
7994
8005
  # Monitoring is enabled or disabled by your security administrator
7995
8006
  # in your Amazon ECS account. Amazon GuardDuty controls this account
7996
8007
  # setting on your behalf. For more information, see [Protecting
7997
- # Amazon ECS workloads with Amazon ECS Runtime Monitoring][7].
8008
+ # Amazon ECS workloads with Amazon ECS Runtime Monitoring][8].
7998
8009
  #
7999
8010
  #
8000
8011
  #
@@ -8004,7 +8015,8 @@ module Aws::ECS
8004
8015
  # [4]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/fargate-task-networking.html#fargate-task-networking-vpc-dual-stack
8005
8016
  # [5]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-maintenance.html
8006
8017
  # [6]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/supported-iam-actions-tagging.html
8007
- # [7]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-guard-duty-integration.html
8018
+ # [7]: https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_LogConfiguration.html
8019
+ # [8]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-guard-duty-integration.html
8008
8020
  # @return [String]
8009
8021
  #
8010
8022
  # @!attribute [rw] value
@@ -8132,12 +8144,23 @@ module Aws::ECS
8132
8144
  # information, see [Grant permission to tag resources on
8133
8145
  # creation][6] in the *Amazon ECS Developer Guide*.
8134
8146
  #
8147
+ # * `defaultLogDriverMode` - Amazon ECS supports setting a default
8148
+ # delivery mode of log messages from a container to the `logDriver`
8149
+ # that you specify in the container's `logConfiguration`. The
8150
+ # delivery mode affects application stability when the flow of logs
8151
+ # from the container to the log driver is interrupted. The
8152
+ # `defaultLogDriverMode` setting supports two values: `blocking` and
8153
+ # `non-blocking`. If you don't specify a delivery mode in your
8154
+ # container definition's `logConfiguration`, the mode you specify
8155
+ # using this account setting will be used as the default. For more
8156
+ # information about log delivery modes, see [LogConfiguration][7].
8157
+ #
8135
8158
  # * `guardDutyActivate` - The `guardDutyActivate` parameter is
8136
8159
  # read-only in Amazon ECS and indicates whether Amazon ECS Runtime
8137
8160
  # Monitoring is enabled or disabled by your security administrator
8138
8161
  # in your Amazon ECS account. Amazon GuardDuty controls this account
8139
8162
  # setting on your behalf. For more information, see [Protecting
8140
- # Amazon ECS workloads with Amazon ECS Runtime Monitoring][7].
8163
+ # Amazon ECS workloads with Amazon ECS Runtime Monitoring][8].
8141
8164
  #
8142
8165
  #
8143
8166
  #
@@ -8147,7 +8170,8 @@ module Aws::ECS
8147
8170
  # [4]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/fargate-task-networking.html#fargate-task-networking-vpc-dual-stack
8148
8171
  # [5]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-maintenance.html
8149
8172
  # [6]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/supported-iam-actions-tagging.html
8150
- # [7]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-guard-duty-integration.html
8173
+ # [7]: https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_LogConfiguration.html
8174
+ # [8]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-guard-duty-integration.html
8151
8175
  # @return [String]
8152
8176
  #
8153
8177
  # @!attribute [rw] value
@@ -8534,38 +8558,13 @@ module Aws::ECS
8534
8558
  # (`0.125` vCPUs) and `196608` CPU units (`192` vCPUs). If you do not
8535
8559
  # specify a value, the parameter is ignored.
8536
8560
  #
8537
- # If you're using the Fargate launch type, this field is required and
8538
- # you must use one of the following values, which determines your
8539
- # range of supported values for the `memory` parameter:
8540
- #
8541
- # The CPU units cannot be less than 1 vCPU when you use Windows
8542
- # containers on Fargate.
8543
- #
8544
- # * 256 (.25 vCPU) - Available `memory` values: 512 (0.5 GB), 1024 (1
8545
- # GB), 2048 (2 GB)
8546
- #
8547
- # * 512 (.5 vCPU) - Available `memory` values: 1024 (1 GB), 2048 (2
8548
- # GB), 3072 (3 GB), 4096 (4 GB)
8549
- #
8550
- # * 1024 (1 vCPU) - Available `memory` values: 2048 (2 GB), 3072 (3
8551
- # GB), 4096 (4 GB), 5120 (5 GB), 6144 (6 GB), 7168 (7 GB), 8192 (8
8552
- # GB)
8553
- #
8554
- # * 2048 (2 vCPU) - Available `memory` values: 4096 (4 GB) and 16384
8555
- # (16 GB) in increments of 1024 (1 GB)
8556
- #
8557
- # * 4096 (4 vCPU) - Available `memory` values: 8192 (8 GB) and 30720
8558
- # (30 GB) in increments of 1024 (1 GB)
8559
- #
8560
- # * 8192 (8 vCPU) - Available `memory` values: 16 GB and 60 GB in 4 GB
8561
- # increments
8561
+ # This field is required for Fargate. For information about the valid
8562
+ # values, see [Task size][1] in the *Amazon Elastic Container Service
8563
+ # Developer Guide*.
8562
8564
  #
8563
- # This option requires Linux platform `1.4.0` or later.
8564
8565
  #
8565
- # * 16384 (16vCPU) - Available `memory` values: 32GB and 120 GB in 8
8566
- # GB increments
8567
8566
  #
8568
- # This option requires Linux platform `1.4.0` or later.
8567
+ # [1]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html#task_size
8569
8568
  # @return [String]
8570
8569
  #
8571
8570
  # @!attribute [rw] memory
@@ -8948,20 +8947,6 @@ module Aws::ECS
8948
8947
  #
8949
8948
  # @!attribute [rw] service_revision_arn
8950
8949
  # The ARN of the service revision deployed as part of the rollback.
8951
- #
8952
- # When the type is `GPU`, the value is the number of physical `GPUs`
8953
- # the Amazon ECS container agent reserves for the container. The
8954
- # number of GPUs that's reserved for all containers in a task can't
8955
- # exceed the number of available GPUs on the container instance that
8956
- # the task is launched on.
8957
- #
8958
- # When the type is `InferenceAccelerator`, the `value` matches the
8959
- # `deviceName` for an [InferenceAccelerator][1] specified in a task
8960
- # definition.
8961
- #
8962
- #
8963
- #
8964
- # [1]: https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_InferenceAccelerator.html
8965
8950
  # @return [String]
8966
8951
  #
8967
8952
  # @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/Rollback AWS API Documentation
@@ -8993,6 +8978,9 @@ module Aws::ECS
8993
8978
  # The short name or full Amazon Resource Name (ARN) of the cluster to
8994
8979
  # run your task on. If you do not specify a cluster, the default
8995
8980
  # cluster is assumed.
8981
+ #
8982
+ # Each account receives a default cluster the first time you use the
8983
+ # service, but you may also create other clusters.
8996
8984
  # @return [String]
8997
8985
  #
8998
8986
  # @!attribute [rw] count
@@ -10303,6 +10291,14 @@ module Aws::ECS
10303
10291
  include Aws::Structure
10304
10292
  end
10305
10293
 
10294
+ # The service deploy ARN that you specified in the
10295
+ # `StopServiceDeployment` doesn't exist. You can use
10296
+ # `ListServiceDeployments` to retrieve the service deployment ARNs.
10297
+ #
10298
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/ServiceDeploymentNotFoundException AWS API Documentation
10299
+ #
10300
+ class ServiceDeploymentNotFoundException < Aws::EmptyStructure; end
10301
+
10306
10302
  # The details for an event that's associated with a service.
10307
10303
  #
10308
10304
  # @!attribute [rw] id
@@ -11035,6 +11031,37 @@ module Aws::ECS
11035
11031
  include Aws::Structure
11036
11032
  end
11037
11033
 
11034
+ # @!attribute [rw] service_deployment_arn
11035
+ # The ARN of the service deployment that you want to stop.
11036
+ # @return [String]
11037
+ #
11038
+ # @!attribute [rw] stop_type
11039
+ # How you want Amazon ECS to stop the service.
11040
+ #
11041
+ # The ROLLBACK and ABORT stopType aren't supported.
11042
+ # @return [String]
11043
+ #
11044
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/StopServiceDeploymentRequest AWS API Documentation
11045
+ #
11046
+ class StopServiceDeploymentRequest < Struct.new(
11047
+ :service_deployment_arn,
11048
+ :stop_type)
11049
+ SENSITIVE = []
11050
+ include Aws::Structure
11051
+ end
11052
+
11053
+ # @!attribute [rw] service_deployment_arn
11054
+ # The ARN of the stopped service deployment.
11055
+ # @return [String]
11056
+ #
11057
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/StopServiceDeploymentResponse AWS API Documentation
11058
+ #
11059
+ class StopServiceDeploymentResponse < Struct.new(
11060
+ :service_deployment_arn)
11061
+ SENSITIVE = []
11062
+ include Aws::Structure
11063
+ end
11064
+
11038
11065
  # @!attribute [rw] cluster
11039
11066
  # The short name or full Amazon Resource Name (ARN) of the cluster
11040
11067
  # that hosts the task to stop. If you do not specify a cluster, the
@@ -11516,38 +11543,13 @@ module Aws::ECS
11516
11543
  # (`0.125` vCPUs) and `196608` CPU units (`192` vCPUs). If you do not
11517
11544
  # specify a value, the parameter is ignored.
11518
11545
  #
11519
- # If you're using the Fargate launch type, this field is required.
11520
- # You must use one of the following values. These values determine the
11521
- # range of supported values for the `memory` parameter:
11522
- #
11523
- # The CPU units cannot be less than 1 vCPU when you use Windows
11524
- # containers on Fargate.
11525
- #
11526
- # * 256 (.25 vCPU) - Available `memory` values: 512 (0.5 GB), 1024 (1
11527
- # GB), 2048 (2 GB)
11528
- #
11529
- # * 512 (.5 vCPU) - Available `memory` values: 1024 (1 GB), 2048 (2
11530
- # GB), 3072 (3 GB), 4096 (4 GB)
11531
- #
11532
- # * 1024 (1 vCPU) - Available `memory` values: 2048 (2 GB), 3072 (3
11533
- # GB), 4096 (4 GB), 5120 (5 GB), 6144 (6 GB), 7168 (7 GB), 8192 (8
11534
- # GB)
11535
- #
11536
- # * 2048 (2 vCPU) - Available `memory` values: 4096 (4 GB) and 16384
11537
- # (16 GB) in increments of 1024 (1 GB)
11538
- #
11539
- # * 4096 (4 vCPU) - Available `memory` values: 8192 (8 GB) and 30720
11540
- # (30 GB) in increments of 1024 (1 GB)
11541
- #
11542
- # * 8192 (8 vCPU) - Available `memory` values: 16 GB and 60 GB in 4 GB
11543
- # increments
11546
+ # This field is required for Fargate. For information about the valid
11547
+ # values, see [Task size][1] in the *Amazon Elastic Container Service
11548
+ # Developer Guide*.
11544
11549
  #
11545
- # This option requires Linux platform `1.4.0` or later.
11546
11550
  #
11547
- # * 16384 (16vCPU) - Available `memory` values: 32GB and 120 GB in 8
11548
- # GB increments
11549
11551
  #
11550
- # This option requires Linux platform `1.4.0` or later.
11552
+ # [1]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html#task_size
11551
11553
  # @return [String]
11552
11554
  #
11553
11555
  # @!attribute [rw] created_at
@@ -12031,35 +12033,15 @@ module Aws::ECS
12031
12033
  #
12032
12034
  # If you're using the EC2 launch type or the external launch type,
12033
12035
  # this field is optional. Supported values are between `128` CPU units
12034
- # (`0.125` vCPUs) and `196608` CPU units (`192` vCPUs). The CPU units
12035
- # cannot be less than 1 vCPU when you use Windows containers on
12036
- # Fargate.
12037
- #
12038
- # * 256 (.25 vCPU) - Available `memory` values: 512 (0.5 GB), 1024 (1
12039
- # GB), 2048 (2 GB)
12040
- #
12041
- # * 512 (.5 vCPU) - Available `memory` values: 1024 (1 GB), 2048 (2
12042
- # GB), 3072 (3 GB), 4096 (4 GB)
12043
- #
12044
- # * 1024 (1 vCPU) - Available `memory` values: 2048 (2 GB), 3072 (3
12045
- # GB), 4096 (4 GB), 5120 (5 GB), 6144 (6 GB), 7168 (7 GB), 8192 (8
12046
- # GB)
12047
- #
12048
- # * 2048 (2 vCPU) - Available `memory` values: 4096 (4 GB) and 16384
12049
- # (16 GB) in increments of 1024 (1 GB)
12036
+ # (`0.125` vCPUs) and `196608` CPU units (`192` vCPUs).
12050
12037
  #
12051
- # * 4096 (4 vCPU) - Available `memory` values: 8192 (8 GB) and 30720
12052
- # (30 GB) in increments of 1024 (1 GB)
12053
- #
12054
- # * 8192 (8 vCPU) - Available `memory` values: 16 GB and 60 GB in 4 GB
12055
- # increments
12038
+ # This field is required for Fargate. For information about the valid
12039
+ # values, see [Task size][1] in the *Amazon Elastic Container Service
12040
+ # Developer Guide*.
12056
12041
  #
12057
- # This option requires Linux platform `1.4.0` or later.
12058
12042
  #
12059
- # * 16384 (16vCPU) - Available `memory` values: 32GB and 120 GB in 8
12060
- # GB increments
12061
12043
  #
12062
- # This option requires Linux platform `1.4.0` or later.
12044
+ # [1]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html#task_size
12063
12045
  # @return [String]
12064
12046
  #
12065
12047
  # @!attribute [rw] memory
data/lib/aws-sdk-ecs.rb CHANGED
@@ -55,7 +55,7 @@ module Aws::ECS
55
55
  autoload :EndpointProvider, 'aws-sdk-ecs/endpoint_provider'
56
56
  autoload :Endpoints, 'aws-sdk-ecs/endpoints'
57
57
 
58
- GEM_VERSION = '1.182.0'
58
+ GEM_VERSION = '1.187.0'
59
59
 
60
60
  end
61
61
 
data/sig/client.rbs CHANGED
@@ -378,7 +378,7 @@ module Aws
378
378
  end
379
379
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ECS/Client.html#delete_account_setting-instance_method
380
380
  def delete_account_setting: (
381
- name: ("serviceLongArnFormat" | "taskLongArnFormat" | "containerInstanceLongArnFormat" | "awsvpcTrunking" | "containerInsights" | "fargateFIPSMode" | "tagResourceAuthorization" | "fargateTaskRetirementWaitPeriod" | "guardDutyActivate"),
381
+ name: ("serviceLongArnFormat" | "taskLongArnFormat" | "containerInstanceLongArnFormat" | "awsvpcTrunking" | "containerInsights" | "fargateFIPSMode" | "tagResourceAuthorization" | "fargateTaskRetirementWaitPeriod" | "guardDutyActivate" | "defaultLogDriverMode"),
382
382
  ?principal_arn: ::String
383
383
  ) -> _DeleteAccountSettingResponseSuccess
384
384
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteAccountSettingResponseSuccess
@@ -644,7 +644,7 @@ module Aws
644
644
  end
645
645
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ECS/Client.html#list_account_settings-instance_method
646
646
  def list_account_settings: (
647
- ?name: ("serviceLongArnFormat" | "taskLongArnFormat" | "containerInstanceLongArnFormat" | "awsvpcTrunking" | "containerInsights" | "fargateFIPSMode" | "tagResourceAuthorization" | "fargateTaskRetirementWaitPeriod" | "guardDutyActivate"),
647
+ ?name: ("serviceLongArnFormat" | "taskLongArnFormat" | "containerInstanceLongArnFormat" | "awsvpcTrunking" | "containerInsights" | "fargateFIPSMode" | "tagResourceAuthorization" | "fargateTaskRetirementWaitPeriod" | "guardDutyActivate" | "defaultLogDriverMode"),
648
648
  ?value: ::String,
649
649
  ?principal_arn: ::String,
650
650
  ?effective_settings: bool,
@@ -705,7 +705,7 @@ module Aws
705
705
  def list_service_deployments: (
706
706
  service: ::String,
707
707
  ?cluster: ::String,
708
- ?status: Array[("PENDING" | "SUCCESSFUL" | "STOPPED" | "STOP_REQUESTED" | "IN_PROGRESS" | "ROLLBACK_IN_PROGRESS" | "ROLLBACK_SUCCESSFUL" | "ROLLBACK_FAILED")],
708
+ ?status: Array[("PENDING" | "SUCCESSFUL" | "STOPPED" | "STOP_REQUESTED" | "IN_PROGRESS" | "ROLLBACK_REQUESTED" | "ROLLBACK_IN_PROGRESS" | "ROLLBACK_SUCCESSFUL" | "ROLLBACK_FAILED")],
709
709
  ?created_at: {
710
710
  before: ::Time?,
711
711
  after: ::Time?
@@ -807,7 +807,7 @@ module Aws
807
807
  end
808
808
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ECS/Client.html#put_account_setting-instance_method
809
809
  def put_account_setting: (
810
- name: ("serviceLongArnFormat" | "taskLongArnFormat" | "containerInstanceLongArnFormat" | "awsvpcTrunking" | "containerInsights" | "fargateFIPSMode" | "tagResourceAuthorization" | "fargateTaskRetirementWaitPeriod" | "guardDutyActivate"),
810
+ name: ("serviceLongArnFormat" | "taskLongArnFormat" | "containerInstanceLongArnFormat" | "awsvpcTrunking" | "containerInsights" | "fargateFIPSMode" | "tagResourceAuthorization" | "fargateTaskRetirementWaitPeriod" | "guardDutyActivate" | "defaultLogDriverMode"),
811
811
  value: ::String,
812
812
  ?principal_arn: ::String
813
813
  ) -> _PutAccountSettingResponseSuccess
@@ -819,7 +819,7 @@ module Aws
819
819
  end
820
820
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ECS/Client.html#put_account_setting_default-instance_method
821
821
  def put_account_setting_default: (
822
- name: ("serviceLongArnFormat" | "taskLongArnFormat" | "containerInstanceLongArnFormat" | "awsvpcTrunking" | "containerInsights" | "fargateFIPSMode" | "tagResourceAuthorization" | "fargateTaskRetirementWaitPeriod" | "guardDutyActivate"),
822
+ name: ("serviceLongArnFormat" | "taskLongArnFormat" | "containerInstanceLongArnFormat" | "awsvpcTrunking" | "containerInsights" | "fargateFIPSMode" | "tagResourceAuthorization" | "fargateTaskRetirementWaitPeriod" | "guardDutyActivate" | "defaultLogDriverMode"),
823
823
  value: ::String
824
824
  ) -> _PutAccountSettingDefaultResponseSuccess
825
825
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _PutAccountSettingDefaultResponseSuccess
@@ -1383,6 +1383,17 @@ module Aws
1383
1383
  ) -> _StartTaskResponseSuccess
1384
1384
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _StartTaskResponseSuccess
1385
1385
 
1386
+ interface _StopServiceDeploymentResponseSuccess
1387
+ include ::Seahorse::Client::_ResponseSuccess[Types::StopServiceDeploymentResponse]
1388
+ def service_deployment_arn: () -> ::String
1389
+ end
1390
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ECS/Client.html#stop_service_deployment-instance_method
1391
+ def stop_service_deployment: (
1392
+ service_deployment_arn: ::String,
1393
+ ?stop_type: ("ABORT" | "ROLLBACK")
1394
+ ) -> _StopServiceDeploymentResponseSuccess
1395
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _StopServiceDeploymentResponseSuccess
1396
+
1386
1397
  interface _StopTaskResponseSuccess
1387
1398
  include ::Seahorse::Client::_ResponseSuccess[Types::StopTaskResponse]
1388
1399
  def task: () -> Types::Task
data/sig/errors.rbs CHANGED
@@ -52,6 +52,8 @@ module Aws
52
52
  class ServerException < ::Aws::Errors::ServiceError
53
53
  def message: () -> ::String
54
54
  end
55
+ class ServiceDeploymentNotFoundException < ::Aws::Errors::ServiceError
56
+ end
55
57
  class ServiceNotActiveException < ::Aws::Errors::ServiceError
56
58
  end
57
59
  class ServiceNotFoundException < ::Aws::Errors::ServiceError
data/sig/types.rbs CHANGED
@@ -373,7 +373,7 @@ module Aws::ECS
373
373
  end
374
374
 
375
375
  class DeleteAccountSettingRequest
376
- attr_accessor name: ("serviceLongArnFormat" | "taskLongArnFormat" | "containerInstanceLongArnFormat" | "awsvpcTrunking" | "containerInsights" | "fargateFIPSMode" | "tagResourceAuthorization" | "fargateTaskRetirementWaitPeriod" | "guardDutyActivate")
376
+ attr_accessor name: ("serviceLongArnFormat" | "taskLongArnFormat" | "containerInstanceLongArnFormat" | "awsvpcTrunking" | "containerInsights" | "fargateFIPSMode" | "tagResourceAuthorization" | "fargateTaskRetirementWaitPeriod" | "guardDutyActivate" | "defaultLogDriverMode")
377
377
  attr_accessor principal_arn: ::String
378
378
  SENSITIVE: []
379
379
  end
@@ -847,7 +847,7 @@ module Aws::ECS
847
847
  end
848
848
 
849
849
  class ListAccountSettingsRequest
850
- attr_accessor name: ("serviceLongArnFormat" | "taskLongArnFormat" | "containerInstanceLongArnFormat" | "awsvpcTrunking" | "containerInsights" | "fargateFIPSMode" | "tagResourceAuthorization" | "fargateTaskRetirementWaitPeriod" | "guardDutyActivate")
850
+ attr_accessor name: ("serviceLongArnFormat" | "taskLongArnFormat" | "containerInstanceLongArnFormat" | "awsvpcTrunking" | "containerInsights" | "fargateFIPSMode" | "tagResourceAuthorization" | "fargateTaskRetirementWaitPeriod" | "guardDutyActivate" | "defaultLogDriverMode")
851
851
  attr_accessor value: ::String
852
852
  attr_accessor principal_arn: ::String
853
853
  attr_accessor effective_settings: bool
@@ -908,7 +908,7 @@ module Aws::ECS
908
908
  class ListServiceDeploymentsRequest
909
909
  attr_accessor service: ::String
910
910
  attr_accessor cluster: ::String
911
- attr_accessor status: ::Array[("PENDING" | "SUCCESSFUL" | "STOPPED" | "STOP_REQUESTED" | "IN_PROGRESS" | "ROLLBACK_IN_PROGRESS" | "ROLLBACK_SUCCESSFUL" | "ROLLBACK_FAILED")]
911
+ attr_accessor status: ::Array[("PENDING" | "SUCCESSFUL" | "STOPPED" | "STOP_REQUESTED" | "IN_PROGRESS" | "ROLLBACK_REQUESTED" | "ROLLBACK_IN_PROGRESS" | "ROLLBACK_SUCCESSFUL" | "ROLLBACK_FAILED")]
912
912
  attr_accessor created_at: Types::CreatedAt
913
913
  attr_accessor next_token: ::String
914
914
  attr_accessor max_results: ::Integer
@@ -1140,7 +1140,7 @@ module Aws::ECS
1140
1140
  end
1141
1141
 
1142
1142
  class PutAccountSettingDefaultRequest
1143
- attr_accessor name: ("serviceLongArnFormat" | "taskLongArnFormat" | "containerInstanceLongArnFormat" | "awsvpcTrunking" | "containerInsights" | "fargateFIPSMode" | "tagResourceAuthorization" | "fargateTaskRetirementWaitPeriod" | "guardDutyActivate")
1143
+ attr_accessor name: ("serviceLongArnFormat" | "taskLongArnFormat" | "containerInstanceLongArnFormat" | "awsvpcTrunking" | "containerInsights" | "fargateFIPSMode" | "tagResourceAuthorization" | "fargateTaskRetirementWaitPeriod" | "guardDutyActivate" | "defaultLogDriverMode")
1144
1144
  attr_accessor value: ::String
1145
1145
  SENSITIVE: []
1146
1146
  end
@@ -1151,7 +1151,7 @@ module Aws::ECS
1151
1151
  end
1152
1152
 
1153
1153
  class PutAccountSettingRequest
1154
- attr_accessor name: ("serviceLongArnFormat" | "taskLongArnFormat" | "containerInstanceLongArnFormat" | "awsvpcTrunking" | "containerInsights" | "fargateFIPSMode" | "tagResourceAuthorization" | "fargateTaskRetirementWaitPeriod" | "guardDutyActivate")
1154
+ attr_accessor name: ("serviceLongArnFormat" | "taskLongArnFormat" | "containerInstanceLongArnFormat" | "awsvpcTrunking" | "containerInsights" | "fargateFIPSMode" | "tagResourceAuthorization" | "fargateTaskRetirementWaitPeriod" | "guardDutyActivate" | "defaultLogDriverMode")
1155
1155
  attr_accessor value: ::String
1156
1156
  attr_accessor principal_arn: ::String
1157
1157
  SENSITIVE: []
@@ -1406,7 +1406,7 @@ module Aws::ECS
1406
1406
  attr_accessor updated_at: ::Time
1407
1407
  attr_accessor source_service_revisions: ::Array[Types::ServiceRevisionSummary]
1408
1408
  attr_accessor target_service_revision: Types::ServiceRevisionSummary
1409
- attr_accessor status: ("PENDING" | "SUCCESSFUL" | "STOPPED" | "STOP_REQUESTED" | "IN_PROGRESS" | "ROLLBACK_IN_PROGRESS" | "ROLLBACK_SUCCESSFUL" | "ROLLBACK_FAILED")
1409
+ attr_accessor status: ("PENDING" | "SUCCESSFUL" | "STOPPED" | "STOP_REQUESTED" | "IN_PROGRESS" | "ROLLBACK_REQUESTED" | "ROLLBACK_IN_PROGRESS" | "ROLLBACK_SUCCESSFUL" | "ROLLBACK_FAILED")
1410
1410
  attr_accessor status_reason: ::String
1411
1411
  attr_accessor deployment_configuration: Types::DeploymentConfiguration
1412
1412
  attr_accessor rollback: Types::Rollback
@@ -1430,7 +1430,7 @@ module Aws::ECS
1430
1430
  attr_accessor created_at: ::Time
1431
1431
  attr_accessor finished_at: ::Time
1432
1432
  attr_accessor target_service_revision_arn: ::String
1433
- attr_accessor status: ("PENDING" | "SUCCESSFUL" | "STOPPED" | "STOP_REQUESTED" | "IN_PROGRESS" | "ROLLBACK_IN_PROGRESS" | "ROLLBACK_SUCCESSFUL" | "ROLLBACK_FAILED")
1433
+ attr_accessor status: ("PENDING" | "SUCCESSFUL" | "STOPPED" | "STOP_REQUESTED" | "IN_PROGRESS" | "ROLLBACK_REQUESTED" | "ROLLBACK_IN_PROGRESS" | "ROLLBACK_SUCCESSFUL" | "ROLLBACK_FAILED")
1434
1434
  attr_accessor status_reason: ::String
1435
1435
  SENSITIVE: []
1436
1436
  end
@@ -1442,6 +1442,9 @@ module Aws::ECS
1442
1442
  SENSITIVE: []
1443
1443
  end
1444
1444
 
1445
+ class ServiceDeploymentNotFoundException < Aws::EmptyStructure
1446
+ end
1447
+
1445
1448
  class ServiceEvent
1446
1449
  attr_accessor id: ::String
1447
1450
  attr_accessor created_at: ::Time
@@ -1521,7 +1524,7 @@ module Aws::ECS
1521
1524
  end
1522
1525
 
1523
1526
  class Setting
1524
- attr_accessor name: ("serviceLongArnFormat" | "taskLongArnFormat" | "containerInstanceLongArnFormat" | "awsvpcTrunking" | "containerInsights" | "fargateFIPSMode" | "tagResourceAuthorization" | "fargateTaskRetirementWaitPeriod" | "guardDutyActivate")
1527
+ attr_accessor name: ("serviceLongArnFormat" | "taskLongArnFormat" | "containerInstanceLongArnFormat" | "awsvpcTrunking" | "containerInsights" | "fargateFIPSMode" | "tagResourceAuthorization" | "fargateTaskRetirementWaitPeriod" | "guardDutyActivate" | "defaultLogDriverMode")
1525
1528
  attr_accessor value: ::String
1526
1529
  attr_accessor principal_arn: ::String
1527
1530
  attr_accessor type: ("user" | "aws_managed")
@@ -1551,6 +1554,17 @@ module Aws::ECS
1551
1554
  SENSITIVE: []
1552
1555
  end
1553
1556
 
1557
+ class StopServiceDeploymentRequest
1558
+ attr_accessor service_deployment_arn: ::String
1559
+ attr_accessor stop_type: ("ABORT" | "ROLLBACK")
1560
+ SENSITIVE: []
1561
+ end
1562
+
1563
+ class StopServiceDeploymentResponse
1564
+ attr_accessor service_deployment_arn: ::String
1565
+ SENSITIVE: []
1566
+ end
1567
+
1554
1568
  class StopTaskRequest
1555
1569
  attr_accessor cluster: ::String
1556
1570
  attr_accessor task: ::String
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-ecs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.182.0
4
+ version: 1.187.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: 2025-03-28 00:00:00.000000000 Z
11
+ date: 2025-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core