aws-sdk-ecs 1.23.1 → 1.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 35623b16bc49180ed5a3b20473d52e050825c85f
4
- data.tar.gz: 399d40817c2706804ef3a5a19b36292e8daf76f8
3
+ metadata.gz: 687d35c960db5add6e536e5622739d54b3089937
4
+ data.tar.gz: 4f7c61f395409e29ffc1bbe132f0bce689ce20f5
5
5
  SHA512:
6
- metadata.gz: 79bd688ab3bcd9cc679e26d539367f63be21ae5222fcbdda3cba894ee426bc95514dadba6baf1e8849da731f5de9020d35b85508ad58e802af4726f853418b4c
7
- data.tar.gz: 3606141f0877c5e6fe4549697927862367069333bffb5a33eaf60faf2296f91c86d0fc9c9a3d856a6e1e3d38eaa33a6a5e12a8413fd2f6f99127156e8715065d
6
+ metadata.gz: 1562ce22f101f52519bc21e2d389dbf7835189d32584ad044d7b58a6b61923a62dc3401883e787cbfb8fc2fc104e9f4b2d328c310a88e603ef66472d789d120f
7
+ data.tar.gz: 99b777c9ac3354d7a78d7d97fc799ff0a245427c4479518daa4bfb917d5fe8eb1ab4bcdb1337b23ad72c75c3c1d68bd18fcafbfd51c1e487dc2e5a590763c891
@@ -43,6 +43,6 @@ require_relative 'aws-sdk-ecs/customizations'
43
43
  # @service
44
44
  module Aws::ECS
45
45
 
46
- GEM_VERSION = '1.23.1'
46
+ GEM_VERSION = '1.24.0'
47
47
 
48
48
  end
@@ -1410,6 +1410,8 @@ module Aws::ECS
1410
1410
  # resp.task_definition.requires_compatibilities[0] #=> String, one of "EC2", "FARGATE"
1411
1411
  # resp.task_definition.cpu #=> String
1412
1412
  # resp.task_definition.memory #=> String
1413
+ # resp.task_definition.pid_mode #=> String, one of "host", "task"
1414
+ # resp.task_definition.ipc_mode #=> String, one of "host", "task", "none"
1413
1415
  #
1414
1416
  # @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DeregisterTaskDefinition AWS API Documentation
1415
1417
  #
@@ -2064,6 +2066,8 @@ module Aws::ECS
2064
2066
  # resp.task_definition.requires_compatibilities[0] #=> String, one of "EC2", "FARGATE"
2065
2067
  # resp.task_definition.cpu #=> String
2066
2068
  # resp.task_definition.memory #=> String
2069
+ # resp.task_definition.pid_mode #=> String, one of "host", "task"
2070
+ # resp.task_definition.ipc_mode #=> String, one of "host", "task", "none"
2067
2071
  # resp.tags #=> Array
2068
2072
  # resp.tags[0].key #=> String
2069
2073
  # resp.tags[0].value #=> String
@@ -3425,8 +3429,8 @@ module Aws::ECS
3425
3429
  # Docker network mode is `bridge`. If you are using the Fargate launch
3426
3430
  # type, the `awsvpc` network mode is required. If you are using the EC2
3427
3431
  # launch type, any network mode can be used. If the network mode is set
3428
- # to `none`, you can't specify port mappings in your container
3429
- # definitions, and the task's containers do not have external
3432
+ # to `none`, you cannot specify port mappings in your container
3433
+ # definitions, and the tasks containers do not have external
3430
3434
  # connectivity. The `host` and `awsvpc` network modes offer the highest
3431
3435
  # networking performance for containers because they use the EC2 network
3432
3436
  # stack instead of the virtualized network stack provided by the
@@ -3439,18 +3443,26 @@ module Aws::ECS
3439
3443
  # port mappings.
3440
3444
  #
3441
3445
  # If the network mode is `awsvpc`, the task is allocated an elastic
3442
- # network interface, and you must specify a NetworkConfiguration when
3443
- # you create a service or run a task with the task definition. For more
3444
- # information, see [Task Networking][1] in the *Amazon Elastic Container
3445
- # Service Developer Guide*.
3446
+ # network interface, and you must specify a NetworkConfiguration value
3447
+ # when you create a service or run a task with the task definition. For
3448
+ # more information, see [Task Networking][1] in the *Amazon Elastic
3449
+ # Container Service Developer Guide*.
3450
+ #
3451
+ # <note markdown="1"> Currently, only Amazon ECS-optimized AMIs, other Amazon Linux variants
3452
+ # with the `ecs-init` package, or AWS Fargate infrastructure support the
3453
+ # `awsvpc` network mode.
3454
+ #
3455
+ # </note>
3446
3456
  #
