CfnServiceProps

class aws_cdk.aws_ecs.CfnServiceProps(*, task_definition, cluster=None, deployment_configuration=None, desired_count=None, enable_ecs_managed_tags=None, health_check_grace_period_seconds=None, launch_type=None, load_balancers=None, network_configuration=None, placement_constraints=None, placement_strategies=None, platform_version=None, propagate_tags=None, role=None, scheduling_strategy=None, service_name=None, service_registries=None, tags=None)

Bases: object

__init__(*, task_definition, cluster=None, deployment_configuration=None, desired_count=None, enable_ecs_managed_tags=None, health_check_grace_period_seconds=None, launch_type=None, load_balancers=None, network_configuration=None, placement_constraints=None, placement_strategies=None, platform_version=None, propagate_tags=None, role=None, scheduling_strategy=None, service_name=None, service_registries=None, tags=None)

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

Parameters
  • task_definition (str) – AWS::ECS::Service.TaskDefinition.

  • cluster (Optional[str]) – AWS::ECS::Service.Cluster.

  • deployment_configuration (Union[IResolvable, None, DeploymentConfigurationProperty]) – AWS::ECS::Service.DeploymentConfiguration.

  • desired_count (Union[int, float, None]) – AWS::ECS::Service.DesiredCount.

  • enable_ecs_managed_tags (Union[bool, None, IResolvable]) – AWS::ECS::Service.EnableECSManagedTags.

  • health_check_grace_period_seconds (Union[int, float, None]) – AWS::ECS::Service.HealthCheckGracePeriodSeconds.

  • launch_type (Optional[str]) – AWS::ECS::Service.LaunchType.

  • load_balancers (Union[IResolvable, None, List[Union[IResolvable, LoadBalancerProperty]]]) – AWS::ECS::Service.LoadBalancers.

  • network_configuration (Union[IResolvable, None, NetworkConfigurationProperty]) – AWS::ECS::Service.NetworkConfiguration.

  • placement_constraints (Union[IResolvable, None, List[Union[IResolvable, PlacementConstraintProperty]]]) – AWS::ECS::Service.PlacementConstraints.

  • placement_strategies (Union[IResolvable, None, List[Union[IResolvable, PlacementStrategyProperty]]]) – AWS::ECS::Service.PlacementStrategies.

  • platform_version (Optional[str]) – AWS::ECS::Service.PlatformVersion.

  • propagate_tags (Optional[str]) – AWS::ECS::Service.PropagateTags.

  • role (Optional[str]) – AWS::ECS::Service.Role.

  • scheduling_strategy (Optional[str]) – AWS::ECS::Service.SchedulingStrategy.

  • service_name (Optional[str]) – AWS::ECS::Service.ServiceName.

  • service_registries (Union[IResolvable, None, List[Union[IResolvable, ServiceRegistryProperty]]]) – AWS::ECS::Service.ServiceRegistries.

  • tags (Optional[List[CfnTag]]) – AWS::ECS::Service.Tags.

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

Attributes

cluster

AWS::ECS::Service.Cluster.

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

Return type

Optional[str]

deployment_configuration

AWS::ECS::Service.DeploymentConfiguration.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-service.html#cfn-ecs-service-deploymentconfiguration

Return type

Union[IResolvable, None, DeploymentConfigurationProperty]

desired_count

AWS::ECS::Service.DesiredCount.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-service.html#cfn-ecs-service-desiredcount

Return type

Union[int, float, None]

enable_ecs_managed_tags

AWS::ECS::Service.EnableECSManagedTags.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-service.html#cfn-ecs-service-enableecsmanagedtags

Return type

Union[bool, None, IResolvable]

health_check_grace_period_seconds

AWS::ECS::Service.HealthCheckGracePeriodSeconds.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-service.html#cfn-ecs-service-healthcheckgraceperiodseconds

Return type

Union[int, float, None]

launch_type

AWS::ECS::Service.LaunchType.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-service.html#cfn-ecs-service-launchtype

Return type

Optional[str]

load_balancers

AWS::ECS::Service.LoadBalancers.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-service.html#cfn-ecs-service-loadbalancers

Return type

Union[IResolvable, None, List[Union[IResolvable, LoadBalancerProperty]]]

network_configuration

AWS::ECS::Service.NetworkConfiguration.

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

Return type

Union[IResolvable, None, NetworkConfigurationProperty]

placement_constraints

AWS::ECS::Service.PlacementConstraints.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-service.html#cfn-ecs-service-placementconstraints

Return type

Union[IResolvable, None, List[Union[IResolvable, PlacementConstraintProperty]]]

placement_strategies

AWS::ECS::Service.PlacementStrategies.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-service.html#cfn-ecs-service-placementstrategies

Return type

Union[IResolvable, None, List[Union[IResolvable, PlacementStrategyProperty]]]

platform_version

AWS::ECS::Service.PlatformVersion.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-service.html#cfn-ecs-service-platformversion

Return type

Optional[str]

propagate_tags

AWS::ECS::Service.PropagateTags.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-service.html#cfn-ecs-service-propagatetags

Return type

Optional[str]

role

AWS::ECS::Service.Role.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-service.html#cfn-ecs-service-role

Return type

Optional[str]

scheduling_strategy

AWS::ECS::Service.SchedulingStrategy.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-service.html#cfn-ecs-service-schedulingstrategy

Return type

Optional[str]

service_name

AWS::ECS::Service.ServiceName.

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

Return type

Optional[str]

service_registries

AWS::ECS::Service.ServiceRegistries.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-service.html#cfn-ecs-service-serviceregistries

Return type

Union[IResolvable, None, List[Union[IResolvable, ServiceRegistryProperty]]]

tags

AWS::ECS::Service.Tags.

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

Return type

Optional[List[CfnTag]]

task_definition

AWS::ECS::Service.TaskDefinition.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-service.html#cfn-ecs-service-taskdefinition

Return type

str