aws-cdk-lib 2.158.0__py3-none-any.whl → 2.159.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 +36 -19
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.158.0.jsii.tgz → aws-cdk-lib@2.159.0.jsii.tgz} +0 -0
- aws_cdk/aws_amplify/__init__.py +22 -8
- aws_cdk/aws_apigatewayv2/__init__.py +30 -0
- aws_cdk/aws_appconfig/__init__.py +3 -3
- aws_cdk/aws_applicationinsights/__init__.py +544 -4
- aws_cdk/aws_applicationsignals/__init__.py +170 -142
- aws_cdk/aws_athena/__init__.py +15 -15
- aws_cdk/aws_auditmanager/__init__.py +5 -5
- aws_cdk/aws_bedrock/__init__.py +7 -7
- aws_cdk/aws_codebuild/__init__.py +39 -18
- aws_cdk/aws_codeconnections/__init__.py +1 -1
- aws_cdk/aws_cognito/__init__.py +390 -203
- aws_cdk/aws_connect/__init__.py +1679 -152
- aws_cdk/aws_datazone/__init__.py +665 -40
- aws_cdk/aws_docdb/__init__.py +6 -1
- aws_cdk/aws_dynamodb/__init__.py +5 -5
- aws_cdk/aws_ec2/__init__.py +121 -36
- aws_cdk/aws_ecr/__init__.py +14 -6
- aws_cdk/aws_ecs/__init__.py +20 -20
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +167 -20
- aws_cdk/aws_emr/__init__.py +8 -8
- aws_cdk/aws_events/__init__.py +19 -17
- aws_cdk/aws_events_targets/__init__.py +165 -85
- aws_cdk/aws_fms/__init__.py +59 -0
- aws_cdk/aws_fsx/__init__.py +3 -3
- aws_cdk/aws_gamelift/__init__.py +40 -52
- aws_cdk/aws_globalaccelerator/__init__.py +22 -29
- aws_cdk/aws_iam/__init__.py +22 -20
- aws_cdk/aws_iotfleetwise/__init__.py +419 -0
- aws_cdk/aws_iotsitewise/__init__.py +90 -1
- aws_cdk/aws_iotwireless/__init__.py +205 -0
- aws_cdk/aws_lambda/__init__.py +129 -16
- aws_cdk/aws_lex/__init__.py +15 -1
- aws_cdk/aws_logs/__init__.py +1 -1
- aws_cdk/aws_mediaconnect/__init__.py +111 -0
- aws_cdk/aws_medialive/__init__.py +7988 -3262
- aws_cdk/aws_msk/__init__.py +287 -479
- aws_cdk/aws_opensearchservice/__init__.py +6 -0
- aws_cdk/aws_pcaconnectorscep/__init__.py +69 -30
- aws_cdk/aws_pipes/__init__.py +49 -0
- aws_cdk/aws_qbusiness/__init__.py +11 -14
- aws_cdk/aws_quicksight/__init__.py +638 -99
- aws_cdk/aws_rds/__init__.py +38 -27
- aws_cdk/aws_s3/__init__.py +215 -33
- aws_cdk/aws_s3objectlambda/__init__.py +2 -2
- aws_cdk/aws_sagemaker/__init__.py +872 -58
- aws_cdk/aws_secretsmanager/__init__.py +22 -8
- aws_cdk/aws_securityhub/__init__.py +261 -19
- aws_cdk/aws_securitylake/__init__.py +327 -7
- aws_cdk/aws_servicediscovery/__init__.py +5 -5
- aws_cdk/aws_sns/__init__.py +0 -8
- aws_cdk/aws_ssm/__init__.py +20 -12
- aws_cdk/aws_stepfunctions_tasks/__init__.py +36 -0
- aws_cdk/cx_api/__init__.py +19 -0
- {aws_cdk_lib-2.158.0.dist-info → aws_cdk_lib-2.159.0.dist-info}/METADATA +1 -1
- {aws_cdk_lib-2.158.0.dist-info → aws_cdk_lib-2.159.0.dist-info}/RECORD +62 -62
- {aws_cdk_lib-2.158.0.dist-info → aws_cdk_lib-2.159.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.158.0.dist-info → aws_cdk_lib-2.159.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.158.0.dist-info → aws_cdk_lib-2.159.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.158.0.dist-info → aws_cdk_lib-2.159.0.dist-info}/top_level.txt +0 -0
aws_cdk/aws_ecs/__init__.py
CHANGED
|
@@ -12644,7 +12644,7 @@ class CfnTaskDefinition(
|
|
|
12644
12644
|
Container definitions are used in task definitions to describe the different containers that are launched as part of a task.
|
|
12645
12645
|
|
|
12646
12646
|
:param image: The image used to start a container. This string is passed directly to the Docker daemon. By default, images in the Docker Hub registry are available. Other repositories are specified with either ``*repository-url* / *image* : *tag*`` or ``*repository-url* / *image* @ *digest*`` . Up to 255 letters (uppercase and lowercase), numbers, hyphens, underscores, colons, periods, forward slashes, and number signs are allowed. This parameter maps to ``Image`` in the docker container create command and the ``IMAGE`` parameter of docker run. - When a new task starts, the Amazon ECS container agent pulls the latest version of the specified image and tag for the container to use. However, subsequent updates to a repository image aren't propagated to already running tasks. - Images in Amazon ECR repositories can be specified by either using the full ``registry/repository:tag`` or ``registry/repository@digest`` . For example, ``012345678910.dkr.ecr.<region-name>.amazonaws.com/<repository-name>:latest`` or ``012345678910.dkr.ecr.<region-name>.amazonaws.com/<repository-name>@sha256:94afd1f2e64d908bc90dbca0035a5b567EXAMPLE`` . - Images in official repositories on Docker Hub use a single name (for example, ``ubuntu`` or ``mongo`` ). - Images in other repositories on Docker Hub are qualified with an organization name (for example, ``amazon/amazon-ecs-agent`` ). - Images in other online repositories are qualified further by a domain name (for example, ``quay.io/assemblyline/ubuntu`` ).
|
|
12647
|
-
:param name: The name of a container. If you're linking multiple containers together in a task definition, the ``name`` of one container can be entered in the ``links`` of another container to connect the containers. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed. This parameter maps to ``name`` in
|
|
12647
|
+
:param name: The name of a container. If you're linking multiple containers together in a task definition, the ``name`` of one container can be entered in the ``links`` of another container to connect the containers. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed. This parameter maps to ``name`` in the docker container create command and the ``--name`` option to docker run.
|
|
12648
12648
|
:param command: The command that's passed to the container. This parameter maps to ``Cmd`` in the docker container create command and the ``COMMAND`` parameter to docker run. If there are multiple arguments, each argument is a separated string in the array.
|
|
12649
12649
|
:param cpu: The number of ``cpu`` units reserved for the container. This parameter maps to ``CpuShares`` in the docker container create commandand the ``--cpu-shares`` option to docker run. This field is optional for tasks using the Fargate launch type, and the only requirement is that the total amount of CPU reserved for all containers within a task be lower than the task-level ``cpu`` value. .. epigraph:: You can determine the number of CPU units that are available per EC2 instance type by multiplying the vCPUs listed for that instance type on the `Amazon EC2 Instances <https://docs.aws.amazon.com/ec2/instance-types/>`_ detail page by 1,024. Linux containers share unallocated CPU units with other containers on the container instance with the same ratio as their allocated amount. For example, if you run a single-container task on a single-core instance type with 512 CPU units specified for that container, and that's the only task running on the container instance, that container could use the full 1,024 CPU unit share at any given time. However, if you launched another copy of the same task on that container instance, each task is guaranteed a minimum of 512 CPU units when needed. Moreover, each container could float to higher CPU usage if the other container was not using it. If both tasks were 100% active all of the time, they would be limited to 512 CPU units. On Linux container instances, the Docker daemon on the container instance uses the CPU value to calculate the relative CPU share ratios for running containers. The minimum valid CPU share value that the Linux kernel allows is 2, and the maximum valid CPU share value that the Linux kernel allows is 262144. However, the CPU parameter isn't required, and you can use CPU values below 2 or above 262144 in your container definitions. For CPU values below 2 (including null) or above 262144, the behavior varies based on your Amazon ECS container agent version: - *Agent versions less than or equal to 1.1.0:* Null and zero CPU values are passed to Docker as 0, which Docker then converts to 1,024 CPU shares. CPU values of 1 are passed to Docker as 1, which the Linux kernel converts to two CPU shares. - *Agent versions greater than or equal to 1.2.0:* Null, zero, and CPU values of 1 are passed to Docker as 2. - *Agent versions greater than or equal to 1.84.0:* CPU values greater than 256 vCPU are passed to Docker as 256, which is equivalent to 262144 CPU shares. On Windows container instances, the CPU limit is enforced as an absolute limit, or a quota. Windows containers only have access to the specified amount of CPU that's described in the task definition. A null or zero CPU value is passed to Docker as ``0`` , which Windows interprets as 1% of one CPU.
|
|
12650
12650
|
: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`` . The maximum number of ARNs is 1. There are two formats for each ARN. - **credentialspecdomainless:MyARN** - You use ``credentialspecdomainless:MyARN`` to provide a ``CredSpec`` with an additional section for a secret in AWS Secrets Manager . You provide the login credentials to the domain in the secret. Each task that runs on any container instance can join different domains. You can use this format without joining the container instance to a domain. - **credentialspec:MyARN** - You use ``credentialspec:MyARN`` to provide a ``CredSpec`` for a single domain. You must join the container instance to the domain before you start any tasks that use this task definition. In both formats, replace ``MyARN`` with the ARN in SSM or Amazon S3. If you provide a ``credentialspecdomainless:MyARN`` , the ``credspec`` must provide a ARN in AWS Secrets Manager for a secret containing the username, password, and the domain to connect to. For better security, the instance isn't joined to the domain for domainless authentication. Other applications on the instance can't use the domainless credentials. You can use this parameter to run tasks on the same instance, even it the tasks need to join different domains. For more information, see `Using gMSAs for Windows Containers <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/windows-gmsa.html>`_ and `Using gMSAs for Linux Containers <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/linux-gmsa.html>`_ .
|
|
@@ -12654,14 +12654,14 @@ class CfnTaskDefinition(
|
|
|
12654
12654
|
:param dns_servers: A list of DNS servers that are presented to the container. This parameter maps to ``Dns`` in the docker container create command and the ``--dns`` option to docker run. .. epigraph:: This parameter is not supported for Windows containers.
|
|
12655
12655
|
:param docker_labels: A key/value map of labels to add to the container. This parameter maps to ``Labels`` in the docker container create command and the ``--label`` option to docker run. This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: ``sudo docker version --format '{{.Server.APIVersion}}'``
|
|
12656
12656
|
:param docker_security_options: A list of strings to provide custom configuration for multiple security systems. This field isn't valid for containers in tasks using the Fargate launch type. For Linux tasks on EC2, this parameter can be used to reference custom labels for SELinux and AppArmor multi-level security systems. For any tasks on EC2, this parameter can be used to reference a credential spec file that configures a container for Active Directory authentication. For more information, see `Using gMSAs for Windows Containers <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/windows-gmsa.html>`_ and `Using gMSAs for Linux Containers <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/linux-gmsa.html>`_ in the *Amazon Elastic Container Service Developer Guide* . This parameter maps to ``SecurityOpt`` in the docker container create command and the ``--security-opt`` option to docker run. .. epigraph:: The Amazon ECS container agent running on a container instance must register with the ``ECS_SELINUX_CAPABLE=true`` or ``ECS_APPARMOR_CAPABLE=true`` environment variables before containers placed on that instance can use these security options. For more information, see `Amazon ECS Container Agent Configuration <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-config.html>`_ in the *Amazon Elastic Container Service Developer Guide* . Valid values: "no-new-privileges" | "apparmor:PROFILE" | "label:value" | "credentialspec:CredentialSpecFilePath"
|
|
12657
|
-
:param entry_point: .. epigraph:: Early versions of the Amazon ECS container agent don't properly handle ``entryPoint`` parameters. If you have problems using ``entryPoint`` , update your container agent or enter your commands and arguments as ``command`` array items instead. The entry point that's passed to the container. This parameter maps to ``Entrypoint`` in
|
|
12657
|
+
:param entry_point: .. epigraph:: Early versions of the Amazon ECS container agent don't properly handle ``entryPoint`` parameters. If you have problems using ``entryPoint`` , update your container agent or enter your commands and arguments as ``command`` array items instead. The entry point that's passed to the container. This parameter maps to ``Entrypoint`` in the docker container create command and the ``--entrypoint`` option to docker run.
|
|
12658
12658
|
:param environment: The environment variables to pass to a container. This parameter maps to ``Env`` in the docker container create command and the ``--env`` option to docker run. .. epigraph:: We don't recommend that you use plaintext environment variables for sensitive information, such as credential data.
|
|
12659
12659
|
:param environment_files: A list of files containing the environment variables to pass to a container. This parameter maps to the ``--env-file`` option to docker run. You can specify up to ten environment files. The file must have a ``.env`` file extension. Each line in an environment file contains an environment variable in ``VARIABLE=VALUE`` format. Lines beginning with ``#`` are treated as comments and are ignored. If there are environment variables specified using the ``environment`` parameter in a container definition, they take precedence over the variables contained within an environment file. If multiple environment files are specified that contain the same variable, they're processed from the top down. We recommend that you use unique variable names. For more information, see `Specifying Environment Variables <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/taskdef-envfiles.html>`_ in the *Amazon Elastic Container Service Developer Guide* .
|
|
12660
12660
|
:param essential: If the ``essential`` parameter of a container is marked as ``true`` , and that container fails or stops for any reason, all other containers that are part of the task are stopped. If the ``essential`` parameter of a container is marked as ``false`` , its failure doesn't affect the rest of the containers in a task. If this parameter is omitted, a container is assumed to be essential. All tasks must have at least one essential container. If you have an application that's composed of multiple containers, group containers that are used for a common purpose into components, and separate the different components into multiple task definitions. For more information, see `Application Architecture <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/application_architecture.html>`_ in the *Amazon Elastic Container Service Developer Guide* .
|
|
12661
12661
|
:param extra_hosts: A list of hostnames and IP address mappings to append to the ``/etc/hosts`` file on the container. This parameter maps to ``ExtraHosts`` in the docker container create command and the ``--add-host`` option to docker run. .. epigraph:: This parameter isn't supported for Windows containers or tasks that use the ``awsvpc`` network mode.
|
|
12662
12662
|
:param firelens_configuration: The FireLens configuration for the container. This is used to specify and configure a log router for container logs. For more information, see `Custom Log Routing <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_firelens.html>`_ in the *Amazon Elastic Container Service Developer Guide* .
|
|
12663
12663
|
:param health_check: The container health check command and associated configuration parameters for the container. This parameter maps to ``HealthCheck`` in the docker container create command and the ``HEALTHCHECK`` parameter of docker run.
|
|
12664
|
-
:param hostname: The hostname to use for your container. This parameter maps to ``Hostname`` in
|
|
12664
|
+
:param hostname: The hostname to use for your container. This parameter maps to ``Hostname`` in the docker container create command and the ``--hostname`` option to docker run. .. epigraph:: The ``hostname`` parameter is not supported if you're using the ``awsvpc`` network mode.
|
|
12665
12665
|
:param interactive: When this parameter is ``true`` , you can deploy containerized applications that require ``stdin`` or a ``tty`` to be allocated. This parameter maps to ``OpenStdin`` in the docker container create command and the ``--interactive`` option to docker run.
|
|
12666
12666
|
:param links: The ``links`` parameter allows containers to communicate with each other without the need for port mappings. This parameter is only supported if the network mode of a task definition is ``bridge`` . The ``name:internalName`` construct is analogous to ``name:alias`` in Docker links. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed.. This parameter maps to ``Links`` in the docker container create command and the ``--link`` option to docker run. .. epigraph:: This parameter is not supported for Windows containers. > Containers that are collocated on a single container instance may be able to communicate with each other without requiring links or host port mappings. Network isolation is achieved on the container instance using security groups and VPC settings.
|
|
12667
12667
|
:param linux_parameters: Linux-specific modifications that are applied to the container, such as Linux kernel capabilities. For more information see `KernelCapabilities <https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_KernelCapabilities.html>`_ . .. epigraph:: This parameter is not supported for Windows containers.
|
|
@@ -12671,18 +12671,18 @@ class CfnTaskDefinition(
|
|
|
12671
12671
|
:param mount_points: The mount points for data volumes in your container. This parameter maps to ``Volumes`` in the docker container create command and the ``--volume`` option to docker run. Windows containers can mount whole directories on the same drive as ``$env:ProgramData`` . Windows containers can't mount directories on a different drive, and mount point can't be across drives.
|
|
12672
12672
|
:param port_mappings: The list of port mappings for the container. Port mappings allow containers to access ports on the host container instance to send or receive traffic. For task definitions that use the ``awsvpc`` network mode, you should only specify the ``containerPort`` . The ``hostPort`` can be left blank or it must be the same value as the ``containerPort`` . Port mappings on Windows use the ``NetNAT`` gateway address rather than ``localhost`` . There is no loopback for port mappings on Windows, so you cannot access a container's mapped port from the host itself. This parameter maps to ``PortBindings`` 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 ``--publish`` option to `docker run <https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/>`_ . If the network mode of a task definition is set to ``none`` , then you can't specify port mappings. If the network mode of a task definition is set to ``host`` , then host ports must either be undefined or they must match the container port in the port mapping. .. epigraph:: After a task reaches the ``RUNNING`` status, manual and automatic host and container port assignments are visible in the *Network Bindings* section of a container description for a selected task in the Amazon ECS console. The assignments are also visible in the ``networkBindings`` section `DescribeTasks <https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DescribeTasks.html>`_ responses.
|
|
12673
12673
|
:param privileged: When this parameter is true, the container is given elevated privileges on the host container instance (similar to the ``root`` user). This parameter maps to ``Privileged`` in the docker container create command and the ``--privileged`` option to docker run .. epigraph:: This parameter is not supported for Windows containers or tasks run on AWS Fargate .
|
|
12674
|
-
:param pseudo_terminal: When this parameter is ``true`` , a TTY is allocated. This parameter maps to ``Tty`` in
|
|
12674
|
+
:param pseudo_terminal: When this parameter is ``true`` , a TTY is allocated. This parameter maps to ``Tty`` in the docker container create command and the ``--tty`` option to docker run.
|
|
12675
12675
|
:param readonly_root_filesystem: When this parameter is true, the container is given read-only access to its root file system. This parameter maps to ``ReadonlyRootfs`` in the docker container create command and the ``--read-only`` option to docker run. .. epigraph:: This parameter is not supported for Windows containers.
|
|
12676
12676
|
:param repository_credentials: The private repository authentication credentials to use.
|
|
12677
12677
|
:param resource_requirements: The type and amount of a resource to assign to a container. The only supported resource is a GPU.
|
|
12678
12678
|
:param restart_policy: The restart policy for a container. When you set up a restart policy, Amazon ECS can restart the container without needing to replace the task. For more information, see `Restart individual containers in Amazon ECS tasks with container restart policies <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/container-restart-policy.html>`_ in the *Amazon Elastic Container Service Developer Guide* .
|
|
12679
12679
|
:param secrets: The secrets to pass to the container. For more information, see `Specifying Sensitive Data <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/specifying-sensitive-data.html>`_ in the *Amazon Elastic Container Service Developer Guide* .
|
|
12680
12680
|
:param start_timeout: Time duration (in seconds) to wait before giving up on resolving dependencies for a container. For example, you specify two containers in a task definition with containerA having a dependency on containerB reaching a ``COMPLETE`` , ``SUCCESS`` , or ``HEALTHY`` status. If a ``startTimeout`` value is specified for containerB and it doesn't reach the desired status within that time then containerA gives up and not start. This results in the task transitioning to a ``STOPPED`` state. .. epigraph:: When the ``ECS_CONTAINER_START_TIMEOUT`` container agent configuration variable is used, it's enforced independently from this start timeout value. For tasks using the Fargate launch type, the task or service requires the following platforms: - Linux platform version ``1.3.0`` or later. - Windows platform version ``1.0.0`` or later. For tasks using the EC2 launch type, your container instances require at least version ``1.26.0`` of the container agent to use a container start timeout value. However, we recommend using the latest container agent version. For information about checking your agent version and updating to the latest version, see `Updating the Amazon ECS Container Agent <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-update.html>`_ in the *Amazon Elastic Container Service Developer Guide* . If you're using an Amazon ECS-optimized Linux AMI, your instance needs at least version ``1.26.0-1`` of the ``ecs-init`` package. If your container instances are launched from version ``20190301`` or later, then they contain the required versions of the container agent and ``ecs-init`` . For more information, see `Amazon ECS-optimized Linux AMI <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html>`_ in the *Amazon Elastic Container Service Developer Guide* . The valid values for Fargate are 2-120 seconds.
|
|
12681
|
-
:param stop_timeout: Time duration (in seconds) to wait before the container is forcefully killed if it doesn't exit normally on its own. For tasks using the Fargate launch type, the task or service requires the following platforms: - Linux platform version ``1.3.0`` or later. - Windows platform version ``1.0.0`` or later.
|
|
12682
|
-
:param system_controls: A list of namespaced kernel parameters to set in the container. This parameter maps to ``Sysctls`` in
|
|
12681
|
+
:param stop_timeout: Time duration (in seconds) to wait before the container is forcefully killed if it doesn't exit normally on its own. For tasks using the Fargate launch type, the task or service requires the following platforms: - Linux platform version ``1.3.0`` or later. - Windows platform version ``1.0.0`` or later. For tasks that use the Fargate launch type, the max stop timeout value is 120 seconds and if the parameter is not specified, the default value of 30 seconds is used. For tasks that use the EC2 launch type, if the ``stopTimeout`` parameter isn't specified, the value set for the Amazon ECS container agent configuration variable ``ECS_CONTAINER_STOP_TIMEOUT`` is used. If neither the ``stopTimeout`` parameter or the ``ECS_CONTAINER_STOP_TIMEOUT`` agent configuration variable are set, then the default values of 30 seconds for Linux containers and 30 seconds on Windows containers are used. Your container instances require at least version 1.26.0 of the container agent to use a container stop timeout value. However, we recommend using the latest container agent version. For information about checking your agent version and updating to the latest version, see `Updating the Amazon ECS Container Agent <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-update.html>`_ in the *Amazon Elastic Container Service Developer Guide* . If you're using an Amazon ECS-optimized Linux AMI, your instance needs at least version 1.26.0-1 of the ``ecs-init`` package. If your container instances are launched from version ``20190301`` or later, then they contain the required versions of the container agent and ``ecs-init`` . For more information, see `Amazon ECS-optimized Linux AMI <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html>`_ in the *Amazon Elastic Container Service Developer Guide* . The valid values for Fargate are 2-120 seconds.
|
|
12682
|
+
:param system_controls: A list of namespaced kernel parameters to set in the container. This parameter maps to ``Sysctls`` in the docker container create command and the ``--sysctl`` option to docker run. For example, you can configure ``net.ipv4.tcp_keepalive_time`` setting to maintain longer lived connections.
|
|
12683
12683
|
:param ulimits: A list of ``ulimits`` to set in the container. This parameter maps to ``Ulimits`` 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 ``--ulimit`` option to `docker run <https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/>`_ . Valid naming values are displayed in the `Ulimit <https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_Ulimit.html>`_ data type. This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: ``sudo docker version --format '{{.Server.APIVersion}}'`` .. epigraph:: This parameter is not supported for Windows containers.
|
|
12684
12684
|
:param user: The user to use inside the container. This parameter maps to ``User`` in the docker container create command and the ``--user`` option to docker run. .. epigraph:: When running tasks using the ``host`` network mode, don't run containers using the root user (UID 0). We recommend using a non-root user for better security. You can specify the ``user`` using the following formats. If specifying a UID or GID, you must specify it as a positive integer. - ``user`` - ``user:group`` - ``uid`` - ``uid:gid`` - ``user:gid`` - ``uid:group`` .. epigraph:: This parameter is not supported for Windows containers.
|
|
12685
|
-
:param volumes_from: Data volumes to mount from another container. This parameter maps to ``VolumesFrom`` in
|
|
12685
|
+
:param volumes_from: Data volumes to mount from another container. This parameter maps to ``VolumesFrom`` in the docker container create command and the ``--volumes-from`` option to docker run.
|
|
12686
12686
|
:param working_directory: The working directory to run commands inside the container in. This parameter maps to ``WorkingDir`` in the docker container create command and the ``--workdir`` option to docker run.
|
|
12687
12687
|
|
|
12688
12688
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinition.html
|
|
@@ -12978,7 +12978,7 @@ class CfnTaskDefinition(
|
|
|
12978
12978
|
def name(self) -> builtins.str:
|
|
12979
12979
|
'''The name of a container.
|
|
12980
12980
|
|
|
12981
|
-
If you're linking multiple containers together in a task definition, the ``name`` of one container can be entered in the ``links`` of another container to connect the containers. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed. This parameter maps to ``name`` in
|
|
12981
|
+
If you're linking multiple containers together in a task definition, the ``name`` of one container can be entered in the ``links`` of another container to connect the containers. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed. This parameter maps to ``name`` in the docker container create command and the ``--name`` option to docker run.
|
|
12982
12982
|
|
|
12983
12983
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinition.html#cfn-ecs-taskdefinition-containerdefinition-name
|
|
12984
12984
|
'''
|
|
@@ -13159,7 +13159,7 @@ class CfnTaskDefinition(
|
|
|
13159
13159
|
|
|
13160
13160
|
If you have problems using ``entryPoint`` , update your container agent or enter your commands and arguments as ``command`` array items instead.
|
|
13161
13161
|
|
|
13162
|
-
The entry point that's passed to the container. This parameter maps to ``Entrypoint`` in
|
|
13162
|
+
The entry point that's passed to the container. This parameter maps to ``Entrypoint`` in the docker container create command and the ``--entrypoint`` option to docker run.
|
|
13163
13163
|
|
|
13164
13164
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinition.html#cfn-ecs-taskdefinition-containerdefinition-entrypoint
|
|
13165
13165
|
'''
|
|
@@ -13260,7 +13260,7 @@ class CfnTaskDefinition(
|
|
|
13260
13260
|
def hostname(self) -> typing.Optional[builtins.str]:
|
|
13261
13261
|
'''The hostname to use for your container.
|
|
13262
13262
|
|
|
13263
|
-
This parameter maps to ``Hostname`` in
|
|
13263
|
+
This parameter maps to ``Hostname`` in the docker container create command and the ``--hostname`` option to docker run.
|
|
13264
13264
|
.. epigraph::
|
|
13265
13265
|
|
|
13266
13266
|
The ``hostname`` parameter is not supported if you're using the ``awsvpc`` network mode.
|
|
@@ -13430,7 +13430,7 @@ class CfnTaskDefinition(
|
|
|
13430
13430
|
) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
|
|
13431
13431
|
'''When this parameter is ``true`` , a TTY is allocated.
|
|
13432
13432
|
|
|
13433
|
-
This parameter maps to ``Tty`` in
|
|
13433
|
+
This parameter maps to ``Tty`` in the docker container create command and the ``--tty`` option to docker run.
|
|
13434
13434
|
|
|
13435
13435
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinition.html#cfn-ecs-taskdefinition-containerdefinition-pseudoterminal
|
|
13436
13436
|
'''
|
|
@@ -13535,11 +13535,11 @@ class CfnTaskDefinition(
|
|
|
13535
13535
|
- Linux platform version ``1.3.0`` or later.
|
|
13536
13536
|
- Windows platform version ``1.0.0`` or later.
|
|
13537
13537
|
|
|
13538
|
-
|
|
13538
|
+
For tasks that use the Fargate launch type, the max stop timeout value is 120 seconds and if the parameter is not specified, the default value of 30 seconds is used.
|
|
13539
13539
|
|
|
13540
13540
|
For tasks that use the EC2 launch type, if the ``stopTimeout`` parameter isn't specified, the value set for the Amazon ECS container agent configuration variable ``ECS_CONTAINER_STOP_TIMEOUT`` is used. If neither the ``stopTimeout`` parameter or the ``ECS_CONTAINER_STOP_TIMEOUT`` agent configuration variable are set, then the default values of 30 seconds for Linux containers and 30 seconds on Windows containers are used. Your container instances require at least version 1.26.0 of the container agent to use a container stop timeout value. However, we recommend using the latest container agent version. For information about checking your agent version and updating to the latest version, see `Updating the Amazon ECS Container Agent <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-update.html>`_ in the *Amazon Elastic Container Service Developer Guide* . If you're using an Amazon ECS-optimized Linux AMI, your instance needs at least version 1.26.0-1 of the ``ecs-init`` package. If your container instances are launched from version ``20190301`` or later, then they contain the required versions of the container agent and ``ecs-init`` . For more information, see `Amazon ECS-optimized Linux AMI <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html>`_ in the *Amazon Elastic Container Service Developer Guide* .
|
|
13541
13541
|
|
|
13542
|
-
The valid values are 2-120 seconds.
|
|
13542
|
+
The valid values for Fargate are 2-120 seconds.
|
|
13543
13543
|
|
|
13544
13544
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinition.html#cfn-ecs-taskdefinition-containerdefinition-stoptimeout
|
|
13545
13545
|
'''
|
|
@@ -13552,7 +13552,7 @@ class CfnTaskDefinition(
|
|
|
13552
13552
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnTaskDefinition.SystemControlProperty"]]]]:
|
|
13553
13553
|
'''A list of namespaced kernel parameters to set in the container.
|
|
13554
13554
|
|
|
13555
|
-
This parameter maps to ``Sysctls`` in
|
|
13555
|
+
This parameter maps to ``Sysctls`` in the docker container create command and the ``--sysctl`` option to docker run. For example, you can configure ``net.ipv4.tcp_keepalive_time`` setting to maintain longer lived connections.
|
|
13556
13556
|
|
|
13557
13557
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinition.html#cfn-ecs-taskdefinition-containerdefinition-systemcontrols
|
|
13558
13558
|
'''
|
|
@@ -13608,7 +13608,7 @@ class CfnTaskDefinition(
|
|
|
13608
13608
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnTaskDefinition.VolumeFromProperty"]]]]:
|
|
13609
13609
|
'''Data volumes to mount from another container.
|
|
13610
13610
|
|
|
13611
|
-
This parameter maps to ``VolumesFrom`` in
|
|
13611
|
+
This parameter maps to ``VolumesFrom`` in the docker container create command and the ``--volumes-from`` option to docker run.
|
|
13612
13612
|
|
|
13613
13613
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinition.html#cfn-ecs-taskdefinition-containerdefinition-volumesfrom
|
|
13614
13614
|
'''
|
|
@@ -14546,7 +14546,7 @@ class CfnTaskDefinition(
|
|
|
14546
14546
|
- Container health checks are supported for Fargate tasks if you are using platform version 1.1.0 or greater. For more information, see `AWS Fargate Platform Versions <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html>`_ .
|
|
14547
14547
|
- Container health checks are not supported for tasks that are part of a service that is configured to use a Classic Load Balancer.
|
|
14548
14548
|
|
|
14549
|
-
:param command: A string array representing the command that the container runs to determine if it is healthy. The string array must start with ``CMD`` to run the command arguments directly, or ``CMD-SHELL`` to run the command with the container's default shell. When you use the AWS Management Console JSON panel, the AWS Command Line Interface , or the APIs, enclose the list of commands in double quotes and brackets. ``[ "CMD-SHELL", "curl -f http://localhost/ || exit 1" ]`` You don't include the double quotes and brackets when you use the AWS Management Console. ``CMD-SHELL, curl -f http://localhost/ || exit 1`` An exit code of 0 indicates success, and non-zero exit code indicates failure. For more information, see ``HealthCheck`` in
|
|
14549
|
+
:param command: A string array representing the command that the container runs to determine if it is healthy. The string array must start with ``CMD`` to run the command arguments directly, or ``CMD-SHELL`` to run the command with the container's default shell. When you use the AWS Management Console JSON panel, the AWS Command Line Interface , or the APIs, enclose the list of commands in double quotes and brackets. ``[ "CMD-SHELL", "curl -f http://localhost/ || exit 1" ]`` You don't include the double quotes and brackets when you use the AWS Management Console. ``CMD-SHELL, curl -f http://localhost/ || exit 1`` An exit code of 0 indicates success, and non-zero exit code indicates failure. For more information, see ``HealthCheck`` in the docker container create command
|
|
14550
14550
|
:param interval: The time period in seconds between each health check execution. You may specify between 5 and 300 seconds. The default value is 30 seconds.
|
|
14551
14551
|
:param retries: The number of times to retry a failed health check before the container is considered unhealthy. You may specify between 1 and 10 retries. The default value is 3.
|
|
14552
14552
|
:param start_period: The optional grace period to provide containers time to bootstrap before failed health checks count towards the maximum number of retries. You can specify between 0 and 300 seconds. By default, the ``startPeriod`` is off. .. epigraph:: If a health check succeeds within the ``startPeriod`` , then the container is considered healthy and any subsequent failures count toward the maximum number of retries.
|
|
@@ -14602,7 +14602,7 @@ class CfnTaskDefinition(
|
|
|
14602
14602
|
|
|
14603
14603
|
``CMD-SHELL, curl -f http://localhost/ || exit 1``
|
|
14604
14604
|
|
|
14605
|
-
An exit code of 0 indicates success, and non-zero exit code indicates failure. For more information, see ``HealthCheck`` in
|
|
14605
|
+
An exit code of 0 indicates success, and non-zero exit code indicates failure. For more information, see ``HealthCheck`` in the docker container create command
|
|
14606
14606
|
|
|
14607
14607
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-healthcheck.html#cfn-ecs-taskdefinition-healthcheck-command
|
|
14608
14608
|
'''
|
|
@@ -15055,7 +15055,7 @@ class CfnTaskDefinition(
|
|
|
15055
15055
|
'''The Linux-specific options that are applied to the container, such as Linux `KernelCapabilities <https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_KernelCapabilities.html>`_ .
|
|
15056
15056
|
|
|
15057
15057
|
:param capabilities: The Linux capabilities for the container that are added to or dropped from the default configuration provided by Docker. .. epigraph:: For tasks that use the Fargate launch type, ``capabilities`` is supported for all platform versions but the ``add`` parameter is only supported if using platform version 1.4.0 or later.
|
|
15058
|
-
:param devices: Any host devices to expose to the container. This parameter maps to ``Devices`` in
|
|
15058
|
+
:param devices: Any host devices to expose to the container. This parameter maps to ``Devices`` in the docker container create command and the ``--device`` option to docker run. .. epigraph:: If you're using tasks that use the Fargate launch type, the ``devices`` parameter isn't supported.
|
|
15059
15059
|
:param init_process_enabled: Run an ``init`` process inside the container that forwards signals and reaps processes. This parameter maps to the ``--init`` option to docker run. This parameter requires version 1.25 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: ``sudo docker version --format '{{.Server.APIVersion}}'``
|
|
15060
15060
|
:param max_swap: The total amount of swap memory (in MiB) a container can use. This parameter will be translated to the ``--memory-swap`` option to docker run where the value would be the sum of the container memory plus the ``maxSwap`` value. If a ``maxSwap`` value of ``0`` is specified, the container will not use swap. Accepted values are ``0`` or any positive integer. If the ``maxSwap`` parameter is omitted, the container will use the swap configuration for the container instance it is running on. A ``maxSwap`` value must be set for the ``swappiness`` parameter to be used. .. epigraph:: If you're using tasks that use the Fargate launch type, the ``maxSwap`` parameter isn't supported. If you're using tasks on Amazon Linux 2023 the ``swappiness`` parameter isn't supported.
|
|
15061
15061
|
:param shared_memory_size: The value for the size (in MiB) of the ``/dev/shm`` volume. This parameter maps to the ``--shm-size`` option to docker run. .. epigraph:: If you are using tasks that use the Fargate launch type, the ``sharedMemorySize`` parameter is not supported.
|
|
@@ -15140,7 +15140,7 @@ class CfnTaskDefinition(
|
|
|
15140
15140
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnTaskDefinition.DeviceProperty"]]]]:
|
|
15141
15141
|
'''Any host devices to expose to the container.
|
|
15142
15142
|
|
|
15143
|
-
This parameter maps to ``Devices`` in
|
|
15143
|
+
This parameter maps to ``Devices`` in the docker container create command and the ``--device`` option to docker run.
|
|
15144
15144
|
.. epigraph::
|
|
15145
15145
|
|
|
15146
15146
|
If you're using tasks that use the Fargate launch type, the ``devices`` parameter isn't supported.
|
|
@@ -16155,7 +16155,7 @@ class CfnTaskDefinition(
|
|
|
16155
16155
|
) -> None:
|
|
16156
16156
|
'''A list of namespaced kernel parameters to set in the container.
|
|
16157
16157
|
|
|
16158
|
-
This parameter maps to ``Sysctls`` in
|
|
16158
|
+
This parameter maps to ``Sysctls`` in the docker container create command and the ``--sysctl`` option to docker run. For example, you can configure ``net.ipv4.tcp_keepalive_time`` setting to maintain longer lived connections.
|
|
16159
16159
|
|
|
16160
16160
|
We don't recommend that you specify network-related ``systemControls`` parameters for multiple containers in a single task that also uses either the ``awsvpc`` or ``host`` network mode. Doing this has the following disadvantages:
|
|
16161
16161
|
|
|
@@ -198,6 +198,8 @@ If you do not provide any options for this method, it redirects HTTP port 80 to
|
|
|
198
198
|
By default all ingress traffic will be allowed on the source port. If you want to be more selective with your
|
|
199
199
|
ingress rules then set `open: false` and use the listener's `connections` object to selectively grant access to the listener.
|
|
200
200
|
|
|
201
|
+
**Note**: The `path` parameter must start with a `/`.
|
|
202
|
+
|
|
201
203
|
### Application Load Balancer attributes
|
|
202
204
|
|
|
203
205
|
You can modify attributes of Application Load Balancers:
|
|
@@ -289,6 +291,32 @@ lb = elbv2.ApplicationLoadBalancer(self, "LB", vpc=vpc)
|
|
|
289
291
|
lb.log_connection_logs(bucket)
|
|
290
292
|
```
|
|
291
293
|
|
|
294
|
+
### Dualstack Application Load Balancer
|
|
295
|
+
|
|
296
|
+
You can create a dualstack Network Load Balancer using the `ipAddressType` property:
|
|
297
|
+
|
|
298
|
+
```python
|
|
299
|
+
# vpc: ec2.Vpc
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
lb = elbv2.ApplicationLoadBalancer(self, "LB",
|
|
303
|
+
vpc=vpc,
|
|
304
|
+
ip_address_type=elbv2.IpAddressType.DUAL_STACK
|
|
305
|
+
)
|
|
306
|
+
```
|
|
307
|
+
|
|
308
|
+
By setting `DUAL_STACK_WITHOUT_PUBLIC_IPV4`, you can provision load balancers without public IPv4s
|
|
309
|
+
|
|
310
|
+
```python
|
|
311
|
+
# vpc: ec2.Vpc
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
lb = elbv2.ApplicationLoadBalancer(self, "LB",
|
|
315
|
+
vpc=vpc,
|
|
316
|
+
ip_address_type=elbv2.IpAddressType.DUAL_STACK_WITHOUT_PUBLIC_IPV4
|
|
317
|
+
)
|
|
318
|
+
```
|
|
319
|
+
|
|
292
320
|
## Defining a Network Load Balancer
|
|
293
321
|
|
|
294
322
|
Network Load Balancers are defined in a similar way to Application Load
|
|
@@ -3460,6 +3488,10 @@ class CfnListener(
|
|
|
3460
3488
|
certificates=[elbv2.CfnListener.CertificateProperty(
|
|
3461
3489
|
certificate_arn="certificateArn"
|
|
3462
3490
|
)],
|
|
3491
|
+
listener_attributes=[elbv2.CfnListener.ListenerAttributeProperty(
|
|
3492
|
+
key="key",
|
|
3493
|
+
value="value"
|
|
3494
|
+
)],
|
|
3463
3495
|
mutual_authentication=elbv2.CfnListener.MutualAuthenticationProperty(
|
|
3464
3496
|
ignore_client_certificate_expiry=False,
|
|
3465
3497
|
mode="mode",
|
|
@@ -3480,6 +3512,7 @@ class CfnListener(
|
|
|
3480
3512
|
load_balancer_arn: builtins.str,
|
|
3481
3513
|
alpn_policy: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
3482
3514
|
certificates: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnListener.CertificateProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
3515
|
+
listener_attributes: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnListener.ListenerAttributeProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
3483
3516
|
mutual_authentication: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnListener.MutualAuthenticationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
3484
3517
|
port: typing.Optional[jsii.Number] = None,
|
|
3485
3518
|
protocol: typing.Optional[builtins.str] = None,
|
|
@@ -3492,6 +3525,7 @@ class CfnListener(
|
|
|
3492
3525
|
:param load_balancer_arn: The Amazon Resource Name (ARN) of the load balancer.
|
|
3493
3526
|
:param alpn_policy: [TLS listener] The name of the Application-Layer Protocol Negotiation (ALPN) policy.
|
|
3494
3527
|
:param certificates: The default SSL server certificate for a secure listener. You must provide exactly one certificate if the listener protocol is HTTPS or TLS. To create a certificate list for a secure listener, use `AWS::ElasticLoadBalancingV2::ListenerCertificate <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-listenercertificate.html>`_ .
|
|
3528
|
+
:param listener_attributes:
|
|
3495
3529
|
:param mutual_authentication: The mutual authentication configuration information.
|
|
3496
3530
|
:param port: The port on which the load balancer is listening. You cannot specify a port for a Gateway Load Balancer.
|
|
3497
3531
|
:param protocol: The protocol for connections from clients to the load balancer. For Application Load Balancers, the supported protocols are HTTP and HTTPS. For Network Load Balancers, the supported protocols are TCP, TLS, UDP, and TCP_UDP. You can’t specify the UDP or TCP_UDP protocol if dual-stack mode is enabled. You cannot specify a protocol for a Gateway Load Balancer.
|
|
@@ -3506,6 +3540,7 @@ class CfnListener(
|
|
|
3506
3540
|
load_balancer_arn=load_balancer_arn,
|
|
3507
3541
|
alpn_policy=alpn_policy,
|
|
3508
3542
|
certificates=certificates,
|
|
3543
|
+
listener_attributes=listener_attributes,
|
|
3509
3544
|
mutual_authentication=mutual_authentication,
|
|
3510
3545
|
port=port,
|
|
3511
3546
|
protocol=protocol,
|
|
@@ -3623,6 +3658,23 @@ class CfnListener(
|
|
|
3623
3658
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
3624
3659
|
jsii.set(self, "certificates", value) # pyright: ignore[reportArgumentType]
|
|
3625
3660
|
|
|
3661
|
+
@builtins.property
|
|
3662
|
+
@jsii.member(jsii_name="listenerAttributes")
|
|
3663
|
+
def listener_attributes(
|
|
3664
|
+
self,
|
|
3665
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnListener.ListenerAttributeProperty"]]]]:
|
|
3666
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnListener.ListenerAttributeProperty"]]]], jsii.get(self, "listenerAttributes"))
|
|
3667
|
+
|
|
3668
|
+
@listener_attributes.setter
|
|
3669
|
+
def listener_attributes(
|
|
3670
|
+
self,
|
|
3671
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnListener.ListenerAttributeProperty"]]]],
|
|
3672
|
+
) -> None:
|
|
3673
|
+
if __debug__:
|
|
3674
|
+
type_hints = typing.get_type_hints(_typecheckingstub__3b1b9d350ce31742bfadffdc2323f76036aecec151afd7512bdaf44e71eda7fb)
|
|
3675
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
3676
|
+
jsii.set(self, "listenerAttributes", value) # pyright: ignore[reportArgumentType]
|
|
3677
|
+
|
|
3626
3678
|
@builtins.property
|
|
3627
3679
|
@jsii.member(jsii_name="mutualAuthentication")
|
|
3628
3680
|
def mutual_authentication(
|
|
@@ -4612,6 +4664,80 @@ class CfnListener(
|
|
|
4612
4664
|
k + "=" + repr(v) for k, v in self._values.items()
|
|
4613
4665
|
)
|
|
4614
4666
|
|
|
4667
|
+
@jsii.data_type(
|
|
4668
|
+
jsii_type="aws-cdk-lib.aws_elasticloadbalancingv2.CfnListener.ListenerAttributeProperty",
|
|
4669
|
+
jsii_struct_bases=[],
|
|
4670
|
+
name_mapping={"key": "key", "value": "value"},
|
|
4671
|
+
)
|
|
4672
|
+
class ListenerAttributeProperty:
|
|
4673
|
+
def __init__(
|
|
4674
|
+
self,
|
|
4675
|
+
*,
|
|
4676
|
+
key: typing.Optional[builtins.str] = None,
|
|
4677
|
+
value: typing.Optional[builtins.str] = None,
|
|
4678
|
+
) -> None:
|
|
4679
|
+
'''Information about a listener attribute.
|
|
4680
|
+
|
|
4681
|
+
:param key: The name of the attribute. The following attribute is supported by Network Load Balancers, and Gateway Load Balancers. - ``tcp.idle_timeout.seconds`` - The tcp idle timeout value, in seconds. The valid range is 60-6000 seconds. The default is 350 seconds.
|
|
4682
|
+
:param value: The value of the attribute.
|
|
4683
|
+
|
|
4684
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-listener-listenerattribute.html
|
|
4685
|
+
:exampleMetadata: fixture=_generated
|
|
4686
|
+
|
|
4687
|
+
Example::
|
|
4688
|
+
|
|
4689
|
+
# The code below shows an example of how to instantiate this type.
|
|
4690
|
+
# The values are placeholders you should change.
|
|
4691
|
+
from aws_cdk import aws_elasticloadbalancingv2 as elbv2
|
|
4692
|
+
|
|
4693
|
+
listener_attribute_property = elbv2.CfnListener.ListenerAttributeProperty(
|
|
4694
|
+
key="key",
|
|
4695
|
+
value="value"
|
|
4696
|
+
)
|
|
4697
|
+
'''
|
|
4698
|
+
if __debug__:
|
|
4699
|
+
type_hints = typing.get_type_hints(_typecheckingstub__0e09ea6213c5fb2125f07b2f54d7fe6ee24307939dcc06580928b2ef024c5d2f)
|
|
4700
|
+
check_type(argname="argument key", value=key, expected_type=type_hints["key"])
|
|
4701
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
4702
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
4703
|
+
if key is not None:
|
|
4704
|
+
self._values["key"] = key
|
|
4705
|
+
if value is not None:
|
|
4706
|
+
self._values["value"] = value
|
|
4707
|
+
|
|
4708
|
+
@builtins.property
|
|
4709
|
+
def key(self) -> typing.Optional[builtins.str]:
|
|
4710
|
+
'''The name of the attribute.
|
|
4711
|
+
|
|
4712
|
+
The following attribute is supported by Network Load Balancers, and Gateway Load Balancers.
|
|
4713
|
+
|
|
4714
|
+
- ``tcp.idle_timeout.seconds`` - The tcp idle timeout value, in seconds. The valid range is 60-6000 seconds. The default is 350 seconds.
|
|
4715
|
+
|
|
4716
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-listener-listenerattribute.html#cfn-elasticloadbalancingv2-listener-listenerattribute-key
|
|
4717
|
+
'''
|
|
4718
|
+
result = self._values.get("key")
|
|
4719
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
4720
|
+
|
|
4721
|
+
@builtins.property
|
|
4722
|
+
def value(self) -> typing.Optional[builtins.str]:
|
|
4723
|
+
'''The value of the attribute.
|
|
4724
|
+
|
|
4725
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-listener-listenerattribute.html#cfn-elasticloadbalancingv2-listener-listenerattribute-value
|
|
4726
|
+
'''
|
|
4727
|
+
result = self._values.get("value")
|
|
4728
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
4729
|
+
|
|
4730
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
4731
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
4732
|
+
|
|
4733
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
4734
|
+
return not (rhs == self)
|
|
4735
|
+
|
|
4736
|
+
def __repr__(self) -> str:
|
|
4737
|
+
return "ListenerAttributeProperty(%s)" % ", ".join(
|
|
4738
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
4739
|
+
)
|
|
4740
|
+
|
|
4615
4741
|
@jsii.data_type(
|
|
4616
4742
|
jsii_type="aws-cdk-lib.aws_elasticloadbalancingv2.CfnListener.MutualAuthenticationProperty",
|
|
4617
4743
|
jsii_struct_bases=[],
|
|
@@ -5282,6 +5408,7 @@ class CfnListenerCertificateProps:
|
|
|
5282
5408
|
"load_balancer_arn": "loadBalancerArn",
|
|
5283
5409
|
"alpn_policy": "alpnPolicy",
|
|
5284
5410
|
"certificates": "certificates",
|
|
5411
|
+
"listener_attributes": "listenerAttributes",
|
|
5285
5412
|
"mutual_authentication": "mutualAuthentication",
|
|
5286
5413
|
"port": "port",
|
|
5287
5414
|
"protocol": "protocol",
|
|
@@ -5296,6 +5423,7 @@ class CfnListenerProps:
|
|
|
5296
5423
|
load_balancer_arn: builtins.str,
|
|
5297
5424
|
alpn_policy: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
5298
5425
|
certificates: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnListener.CertificateProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
5426
|
+
listener_attributes: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnListener.ListenerAttributeProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
5299
5427
|
mutual_authentication: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnListener.MutualAuthenticationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
5300
5428
|
port: typing.Optional[jsii.Number] = None,
|
|
5301
5429
|
protocol: typing.Optional[builtins.str] = None,
|
|
@@ -5307,6 +5435,7 @@ class CfnListenerProps:
|
|
|
5307
5435
|
:param load_balancer_arn: The Amazon Resource Name (ARN) of the load balancer.
|
|
5308
5436
|
:param alpn_policy: [TLS listener] The name of the Application-Layer Protocol Negotiation (ALPN) policy.
|
|
5309
5437
|
:param certificates: The default SSL server certificate for a secure listener. You must provide exactly one certificate if the listener protocol is HTTPS or TLS. To create a certificate list for a secure listener, use `AWS::ElasticLoadBalancingV2::ListenerCertificate <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-listenercertificate.html>`_ .
|
|
5438
|
+
:param listener_attributes:
|
|
5310
5439
|
:param mutual_authentication: The mutual authentication configuration information.
|
|
5311
5440
|
:param port: The port on which the load balancer is listening. You cannot specify a port for a Gateway Load Balancer.
|
|
5312
5441
|
:param protocol: The protocol for connections from clients to the load balancer. For Application Load Balancers, the supported protocols are HTTP and HTTPS. For Network Load Balancers, the supported protocols are TCP, TLS, UDP, and TCP_UDP. You can’t specify the UDP or TCP_UDP protocol if dual-stack mode is enabled. You cannot specify a protocol for a Gateway Load Balancer.
|
|
@@ -5395,6 +5524,10 @@ class CfnListenerProps:
|
|
|
5395
5524
|
certificates=[elbv2.CfnListener.CertificateProperty(
|
|
5396
5525
|
certificate_arn="certificateArn"
|
|
5397
5526
|
)],
|
|
5527
|
+
listener_attributes=[elbv2.CfnListener.ListenerAttributeProperty(
|
|
5528
|
+
key="key",
|
|
5529
|
+
value="value"
|
|
5530
|
+
)],
|
|
5398
5531
|
mutual_authentication=elbv2.CfnListener.MutualAuthenticationProperty(
|
|
5399
5532
|
ignore_client_certificate_expiry=False,
|
|
5400
5533
|
mode="mode",
|
|
@@ -5411,6 +5544,7 @@ class CfnListenerProps:
|
|
|
5411
5544
|
check_type(argname="argument load_balancer_arn", value=load_balancer_arn, expected_type=type_hints["load_balancer_arn"])
|
|
5412
5545
|
check_type(argname="argument alpn_policy", value=alpn_policy, expected_type=type_hints["alpn_policy"])
|
|
5413
5546
|
check_type(argname="argument certificates", value=certificates, expected_type=type_hints["certificates"])
|
|
5547
|
+
check_type(argname="argument listener_attributes", value=listener_attributes, expected_type=type_hints["listener_attributes"])
|
|
5414
5548
|
check_type(argname="argument mutual_authentication", value=mutual_authentication, expected_type=type_hints["mutual_authentication"])
|
|
5415
5549
|
check_type(argname="argument port", value=port, expected_type=type_hints["port"])
|
|
5416
5550
|
check_type(argname="argument protocol", value=protocol, expected_type=type_hints["protocol"])
|
|
@@ -5423,6 +5557,8 @@ class CfnListenerProps:
|
|
|
5423
5557
|
self._values["alpn_policy"] = alpn_policy
|
|
5424
5558
|
if certificates is not None:
|
|
5425
5559
|
self._values["certificates"] = certificates
|
|
5560
|
+
if listener_attributes is not None:
|
|
5561
|
+
self._values["listener_attributes"] = listener_attributes
|
|
5426
5562
|
if mutual_authentication is not None:
|
|
5427
5563
|
self._values["mutual_authentication"] = mutual_authentication
|
|
5428
5564
|
if port is not None:
|
|
@@ -5480,6 +5616,16 @@ class CfnListenerProps:
|
|
|
5480
5616
|
result = self._values.get("certificates")
|
|
5481
5617
|
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnListener.CertificateProperty]]]], result)
|
|
5482
5618
|
|
|
5619
|
+
@builtins.property
|
|
5620
|
+
def listener_attributes(
|
|
5621
|
+
self,
|
|
5622
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnListener.ListenerAttributeProperty]]]]:
|
|
5623
|
+
'''
|
|
5624
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-listener.html#cfn-elasticloadbalancingv2-listener-listenerattributes
|
|
5625
|
+
'''
|
|
5626
|
+
result = self._values.get("listener_attributes")
|
|
5627
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnListener.ListenerAttributeProperty]]]], result)
|
|
5628
|
+
|
|
5483
5629
|
@builtins.property
|
|
5484
5630
|
def mutual_authentication(
|
|
5485
5631
|
self,
|
|
@@ -14957,28 +15103,11 @@ class IpAddressType(enum.Enum):
|
|
|
14957
15103
|
|
|
14958
15104
|
Example::
|
|
14959
15105
|
|
|
14960
|
-
|
|
14961
|
-
|
|
14962
|
-
|
|
14963
|
-
# The VPC and subnet must have associated IPv6 CIDR blocks.
|
|
14964
|
-
vpc = ec2.Vpc(self, "Vpc",
|
|
14965
|
-
ip_protocol=ec2.IpProtocol.DUAL_STACK
|
|
14966
|
-
)
|
|
14967
|
-
cluster = ecs.Cluster(self, "EcsCluster", vpc=vpc)
|
|
15106
|
+
# vpc: ec2.Vpc
|
|
14968
15107
|
|
|
14969
|
-
service = ecs_patterns.ApplicationLoadBalancedFargateService(self, "myService",
|
|
14970
|
-
cluster=cluster,
|
|
14971
|
-
task_image_options=ecsPatterns.ApplicationLoadBalancedTaskImageOptions(
|
|
14972
|
-
image=ecs.ContainerImage.from_registry("amazon/amazon-ecs-sample")
|
|
14973
|
-
),
|
|
14974
|
-
ip_address_type=elbv2.IpAddressType.DUAL_STACK
|
|
14975
|
-
)
|
|
14976
15108
|
|
|
14977
|
-
|
|
14978
|
-
|
|
14979
|
-
task_image_options=ecsPatterns.ApplicationLoadBalancedTaskImageOptions(
|
|
14980
|
-
image=ecs.ContainerImage.from_registry("amazon/amazon-ecs-sample")
|
|
14981
|
-
),
|
|
15109
|
+
lb = elbv2.ApplicationLoadBalancer(self, "LB",
|
|
15110
|
+
vpc=vpc,
|
|
14982
15111
|
ip_address_type=elbv2.IpAddressType.DUAL_STACK
|
|
14983
15112
|
)
|
|
14984
15113
|
'''
|
|
@@ -14987,6 +15116,8 @@ class IpAddressType(enum.Enum):
|
|
|
14987
15116
|
'''Allocate IPv4 addresses.'''
|
|
14988
15117
|
DUAL_STACK = "DUAL_STACK"
|
|
14989
15118
|
'''Allocate both IPv4 and IPv6 addresses.'''
|
|
15119
|
+
DUAL_STACK_WITHOUT_PUBLIC_IPV4 = "DUAL_STACK_WITHOUT_PUBLIC_IPV4"
|
|
15120
|
+
'''IPv6 only public addresses, with private IPv4 and IPv6 addresses.'''
|
|
14990
15121
|
|
|
14991
15122
|
|
|
14992
15123
|
@jsii.implements(IListenerAction)
|
|
@@ -24784,6 +24915,7 @@ def _typecheckingstub__da6c6bab97eae93f0a1595d72a25ac890e7034cc701e7cf76b58f5c6a
|
|
|
24784
24915
|
load_balancer_arn: builtins.str,
|
|
24785
24916
|
alpn_policy: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
24786
24917
|
certificates: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnListener.CertificateProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
24918
|
+
listener_attributes: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnListener.ListenerAttributeProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
24787
24919
|
mutual_authentication: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnListener.MutualAuthenticationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
24788
24920
|
port: typing.Optional[jsii.Number] = None,
|
|
24789
24921
|
protocol: typing.Optional[builtins.str] = None,
|
|
@@ -24828,6 +24960,12 @@ def _typecheckingstub__61f97e9ea7f88d4009c002606c3949415591bdcf9c6178a79e7393f3b
|
|
|
24828
24960
|
"""Type checking stubs"""
|
|
24829
24961
|
pass
|
|
24830
24962
|
|
|
24963
|
+
def _typecheckingstub__3b1b9d350ce31742bfadffdc2323f76036aecec151afd7512bdaf44e71eda7fb(
|
|
24964
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnListener.ListenerAttributeProperty]]]],
|
|
24965
|
+
) -> None:
|
|
24966
|
+
"""Type checking stubs"""
|
|
24967
|
+
pass
|
|
24968
|
+
|
|
24831
24969
|
def _typecheckingstub__e2037bfa810705678f0e924d5416268a866686cb43dd3194eaf57585e0b95ac3(
|
|
24832
24970
|
value: typing.Optional[typing.Union[_IResolvable_da3f097b, CfnListener.MutualAuthenticationProperty]],
|
|
24833
24971
|
) -> None:
|
|
@@ -24922,6 +25060,14 @@ def _typecheckingstub__76a2843eb97151186fbdfa49596935d3eaaa57f1a9d2a415ebe1955fc
|
|
|
24922
25060
|
"""Type checking stubs"""
|
|
24923
25061
|
pass
|
|
24924
25062
|
|
|
25063
|
+
def _typecheckingstub__0e09ea6213c5fb2125f07b2f54d7fe6ee24307939dcc06580928b2ef024c5d2f(
|
|
25064
|
+
*,
|
|
25065
|
+
key: typing.Optional[builtins.str] = None,
|
|
25066
|
+
value: typing.Optional[builtins.str] = None,
|
|
25067
|
+
) -> None:
|
|
25068
|
+
"""Type checking stubs"""
|
|
25069
|
+
pass
|
|
25070
|
+
|
|
24925
25071
|
def _typecheckingstub__07605e87f763c352d3e6705d69aa07723ad3c005493c1fdef02b175f49d53ee0(
|
|
24926
25072
|
*,
|
|
24927
25073
|
ignore_client_certificate_expiry: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
@@ -25014,6 +25160,7 @@ def _typecheckingstub__aab6d22e7b936da7d57033477b79897453525b2ac292509d47ddac8e9
|
|
|
25014
25160
|
load_balancer_arn: builtins.str,
|
|
25015
25161
|
alpn_policy: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
25016
25162
|
certificates: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnListener.CertificateProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
25163
|
+
listener_attributes: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnListener.ListenerAttributeProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
25017
25164
|
mutual_authentication: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnListener.MutualAuthenticationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
25018
25165
|
port: typing.Optional[jsii.Number] = None,
|
|
25019
25166
|
protocol: typing.Optional[builtins.str] = None,
|
aws_cdk/aws_emr/__init__.py
CHANGED
|
@@ -2463,8 +2463,8 @@ class CfnCluster(
|
|
|
2463
2463
|
|
|
2464
2464
|
The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions.
|
|
2465
2465
|
|
|
2466
|
-
:param on_demand_specification: The launch specification for On-Demand Instances in the instance fleet, which determines the allocation strategy. .. epigraph:: The instance fleet configuration is available only in Amazon EMR releases 4.8.0 and later, excluding 5.0.x versions. On-Demand Instances allocation strategy is available in Amazon EMR releases 5.12.1 and later.
|
|
2467
|
-
:param spot_specification: The launch specification for Spot instances in the fleet, which determines the defined duration, provisioning timeout behavior
|
|
2466
|
+
:param on_demand_specification: The launch specification for On-Demand Instances in the instance fleet, which determines the allocation strategy and capacity reservation options. .. epigraph:: The instance fleet configuration is available only in Amazon EMR releases 4.8.0 and later, excluding 5.0.x versions. On-Demand Instances allocation strategy is available in Amazon EMR releases 5.12.1 and later.
|
|
2467
|
+
:param spot_specification: The launch specification for Spot instances in the fleet, which determines the allocation strategy, defined duration, and provisioning timeout behavior.
|
|
2468
2468
|
|
|
2469
2469
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-cluster-instancefleetprovisioningspecifications.html
|
|
2470
2470
|
:exampleMetadata: fixture=_generated
|
|
@@ -2503,7 +2503,7 @@ class CfnCluster(
|
|
|
2503
2503
|
def on_demand_specification(
|
|
2504
2504
|
self,
|
|
2505
2505
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnCluster.OnDemandProvisioningSpecificationProperty"]]:
|
|
2506
|
-
'''The launch specification for On-Demand Instances in the instance fleet, which determines the allocation strategy.
|
|
2506
|
+
'''The launch specification for On-Demand Instances in the instance fleet, which determines the allocation strategy and capacity reservation options.
|
|
2507
2507
|
|
|
2508
2508
|
.. epigraph::
|
|
2509
2509
|
|
|
@@ -2518,7 +2518,7 @@ class CfnCluster(
|
|
|
2518
2518
|
def spot_specification(
|
|
2519
2519
|
self,
|
|
2520
2520
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnCluster.SpotProvisioningSpecificationProperty"]]:
|
|
2521
|
-
'''The launch specification for Spot instances in the fleet, which determines the defined duration, provisioning timeout behavior
|
|
2521
|
+
'''The launch specification for Spot instances in the fleet, which determines the allocation strategy, defined duration, and provisioning timeout behavior.
|
|
2522
2522
|
|
|
2523
2523
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-cluster-instancefleetprovisioningspecifications.html#cfn-emr-cluster-instancefleetprovisioningspecifications-spotspecification
|
|
2524
2524
|
'''
|
|
@@ -6771,8 +6771,8 @@ class CfnInstanceFleetConfig(
|
|
|
6771
6771
|
|
|
6772
6772
|
``InstanceTypeConfig`` is a sub-property of ``InstanceFleetConfig`` . ``InstanceTypeConfig`` determines the EC2 instances that Amazon EMR attempts to provision to fulfill On-Demand and Spot target capacities.
|
|
6773
6773
|
|
|
6774
|
-
:param on_demand_specification: The launch specification for On-Demand Instances in the instance fleet, which determines the allocation strategy. .. epigraph:: The instance fleet configuration is available only in Amazon EMR releases 4.8.0 and later, excluding 5.0.x versions. On-Demand Instances allocation strategy is available in Amazon EMR releases 5.12.1 and later.
|
|
6775
|
-
:param spot_specification: The launch specification for Spot instances in the fleet, which determines the defined duration, provisioning timeout behavior
|
|
6774
|
+
:param on_demand_specification: The launch specification for On-Demand Instances in the instance fleet, which determines the allocation strategy and capacity reservation options. .. epigraph:: The instance fleet configuration is available only in Amazon EMR releases 4.8.0 and later, excluding 5.0.x versions. On-Demand Instances allocation strategy is available in Amazon EMR releases 5.12.1 and later.
|
|
6775
|
+
:param spot_specification: The launch specification for Spot instances in the fleet, which determines the allocation strategy, defined duration, and provisioning timeout behavior.
|
|
6776
6776
|
|
|
6777
6777
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-instancefleetconfig-instancefleetprovisioningspecifications.html
|
|
6778
6778
|
:exampleMetadata: fixture=_generated
|
|
@@ -6811,7 +6811,7 @@ class CfnInstanceFleetConfig(
|
|
|
6811
6811
|
def on_demand_specification(
|
|
6812
6812
|
self,
|
|
6813
6813
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnInstanceFleetConfig.OnDemandProvisioningSpecificationProperty"]]:
|
|
6814
|
-
'''The launch specification for On-Demand Instances in the instance fleet, which determines the allocation strategy.
|
|
6814
|
+
'''The launch specification for On-Demand Instances in the instance fleet, which determines the allocation strategy and capacity reservation options.
|
|
6815
6815
|
|
|
6816
6816
|
.. epigraph::
|
|
6817
6817
|
|
|
@@ -6826,7 +6826,7 @@ class CfnInstanceFleetConfig(
|
|
|
6826
6826
|
def spot_specification(
|
|
6827
6827
|
self,
|
|
6828
6828
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnInstanceFleetConfig.SpotProvisioningSpecificationProperty"]]:
|
|
6829
|
-
'''The launch specification for Spot instances in the fleet, which determines the defined duration, provisioning timeout behavior
|
|
6829
|
+
'''The launch specification for Spot instances in the fleet, which determines the allocation strategy, defined duration, and provisioning timeout behavior.
|
|
6830
6830
|
|
|
6831
6831
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-instancefleetconfig-instancefleetprovisioningspecifications.html#cfn-emr-instancefleetconfig-instancefleetprovisioningspecifications-spotspecification
|
|
6832
6832
|
'''
|