3447
- # If the network mode is `host`, you can't run multiple instantiations
3457
+ # If the network mode is `host`, you cannot run multiple instantiations
3448
3458
  # of the same task on a single container instance when port mappings are
3449
3459
  # used.
3450
3460
  #
3451
3461
  # Docker for Windows uses different network modes than Docker for Linux.
3452
3462
  # When you register a task definition with Windows containers, you must
3453
- # not specify a network mode.
3463
+ # not specify a network mode. If you use the console to register a task
3464
+ # definition with Windows containers, you must choose the `<default>`
3465
+ # network mode object.
3454
3466
  #
3455
3467
  # For more information, see [Network settings][2] in the *Docker run
3456
3468
  # reference*.
@@ -3526,11 +3538,11 @@ module Aws::ECS
3526
3538
  #
3527
3539
  # </note>
3528
3540
  #
3529
- # If you are using the EC2 launch type, this field is optional.
3541
+ # If using the EC2 launch type, this field is optional.
3530
3542
  #
3531
- # If you are using the Fargate launch type, this field is required and
3532
- # you must use one of the following values, which determines your range
3533
- # of supported values for the `cpu` parameter:
3543
+ # If using the Fargate launch type, this field is required and you must
3544
+ # use one of the following values, which determines your range of
3545
+ # supported values for the `cpu` parameter:
3534
3546
  #
3535
3547
  # * 512 (0.5 GB), 1024 (1 GB), 2048 (2 GB) - Available `cpu` values: 256
3536
3548
  # (.25 vCPU)
@@ -3554,6 +3566,70 @@ module Aws::ECS
3554
3566
  # character length of 128 characters, and tag values can have a maximum
3555
3567
  # length of 256 characters.
3556
3568
  #
3569
+ # @option params [String] :pid_mode
3570
+ # The process namespace to use for the containers in the task. The valid
3571
+ # values are `host` or `task`. If `host` is specified, then all
3572
+ # containers within the tasks that specified the `host` PID mode on the
3573
+ # same container instance share the same IPC resources with the host
3574
+ # Amazon EC2 instance. If `task` is specified, all containers within the
3575
+ # specified task share the same process namespace. If no value is
3576
+ # specified, the default is a private namespace. For more information,
3577
+ # see [PID settings][1] in the *Docker run reference*.
3578
+ #
3579
+ # If the `host` PID mode is used, be aware that there is a heightened
3580
+ # risk of undesired process namespace expose. For more information, see
3581
+ # [Docker security][2].
3582
+ #
3583
+ # <note markdown="1"> This parameter is not supported for Windows containers or tasks using
3584
+ # the Fargate launch type.
3585
+ #
3586
+ # </note>
3587
+ #
3588
+ #
3589
+ #
3590
+ # [1]: https://docs.docker.com/engine/reference/run/#pid-settings---pid
3591
+ # [2]: https://docs.docker.com/engine/security/security/
3592
+ #
3593
+ # @option params [String] :ipc_mode
3594
+ # The IPC resource namespace to use for the containers in the task. The
3595
+ # valid values are `host`, `task`, or `none`. If `host` is specified,
3596
+ # then all containers within the tasks that specified the `host` IPC
3597
+ # mode on the same container instance share the same IPC resources with
3598
+ # the host Amazon EC2 instance. If `task` is specified, all containers
3599
+ # within the specified task share the same IPC resources. If `none` is
3600
+ # specified, then IPC resources within the containers of a task are
3601
+ # private and not shared with other containers in a task or on the
3602
+ # container instance. If no value is specified, then the IPC resource
3603
+ # namespace sharing depends on the Docker daemon setting on the
3604
+ # container instance. For more information, see [IPC settings][1] in the
3605
+ # *Docker run reference*.
3606
+ #
3607
+ # If the `host` IPC mode is used, be aware that there is a heightened
3608
+ # risk of undesired IPC namespace expose. For more information, see
3609
+ # [Docker security][2].
3610
+ #
3611
+ # If you are setting namespaced kernel parameters using `systemControls`
3612
+ # for the containers in the task, the following will apply to your IPC
3613
+ # resource namespace. For more information, see [System Controls][3] in
3614
+ # the *Amazon Elastic Container Service Developer Guide*.
3615
+ #
3616
+ # * For tasks that use the `host` IPC mode, IPC namespace related
3617
+ # `systemControls` are not supported.
3618
+ #
3619
+ # * For tasks that use the `task` IPC mode, IPC namespace related
3620
+ # `systemControls` will apply to all containers within a task.
3621
+ #
3622
+ # <note markdown="1"> This parameter is not supported for Windows containers or tasks using
3623
+ # the Fargate launch type.
3624
+ #
3625
+ # </note>
3626
+ #
3627
+ #
3628
+ #
3629
+ # [1]: https://docs.docker.com/engine/reference/run/#ipc-settings---ipc
3630
+ # [2]: https://docs.docker.com/engine/security/security/
3631
+ # [3]: http://docs.aws.amazon.com/AmazonECS/latest/developerguidetask_definition_parameters.html
3632
+ #
3557
3633
  # @return [Types::RegisterTaskDefinitionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3558
