aws-cdk-lib 2.128.0__py3-none-any.whl → 2.129.0__py3-none-any.whl
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.
Potentially problematic release.
This version of aws-cdk-lib might be problematic. Click here for more details.
- aws_cdk/__init__.py +2 -10
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.128.0.jsii.tgz → aws-cdk-lib@2.129.0.jsii.tgz} +0 -0
- aws_cdk/aws_amazonmq/__init__.py +6 -24
- aws_cdk/aws_amplify/__init__.py +1 -2
- aws_cdk/aws_appconfig/__init__.py +0 -16
- aws_cdk/aws_applicationautoscaling/__init__.py +55 -22
- aws_cdk/aws_appstream/__init__.py +14 -14
- aws_cdk/aws_appsync/__init__.py +334 -3
- aws_cdk/aws_autoscaling/__init__.py +11 -7
- aws_cdk/aws_batch/__init__.py +137 -16
- aws_cdk/aws_cleanrooms/__init__.py +1 -2
- aws_cdk/aws_cloudformation/__init__.py +2 -10
- aws_cdk/aws_cloudfront/__init__.py +15 -8
- aws_cdk/aws_cloudfront/experimental/__init__.py +22 -0
- aws_cdk/aws_cloudfront_origins/__init__.py +332 -0
- aws_cdk/aws_cloudtrail/__init__.py +12 -2
- aws_cdk/aws_cloudwatch/__init__.py +4 -0
- aws_cdk/aws_codepipeline/__init__.py +463 -11
- aws_cdk/aws_cognito/__init__.py +0 -9
- aws_cdk/aws_config/__init__.py +2 -2
- aws_cdk/aws_connect/__init__.py +6 -1
- aws_cdk/aws_controltower/__init__.py +527 -7
- aws_cdk/aws_datasync/__init__.py +2 -2
- aws_cdk/aws_directoryservice/__init__.py +2 -3
- aws_cdk/aws_dynamodb/__init__.py +7 -0
- aws_cdk/aws_ec2/__init__.py +117 -210
- aws_cdk/aws_ecs/__init__.py +537 -3
- aws_cdk/aws_eks/__init__.py +1 -1
- aws_cdk/aws_elasticache/__init__.py +27 -20
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +3 -4
- aws_cdk/aws_emr/__init__.py +23 -3
- aws_cdk/aws_events_targets/__init__.py +64 -20
- aws_cdk/aws_fis/__init__.py +4 -4
- aws_cdk/aws_frauddetector/__init__.py +3 -3
- aws_cdk/aws_globalaccelerator/__init__.py +2 -6
- aws_cdk/aws_glue/__init__.py +84 -55
- aws_cdk/aws_groundstation/__init__.py +8 -12
- aws_cdk/aws_guardduty/__init__.py +74 -70
- aws_cdk/aws_iam/__init__.py +16 -23
- aws_cdk/aws_imagebuilder/__init__.py +178 -156
- aws_cdk/aws_internetmonitor/__init__.py +12 -10
- aws_cdk/aws_iot/__init__.py +17 -10
- aws_cdk/aws_iotevents/__init__.py +4 -4
- aws_cdk/aws_iotfleetwise/__init__.py +10 -5
- aws_cdk/aws_iottwinmaker/__init__.py +3 -5
- aws_cdk/aws_iotwireless/__init__.py +35 -23
- aws_cdk/aws_kendra/__init__.py +36 -15
- aws_cdk/aws_kinesisfirehose/__init__.py +155 -114
- aws_cdk/aws_lambda/__init__.py +157 -12
- aws_cdk/aws_lambda_nodejs/__init__.py +22 -0
- aws_cdk/aws_lightsail/__init__.py +14 -18
- aws_cdk/aws_logs/__init__.py +15 -15
- aws_cdk/aws_mediaconnect/__init__.py +5 -3
- aws_cdk/aws_medialive/__init__.py +3 -12
- aws_cdk/aws_mediapackagev2/__init__.py +287 -286
- aws_cdk/aws_mediatailor/__init__.py +2 -2
- aws_cdk/aws_memorydb/__init__.py +2 -2
- aws_cdk/aws_msk/__init__.py +6 -3
- aws_cdk/aws_mwaa/__init__.py +10 -5
- aws_cdk/aws_neptunegraph/__init__.py +84 -66
- aws_cdk/aws_networkfirewall/__init__.py +5 -8
- aws_cdk/aws_networkmanager/__init__.py +3 -3
- aws_cdk/aws_nimblestudio/__init__.py +2 -4
- aws_cdk/aws_opensearchservice/__init__.py +6 -7
- aws_cdk/aws_osis/__init__.py +1 -3
- aws_cdk/aws_pinpoint/__init__.py +5 -5
- aws_cdk/aws_pipes/__init__.py +5 -5
- aws_cdk/aws_quicksight/__init__.py +5 -10
- aws_cdk/aws_rds/__init__.py +38 -21
- aws_cdk/aws_redshift/__init__.py +9 -5
- aws_cdk/aws_redshiftserverless/__init__.py +62 -38
- aws_cdk/aws_rolesanywhere/__init__.py +41 -53
- aws_cdk/aws_route53/__init__.py +532 -6
- aws_cdk/aws_route53recoverycontrol/__init__.py +1 -3
- aws_cdk/aws_route53recoveryreadiness/__init__.py +2 -2
- aws_cdk/aws_route53resolver/__init__.py +1 -4
- aws_cdk/aws_s3/__init__.py +3 -1
- aws_cdk/aws_s3objectlambda/__init__.py +7 -4
- aws_cdk/aws_s3outposts/__init__.py +1 -1
- aws_cdk/aws_sagemaker/__init__.py +111 -11
- aws_cdk/aws_servicecatalogappregistry/__init__.py +3 -3
- aws_cdk/aws_sns/__init__.py +185 -38
- aws_cdk/aws_ssm/__init__.py +16 -16
- aws_cdk/aws_ssmincidents/__init__.py +1 -1
- aws_cdk/aws_synthetics/__init__.py +94 -21
- aws_cdk/aws_verifiedpermissions/__init__.py +1 -2
- aws_cdk/aws_vpclattice/__init__.py +8 -4
- aws_cdk/aws_wafv2/__init__.py +14 -59
- aws_cdk/aws_workspaces/__init__.py +5 -4
- aws_cdk/aws_workspacesweb/__init__.py +6 -12
- aws_cdk/triggers/__init__.py +22 -0
- {aws_cdk_lib-2.128.0.dist-info → aws_cdk_lib-2.129.0.dist-info}/METADATA +1 -1
- {aws_cdk_lib-2.128.0.dist-info → aws_cdk_lib-2.129.0.dist-info}/RECORD +98 -98
- {aws_cdk_lib-2.128.0.dist-info → aws_cdk_lib-2.129.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.128.0.dist-info → aws_cdk_lib-2.129.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.128.0.dist-info → aws_cdk_lib-2.129.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.128.0.dist-info → aws_cdk_lib-2.129.0.dist-info}/top_level.txt +0 -0
aws_cdk/aws_ecs/__init__.py
CHANGED
|
@@ -635,6 +635,46 @@ task_definition.add_container("windowsservercore",
|
|
|
635
635
|
)
|
|
636
636
|
```
|
|
637
637
|
|
|
638
|
+
### Using Windows authentication with gMSA
|
|
639
|
+
|
|
640
|
+
Amazon ECS supports Active Directory authentication for Linux containers through a special kind of service account called a group Managed Service Account (gMSA). For more details, please see the [product documentation on how to implement on Windows containers](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/windows-gmsa.html), or this [blog post on how to implement on Linux containers](https://aws.amazon.com/blogs/containers/using-windows-authentication-with-gmsa-on-linux-containers-on-amazon-ecs/).
|
|
641
|
+
|
|
642
|
+
There are two types of CredentialSpecs, domained-join or domainless. Both types support creation from a S3 bucket, a SSM parameter, or by directly specifying a location for the file in the constructor.
|
|
643
|
+
|
|
644
|
+
A domian-joined gMSA container looks like:
|
|
645
|
+
|
|
646
|
+
```python
|
|
647
|
+
# Make sure the task definition's execution role has permissions to read from the S3 bucket or SSM parameter where the CredSpec file is stored.
|
|
648
|
+
# parameter: ssm.IParameter
|
|
649
|
+
# task_definition: ecs.TaskDefinition
|
|
650
|
+
|
|
651
|
+
|
|
652
|
+
# Domain-joined gMSA container from a SSM parameter
|
|
653
|
+
task_definition.add_container("gmsa-domain-joined-container",
|
|
654
|
+
image=ecs.ContainerImage.from_registry("amazon/amazon-ecs-sample"),
|
|
655
|
+
cpu=128,
|
|
656
|
+
memory_limit_mi_b=256,
|
|
657
|
+
credential_specs=[ecs.DomainJoinedCredentialSpec.from_ssm_parameter(parameter)]
|
|
658
|
+
)
|
|
659
|
+
```
|
|
660
|
+
|
|
661
|
+
A domianless gMSA container looks like:
|
|
662
|
+
|
|
663
|
+
```python
|
|
664
|
+
# Make sure the task definition's execution role has permissions to read from the S3 bucket or SSM parameter where the CredSpec file is stored.
|
|
665
|
+
# bucket: s3.Bucket
|
|
666
|
+
# task_definition: ecs.TaskDefinition
|
|
667
|
+
|
|
668
|
+
|
|
669
|
+
# Domainless gMSA container from a S3 bucket object.
|
|
670
|
+
task_definition.add_container("gmsa-domainless-container",
|
|
671
|
+
image=ecs.ContainerImage.from_registry("amazon/amazon-ecs-sample"),
|
|
672
|
+
cpu=128,
|
|
673
|
+
memory_limit_mi_b=256,
|
|
674
|
+
credential_specs=[ecs.DomainlessCredentialSpec.from_s3_bucket(bucket, "credSpec")]
|
|
675
|
+
)
|
|
676
|
+
```
|
|
677
|
+
|
|
638
678
|
### Using Graviton2 with Fargate
|
|
639
679
|
|
|
640
680
|
AWS Graviton2 supports AWS Fargate. For more details, please see this [blog post](https://aws.amazon.com/blogs/aws/announcing-aws-graviton2-support-for-aws-fargate-get-up-to-40-better-price-performance-for-your-serverless-containers/)
|
|
@@ -1853,6 +1893,7 @@ from .. import (
|
|
|
1853
1893
|
Size as _Size_7b441c34,
|
|
1854
1894
|
SymlinkFollowMode as _SymlinkFollowMode_047ec1f6,
|
|
1855
1895
|
TagManager as _TagManager_0a598cb3,
|
|
1896
|
+
TimeZone as _TimeZone_cdd72ac9,
|
|
1856
1897
|
TreeInspector as _TreeInspector_488e0dd5,
|
|
1857
1898
|
)
|
|
1858
1899
|
from ..aws_applicationautoscaling import (
|
|
@@ -14384,9 +14425,9 @@ class CfnTaskDefinition(
|
|
|
14384
14425
|
add: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
14385
14426
|
drop: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
14386
14427
|
) -> None:
|
|
14387
|
-
'''The
|
|
14428
|
+
'''The Linux capabilities to add or remove from the default Docker configuration for a container defined in the task definition.
|
|
14388
14429
|
|
|
14389
|
-
For more information
|
|
14430
|
+
For more information about the default capabilities and the non-default available capabilities, see `Runtime privilege and Linux capabilities <https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#runtime-privilege-and-linux-capabilities>`_ in the *Docker run reference* . For more detailed information about these Linux capabilities, see the `capabilities(7) <https://docs.aws.amazon.com/http://man7.org/linux/man-pages/man7/capabilities.7.html>`_ Linux manual page.
|
|
14390
14431
|
|
|
14391
14432
|
:param add: The Linux capabilities for the container that have been added to the default configuration provided by Docker. This parameter maps to ``CapAdd`` in the `Create a container <https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate>`_ section of the `Docker Remote API <https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/>`_ and the ``--cap-add`` option to `docker run <https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration>`_ . .. epigraph:: Tasks launched on AWS Fargate only support adding the ``SYS_PTRACE`` kernel capability. Valid values: ``"ALL" | "AUDIT_CONTROL" | "AUDIT_WRITE" | "BLOCK_SUSPEND" | "CHOWN" | "DAC_OVERRIDE" | "DAC_READ_SEARCH" | "FOWNER" | "FSETID" | "IPC_LOCK" | "IPC_OWNER" | "KILL" | "LEASE" | "LINUX_IMMUTABLE" | "MAC_ADMIN" | "MAC_OVERRIDE" | "MKNOD" | "NET_ADMIN" | "NET_BIND_SERVICE" | "NET_BROADCAST" | "NET_RAW" | "SETFCAP" | "SETGID" | "SETPCAP" | "SETUID" | "SYS_ADMIN" | "SYS_BOOT" | "SYS_CHROOT" | "SYS_MODULE" | "SYS_NICE" | "SYS_PACCT" | "SYS_PTRACE" | "SYS_RAWIO" | "SYS_RESOURCE" | "SYS_TIME" | "SYS_TTY_CONFIG" | "SYSLOG" | "WAKE_ALARM"``
|
|
14392
14433
|
:param drop: The Linux capabilities for the container that have been removed from the default configuration provided by Docker. This parameter maps to ``CapDrop`` in the `Create a container <https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate>`_ section of the `Docker Remote API <https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/>`_ and the ``--cap-drop`` option to `docker run <https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration>`_ . Valid values: ``"ALL" | "AUDIT_CONTROL" | "AUDIT_WRITE" | "BLOCK_SUSPEND" | "CHOWN" | "DAC_OVERRIDE" | "DAC_READ_SEARCH" | "FOWNER" | "FSETID" | "IPC_LOCK" | "IPC_OWNER" | "KILL" | "LEASE" | "LINUX_IMMUTABLE" | "MAC_ADMIN" | "MAC_OVERRIDE" | "MKNOD" | "NET_ADMIN" | "NET_BIND_SERVICE" | "NET_BROADCAST" | "NET_RAW" | "SETFCAP" | "SETGID" | "SETPCAP" | "SETUID" | "SYS_ADMIN" | "SYS_BOOT" | "SYS_CHROOT" | "SYS_MODULE" | "SYS_NICE" | "SYS_PACCT" | "SYS_PTRACE" | "SYS_RAWIO" | "SYS_RESOURCE" | "SYS_TIME" | "SYS_TTY_CONFIG" | "SYSLOG" | "WAKE_ALARM"``
|
|
@@ -18843,6 +18884,7 @@ class ContainerDefinition(
|
|
|
18843
18884
|
command: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
18844
18885
|
container_name: typing.Optional[builtins.str] = None,
|
|
18845
18886
|
cpu: typing.Optional[jsii.Number] = None,
|
|
18887
|
+
credential_specs: typing.Optional[typing.Sequence["CredentialSpec"]] = None,
|
|
18846
18888
|
disable_networking: typing.Optional[builtins.bool] = None,
|
|
18847
18889
|
dns_search_domains: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
18848
18890
|
dns_servers: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
@@ -18883,6 +18925,7 @@ class ContainerDefinition(
|
|
|
18883
18925
|
:param command: The command that is passed to the container. If you provide a shell command as a single string, you have to quote command-line arguments. Default: - CMD value built into container image.
|
|
18884
18926
|
:param container_name: The name of the container. Default: - id of node associated with ContainerDefinition.
|
|
18885
18927
|
:param cpu: The minimum number of CPU units to reserve for the container. Default: - No minimum CPU units reserved.
|
|
18928
|
+
:param credential_specs: A list of ARNs in SSM or Amazon S3 to a credential spec (``CredSpec``) file that configures the container for Active Directory authentication. We recommend that you use this parameter instead of the ``dockerSecurityOptions``. Currently, only one credential spec is allowed per container definition. Default: - No credential specs.
|
|
18886
18929
|
:param disable_networking: Specifies whether networking is disabled within the container. When this parameter is true, networking is disabled within the container. Default: false
|
|
18887
18930
|
:param dns_search_domains: A list of DNS search domains that are presented to the container. Default: - No search domains.
|
|
18888
18931
|
:param dns_servers: A list of DNS servers that are presented to the container. Default: - Default DNS servers.
|
|
@@ -18924,6 +18967,7 @@ class ContainerDefinition(
|
|
|
18924
18967
|
command=command,
|
|
18925
18968
|
container_name=container_name,
|
|
18926
18969
|
cpu=cpu,
|
|
18970
|
+
credential_specs=credential_specs,
|
|
18927
18971
|
disable_networking=disable_networking,
|
|
18928
18972
|
dns_search_domains=dns_search_domains,
|
|
18929
18973
|
dns_servers=dns_servers,
|
|
@@ -19257,6 +19301,12 @@ class ContainerDefinition(
|
|
|
19257
19301
|
'''The number of cpu units reserved for the container.'''
|
|
19258
19302
|
return typing.cast(typing.Optional[jsii.Number], jsii.get(self, "cpu"))
|
|
19259
19303
|
|
|
19304
|
+
@builtins.property
|
|
19305
|
+
@jsii.member(jsii_name="credentialSpecs")
|
|
19306
|
+
def credential_specs(self) -> typing.Optional[typing.List["CredentialSpecConfig"]]:
|
|
19307
|
+
'''The crdential specifications for this container.'''
|
|
19308
|
+
return typing.cast(typing.Optional[typing.List["CredentialSpecConfig"]], jsii.get(self, "credentialSpecs"))
|
|
19309
|
+
|
|
19260
19310
|
@builtins.property
|
|
19261
19311
|
@jsii.member(jsii_name="environmentFiles")
|
|
19262
19312
|
def environment_files(
|
|
@@ -19298,6 +19348,7 @@ class ContainerDefinition(
|
|
|
19298
19348
|
"command": "command",
|
|
19299
19349
|
"container_name": "containerName",
|
|
19300
19350
|
"cpu": "cpu",
|
|
19351
|
+
"credential_specs": "credentialSpecs",
|
|
19301
19352
|
"disable_networking": "disableNetworking",
|
|
19302
19353
|
"dns_search_domains": "dnsSearchDomains",
|
|
19303
19354
|
"dns_servers": "dnsServers",
|
|
@@ -19338,6 +19389,7 @@ class ContainerDefinitionOptions:
|
|
|
19338
19389
|
command: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
19339
19390
|
container_name: typing.Optional[builtins.str] = None,
|
|
19340
19391
|
cpu: typing.Optional[jsii.Number] = None,
|
|
19392
|
+
credential_specs: typing.Optional[typing.Sequence["CredentialSpec"]] = None,
|
|
19341
19393
|
disable_networking: typing.Optional[builtins.bool] = None,
|
|
19342
19394
|
dns_search_domains: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
19343
19395
|
dns_servers: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
@@ -19374,6 +19426,7 @@ class ContainerDefinitionOptions:
|
|
|
19374
19426
|
:param command: The command that is passed to the container. If you provide a shell command as a single string, you have to quote command-line arguments. Default: - CMD value built into container image.
|
|
19375
19427
|
:param container_name: The name of the container. Default: - id of node associated with ContainerDefinition.
|
|
19376
19428
|
:param cpu: The minimum number of CPU units to reserve for the container. Default: - No minimum CPU units reserved.
|
|
19429
|
+
:param credential_specs: A list of ARNs in SSM or Amazon S3 to a credential spec (``CredSpec``) file that configures the container for Active Directory authentication. We recommend that you use this parameter instead of the ``dockerSecurityOptions``. Currently, only one credential spec is allowed per container definition. Default: - No credential specs.
|
|
19377
19430
|
:param disable_networking: Specifies whether networking is disabled within the container. When this parameter is true, networking is disabled within the container. Default: false
|
|
19378
19431
|
:param dns_search_domains: A list of DNS search domains that are presented to the container. Default: - No search domains.
|
|
19379
19432
|
:param dns_servers: A list of DNS servers that are presented to the container. Default: - Default DNS servers.
|
|
@@ -19445,6 +19498,7 @@ class ContainerDefinitionOptions:
|
|
|
19445
19498
|
check_type(argname="argument command", value=command, expected_type=type_hints["command"])
|
|
19446
19499
|
check_type(argname="argument container_name", value=container_name, expected_type=type_hints["container_name"])
|
|
19447
19500
|
check_type(argname="argument cpu", value=cpu, expected_type=type_hints["cpu"])
|
|
19501
|
+
check_type(argname="argument credential_specs", value=credential_specs, expected_type=type_hints["credential_specs"])
|
|
19448
19502
|
check_type(argname="argument disable_networking", value=disable_networking, expected_type=type_hints["disable_networking"])
|
|
19449
19503
|
check_type(argname="argument dns_search_domains", value=dns_search_domains, expected_type=type_hints["dns_search_domains"])
|
|
19450
19504
|
check_type(argname="argument dns_servers", value=dns_servers, expected_type=type_hints["dns_servers"])
|
|
@@ -19484,6 +19538,8 @@ class ContainerDefinitionOptions:
|
|
|
19484
19538
|
self._values["container_name"] = container_name
|
|
19485
19539
|
if cpu is not None:
|
|
19486
19540
|
self._values["cpu"] = cpu
|
|
19541
|
+
if credential_specs is not None:
|
|
19542
|
+
self._values["credential_specs"] = credential_specs
|
|
19487
19543
|
if disable_networking is not None:
|
|
19488
19544
|
self._values["disable_networking"] = disable_networking
|
|
19489
19545
|
if dns_search_domains is not None:
|
|
@@ -19587,6 +19643,19 @@ class ContainerDefinitionOptions:
|
|
|
19587
19643
|
result = self._values.get("cpu")
|
|
19588
19644
|
return typing.cast(typing.Optional[jsii.Number], result)
|
|
19589
19645
|
|
|
19646
|
+
@builtins.property
|
|
19647
|
+
def credential_specs(self) -> typing.Optional[typing.List["CredentialSpec"]]:
|
|
19648
|
+
'''A list of ARNs in SSM or Amazon S3 to a credential spec (``CredSpec``) file that configures the container for Active Directory authentication.
|
|
19649
|
+
|
|
19650
|
+
We recommend that you use this parameter instead of the ``dockerSecurityOptions``.
|
|
19651
|
+
|
|
19652
|
+
Currently, only one credential spec is allowed per container definition.
|
|
19653
|
+
|
|
19654
|
+
:default: - No credential specs.
|
|
19655
|
+
'''
|
|
19656
|
+
result = self._values.get("credential_specs")
|
|
19657
|
+
return typing.cast(typing.Optional[typing.List["CredentialSpec"]], result)
|
|
19658
|
+
|
|
19590
19659
|
@builtins.property
|
|
19591
19660
|
def disable_networking(self) -> typing.Optional[builtins.bool]:
|
|
19592
19661
|
'''Specifies whether networking is disabled within the container.
|
|
@@ -19925,6 +19994,7 @@ class ContainerDefinitionOptions:
|
|
|
19925
19994
|
"command": "command",
|
|
19926
19995
|
"container_name": "containerName",
|
|
19927
19996
|
"cpu": "cpu",
|
|
19997
|
+
"credential_specs": "credentialSpecs",
|
|
19928
19998
|
"disable_networking": "disableNetworking",
|
|
19929
19999
|
"dns_search_domains": "dnsSearchDomains",
|
|
19930
20000
|
"dns_servers": "dnsServers",
|
|
@@ -19966,6 +20036,7 @@ class ContainerDefinitionProps(ContainerDefinitionOptions):
|
|
|
19966
20036
|
command: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
19967
20037
|
container_name: typing.Optional[builtins.str] = None,
|
|
19968
20038
|
cpu: typing.Optional[jsii.Number] = None,
|
|
20039
|
+
credential_specs: typing.Optional[typing.Sequence["CredentialSpec"]] = None,
|
|
19969
20040
|
disable_networking: typing.Optional[builtins.bool] = None,
|
|
19970
20041
|
dns_search_domains: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
19971
20042
|
dns_servers: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
@@ -20004,6 +20075,7 @@ class ContainerDefinitionProps(ContainerDefinitionOptions):
|
|
|
20004
20075
|
:param command: The command that is passed to the container. If you provide a shell command as a single string, you have to quote command-line arguments. Default: - CMD value built into container image.
|
|
20005
20076
|
:param container_name: The name of the container. Default: - id of node associated with ContainerDefinition.
|
|
20006
20077
|
:param cpu: The minimum number of CPU units to reserve for the container. Default: - No minimum CPU units reserved.
|
|
20078
|
+
:param credential_specs: A list of ARNs in SSM or Amazon S3 to a credential spec (``CredSpec``) file that configures the container for Active Directory authentication. We recommend that you use this parameter instead of the ``dockerSecurityOptions``. Currently, only one credential spec is allowed per container definition. Default: - No credential specs.
|
|
20007
20079
|
:param disable_networking: Specifies whether networking is disabled within the container. When this parameter is true, networking is disabled within the container. Default: false
|
|
20008
20080
|
:param dns_search_domains: A list of DNS search domains that are presented to the container. Default: - No search domains.
|
|
20009
20081
|
:param dns_servers: A list of DNS servers that are presented to the container. Default: - Default DNS servers.
|
|
@@ -20047,6 +20119,7 @@ class ContainerDefinitionProps(ContainerDefinitionOptions):
|
|
|
20047
20119
|
|
|
20048
20120
|
# app_protocol: ecs.AppProtocol
|
|
20049
20121
|
# container_image: ecs.ContainerImage
|
|
20122
|
+
# credential_spec: ecs.CredentialSpec
|
|
20050
20123
|
# environment_file: ecs.EnvironmentFile
|
|
20051
20124
|
# linux_parameters: ecs.LinuxParameters
|
|
20052
20125
|
# log_driver: ecs.LogDriver
|
|
@@ -20061,6 +20134,7 @@ class ContainerDefinitionProps(ContainerDefinitionOptions):
|
|
|
20061
20134
|
command=["command"],
|
|
20062
20135
|
container_name="containerName",
|
|
20063
20136
|
cpu=123,
|
|
20137
|
+
credential_specs=[credential_spec],
|
|
20064
20138
|
disable_networking=False,
|
|
20065
20139
|
dns_search_domains=["dnsSearchDomains"],
|
|
20066
20140
|
dns_servers=["dnsServers"],
|
|
@@ -20133,6 +20207,7 @@ class ContainerDefinitionProps(ContainerDefinitionOptions):
|
|
|
20133
20207
|
check_type(argname="argument command", value=command, expected_type=type_hints["command"])
|
|
20134
20208
|
check_type(argname="argument container_name", value=container_name, expected_type=type_hints["container_name"])
|
|
20135
20209
|
check_type(argname="argument cpu", value=cpu, expected_type=type_hints["cpu"])
|
|
20210
|
+
check_type(argname="argument credential_specs", value=credential_specs, expected_type=type_hints["credential_specs"])
|
|
20136
20211
|
check_type(argname="argument disable_networking", value=disable_networking, expected_type=type_hints["disable_networking"])
|
|
20137
20212
|
check_type(argname="argument dns_search_domains", value=dns_search_domains, expected_type=type_hints["dns_search_domains"])
|
|
20138
20213
|
check_type(argname="argument dns_servers", value=dns_servers, expected_type=type_hints["dns_servers"])
|
|
@@ -20174,6 +20249,8 @@ class ContainerDefinitionProps(ContainerDefinitionOptions):
|
|
|
20174
20249
|
self._values["container_name"] = container_name
|
|
20175
20250
|
if cpu is not None:
|
|
20176
20251
|
self._values["cpu"] = cpu
|
|
20252
|
+
if credential_specs is not None:
|
|
20253
|
+
self._values["credential_specs"] = credential_specs
|
|
20177
20254
|
if disable_networking is not None:
|
|
20178
20255
|
self._values["disable_networking"] = disable_networking
|
|
20179
20256
|
if dns_search_domains is not None:
|
|
@@ -20277,6 +20354,19 @@ class ContainerDefinitionProps(ContainerDefinitionOptions):
|
|
|
20277
20354
|
result = self._values.get("cpu")
|
|
20278
20355
|
return typing.cast(typing.Optional[jsii.Number], result)
|
|
20279
20356
|
|
|
20357
|
+
@builtins.property
|
|
20358
|
+
def credential_specs(self) -> typing.Optional[typing.List["CredentialSpec"]]:
|
|
20359
|
+
'''A list of ARNs in SSM or Amazon S3 to a credential spec (``CredSpec``) file that configures the container for Active Directory authentication.
|
|
20360
|
+
|
|
20361
|
+
We recommend that you use this parameter instead of the ``dockerSecurityOptions``.
|
|
20362
|
+
|
|
20363
|
+
Currently, only one credential spec is allowed per container definition.
|
|
20364
|
+
|
|
20365
|
+
:default: - No credential specs.
|
|
20366
|
+
'''
|
|
20367
|
+
result = self._values.get("credential_specs")
|
|
20368
|
+
return typing.cast(typing.Optional[typing.List["CredentialSpec"]], result)
|
|
20369
|
+
|
|
20280
20370
|
@builtins.property
|
|
20281
20371
|
def disable_networking(self) -> typing.Optional[builtins.bool]:
|
|
20282
20372
|
'''Specifies whether networking is disabled within the container.
|
|
@@ -21290,6 +21380,146 @@ class CpuUtilizationScalingProps(_BaseTargetTrackingProps_540ba713):
|
|
|
21290
21380
|
)
|
|
21291
21381
|
|
|
21292
21382
|
|
|
21383
|
+
class CredentialSpec(
|
|
21384
|
+
metaclass=jsii.JSIIMeta,
|
|
21385
|
+
jsii_type="aws-cdk-lib.aws_ecs.CredentialSpec",
|
|
21386
|
+
):
|
|
21387
|
+
'''Base construct for a credential specification (CredSpec).
|
|
21388
|
+
|
|
21389
|
+
:exampleMetadata: fixture=_generated
|
|
21390
|
+
|
|
21391
|
+
Example::
|
|
21392
|
+
|
|
21393
|
+
# The code below shows an example of how to instantiate this type.
|
|
21394
|
+
# The values are placeholders you should change.
|
|
21395
|
+
from aws_cdk import aws_ecs as ecs
|
|
21396
|
+
|
|
21397
|
+
credential_spec = ecs.CredentialSpec("prefixId", "fileLocation")
|
|
21398
|
+
'''
|
|
21399
|
+
|
|
21400
|
+
def __init__(self, prefix_id: builtins.str, file_location: builtins.str) -> None:
|
|
21401
|
+
'''
|
|
21402
|
+
:param prefix_id: -
|
|
21403
|
+
:param file_location: Location or ARN from where to retrieve the CredSpec file.
|
|
21404
|
+
'''
|
|
21405
|
+
if __debug__:
|
|
21406
|
+
type_hints = typing.get_type_hints(_typecheckingstub__391919d386090f9ac3aa86dc379e614f3db5fb33b21f6ff1abc79118d879f2b8)
|
|
21407
|
+
check_type(argname="argument prefix_id", value=prefix_id, expected_type=type_hints["prefix_id"])
|
|
21408
|
+
check_type(argname="argument file_location", value=file_location, expected_type=type_hints["file_location"])
|
|
21409
|
+
jsii.create(self.__class__, self, [prefix_id, file_location])
|
|
21410
|
+
|
|
21411
|
+
@jsii.member(jsii_name="arnForS3Object")
|
|
21412
|
+
@builtins.classmethod
|
|
21413
|
+
def arn_for_s3_object(
|
|
21414
|
+
cls,
|
|
21415
|
+
bucket: _IBucket_42e086fd,
|
|
21416
|
+
key: builtins.str,
|
|
21417
|
+
) -> builtins.str:
|
|
21418
|
+
'''Helper method to generate the ARN for a S3 object.
|
|
21419
|
+
|
|
21420
|
+
Used to avoid duplication of logic in derived classes.
|
|
21421
|
+
|
|
21422
|
+
:param bucket: -
|
|
21423
|
+
:param key: -
|
|
21424
|
+
'''
|
|
21425
|
+
if __debug__:
|
|
21426
|
+
type_hints = typing.get_type_hints(_typecheckingstub__d920a2dd32552e7bda0ce5cc7f9c3c76e02eb299516c6dd25e088d920e2ad3f6)
|
|
21427
|
+
check_type(argname="argument bucket", value=bucket, expected_type=type_hints["bucket"])
|
|
21428
|
+
check_type(argname="argument key", value=key, expected_type=type_hints["key"])
|
|
21429
|
+
return typing.cast(builtins.str, jsii.sinvoke(cls, "arnForS3Object", [bucket, key]))
|
|
21430
|
+
|
|
21431
|
+
@jsii.member(jsii_name="arnForSsmParameter")
|
|
21432
|
+
@builtins.classmethod
|
|
21433
|
+
def arn_for_ssm_parameter(cls, parameter: _IParameter_509a0f80) -> builtins.str:
|
|
21434
|
+
'''Helper method to generate the ARN for a SSM parameter.
|
|
21435
|
+
|
|
21436
|
+
Used to avoid duplication of logic in derived classes.
|
|
21437
|
+
|
|
21438
|
+
:param parameter: -
|
|
21439
|
+
'''
|
|
21440
|
+
if __debug__:
|
|
21441
|
+
type_hints = typing.get_type_hints(_typecheckingstub__60821aa4ad60367f0902adbe993fc7378a3faa775ceb7588ea079af0e39662ff)
|
|
21442
|
+
check_type(argname="argument parameter", value=parameter, expected_type=type_hints["parameter"])
|
|
21443
|
+
return typing.cast(builtins.str, jsii.sinvoke(cls, "arnForSsmParameter", [parameter]))
|
|
21444
|
+
|
|
21445
|
+
@jsii.member(jsii_name="bind")
|
|
21446
|
+
def bind(self) -> "CredentialSpecConfig":
|
|
21447
|
+
'''Called when the container is initialized to allow this object to bind to the stack.'''
|
|
21448
|
+
return typing.cast("CredentialSpecConfig", jsii.invoke(self, "bind", []))
|
|
21449
|
+
|
|
21450
|
+
@builtins.property
|
|
21451
|
+
@jsii.member(jsii_name="fileLocation")
|
|
21452
|
+
def file_location(self) -> builtins.str:
|
|
21453
|
+
'''Location or ARN from where to retrieve the CredSpec file.'''
|
|
21454
|
+
return typing.cast(builtins.str, jsii.get(self, "fileLocation"))
|
|
21455
|
+
|
|
21456
|
+
@builtins.property
|
|
21457
|
+
@jsii.member(jsii_name="prefixId")
|
|
21458
|
+
def prefix_id(self) -> builtins.str:
|
|
21459
|
+
'''Prefix string based on the type of CredSpec.'''
|
|
21460
|
+
return typing.cast(builtins.str, jsii.get(self, "prefixId"))
|
|
21461
|
+
|
|
21462
|
+
|
|
21463
|
+
@jsii.data_type(
|
|
21464
|
+
jsii_type="aws-cdk-lib.aws_ecs.CredentialSpecConfig",
|
|
21465
|
+
jsii_struct_bases=[],
|
|
21466
|
+
name_mapping={"location": "location", "type_prefix": "typePrefix"},
|
|
21467
|
+
)
|
|
21468
|
+
class CredentialSpecConfig:
|
|
21469
|
+
def __init__(self, *, location: builtins.str, type_prefix: builtins.str) -> None:
|
|
21470
|
+
'''Configuration for a credential specification (CredSpec) used for a ECS container.
|
|
21471
|
+
|
|
21472
|
+
:param location: Location of the CredSpec file.
|
|
21473
|
+
:param type_prefix: Prefix used for the CredSpec string.
|
|
21474
|
+
|
|
21475
|
+
:exampleMetadata: fixture=_generated
|
|
21476
|
+
|
|
21477
|
+
Example::
|
|
21478
|
+
|
|
21479
|
+
# The code below shows an example of how to instantiate this type.
|
|
21480
|
+
# The values are placeholders you should change.
|
|
21481
|
+
from aws_cdk import aws_ecs as ecs
|
|
21482
|
+
|
|
21483
|
+
credential_spec_config = ecs.CredentialSpecConfig(
|
|
21484
|
+
location="location",
|
|
21485
|
+
type_prefix="typePrefix"
|
|
21486
|
+
)
|
|
21487
|
+
'''
|
|
21488
|
+
if __debug__:
|
|
21489
|
+
type_hints = typing.get_type_hints(_typecheckingstub__544ae4082e3c3e478099774412380391075251238b6b9ee0caf06bcc2244eb31)
|
|
21490
|
+
check_type(argname="argument location", value=location, expected_type=type_hints["location"])
|
|
21491
|
+
check_type(argname="argument type_prefix", value=type_prefix, expected_type=type_hints["type_prefix"])
|
|
21492
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
21493
|
+
"location": location,
|
|
21494
|
+
"type_prefix": type_prefix,
|
|
21495
|
+
}
|
|
21496
|
+
|
|
21497
|
+
@builtins.property
|
|
21498
|
+
def location(self) -> builtins.str:
|
|
21499
|
+
'''Location of the CredSpec file.'''
|
|
21500
|
+
result = self._values.get("location")
|
|
21501
|
+
assert result is not None, "Required property 'location' is missing"
|
|
21502
|
+
return typing.cast(builtins.str, result)
|
|
21503
|
+
|
|
21504
|
+
@builtins.property
|
|
21505
|
+
def type_prefix(self) -> builtins.str:
|
|
21506
|
+
'''Prefix used for the CredSpec string.'''
|
|
21507
|
+
result = self._values.get("type_prefix")
|
|
21508
|
+
assert result is not None, "Required property 'type_prefix' is missing"
|
|
21509
|
+
return typing.cast(builtins.str, result)
|
|
21510
|
+
|
|
21511
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
21512
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
21513
|
+
|
|
21514
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
21515
|
+
return not (rhs == self)
|
|
21516
|
+
|
|
21517
|
+
def __repr__(self) -> str:
|
|
21518
|
+
return "CredentialSpecConfig(%s)" % ", ".join(
|
|
21519
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
21520
|
+
)
|
|
21521
|
+
|
|
21522
|
+
|
|
21293
21523
|
@jsii.data_type(
|
|
21294
21524
|
jsii_type="aws-cdk-lib.aws_ecs.DeploymentAlarmOptions",
|
|
21295
21525
|
jsii_struct_bases=[],
|
|
@@ -21781,6 +22011,150 @@ class DockerVolumeConfiguration:
|
|
|
21781
22011
|
)
|
|
21782
22012
|
|
|
21783
22013
|
|
|
22014
|
+
class DomainJoinedCredentialSpec(
|
|
22015
|
+
CredentialSpec,
|
|
22016
|
+
metaclass=jsii.JSIIMeta,
|
|
22017
|
+
jsii_type="aws-cdk-lib.aws_ecs.DomainJoinedCredentialSpec",
|
|
22018
|
+
):
|
|
22019
|
+
'''Credential specification (CredSpec) file.
|
|
22020
|
+
|
|
22021
|
+
:exampleMetadata: infused
|
|
22022
|
+
|
|
22023
|
+
Example::
|
|
22024
|
+
|
|
22025
|
+
# Make sure the task definition's execution role has permissions to read from the S3 bucket or SSM parameter where the CredSpec file is stored.
|
|
22026
|
+
# parameter: ssm.IParameter
|
|
22027
|
+
# task_definition: ecs.TaskDefinition
|
|
22028
|
+
|
|
22029
|
+
|
|
22030
|
+
# Domain-joined gMSA container from a SSM parameter
|
|
22031
|
+
task_definition.add_container("gmsa-domain-joined-container",
|
|
22032
|
+
image=ecs.ContainerImage.from_registry("amazon/amazon-ecs-sample"),
|
|
22033
|
+
cpu=128,
|
|
22034
|
+
memory_limit_mi_b=256,
|
|
22035
|
+
credential_specs=[ecs.DomainJoinedCredentialSpec.from_ssm_parameter(parameter)]
|
|
22036
|
+
)
|
|
22037
|
+
'''
|
|
22038
|
+
|
|
22039
|
+
def __init__(self, file_location: builtins.str) -> None:
|
|
22040
|
+
'''
|
|
22041
|
+
:param file_location: Location or ARN from where to retrieve the CredSpec file.
|
|
22042
|
+
'''
|
|
22043
|
+
if __debug__:
|
|
22044
|
+
type_hints = typing.get_type_hints(_typecheckingstub__74a7041aa7c44e15b54db11bc6f0846c13a4ab833182edf6cbca8449dcf3e612)
|
|
22045
|
+
check_type(argname="argument file_location", value=file_location, expected_type=type_hints["file_location"])
|
|
22046
|
+
jsii.create(self.__class__, self, [file_location])
|
|
22047
|
+
|
|
22048
|
+
@jsii.member(jsii_name="fromS3Bucket")
|
|
22049
|
+
@builtins.classmethod
|
|
22050
|
+
def from_s3_bucket(
|
|
22051
|
+
cls,
|
|
22052
|
+
bucket: _IBucket_42e086fd,
|
|
22053
|
+
key: builtins.str,
|
|
22054
|
+
) -> "DomainJoinedCredentialSpec":
|
|
22055
|
+
'''Loads the CredSpec from a S3 bucket object.
|
|
22056
|
+
|
|
22057
|
+
:param bucket: The S3 bucket.
|
|
22058
|
+
:param key: The object key.
|
|
22059
|
+
|
|
22060
|
+
:return: CredSpec with it's locations set to the S3 object's ARN.
|
|
22061
|
+
'''
|
|
22062
|
+
if __debug__:
|
|
22063
|
+
type_hints = typing.get_type_hints(_typecheckingstub__43cea1b75b78653b4276c55fbae915594c59010c5b7887bfa2c3ffac31a62689)
|
|
22064
|
+
check_type(argname="argument bucket", value=bucket, expected_type=type_hints["bucket"])
|
|
22065
|
+
check_type(argname="argument key", value=key, expected_type=type_hints["key"])
|
|
22066
|
+
return typing.cast("DomainJoinedCredentialSpec", jsii.sinvoke(cls, "fromS3Bucket", [bucket, key]))
|
|
22067
|
+
|
|
22068
|
+
@jsii.member(jsii_name="fromSsmParameter")
|
|
22069
|
+
@builtins.classmethod
|
|
22070
|
+
def from_ssm_parameter(
|
|
22071
|
+
cls,
|
|
22072
|
+
parameter: _IParameter_509a0f80,
|
|
22073
|
+
) -> "DomainJoinedCredentialSpec":
|
|
22074
|
+
'''Loads the CredSpec from a SSM parameter.
|
|
22075
|
+
|
|
22076
|
+
:param parameter: The SSM parameter.
|
|
22077
|
+
|
|
22078
|
+
:return: CredSpec with it's locations set to the SSM parameter's ARN.
|
|
22079
|
+
'''
|
|
22080
|
+
if __debug__:
|
|
22081
|
+
type_hints = typing.get_type_hints(_typecheckingstub__8696be467d8036eb57668114fa81fe11aed2147031c222ae9d037530859d0b30)
|
|
22082
|
+
check_type(argname="argument parameter", value=parameter, expected_type=type_hints["parameter"])
|
|
22083
|
+
return typing.cast("DomainJoinedCredentialSpec", jsii.sinvoke(cls, "fromSsmParameter", [parameter]))
|
|
22084
|
+
|
|
22085
|
+
|
|
22086
|
+
class DomainlessCredentialSpec(
|
|
22087
|
+
CredentialSpec,
|
|
22088
|
+
metaclass=jsii.JSIIMeta,
|
|
22089
|
+
jsii_type="aws-cdk-lib.aws_ecs.DomainlessCredentialSpec",
|
|
22090
|
+
):
|
|
22091
|
+
'''Credential specification for domainless gMSA.
|
|
22092
|
+
|
|
22093
|
+
:exampleMetadata: infused
|
|
22094
|
+
|
|
22095
|
+
Example::
|
|
22096
|
+
|
|
22097
|
+
# Make sure the task definition's execution role has permissions to read from the S3 bucket or SSM parameter where the CredSpec file is stored.
|
|
22098
|
+
# bucket: s3.Bucket
|
|
22099
|
+
# task_definition: ecs.TaskDefinition
|
|
22100
|
+
|
|
22101
|
+
|
|
22102
|
+
# Domainless gMSA container from a S3 bucket object.
|
|
22103
|
+
task_definition.add_container("gmsa-domainless-container",
|
|
22104
|
+
image=ecs.ContainerImage.from_registry("amazon/amazon-ecs-sample"),
|
|
22105
|
+
cpu=128,
|
|
22106
|
+
memory_limit_mi_b=256,
|
|
22107
|
+
credential_specs=[ecs.DomainlessCredentialSpec.from_s3_bucket(bucket, "credSpec")]
|
|
22108
|
+
)
|
|
22109
|
+
'''
|
|
22110
|
+
|
|
22111
|
+
def __init__(self, file_location: builtins.str) -> None:
|
|
22112
|
+
'''
|
|
22113
|
+
:param file_location: Location or ARN from where to retrieve the CredSpec file.
|
|
22114
|
+
'''
|
|
22115
|
+
if __debug__:
|
|
22116
|
+
type_hints = typing.get_type_hints(_typecheckingstub__6fcbd2e86fb4561db5d7bf362efead4d539ef3cc6549ae8983b679350afdce16)
|
|
22117
|
+
check_type(argname="argument file_location", value=file_location, expected_type=type_hints["file_location"])
|
|
22118
|
+
jsii.create(self.__class__, self, [file_location])
|
|
22119
|
+
|
|
22120
|
+
@jsii.member(jsii_name="fromS3Bucket")
|
|
22121
|
+
@builtins.classmethod
|
|
22122
|
+
def from_s3_bucket(
|
|
22123
|
+
cls,
|
|
22124
|
+
bucket: _IBucket_42e086fd,
|
|
22125
|
+
key: builtins.str,
|
|
22126
|
+
) -> "DomainlessCredentialSpec":
|
|
22127
|
+
'''Loads the CredSpec from a S3 bucket object.
|
|
22128
|
+
|
|
22129
|
+
:param bucket: The S3 bucket.
|
|
22130
|
+
:param key: The object key.
|
|
22131
|
+
|
|
22132
|
+
:return: CredSpec with it's locations set to the S3 object's ARN.
|
|
22133
|
+
'''
|
|
22134
|
+
if __debug__:
|
|
22135
|
+
type_hints = typing.get_type_hints(_typecheckingstub__5d224f1efa706f29234b333c8f7f7d5ec8009d752caab42d939101e3e587206e)
|
|
22136
|
+
check_type(argname="argument bucket", value=bucket, expected_type=type_hints["bucket"])
|
|
22137
|
+
check_type(argname="argument key", value=key, expected_type=type_hints["key"])
|
|
22138
|
+
return typing.cast("DomainlessCredentialSpec", jsii.sinvoke(cls, "fromS3Bucket", [bucket, key]))
|
|
22139
|
+
|
|
22140
|
+
@jsii.member(jsii_name="fromSsmParameter")
|
|
22141
|
+
@builtins.classmethod
|
|
22142
|
+
def from_ssm_parameter(
|
|
22143
|
+
cls,
|
|
22144
|
+
parameter: _IParameter_509a0f80,
|
|
22145
|
+
) -> "DomainlessCredentialSpec":
|
|
22146
|
+
'''Loads the CredSpec from a SSM parameter.
|
|
22147
|
+
|
|
22148
|
+
:param parameter: The SSM parameter.
|
|
22149
|
+
|
|
22150
|
+
:return: CredSpec with it's locations set to the SSM parameter's ARN.
|
|
22151
|
+
'''
|
|
22152
|
+
if __debug__:
|
|
22153
|
+
type_hints = typing.get_type_hints(_typecheckingstub__6f634beca247a8be170631377826bee3090c3455e25aa3e2003763852a5b67a9)
|
|
22154
|
+
check_type(argname="argument parameter", value=parameter, expected_type=type_hints["parameter"])
|
|
22155
|
+
return typing.cast("DomainlessCredentialSpec", jsii.sinvoke(cls, "fromSsmParameter", [parameter]))
|
|
22156
|
+
|
|
22157
|
+
|
|
21784
22158
|
@jsii.data_type(
|
|
21785
22159
|
jsii_type="aws-cdk-lib.aws_ecs.EBSTagSpecification",
|
|
21786
22160
|
jsii_struct_bases=[],
|
|
@@ -25826,6 +26200,7 @@ class FirelensLogRouter(
|
|
|
25826
26200
|
|
|
25827
26201
|
# app_protocol: ecs.AppProtocol
|
|
25828
26202
|
# container_image: ecs.ContainerImage
|
|
26203
|
+
# credential_spec: ecs.CredentialSpec
|
|
25829
26204
|
# environment_file: ecs.EnvironmentFile
|
|
25830
26205
|
# linux_parameters: ecs.LinuxParameters
|
|
25831
26206
|
# log_driver: ecs.LogDriver
|
|
@@ -25850,6 +26225,7 @@ class FirelensLogRouter(
|
|
|
25850
26225
|
command=["command"],
|
|
25851
26226
|
container_name="containerName",
|
|
25852
26227
|
cpu=123,
|
|
26228
|
+
credential_specs=[credential_spec],
|
|
25853
26229
|
disable_networking=False,
|
|
25854
26230
|
dns_search_domains=["dnsSearchDomains"],
|
|
25855
26231
|
dns_servers=["dnsServers"],
|
|
@@ -25926,6 +26302,7 @@ class FirelensLogRouter(
|
|
|
25926
26302
|
command: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
25927
26303
|
container_name: typing.Optional[builtins.str] = None,
|
|
25928
26304
|
cpu: typing.Optional[jsii.Number] = None,
|
|
26305
|
+
credential_specs: typing.Optional[typing.Sequence[CredentialSpec]] = None,
|
|
25929
26306
|
disable_networking: typing.Optional[builtins.bool] = None,
|
|
25930
26307
|
dns_search_domains: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
25931
26308
|
dns_servers: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
@@ -25967,6 +26344,7 @@ class FirelensLogRouter(
|
|
|
25967
26344
|
:param command: The command that is passed to the container. If you provide a shell command as a single string, you have to quote command-line arguments. Default: - CMD value built into container image.
|
|
25968
26345
|
:param container_name: The name of the container. Default: - id of node associated with ContainerDefinition.
|
|
25969
26346
|
:param cpu: The minimum number of CPU units to reserve for the container. Default: - No minimum CPU units reserved.
|
|
26347
|
+
:param credential_specs: A list of ARNs in SSM or Amazon S3 to a credential spec (``CredSpec``) file that configures the container for Active Directory authentication. We recommend that you use this parameter instead of the ``dockerSecurityOptions``. Currently, only one credential spec is allowed per container definition. Default: - No credential specs.
|
|
25970
26348
|
:param disable_networking: Specifies whether networking is disabled within the container. When this parameter is true, networking is disabled within the container. Default: false
|
|
25971
26349
|
:param dns_search_domains: A list of DNS search domains that are presented to the container. Default: - No search domains.
|
|
25972
26350
|
:param dns_servers: A list of DNS servers that are presented to the container. Default: - Default DNS servers.
|
|
@@ -26009,6 +26387,7 @@ class FirelensLogRouter(
|
|
|
26009
26387
|
command=command,
|
|
26010
26388
|
container_name=container_name,
|
|
26011
26389
|
cpu=cpu,
|
|
26390
|
+
credential_specs=credential_specs,
|
|
26012
26391
|
disable_networking=disable_networking,
|
|
26013
26392
|
dns_search_domains=dns_search_domains,
|
|
26014
26393
|
dns_servers=dns_servers,
|
|
@@ -26072,6 +26451,7 @@ class FirelensLogRouter(
|
|
|
26072
26451
|
"command": "command",
|
|
26073
26452
|
"container_name": "containerName",
|
|
26074
26453
|
"cpu": "cpu",
|
|
26454
|
+
"credential_specs": "credentialSpecs",
|
|
26075
26455
|
"disable_networking": "disableNetworking",
|
|
26076
26456
|
"dns_search_domains": "dnsSearchDomains",
|
|
26077
26457
|
"dns_servers": "dnsServers",
|
|
@@ -26113,6 +26493,7 @@ class FirelensLogRouterDefinitionOptions(ContainerDefinitionOptions):
|
|
|
26113
26493
|
command: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
26114
26494
|
container_name: typing.Optional[builtins.str] = None,
|
|
26115
26495
|
cpu: typing.Optional[jsii.Number] = None,
|
|
26496
|
+
credential_specs: typing.Optional[typing.Sequence[CredentialSpec]] = None,
|
|
26116
26497
|
disable_networking: typing.Optional[builtins.bool] = None,
|
|
26117
26498
|
dns_search_domains: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
26118
26499
|
dns_servers: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
@@ -26151,6 +26532,7 @@ class FirelensLogRouterDefinitionOptions(ContainerDefinitionOptions):
|
|
|
26151
26532
|
:param command: The command that is passed to the container. If you provide a shell command as a single string, you have to quote command-line arguments. Default: - CMD value built into container image.
|
|
26152
26533
|
:param container_name: The name of the container. Default: - id of node associated with ContainerDefinition.
|
|
26153
26534
|
:param cpu: The minimum number of CPU units to reserve for the container. Default: - No minimum CPU units reserved.
|
|
26535
|
+
:param credential_specs: A list of ARNs in SSM or Amazon S3 to a credential spec (``CredSpec``) file that configures the container for Active Directory authentication. We recommend that you use this parameter instead of the ``dockerSecurityOptions``. Currently, only one credential spec is allowed per container definition. Default: - No credential specs.
|
|
26154
26536
|
:param disable_networking: Specifies whether networking is disabled within the container. When this parameter is true, networking is disabled within the container. Default: false
|
|
26155
26537
|
:param dns_search_domains: A list of DNS search domains that are presented to the container. Default: - No search domains.
|
|
26156
26538
|
:param dns_servers: A list of DNS servers that are presented to the container. Default: - Default DNS servers.
|
|
@@ -26194,6 +26576,7 @@ class FirelensLogRouterDefinitionOptions(ContainerDefinitionOptions):
|
|
|
26194
26576
|
|
|
26195
26577
|
# app_protocol: ecs.AppProtocol
|
|
26196
26578
|
# container_image: ecs.ContainerImage
|
|
26579
|
+
# credential_spec: ecs.CredentialSpec
|
|
26197
26580
|
# environment_file: ecs.EnvironmentFile
|
|
26198
26581
|
# linux_parameters: ecs.LinuxParameters
|
|
26199
26582
|
# log_driver: ecs.LogDriver
|
|
@@ -26216,6 +26599,7 @@ class FirelensLogRouterDefinitionOptions(ContainerDefinitionOptions):
|
|
|
26216
26599
|
command=["command"],
|
|
26217
26600
|
container_name="containerName",
|
|
26218
26601
|
cpu=123,
|
|
26602
|
+
credential_specs=[credential_spec],
|
|
26219
26603
|
disable_networking=False,
|
|
26220
26604
|
dns_search_domains=["dnsSearchDomains"],
|
|
26221
26605
|
dns_servers=["dnsServers"],
|
|
@@ -26290,6 +26674,7 @@ class FirelensLogRouterDefinitionOptions(ContainerDefinitionOptions):
|
|
|
26290
26674
|
check_type(argname="argument command", value=command, expected_type=type_hints["command"])
|
|
26291
26675
|
check_type(argname="argument container_name", value=container_name, expected_type=type_hints["container_name"])
|
|
26292
26676
|
check_type(argname="argument cpu", value=cpu, expected_type=type_hints["cpu"])
|
|
26677
|
+
check_type(argname="argument credential_specs", value=credential_specs, expected_type=type_hints["credential_specs"])
|
|
26293
26678
|
check_type(argname="argument disable_networking", value=disable_networking, expected_type=type_hints["disable_networking"])
|
|
26294
26679
|
check_type(argname="argument dns_search_domains", value=dns_search_domains, expected_type=type_hints["dns_search_domains"])
|
|
26295
26680
|
check_type(argname="argument dns_servers", value=dns_servers, expected_type=type_hints["dns_servers"])
|
|
@@ -26331,6 +26716,8 @@ class FirelensLogRouterDefinitionOptions(ContainerDefinitionOptions):
|
|
|
26331
26716
|
self._values["container_name"] = container_name
|
|
26332
26717
|
if cpu is not None:
|
|
26333
26718
|
self._values["cpu"] = cpu
|
|
26719
|
+
if credential_specs is not None:
|
|
26720
|
+
self._values["credential_specs"] = credential_specs
|
|
26334
26721
|
if disable_networking is not None:
|
|
26335
26722
|
self._values["disable_networking"] = disable_networking
|
|
26336
26723
|
if dns_search_domains is not None:
|
|
@@ -26434,6 +26821,19 @@ class FirelensLogRouterDefinitionOptions(ContainerDefinitionOptions):
|
|
|
26434
26821
|
result = self._values.get("cpu")
|
|
26435
26822
|
return typing.cast(typing.Optional[jsii.Number], result)
|
|
26436
26823
|
|
|
26824
|
+
@builtins.property
|
|
26825
|
+
def credential_specs(self) -> typing.Optional[typing.List[CredentialSpec]]:
|
|
26826
|
+
'''A list of ARNs in SSM or Amazon S3 to a credential spec (``CredSpec``) file that configures the container for Active Directory authentication.
|
|
26827
|
+
|
|
26828
|
+
We recommend that you use this parameter instead of the ``dockerSecurityOptions``.
|
|
26829
|
+
|
|
26830
|
+
Currently, only one credential spec is allowed per container definition.
|
|
26831
|
+
|
|
26832
|
+
:default: - No credential specs.
|
|
26833
|
+
'''
|
|
26834
|
+
result = self._values.get("credential_specs")
|
|
26835
|
+
return typing.cast(typing.Optional[typing.List[CredentialSpec]], result)
|
|
26836
|
+
|
|
26437
26837
|
@builtins.property
|
|
26438
26838
|
def disable_networking(self) -> typing.Optional[builtins.bool]:
|
|
26439
26839
|
'''Specifies whether networking is disabled within the container.
|
|
@@ -26779,6 +27179,7 @@ class FirelensLogRouterDefinitionOptions(ContainerDefinitionOptions):
|
|
|
26779
27179
|
"command": "command",
|
|
26780
27180
|
"container_name": "containerName",
|
|
26781
27181
|
"cpu": "cpu",
|
|
27182
|
+
"credential_specs": "credentialSpecs",
|
|
26782
27183
|
"disable_networking": "disableNetworking",
|
|
26783
27184
|
"dns_search_domains": "dnsSearchDomains",
|
|
26784
27185
|
"dns_servers": "dnsServers",
|
|
@@ -26821,6 +27222,7 @@ class FirelensLogRouterProps(ContainerDefinitionProps):
|
|
|
26821
27222
|
command: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
26822
27223
|
container_name: typing.Optional[builtins.str] = None,
|
|
26823
27224
|
cpu: typing.Optional[jsii.Number] = None,
|
|
27225
|
+
credential_specs: typing.Optional[typing.Sequence[CredentialSpec]] = None,
|
|
26824
27226
|
disable_networking: typing.Optional[builtins.bool] = None,
|
|
26825
27227
|
dns_search_domains: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
26826
27228
|
dns_servers: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
@@ -26860,6 +27262,7 @@ class FirelensLogRouterProps(ContainerDefinitionProps):
|
|
|
26860
27262
|
:param command: The command that is passed to the container. If you provide a shell command as a single string, you have to quote command-line arguments. Default: - CMD value built into container image.
|
|
26861
27263
|
:param container_name: The name of the container. Default: - id of node associated with ContainerDefinition.
|
|
26862
27264
|
:param cpu: The minimum number of CPU units to reserve for the container. Default: - No minimum CPU units reserved.
|
|
27265
|
+
:param credential_specs: A list of ARNs in SSM or Amazon S3 to a credential spec (``CredSpec``) file that configures the container for Active Directory authentication. We recommend that you use this parameter instead of the ``dockerSecurityOptions``. Currently, only one credential spec is allowed per container definition. Default: - No credential specs.
|
|
26863
27266
|
:param disable_networking: Specifies whether networking is disabled within the container. When this parameter is true, networking is disabled within the container. Default: false
|
|
26864
27267
|
:param dns_search_domains: A list of DNS search domains that are presented to the container. Default: - No search domains.
|
|
26865
27268
|
:param dns_servers: A list of DNS servers that are presented to the container. Default: - Default DNS servers.
|
|
@@ -26904,6 +27307,7 @@ class FirelensLogRouterProps(ContainerDefinitionProps):
|
|
|
26904
27307
|
|
|
26905
27308
|
# app_protocol: ecs.AppProtocol
|
|
26906
27309
|
# container_image: ecs.ContainerImage
|
|
27310
|
+
# credential_spec: ecs.CredentialSpec
|
|
26907
27311
|
# environment_file: ecs.EnvironmentFile
|
|
26908
27312
|
# linux_parameters: ecs.LinuxParameters
|
|
26909
27313
|
# log_driver: ecs.LogDriver
|
|
@@ -26928,6 +27332,7 @@ class FirelensLogRouterProps(ContainerDefinitionProps):
|
|
|
26928
27332
|
command=["command"],
|
|
26929
27333
|
container_name="containerName",
|
|
26930
27334
|
cpu=123,
|
|
27335
|
+
credential_specs=[credential_spec],
|
|
26931
27336
|
disable_networking=False,
|
|
26932
27337
|
dns_search_domains=["dnsSearchDomains"],
|
|
26933
27338
|
dns_servers=["dnsServers"],
|
|
@@ -27002,6 +27407,7 @@ class FirelensLogRouterProps(ContainerDefinitionProps):
|
|
|
27002
27407
|
check_type(argname="argument command", value=command, expected_type=type_hints["command"])
|
|
27003
27408
|
check_type(argname="argument container_name", value=container_name, expected_type=type_hints["container_name"])
|
|
27004
27409
|
check_type(argname="argument cpu", value=cpu, expected_type=type_hints["cpu"])
|
|
27410
|
+
check_type(argname="argument credential_specs", value=credential_specs, expected_type=type_hints["credential_specs"])
|
|
27005
27411
|
check_type(argname="argument disable_networking", value=disable_networking, expected_type=type_hints["disable_networking"])
|
|
27006
27412
|
check_type(argname="argument dns_search_domains", value=dns_search_domains, expected_type=type_hints["dns_search_domains"])
|
|
27007
27413
|
check_type(argname="argument dns_servers", value=dns_servers, expected_type=type_hints["dns_servers"])
|
|
@@ -27045,6 +27451,8 @@ class FirelensLogRouterProps(ContainerDefinitionProps):
|
|
|
27045
27451
|
self._values["container_name"] = container_name
|
|
27046
27452
|
if cpu is not None:
|
|
27047
27453
|
self._values["cpu"] = cpu
|
|
27454
|
+
if credential_specs is not None:
|
|
27455
|
+
self._values["credential_specs"] = credential_specs
|
|
27048
27456
|
if disable_networking is not None:
|
|
27049
27457
|
self._values["disable_networking"] = disable_networking
|
|
27050
27458
|
if dns_search_domains is not None:
|
|
@@ -27148,6 +27556,19 @@ class FirelensLogRouterProps(ContainerDefinitionProps):
|
|
|
27148
27556
|
result = self._values.get("cpu")
|
|
27149
27557
|
return typing.cast(typing.Optional[jsii.Number], result)
|
|
27150
27558
|
|
|
27559
|
+
@builtins.property
|
|
27560
|
+
def credential_specs(self) -> typing.Optional[typing.List[CredentialSpec]]:
|
|
27561
|
+
'''A list of ARNs in SSM or Amazon S3 to a credential spec (``CredSpec``) file that configures the container for Active Directory authentication.
|
|
27562
|
+
|
|
27563
|
+
We recommend that you use this parameter instead of the ``dockerSecurityOptions``.
|
|
27564
|
+
|
|
27565
|
+
Currently, only one credential spec is allowed per container definition.
|
|
27566
|
+
|
|
27567
|
+
:default: - No credential specs.
|
|
27568
|
+
'''
|
|
27569
|
+
result = self._values.get("credential_specs")
|
|
27570
|
+
return typing.cast(typing.Optional[typing.List[CredentialSpec]], result)
|
|
27571
|
+
|
|
27151
27572
|
@builtins.property
|
|
27152
27573
|
def disable_networking(self) -> typing.Optional[builtins.bool]:
|
|
27153
27574
|
'''Specifies whether networking is disabled within the container.
|
|
@@ -29093,7 +29514,28 @@ class JsonFileLogDriverProps(BaseLogDriverProps):
|
|
|
29093
29514
|
|
|
29094
29515
|
@jsii.enum(jsii_type="aws-cdk-lib.aws_ecs.LaunchType")
|
|
29095
29516
|
class LaunchType(enum.Enum):
|
|
29096
|
-
'''The launch type of an ECS service.
|
|
29517
|
+
'''The launch type of an ECS service.
|
|
29518
|
+
|
|
29519
|
+
:exampleMetadata: infused
|
|
29520
|
+
|
|
29521
|
+
Example::
|
|
29522
|
+
|
|
29523
|
+
import aws_cdk.aws_ecs as ecs
|
|
29524
|
+
|
|
29525
|
+
# cluster: ecs.ICluster
|
|
29526
|
+
# task_definition: ecs.TaskDefinition
|
|
29527
|
+
|
|
29528
|
+
|
|
29529
|
+
rule = events.Rule(self, "Rule",
|
|
29530
|
+
schedule=events.Schedule.rate(cdk.Duration.hours(1))
|
|
29531
|
+
)
|
|
29532
|
+
|
|
29533
|
+
rule.add_target(targets.EcsTask(
|
|
29534
|
+
cluster=cluster,
|
|
29535
|
+
task_definition=task_definition,
|
|
29536
|
+
launch_type=ecs.LaunchType.FARGATE
|
|
29537
|
+
))
|
|
29538
|
+
'''
|
|
29097
29539
|
|
|
29098
29540
|
EC2 = "EC2"
|
|
29099
29541
|
'''The service will be launched using the EC2 launch type.'''
|
|
@@ -31832,6 +32274,7 @@ class ScalableTaskCount(
|
|
|
31832
32274
|
max_capacity: typing.Optional[jsii.Number] = None,
|
|
31833
32275
|
min_capacity: typing.Optional[jsii.Number] = None,
|
|
31834
32276
|
start_time: typing.Optional[datetime.datetime] = None,
|
|
32277
|
+
time_zone: typing.Optional[_TimeZone_cdd72ac9] = None,
|
|
31835
32278
|
) -> None:
|
|
31836
32279
|
'''Scales in or out based on a specified scheduled time.
|
|
31837
32280
|
|
|
@@ -31841,6 +32284,7 @@ class ScalableTaskCount(
|
|
|
31841
32284
|
:param max_capacity: The new maximum capacity. During the scheduled time, the current capacity is above the maximum capacity, Application Auto Scaling scales in to the maximum capacity. At least one of maxCapacity and minCapacity must be supplied. Default: No new maximum capacity
|
|
31842
32285
|
:param min_capacity: The new minimum capacity. During the scheduled time, if the current capacity is below the minimum capacity, Application Auto Scaling scales out to the minimum capacity. At least one of maxCapacity and minCapacity must be supplied. Default: No new minimum capacity
|
|
31843
32286
|
:param start_time: When this scheduled action becomes active. Default: The rule is activate immediately
|
|
32287
|
+
:param time_zone: The time zone used when referring to the date and time of a scheduled action, when the scheduled action uses an at or cron expression. Default: - UTC
|
|
31844
32288
|
'''
|
|
31845
32289
|
if __debug__:
|
|
31846
32290
|
type_hints = typing.get_type_hints(_typecheckingstub__7ba160d89a841c59234467f87e8a25e0de215bd289f076fee7239d3362c718ca)
|
|
@@ -31851,6 +32295,7 @@ class ScalableTaskCount(
|
|
|
31851
32295
|
max_capacity=max_capacity,
|
|
31852
32296
|
min_capacity=min_capacity,
|
|
31853
32297
|
start_time=start_time,
|
|
32298
|
+
time_zone=time_zone,
|
|
31854
32299
|
)
|
|
31855
32300
|
|
|
31856
32301
|
return typing.cast(None, jsii.invoke(self, "scaleOnSchedule", [id, props]))
|
|
@@ -34443,6 +34888,7 @@ class TaskDefinition(
|
|
|
34443
34888
|
command: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
34444
34889
|
container_name: typing.Optional[builtins.str] = None,
|
|
34445
34890
|
cpu: typing.Optional[jsii.Number] = None,
|
|
34891
|
+
credential_specs: typing.Optional[typing.Sequence[CredentialSpec]] = None,
|
|
34446
34892
|
disable_networking: typing.Optional[builtins.bool] = None,
|
|
34447
34893
|
dns_search_domains: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
34448
34894
|
dns_servers: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
@@ -34481,6 +34927,7 @@ class TaskDefinition(
|
|
|
34481
34927
|
:param command: The command that is passed to the container. If you provide a shell command as a single string, you have to quote command-line arguments. Default: - CMD value built into container image.
|
|
34482
34928
|
:param container_name: The name of the container. Default: - id of node associated with ContainerDefinition.
|
|
34483
34929
|
:param cpu: The minimum number of CPU units to reserve for the container. Default: - No minimum CPU units reserved.
|
|
34930
|
+
:param credential_specs: A list of ARNs in SSM or Amazon S3 to a credential spec (``CredSpec``) file that configures the container for Active Directory authentication. We recommend that you use this parameter instead of the ``dockerSecurityOptions``. Currently, only one credential spec is allowed per container definition. Default: - No credential specs.
|
|
34484
34931
|
:param disable_networking: Specifies whether networking is disabled within the container. When this parameter is true, networking is disabled within the container. Default: false
|
|
34485
34932
|
:param dns_search_domains: A list of DNS search domains that are presented to the container. Default: - No search domains.
|
|
34486
34933
|
:param dns_servers: A list of DNS servers that are presented to the container. Default: - Default DNS servers.
|
|
@@ -34520,6 +34967,7 @@ class TaskDefinition(
|
|
|
34520
34967
|
command=command,
|
|
34521
34968
|
container_name=container_name,
|
|
34522
34969
|
cpu=cpu,
|
|
34970
|
+
credential_specs=credential_specs,
|
|
34523
34971
|
disable_networking=disable_networking,
|
|
34524
34972
|
dns_search_domains=dns_search_domains,
|
|
34525
34973
|
dns_servers=dns_servers,
|
|
@@ -34578,6 +35026,7 @@ class TaskDefinition(
|
|
|
34578
35026
|
command: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
34579
35027
|
container_name: typing.Optional[builtins.str] = None,
|
|
34580
35028
|
cpu: typing.Optional[jsii.Number] = None,
|
|
35029
|
+
credential_specs: typing.Optional[typing.Sequence[CredentialSpec]] = None,
|
|
34581
35030
|
disable_networking: typing.Optional[builtins.bool] = None,
|
|
34582
35031
|
dns_search_domains: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
34583
35032
|
dns_servers: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
@@ -34617,6 +35066,7 @@ class TaskDefinition(
|
|
|
34617
35066
|
:param command: The command that is passed to the container. If you provide a shell command as a single string, you have to quote command-line arguments. Default: - CMD value built into container image.
|
|
34618
35067
|
:param container_name: The name of the container. Default: - id of node associated with ContainerDefinition.
|
|
34619
35068
|
:param cpu: The minimum number of CPU units to reserve for the container. Default: - No minimum CPU units reserved.
|
|
35069
|
+
:param credential_specs: A list of ARNs in SSM or Amazon S3 to a credential spec (``CredSpec``) file that configures the container for Active Directory authentication. We recommend that you use this parameter instead of the ``dockerSecurityOptions``. Currently, only one credential spec is allowed per container definition. Default: - No credential specs.
|
|
34620
35070
|
:param disable_networking: Specifies whether networking is disabled within the container. When this parameter is true, networking is disabled within the container. Default: false
|
|
34621
35071
|
:param dns_search_domains: A list of DNS search domains that are presented to the container. Default: - No search domains.
|
|
34622
35072
|
:param dns_servers: A list of DNS servers that are presented to the container. Default: - Default DNS servers.
|
|
@@ -34657,6 +35107,7 @@ class TaskDefinition(
|
|
|
34657
35107
|
command=command,
|
|
34658
35108
|
container_name=container_name,
|
|
34659
35109
|
cpu=cpu,
|
|
35110
|
+
credential_specs=credential_specs,
|
|
34660
35111
|
disable_networking=disable_networking,
|
|
34661
35112
|
dns_search_domains=dns_search_domains,
|
|
34662
35113
|
dns_servers=dns_servers,
|
|
@@ -38837,6 +39288,7 @@ class Ec2TaskDefinition(
|
|
|
38837
39288
|
command: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
38838
39289
|
container_name: typing.Optional[builtins.str] = None,
|
|
38839
39290
|
cpu: typing.Optional[jsii.Number] = None,
|
|
39291
|
+
credential_specs: typing.Optional[typing.Sequence[CredentialSpec]] = None,
|
|
38840
39292
|
disable_networking: typing.Optional[builtins.bool] = None,
|
|
38841
39293
|
dns_search_domains: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
38842
39294
|
dns_servers: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
@@ -38877,6 +39329,7 @@ class Ec2TaskDefinition(
|
|
|
38877
39329
|
:param command: The command that is passed to the container. If you provide a shell command as a single string, you have to quote command-line arguments. Default: - CMD value built into container image.
|
|
38878
39330
|
:param container_name: The name of the container. Default: - id of node associated with ContainerDefinition.
|
|
38879
39331
|
:param cpu: The minimum number of CPU units to reserve for the container. Default: - No minimum CPU units reserved.
|
|
39332
|
+
:param credential_specs: A list of ARNs in SSM or Amazon S3 to a credential spec (``CredSpec``) file that configures the container for Active Directory authentication. We recommend that you use this parameter instead of the ``dockerSecurityOptions``. Currently, only one credential spec is allowed per container definition. Default: - No credential specs.
|
|
38880
39333
|
:param disable_networking: Specifies whether networking is disabled within the container. When this parameter is true, networking is disabled within the container. Default: false
|
|
38881
39334
|
:param dns_search_domains: A list of DNS search domains that are presented to the container. Default: - No search domains.
|
|
38882
39335
|
:param dns_servers: A list of DNS servers that are presented to the container. Default: - Default DNS servers.
|
|
@@ -38916,6 +39369,7 @@ class Ec2TaskDefinition(
|
|
|
38916
39369
|
command=command,
|
|
38917
39370
|
container_name=container_name,
|
|
38918
39371
|
cpu=cpu,
|
|
39372
|
+
credential_specs=credential_specs,
|
|
38919
39373
|
disable_networking=disable_networking,
|
|
38920
39374
|
dns_search_domains=dns_search_domains,
|
|
38921
39375
|
dns_servers=dns_servers,
|
|
@@ -39780,6 +40234,8 @@ __all__ = [
|
|
|
39780
40234
|
"ContainerMountPoint",
|
|
39781
40235
|
"CpuArchitecture",
|
|
39782
40236
|
"CpuUtilizationScalingProps",
|
|
40237
|
+
"CredentialSpec",
|
|
40238
|
+
"CredentialSpecConfig",
|
|
39783
40239
|
"DeploymentAlarmConfig",
|
|
39784
40240
|
"DeploymentAlarmOptions",
|
|
39785
40241
|
"DeploymentCircuitBreaker",
|
|
@@ -39788,6 +40244,8 @@ __all__ = [
|
|
|
39788
40244
|
"Device",
|
|
39789
40245
|
"DevicePermission",
|
|
39790
40246
|
"DockerVolumeConfiguration",
|
|
40247
|
+
"DomainJoinedCredentialSpec",
|
|
40248
|
+
"DomainlessCredentialSpec",
|
|
39791
40249
|
"EBSTagSpecification",
|
|
39792
40250
|
"EbsPropagatedTagSource",
|
|
39793
40251
|
"Ec2Service",
|
|
@@ -41613,6 +42071,7 @@ def _typecheckingstub__d8756b492e023ad8d33a399196b15b610f709400ce213e179f17dd1f6
|
|
|
41613
42071
|
command: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
41614
42072
|
container_name: typing.Optional[builtins.str] = None,
|
|
41615
42073
|
cpu: typing.Optional[jsii.Number] = None,
|
|
42074
|
+
credential_specs: typing.Optional[typing.Sequence[CredentialSpec]] = None,
|
|
41616
42075
|
disable_networking: typing.Optional[builtins.bool] = None,
|
|
41617
42076
|
dns_search_domains: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
41618
42077
|
dns_servers: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
@@ -41735,6 +42194,7 @@ def _typecheckingstub__f2e5f24c1574825a81dd77783d48886a430a675a0e04f03559eca98b5
|
|
|
41735
42194
|
command: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
41736
42195
|
container_name: typing.Optional[builtins.str] = None,
|
|
41737
42196
|
cpu: typing.Optional[jsii.Number] = None,
|
|
42197
|
+
credential_specs: typing.Optional[typing.Sequence[CredentialSpec]] = None,
|
|
41738
42198
|
disable_networking: typing.Optional[builtins.bool] = None,
|
|
41739
42199
|
dns_search_domains: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
41740
42200
|
dns_servers: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
@@ -41775,6 +42235,7 @@ def _typecheckingstub__20c974a49c79829fac0811dffaf78c449f92ae136414b96232160d37c
|
|
|
41775
42235
|
command: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
41776
42236
|
container_name: typing.Optional[builtins.str] = None,
|
|
41777
42237
|
cpu: typing.Optional[jsii.Number] = None,
|
|
42238
|
+
credential_specs: typing.Optional[typing.Sequence[CredentialSpec]] = None,
|
|
41778
42239
|
disable_networking: typing.Optional[builtins.bool] = None,
|
|
41779
42240
|
dns_search_domains: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
41780
42241
|
dns_servers: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
@@ -41909,6 +42370,34 @@ def _typecheckingstub__91cac9b5eedaf67c6c8ff49d718cca4a85b40488fc9660a82ad32bd34
|
|
|
41909
42370
|
"""Type checking stubs"""
|
|
41910
42371
|
pass
|
|
41911
42372
|
|
|
42373
|
+
def _typecheckingstub__391919d386090f9ac3aa86dc379e614f3db5fb33b21f6ff1abc79118d879f2b8(
|
|
42374
|
+
prefix_id: builtins.str,
|
|
42375
|
+
file_location: builtins.str,
|
|
42376
|
+
) -> None:
|
|
42377
|
+
"""Type checking stubs"""
|
|
42378
|
+
pass
|
|
42379
|
+
|
|
42380
|
+
def _typecheckingstub__d920a2dd32552e7bda0ce5cc7f9c3c76e02eb299516c6dd25e088d920e2ad3f6(
|
|
42381
|
+
bucket: _IBucket_42e086fd,
|
|
42382
|
+
key: builtins.str,
|
|
42383
|
+
) -> None:
|
|
42384
|
+
"""Type checking stubs"""
|
|
42385
|
+
pass
|
|
42386
|
+
|
|
42387
|
+
def _typecheckingstub__60821aa4ad60367f0902adbe993fc7378a3faa775ceb7588ea079af0e39662ff(
|
|
42388
|
+
parameter: _IParameter_509a0f80,
|
|
42389
|
+
) -> None:
|
|
42390
|
+
"""Type checking stubs"""
|
|
42391
|
+
pass
|
|
42392
|
+
|
|
42393
|
+
def _typecheckingstub__544ae4082e3c3e478099774412380391075251238b6b9ee0caf06bcc2244eb31(
|
|
42394
|
+
*,
|
|
42395
|
+
location: builtins.str,
|
|
42396
|
+
type_prefix: builtins.str,
|
|
42397
|
+
) -> None:
|
|
42398
|
+
"""Type checking stubs"""
|
|
42399
|
+
pass
|
|
42400
|
+
|
|
41912
42401
|
def _typecheckingstub__85f3395f0bdfd1aaa44a3d8b0888e7649528502db65214cb5feef555dfb7d8c3(
|
|
41913
42402
|
*,
|
|
41914
42403
|
behavior: typing.Optional[AlarmBehavior] = None,
|
|
@@ -41951,6 +42440,44 @@ def _typecheckingstub__7557a1bae40866fb083429715f1fe59d71ab49e4e4311e053beb1b8be
|
|
|
41951
42440
|
"""Type checking stubs"""
|
|
41952
42441
|
pass
|
|
41953
42442
|
|
|
42443
|
+
def _typecheckingstub__74a7041aa7c44e15b54db11bc6f0846c13a4ab833182edf6cbca8449dcf3e612(
|
|
42444
|
+
file_location: builtins.str,
|
|
42445
|
+
) -> None:
|
|
42446
|
+
"""Type checking stubs"""
|
|
42447
|
+
pass
|
|
42448
|
+
|
|
42449
|
+
def _typecheckingstub__43cea1b75b78653b4276c55fbae915594c59010c5b7887bfa2c3ffac31a62689(
|
|
42450
|
+
bucket: _IBucket_42e086fd,
|
|
42451
|
+
key: builtins.str,
|
|
42452
|
+
) -> None:
|
|
42453
|
+
"""Type checking stubs"""
|
|
42454
|
+
pass
|
|
42455
|
+
|
|
42456
|
+
def _typecheckingstub__8696be467d8036eb57668114fa81fe11aed2147031c222ae9d037530859d0b30(
|
|
42457
|
+
parameter: _IParameter_509a0f80,
|
|
42458
|
+
) -> None:
|
|
42459
|
+
"""Type checking stubs"""
|
|
42460
|
+
pass
|
|
42461
|
+
|
|
42462
|
+
def _typecheckingstub__6fcbd2e86fb4561db5d7bf362efead4d539ef3cc6549ae8983b679350afdce16(
|
|
42463
|
+
file_location: builtins.str,
|
|
42464
|
+
) -> None:
|
|
42465
|
+
"""Type checking stubs"""
|
|
42466
|
+
pass
|
|
42467
|
+
|
|
42468
|
+
def _typecheckingstub__5d224f1efa706f29234b333c8f7f7d5ec8009d752caab42d939101e3e587206e(
|
|
42469
|
+
bucket: _IBucket_42e086fd,
|
|
42470
|
+
key: builtins.str,
|
|
42471
|
+
) -> None:
|
|
42472
|
+
"""Type checking stubs"""
|
|
42473
|
+
pass
|
|
42474
|
+
|
|
42475
|
+
def _typecheckingstub__6f634beca247a8be170631377826bee3090c3455e25aa3e2003763852a5b67a9(
|
|
42476
|
+
parameter: _IParameter_509a0f80,
|
|
42477
|
+
) -> None:
|
|
42478
|
+
"""Type checking stubs"""
|
|
42479
|
+
pass
|
|
42480
|
+
|
|
41954
42481
|
def _typecheckingstub__8d98ce8573765caa8083d2f6d9d3138b4000f482f052a35492131f0e652b86fc(
|
|
41955
42482
|
*,
|
|
41956
42483
|
propagate_tags: typing.Optional[EbsPropagatedTagSource] = None,
|
|
@@ -42302,6 +42829,7 @@ def _typecheckingstub__aa1e4969dd0e00a5737510c273aa9546ad4ce7bc5a8a146f2a37666b0
|
|
|
42302
42829
|
command: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
42303
42830
|
container_name: typing.Optional[builtins.str] = None,
|
|
42304
42831
|
cpu: typing.Optional[jsii.Number] = None,
|
|
42832
|
+
credential_specs: typing.Optional[typing.Sequence[CredentialSpec]] = None,
|
|
42305
42833
|
disable_networking: typing.Optional[builtins.bool] = None,
|
|
42306
42834
|
dns_search_domains: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
42307
42835
|
dns_servers: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
@@ -42348,6 +42876,7 @@ def _typecheckingstub__2bb9382e9a7b1b34a020902905c4bf83e2d4970135e7592e5b5a1da62
|
|
|
42348
42876
|
command: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
42349
42877
|
container_name: typing.Optional[builtins.str] = None,
|
|
42350
42878
|
cpu: typing.Optional[jsii.Number] = None,
|
|
42879
|
+
credential_specs: typing.Optional[typing.Sequence[CredentialSpec]] = None,
|
|
42351
42880
|
disable_networking: typing.Optional[builtins.bool] = None,
|
|
42352
42881
|
dns_search_domains: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
42353
42882
|
dns_servers: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
@@ -42389,6 +42918,7 @@ def _typecheckingstub__498b2375cb2035a958edbdd10ad5f4352caa5773be14b63a07c337871
|
|
|
42389
42918
|
command: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
42390
42919
|
container_name: typing.Optional[builtins.str] = None,
|
|
42391
42920
|
cpu: typing.Optional[jsii.Number] = None,
|
|
42921
|
+
credential_specs: typing.Optional[typing.Sequence[CredentialSpec]] = None,
|
|
42392
42922
|
disable_networking: typing.Optional[builtins.bool] = None,
|
|
42393
42923
|
dns_search_domains: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
42394
42924
|
dns_servers: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
@@ -42849,6 +43379,7 @@ def _typecheckingstub__7ba160d89a841c59234467f87e8a25e0de215bd289f076fee7239d336
|
|
|
42849
43379
|
max_capacity: typing.Optional[jsii.Number] = None,
|
|
42850
43380
|
min_capacity: typing.Optional[jsii.Number] = None,
|
|
42851
43381
|
start_time: typing.Optional[datetime.datetime] = None,
|
|
43382
|
+
time_zone: typing.Optional[_TimeZone_cdd72ac9] = None,
|
|
42852
43383
|
) -> None:
|
|
42853
43384
|
"""Type checking stubs"""
|
|
42854
43385
|
pass
|
|
@@ -43126,6 +43657,7 @@ def _typecheckingstub__8fe416001b357a118b80b0f9e3432c5bffbeffe29c2f7e67a02e5589c
|
|
|
43126
43657
|
command: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
43127
43658
|
container_name: typing.Optional[builtins.str] = None,
|
|
43128
43659
|
cpu: typing.Optional[jsii.Number] = None,
|
|
43660
|
+
credential_specs: typing.Optional[typing.Sequence[CredentialSpec]] = None,
|
|
43129
43661
|
disable_networking: typing.Optional[builtins.bool] = None,
|
|
43130
43662
|
dns_search_domains: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
43131
43663
|
dns_servers: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
@@ -43174,6 +43706,7 @@ def _typecheckingstub__a448c235107c9543bb055362134e3500d0a20b6f51e433675f952a773
|
|
|
43174
43706
|
command: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
43175
43707
|
container_name: typing.Optional[builtins.str] = None,
|
|
43176
43708
|
cpu: typing.Optional[jsii.Number] = None,
|
|
43709
|
+
credential_specs: typing.Optional[typing.Sequence[CredentialSpec]] = None,
|
|
43177
43710
|
disable_networking: typing.Optional[builtins.bool] = None,
|
|
43178
43711
|
dns_search_domains: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
43179
43712
|
dns_servers: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
@@ -43803,6 +44336,7 @@ def _typecheckingstub__e16f7a8ab558d24dc81cd83e043fb5a8b37369f32cee89bd310588535
|
|
|
43803
44336
|
command: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
43804
44337
|
container_name: typing.Optional[builtins.str] = None,
|
|
43805
44338
|
cpu: typing.Optional[jsii.Number] = None,
|
|
44339
|
+
credential_specs: typing.Optional[typing.Sequence[CredentialSpec]] = None,
|
|
43806
44340
|
disable_networking: typing.Optional[builtins.bool] = None,
|
|
43807
44341
|
dns_search_domains: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
43808
44342
|
dns_servers: typing.Optional[typing.Sequence[builtins.str]] = None,
|