CfnClusterProps

class aws_cdk.aws_ecs.CfnClusterProps(*, capacity_providers=None, cluster_name=None, cluster_settings=None, configuration=None, default_capacity_provider_strategy=None, tags=None)

Bases: object

Properties for defining a AWS::ECS::Cluster.

Parameters
Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-cluster.html

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_ecs as ecs

cfn_cluster_props = ecs.CfnClusterProps(
    capacity_providers=["capacityProviders"],
    cluster_name="clusterName",
    cluster_settings=[ecs.CfnCluster.ClusterSettingsProperty(
        name="name",
        value="value"
    )],
    configuration=ecs.CfnCluster.ClusterConfigurationProperty(
        execute_command_configuration=ecs.CfnCluster.ExecuteCommandConfigurationProperty(
            kms_key_id="kmsKeyId",
            log_configuration=ecs.CfnCluster.ExecuteCommandLogConfigurationProperty(
                cloud_watch_encryption_enabled=False,
                cloud_watch_log_group_name="cloudWatchLogGroupName",
                s3_bucket_name="s3BucketName",
                s3_encryption_enabled=False,
                s3_key_prefix="s3KeyPrefix"
            ),
            logging="logging"
        )
    ),
    default_capacity_provider_strategy=[ecs.CfnCluster.CapacityProviderStrategyItemProperty(
        base=123,
        capacity_provider="capacityProvider",
        weight=123
    )],
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)

Attributes

capacity_providers

AWS::ECS::Cluster.CapacityProviders.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-cluster.html#cfn-ecs-cluster-capacityproviders

Return type

Optional[List[str]]

cluster_name

AWS::ECS::Cluster.ClusterName.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-cluster.html#cfn-ecs-cluster-clustername

Return type

Optional[str]

cluster_settings

AWS::ECS::Cluster.ClusterSettings.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-cluster.html#cfn-ecs-cluster-clustersettings

Return type

Union[IResolvable, List[Union[IResolvable, ClusterSettingsProperty]], None]

configuration

AWS::ECS::Cluster.Configuration.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-cluster.html#cfn-ecs-cluster-configuration

Return type

Union[IResolvable, ClusterConfigurationProperty, None]

default_capacity_provider_strategy

AWS::ECS::Cluster.DefaultCapacityProviderStrategy.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-cluster.html#cfn-ecs-cluster-defaultcapacityproviderstrategy

Return type

Union[IResolvable, List[Union[IResolvable, CapacityProviderStrategyItemProperty]], None]

tags

AWS::ECS::Cluster.Tags.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-cluster.html#cfn-ecs-cluster-tags

Return type

Optional[List[CfnTag]]