3634
  #
3559
3635
  # * {Types::RegisterTaskDefinitionResponse#task_definition #task_definition} => Types::TaskDefinition
@@ -3773,6 +3849,8 @@ module Aws::ECS
3773
3849
  # value: "TagValue",
3774
3850
  # },
3775
3851
  # ],
3852
+ # pid_mode: "host", # accepts host, task
3853
+ # ipc_mode: "host", # accepts host, task, none
3776
3854
  # })
3777
3855
  #
3778
3856
  # @example Response structure
@@ -3890,6 +3968,8 @@ module Aws::ECS
3890
3968
  # resp.task_definition.requires_compatibilities[0] #=> String, one of "EC2", "FARGATE"
3891
3969
  # resp.task_definition.cpu #=> String
3892
3970
  # resp.task_definition.memory #=> String
3971
+ # resp.task_definition.pid_mode #=> String, one of "host", "task"
3972
+ # resp.task_definition.ipc_mode #=> String, one of "host", "task", "none"
3893
3973
  # resp.tags #=> Array
3894
3974
  # resp.tags[0].key #=> String
3895
3975
  # resp.tags[0].value #=> String
@@ -5327,7 +5407,7 @@ module Aws::ECS
5327
5407
  params: params,
5328
5408
  config: config)
5329
5409
  context[:gem_name] = 'aws-sdk-ecs'
5330
- context[:gem_version] = '1.23.1'
5410
+ context[:gem_version] = '1.24.0'
5331
5411
  Seahorse::Client::Request.new(handlers, context)
5332
5412
  end
5333
5413
 
@@ -101,6 +101,7 @@ module Aws::ECS
101
101
  HostVolumeProperties = Shapes::StructureShape.new(name: 'HostVolumeProperties')
102
102
  Integer = Shapes::IntegerShape.new(name: 'Integer')
103
103
  InvalidParameterException = Shapes::StructureShape.new(name: 'InvalidParameterException')
104
+ IpcMode = Shapes::StringShape.new(name: 'IpcMode')
104
105
  KernelCapabilities = Shapes::StructureShape.new(name: 'KernelCapabilities')
105
106
  KeyValuePair = Shapes::StructureShape.new(name: 'KeyValuePair')
106
107
  LaunchType = Shapes::StringShape.new(name: 'LaunchType')
@@ -139,6 +140,7 @@ module Aws::ECS
139
140
  NetworkInterfaces = Shapes::ListShape.new(name: 'NetworkInterfaces')
140
141
  NetworkMode = Shapes::StringShape.new(name: 'NetworkMode')
141
142
  NoUpdateAvailableException = Shapes::StructureShape.new(name: 'NoUpdateAvailableException')
143
+ PidMode = Shapes::StringShape.new(name: 'PidMode')
142
144
  PlacementConstraint = Shapes::StructureShape.new(name: 'PlacementConstraint')
143
145
  PlacementConstraintType = Shapes::StringShape.new(name: 'PlacementConstraintType')
144
146
  PlacementConstraints = Shapes::ListShape.new(name: 'PlacementConstraints')
@@ -775,6 +777,8 @@ module Aws::ECS
775
777
  RegisterTaskDefinitionRequest.add_member(:cpu, Shapes::ShapeRef.new(shape: String, location_name: "cpu"))
