CfnExpressGatewayServiceMixinProps

class aws_cdk.mixins_preview.aws_ecs.mixins.CfnExpressGatewayServiceMixinProps(*, cluster=None, cpu=None, execution_role_arn=None, health_check_path=None, infrastructure_role_arn=None, memory=None, network_configuration=None, primary_container=None, scaling_target=None, service_name=None, tags=None, task_role_arn=None)

Bases: object

Properties for CfnExpressGatewayServicePropsMixin.

Parameters:
  • cluster (Optional[str]) – The short name or full ARN of the cluster that hosts the Express service. Default: - “default”

  • cpu (Optional[str]) – The CPU allocation for tasks in this service revision. Default: - “256”

  • execution_role_arn (Optional[str]) – The ARN of the task execution role for the service revision.

  • health_check_path (Optional[str]) – The health check path for this service revision. Default: - “HTTP:80/ping

  • infrastructure_role_arn (Optional[str]) – The ARN of the infrastructure role that manages AWS resources for the Express service.

  • memory (Optional[str]) – The memory allocation for tasks in this service revision. Default: - “512”

  • network_configuration (Union[IResolvable, ExpressGatewayServiceNetworkConfigurationProperty, Dict[str, Any], None]) – The network configuration for tasks in this service revision.

  • primary_container (Union[IResolvable, ExpressGatewayContainerProperty, Dict[str, Any], None]) – The primary container configuration for this service revision.

  • scaling_target (Union[IResolvable, ExpressGatewayScalingTargetProperty, Dict[str, Any], None]) – The auto-scaling configuration for this service revision.

  • service_name (Optional[str]) – The name of the Express service.

  • tags (Optional[Sequence[Union[CfnTag, Dict[str, Any]]]]) – The metadata applied to the Express service.

  • task_role_arn (Optional[str]) – The ARN of the task role for the service revision.

See:

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

ExampleMetadata:

fixture=_generated

Example:

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

cfn_express_gateway_service_mixin_props = ecs_mixins.CfnExpressGatewayServiceMixinProps(
    cluster="cluster",
    cpu="cpu",
    execution_role_arn="executionRoleArn",
    health_check_path="healthCheckPath",
    infrastructure_role_arn="infrastructureRoleArn",
    memory="memory",
    network_configuration=ecs_mixins.CfnExpressGatewayServicePropsMixin.ExpressGatewayServiceNetworkConfigurationProperty(
        security_groups=["securityGroups"],
        subnets=["subnets"]
    ),
    primary_container=ecs_mixins.CfnExpressGatewayServicePropsMixin.ExpressGatewayContainerProperty(
        aws_logs_configuration=ecs_mixins.CfnExpressGatewayServicePropsMixin.ExpressGatewayServiceAwsLogsConfigurationProperty(
            log_group="logGroup",
            log_stream_prefix="logStreamPrefix"
        ),
        command=["command"],
        container_port=123,
        environment=[ecs_mixins.CfnExpressGatewayServicePropsMixin.KeyValuePairProperty(
            name="name",
            value="value"
        )],
        image="image",
        repository_credentials=ecs_mixins.CfnExpressGatewayServicePropsMixin.ExpressGatewayRepositoryCredentialsProperty(
            credentials_parameter="credentialsParameter"
        ),
        secrets=[ecs_mixins.CfnExpressGatewayServicePropsMixin.SecretProperty(
            name="name",
            value_from="valueFrom"
        )]
    ),
    scaling_target=ecs_mixins.CfnExpressGatewayServicePropsMixin.ExpressGatewayScalingTargetProperty(
        auto_scaling_metric="autoScalingMetric",
        auto_scaling_target_value=123,
        max_task_count=123,
        min_task_count=123
    ),
    service_name="serviceName",
    tags=[CfnTag(
        key="key",
        value="value"
    )],
    task_role_arn="taskRoleArn"
)

Attributes

cluster

The short name or full ARN of the cluster that hosts the Express service.

Default:
  • “default”

See:

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

cpu

The CPU allocation for tasks in this service revision.

Default:
  • “256”

See:

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

execution_role_arn

The ARN of the task execution role for the service revision.

See:

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

health_check_path

The health check path for this service revision.

Default:
See:

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

infrastructure_role_arn

The ARN of the infrastructure role that manages AWS resources for the Express service.

See:

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

memory

The memory allocation for tasks in this service revision.

Default:
  • “512”

See:

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

network_configuration

The network configuration for tasks in this service revision.

See:

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

primary_container

The primary container configuration for this service revision.

See:

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

scaling_target

The auto-scaling configuration for this service revision.

See:

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

service_name

The name of the Express service.

See:

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

tags

The metadata applied to the Express service.

See:

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

task_role_arn

The ARN of the task role for the service revision.

See:

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