776
778
  RegisterTaskDefinitionRequest.add_member(:memory, Shapes::ShapeRef.new(shape: String, location_name: "memory"))
777
779
  RegisterTaskDefinitionRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "tags"))
780
+ RegisterTaskDefinitionRequest.add_member(:pid_mode, Shapes::ShapeRef.new(shape: PidMode, location_name: "pidMode"))
781
+ RegisterTaskDefinitionRequest.add_member(:ipc_mode, Shapes::ShapeRef.new(shape: IpcMode, location_name: "ipcMode"))
778
782
  RegisterTaskDefinitionRequest.struct_class = Types::RegisterTaskDefinitionRequest
779
783
 
780
784
  RegisterTaskDefinitionResponse.add_member(:task_definition, Shapes::ShapeRef.new(shape: TaskDefinition, location_name: "taskDefinition"))
@@ -999,6 +1003,8 @@ module Aws::ECS
999
1003
  TaskDefinition.add_member(:requires_compatibilities, Shapes::ShapeRef.new(shape: CompatibilityList, location_name: "requiresCompatibilities"))
1000
1004
  TaskDefinition.add_member(:cpu, Shapes::ShapeRef.new(shape: String, location_name: "cpu"))
1001
1005
  TaskDefinition.add_member(:memory, Shapes::ShapeRef.new(shape: String, location_name: "memory"))
1006
+ TaskDefinition.add_member(:pid_mode, Shapes::ShapeRef.new(shape: PidMode, location_name: "pidMode"))
1007
+ TaskDefinition.add_member(:ipc_mode, Shapes::ShapeRef.new(shape: IpcMode, location_name: "ipcMode"))
1002
1008
  TaskDefinition.struct_class = Types::TaskDefinition
1003
1009
 
1004
1010
  TaskDefinitionFieldList.member = Shapes::ShapeRef.new(shape: TaskDefinitionField)
@@ -2658,7 +2658,7 @@ module Aws::ECS
2658
2658
  #
2659
2659
  # `[ "CMD-SHELL", "curl -f http://localhost/ || exit 1" ]`
2660
2660
  #
2661
- # An exit code of 0 indicates success, and a non-zero exit code
2661
+ # An exit code of 0 indicates success, and non-zero exit code
2662
2662
  # indicates failure. For more information, see `HealthCheck` in the
2663
2663
  # [Create a container][1] section of the [Docker Remote API][2].
2664
2664
  #
@@ -4538,6 +4538,8 @@ module Aws::ECS
4538
4538
  # value: "TagValue",
4539
4539
  # },
4540
4540
  # ],
4541
+ # pid_mode: "host", # accepts host, task
4542
+ # ipc_mode: "host", # accepts host, task, none
4541
4543
  # }
4542
4544
  #
4543
4545
  # @!attribute [rw] family
@@ -4571,8 +4573,8 @@ module Aws::ECS
4571
4573
  # default Docker network mode is `bridge`. If you are using the
4572
4574
  # Fargate launch type, the `awsvpc` network mode is required. If you
4573
4575
  # are using the EC2 launch type, any network mode can be used. If the
4574
- # network mode is set to `none`, you can't specify port mappings in
4575
- # your container definitions, and the task's containers do not have
4576
+ # network mode is set to `none`, you cannot specify port mappings in
4577
+ # your container definitions, and the tasks containers do not have
4576
4578
  # external connectivity. The `host` and `awsvpc` network modes offer
4577
4579
  # the highest networking performance for containers because they use
4578
4580
  # the EC2 network stack instead of the virtualized network stack
@@ -4585,18 +4587,26 @@ module Aws::ECS
4585
4587
  # host port mappings.
4586
4588
  #
4587
4589
  # If the network mode is `awsvpc`, the task is allocated an elastic
4588
- # network interface, and you must specify a NetworkConfiguration when
4589
- # you create a service or run a task with the task definition. For
4590
- # more information, see [Task Networking][1] in the *Amazon Elastic
4591
- # Container Service Developer Guide*.
4590
+ # network interface, and you must specify a NetworkConfiguration value
4591
+ # when you create a service or run a task with the task definition.
4592
+ # For more information, see [Task Networking][1] in the *Amazon
4593
+ # Elastic Container Service Developer Guide*.
4594
+ #
4595
+ # <note markdown="1"> Currently, only Amazon ECS-optimized AMIs, other Amazon Linux
4596
+ # variants with the `ecs-init` package, or AWS Fargate infrastructure
4597
+ # support the `awsvpc` network mode.
4592
4598
  #
4593
- # If the network mode is `host`, you can't run multiple
4599
+ # </note>
4600
+ #
4601
+ # If the network mode is `host`, you cannot run multiple
4594
4602
  # instantiations of the same task on a single container instance when
4595
4603
  # port mappings are used.
4596
4604
  #
4597
4605
  # Docker for Windows uses different network modes than Docker for
4598
4606
  # Linux. When you register a task definition with Windows containers,
4599
- # you must not specify a network mode.
4607
+ # you must not specify a network mode. If you use the console to
4608
+ # register a task definition with Windows containers, you must choose
4609
+ # the `<default>` network mode object.
4600
4610
  #
4601
4611
  # For more information, see [Network settings][2] in the *Docker run
4602
4612
  # reference*.
@@ -4680,11 +4690,11 @@ module Aws::ECS
4680
4690
  #
4681
4691
  # </note>
4682
4692
  #
4683
- # If you are using the EC2 launch type, this field is optional.
4693
+ # If using the EC2 launch type, this field is optional.
4684
4694
  #
4685
- # If you are using the Fargate launch type, this field is required and
4686
- # you must use one of the following values, which determines your
4687
- # range of supported values for the `cpu` parameter:
4695
+ # If using the Fargate launch type, this field is required and you
4696
+ # must use one of the following values, which determines your range of
4697
+ # supported values for the `cpu` parameter:
4688
4698
  #
4689
4699
  # * 512 (0.5 GB), 1024 (1 GB), 2048 (2 GB) - Available `cpu` values:
4690
4700
  # 256 (.25 vCPU)
@@ -4710,6 +4720,73 @@ module Aws::ECS
4710
4720
  # a maximum length of 256 characters.
4711
4721
  # @return [Array<Types::Tag>]
4712
4722
  #
4723
+ # @!attribute [rw] pid_mode
4724
+ # The process namespace to use for the containers in the task. The
4725
+ # valid values are `host` or `task`. If `host` is specified, then all
4726
+ # containers within the tasks that specified the `host` PID mode on
4727
+ # the same container instance share the same IPC resources with the
4728
+ # host Amazon EC2 instance. If `task` is specified, all containers
4729
+ # within the specified task share the same process namespace. If no
4730
+ # value is specified, the default is a private namespace. For more
4731
+ # information, see [PID settings][1] in the *Docker run reference*.
4732
+ #
4733
+ # If the `host` PID mode is used, be aware that there is a heightened
4734
+ # risk of undesired process namespace expose. For more information,
4735
+ # see [Docker security][2].
4736
+ #
4737
+ # <note markdown="1"> This parameter is not supported for Windows containers or tasks
4738
+ # using the Fargate launch type.
4739
+ #
4740
+ # </note>
4741
+ #
4742
+ #
4743
+ #
4744
+ # [1]: https://docs.docker.com/engine/reference/run/#pid-settings---pid
4745
+ # [2]: https://docs.docker.com/engine/security/security/
4746
+ # @return [String]
4747
+ #
4748
+ # @!attribute [rw] ipc_mode
4749
+ # The IPC resource namespace to use for the containers in the task.
4750
+ # The valid values are `host`, `task`, or `none`. If `host` is
4751
+ # specified, then all containers within the tasks that specified the
4752
+ # `host` IPC mode on the same container instance share the same IPC
4753
+ # resources with the host Amazon EC2 instance. If `task` is specified,
4754
+ # all containers within the specified task share the same IPC
4755
+ # resources. If `none` is specified, then IPC resources within the
4756
+ # containers of a task are private and not shared with other
4757
+ # containers in a task or on the container instance. If no value is
4758
+ # specified, then the IPC resource namespace sharing depends on the
4759
+ # Docker daemon setting on the container instance. For more
4760
+ # information, see [IPC settings][1] in the *Docker run reference*.
4761
+ #
4762
+ # If the `host` IPC mode is used, be aware that there is a heightened
4763
+ # risk of undesired IPC namespace expose. For more information, see
4764
+ # [Docker security][2].
4765
+ #
4766
+ # If you are setting namespaced kernel parameters using
4767
+ # `systemControls` for the containers in the task, the following will
4768
+ # apply to your IPC resource namespace. For more information, see
4769
+ # [System Controls][3] in the *Amazon Elastic Container Service
4770
+ # Developer Guide*.
4771
+ #
4772
+ # * For tasks that use the `host` IPC mode, IPC namespace related
4773
+ # `systemControls` are not supported.
4774
+ #
4775
+ # * For tasks that use the `task` IPC mode, IPC namespace related
4776
+ # `systemControls` will apply to all containers within a task.
4777
+ #
4778
+ # <note markdown="1"> This parameter is not supported for Windows containers or tasks
4779
+ # using the Fargate launch type.
4780
+ #
4781
+ # </note>
4782
+ #
4783
+ #
4784
+ #
4785
+ # [1]: https://docs.docker.com/engine/reference/run/#ipc-settings---ipc
4786
+ # [2]: https://docs.docker.com/engine/security/security/
4787
+ # [3]: http://docs.aws.amazon.com/AmazonECS/latest/developerguidetask_definition_parameters.html
4788
+ # @return [String]
4789
+ #
4713
4790
  # @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/RegisterTaskDefinitionRequest AWS API Documentation
4714
4791
  #
4715
4792
  class RegisterTaskDefinitionRequest < Struct.new(
@@ -4723,7 +4800,9 @@ module Aws::ECS
4723
4800
  :requires_compatibilities,
4724
4801
  :cpu,
4725
4802
  :memory,
4726
- :tags)
4803
+ :tags,
4804
+ :pid_mode,
4805
+ :ipc_mode)
4727
4806
  include Aws::Structure
4728
4807
  end
4729
4808
 
@@ -6195,8 +6274,8 @@ module Aws::ECS
6195
6274
  # default Docker network mode is `bridge`. If you are using the
6196
6275
  # Fargate launch type, the `awsvpc` network mode is required. If you
6197
6276
  # are using the EC2 launch type, any network mode can be used. If the
6198
- # network mode is set to `none`, you can't specify port mappings in
6199
- # your container definitions, and the task's containers do not have
6277
+ # network mode is set to `none`, you cannot specify port mappings in
6278
+ # your container definitions, and the tasks containers do not have
6200
6279
  # external connectivity. The `host` and `awsvpc` network modes offer
6201
6280
  # the highest networking performance for containers because they use
6202
6281
  # the EC2 network stack instead of the virtualized network stack
@@ -6209,18 +6288,18 @@ module Aws::ECS
6209
6288
  # host port mappings.
6210
6289
  #
6211
6290
  # If the network mode is `awsvpc`, the task is allocated an elastic
6212
- # network interface, and you must specify a NetworkConfiguration when
6213
- # you create a service or run a task with the task definition. For
6214
- # more information, see [Task Networking][1] in the *Amazon Elastic
6215
- # Container Service Developer Guide*.
6291
+ # network interface, and you must specify a NetworkConfiguration value
6292
+ # when you create a service or run a task with the task definition.
6293
+ # For more information, see [Task Networking][1] in the *Amazon
6294
+ # Elastic Container Service Developer Guide*.
6216
6295
  #
6217
- # <note markdown="1"> Currently, only the Amazon ECS-optimized AMI, other Amazon Linux
6296
+ # <note markdown="1"> Currently, only Amazon ECS-optimized AMIs, other Amazon Linux
6218
6297
  # variants with the `ecs-init` package, or AWS Fargate infrastructure
6219
6298
  # support the `awsvpc` network mode.
6220
6299
  #
6221
6300
  # </note>
6222
6301
  #
6223
- # If the network mode is `host`, you can't run multiple
6302
+ # If the network mode is `host`, you cannot run multiple
6224
6303
  # instantiations of the same task on a single container instance when
6225
6304
  # port mappings are used.
6226
6305
  #
@@ -6316,11 +6395,11 @@ module Aws::ECS
6316
6395
  # @return [String]
6317
6396
  #
6318
6397
  # @!attribute [rw] memory
6319
- # The amount (in MiB) of memory used by the task. If you are using the
6320
- # EC2 launch type, this field is optional and any value can be used.
6321
- # If you are using the Fargate launch type, this field is required and
6322
- # you must use one of the following values, which determines your
6323
- # range of valid values for the `cpu` parameter:
6398
+ # The amount (in MiB) of memory used by the task. If using the EC2
6399
+ # launch type, this field is optional and any value can be used. If
6400
+ # using the Fargate launch type, this field is required and you must
6401
+ # use one of the following values, which determines your range of
6402
+ # valid values for the `cpu` parameter:
6324
6403
  #
6325
6404
  # * 512 (0.5 GB), 1024 (1 GB), 2048 (2 GB) - Available `cpu` values:
6326
6405
  # 256 (.25 vCPU)
@@ -6338,6 +6417,73 @@ module Aws::ECS
6338
6417
  # - Available `cpu` values: 4096 (4 vCPU)
6339
6418
  # @return [String]
6340
6419
  #
6420
+ # @!attribute [rw] pid_mode
6421
+ # The process namespace to use for the containers in the task. The
6422
+ # valid values are `host` or `task`. If `host` is specified, then all
6423
+ # containers within the tasks that specified the `host` PID mode on
6424
+ # the same container instance share the same IPC resources with the
6425
+ # host Amazon EC2 instance. If `task` is specified, all containers
6426
+ # within the specified task share the same process namespace. If no
6427
+ # value is specified, the default is a private namespace. For more
6428
+ # information, see [PID settings][1] in the *Docker run reference*.
6429
+ #
6430
+ # If the `host` PID mode is used, be aware that there is a heightened
6431
+ # risk of undesired process namespace expose. For more information,
6432
+ # see [Docker security][2].
6433
+ #
6434
+ # <note markdown="1"> This parameter is not supported for Windows containers or tasks
6435
+ # using the Fargate launch type.
6436
+ #
6437
+ # </note>
6438
+ #
6439
+ #
6440
+ #
6441
+ # [1]: https://docs.docker.com/engine/reference/run/#pid-settings---pid
6442
+ # [2]: https://docs.docker.com/engine/security/security/
6443
+ # @return [String]
6444
+ #
6445
+ # @!attribute [rw] ipc_mode
6446
+ # The IPC resource namespace to use for the containers in the task.
6447
+ # The valid values are `host`, `task`, or `none`. If `host` is
6448
+ # specified, then all containers within the tasks that specified the
6449
+ # `host` IPC mode on the same container instance share the same IPC
6450
+ # resources with the host Amazon EC2 instance. If `task` is specified,
6451
+ # all containers within the specified task share the same IPC
6452
+ # resources. If `none` is specified, then IPC resources within the
6453
+ # containers of a task are private and not shared with other
6454
+ # containers in a task or on the container instance. If no value is
6455
+ # specified, then the IPC resource namespace sharing depends on the
6456
+ # Docker daemon setting on the container instance. For more
6457
+ # information, see [IPC settings][1] in the *Docker run reference*.
6458
+ #
6459
+ # If the `host` IPC mode is used, be aware that there is a heightened
6460
+ # risk of undesired IPC namespace expose. For more information, see
6461
+ # [Docker security][2].
6462
+ #
6463
+ # If you are setting namespaced kernel parameters using
6464
+ # `systemControls` for the containers in the task, the following will
6465
+ # apply to your IPC resource namespace. For more information, see
6466
+ # [System Controls][3] in the *Amazon Elastic Container Service
6467
+ # Developer Guide*.
6468
+ #
6469
+ # * For tasks that use the `host` IPC mode, IPC namespace related
6470
+ # `systemControls` are not supported.
6471
+ #
6472
+ # * For tasks that use the `task` IPC mode, IPC namespace related
6473
+ # `systemControls` will apply to all containers within a task.
6474
+ #
6475
+ # <note markdown="1"> This parameter is not supported for Windows containers or tasks
6476
+ # using the Fargate launch type.
6477
+ #
6478
+ # </note>
6479
+ #
6480
+ #
6481
+ #
6482
+ # [1]: https://docs.docker.com/engine/reference/run/#ipc-settings---ipc
6483
+ # [2]: https://docs.docker.com/engine/security/security/
6484
+ # [3]: http://docs.aws.amazon.com/AmazonECS/latest/developerguidetask_definition_parameters.html
6485
+ # @return [String]
6486
+ #
6341
6487
  # @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/TaskDefinition AWS API Documentation
6342
6488
  #
6343
6489
  class TaskDefinition < Struct.new(
@@ -6355,7 +6501,9 @@ module Aws::ECS
6355
6501
  :compatibilities,
6356
6502
  :requires_compatibilities,
6357
6503
  :cpu,
6358
- :memory)
6504
+ :memory,
6505
+ :pid_mode,
6506
+ :ipc_mode)
6359
6507
  include Aws::Structure
6360
6508
  end
6361
6509
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-ecs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.23.1
4
+ version: 1.24.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services