CfnService

class aws_cdk.aws_ecs.CfnService(scope, id, *, capacity_provider_strategy=None, cluster=None, deployment_configuration=None, deployment_controller=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_arn=None, service_name=None, service_registries=None, tags=None, task_definition=None)

Bases: aws_cdk.core.CfnResource

A CloudFormation AWS::ECS::Service.

CloudformationResource

AWS::ECS::Service

Link

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

Create a new AWS::ECS::Service.

Parameters
  • scope (Construct) –

    • scope in which this resource is defined.

  • id (str) –

    • scoped id of the resource.

  • capacity_provider_strategy (Union[IResolvable, List[Union[IResolvable, CapacityProviderStrategyItemProperty]], None]) – AWS::ECS::Service.CapacityProviderStrategy.

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

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

  • deployment_controller (Union[IResolvable, DeploymentControllerProperty, None]) – AWS::ECS::Service.DeploymentController.

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

  • enable_ecs_managed_tags (Union[bool, IResolvable, None]) – 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, List[Union[IResolvable, LoadBalancerProperty]], None]) – AWS::ECS::Service.LoadBalancers.

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

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

  • placement_strategies (Union[IResolvable, List[Union[IResolvable, PlacementStrategyProperty]], None]) – 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_arn (Optional[str]) – AWS::ECS::Service.ServiceArn.

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

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

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

  • task_definition (Optional[str]) – AWS::ECS::Service.TaskDefinition.

Methods

add_deletion_override(path)

Syntactic sugar for addOverride(path, undefined).

Parameters

path (str) – The path of the value to delete.

Return type

None

add_depends_on(target)

Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.

This can be used for resources across stacks (or nested stack) boundaries and the dependency will automatically be transferred to the relevant scope.

Parameters

target (CfnResource) –

Return type

None

add_metadata(key, value)

Add a value to the CloudFormation Resource Metadata.

Parameters
  • key (str) –

  • value (Any) –

See

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html

Note that this is a different set of metadata from CDK node metadata; this metadata ends up in the stack template under the resource, whereas CDK node metadata ends up in the Cloud Assembly.

Return type

None

add_override(path, value)

Adds an override to the synthesized CloudFormation resource.

To add a property override, either use addPropertyOverride or prefix path with “Properties.” (i.e. Properties.TopicName).

If the override is nested, separate each nested level using a dot (.) in the path parameter. If there is an array as part of the nesting, specify the index in the path.

To include a literal . in the property name, prefix with a \. In most programming languages you will need to write this as "\\." because the \ itself will need to be escaped.

For example:

# Example automatically generated. See https://github.com/aws/jsii/issues/826
cfn_resource.add_override("Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes", ["myattribute"])
cfn_resource.add_override("Properties.GlobalSecondaryIndexes.1.ProjectionType", "INCLUDE")

would add the overrides Example:

"Properties": {
   "GlobalSecondaryIndexes": [
     {
       "Projection": {
         "NonKeyAttributes": [ "myattribute" ]
         ...
       }
       ...
     },
     {
       "ProjectionType": "INCLUDE"
       ...
     },
   ]
   ...
}
Parameters
  • path (str) –

    • The path of the property, you can use dot notation to override values in complex types. Any intermdediate keys will be created as needed.

  • value (Any) –

    • The value. Could be primitive or complex.

Return type

None

add_property_deletion_override(property_path)

Adds an override that deletes the value of a property from the resource definition.

Parameters

property_path (str) – The path to the property.

Return type

None

add_property_override(property_path, value)

Adds an override to a resource property.

Syntactic sugar for addOverride("Properties.<...>", value).

Parameters
  • property_path (str) – The path of the property.

  • value (Any) – The value.

Return type

None

apply_removal_policy(policy=None, *, apply_to_update_replace_policy=None, default=None)

Sets the deletion policy of the resource based on the removal policy specified.

Parameters
  • policy (Optional[RemovalPolicy]) –

  • apply_to_update_replace_policy (Optional[bool]) – Apply the same deletion policy to the resource’s “UpdateReplacePolicy”. Default: true

  • default (Optional[RemovalPolicy]) – The default policy to apply in case the removal policy is not defined. Default: - Default value is resource specific. To determine the default value for a resoure, please consult that specific resource’s documentation.

Return type

None

get_att(attribute_name)

Returns a token for an runtime attribute of this resource.

Ideally, use generated attribute accessors (e.g. resource.arn), but this can be used for future compatibility in case there is no generated attribute.

Parameters

attribute_name (str) – The name of the attribute.

Return type

Reference

get_metadata(key)

Retrieve a value value from the CloudFormation Resource Metadata.

Parameters

key (str) –

See

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html

Note that this is a different set of metadata from CDK node metadata; this metadata ends up in the stack template under the resource, whereas CDK node metadata ends up in the Cloud Assembly.

Return type

Any

inspect(inspector)

(experimental) Examines the CloudFormation resource and discloses attributes.

Parameters

inspector (TreeInspector) –

  • tree inspector to collect and process attributes.

Stability

experimental

Return type

None

override_logical_id(new_logical_id)

Overrides the auto-generated logical ID with a specific ID.

Parameters

new_logical_id (str) – The new logical ID to use for this stack element.

Return type

None

to_string()

Returns a string representation of this construct.

Return type

str

Returns

a string representation of this resource

Attributes

CFN_RESOURCE_TYPE_NAME = 'AWS::ECS::Service'
attr_name

Name

Type

cloudformationAttribute

Return type

str

capacity_provider_strategy

AWS::ECS::Service.CapacityProviderStrategy.

Link

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

Return type

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

cfn_options

Options for this resource, such as condition, update policy etc.

Return type

ICfnResourceOptions

cfn_resource_type

AWS resource type.

Return type

str

cluster

AWS::ECS::Service.Cluster.

Link

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

Return type

Optional[str]

creation_stack

return:

the stack trace of the point where this Resource was created from, sourced from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most node +internal+ entries filtered.

Return type

List[str]

deployment_configuration

AWS::ECS::Service.DeploymentConfiguration.

Link

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

Return type

Union[IResolvable, DeploymentConfigurationProperty, None]

deployment_controller

AWS::ECS::Service.DeploymentController.

Link

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

Return type

Union[IResolvable, DeploymentControllerProperty, None]

desired_count

AWS::ECS::Service.DesiredCount.

Link

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.

Link

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

Return type

Union[bool, IResolvable, None]

health_check_grace_period_seconds

AWS::ECS::Service.HealthCheckGracePeriodSeconds.

Link

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.

Link

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.

Link

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

Return type

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

logical_id

The logical ID for this CloudFormation stack element.

The logical ID of the element is calculated from the path of the resource node in the construct tree.

To override this value, use overrideLogicalId(newLogicalId).

Return type

str

Returns

the logical ID as a stringified token. This value will only get resolved during synthesis.

network_configuration

AWS::ECS::Service.NetworkConfiguration.

Link

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

Return type

Union[IResolvable, NetworkConfigurationProperty, None]

node

The construct tree node associated with this construct.

Return type

ConstructNode

placement_constraints

AWS::ECS::Service.PlacementConstraints.

Link

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

Return type

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

placement_strategies

AWS::ECS::Service.PlacementStrategies.

Link

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

Return type

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

platform_version

AWS::ECS::Service.PlatformVersion.

Link

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.

Link

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

Return type

Optional[str]

ref

Return a string that will be resolved to a CloudFormation { Ref } for this element.

If, by any chance, the intrinsic reference of a resource is not a string, you could coerce it to an IResolvable through Lazy.any({ produce: resource.ref }).

Return type

str

role

AWS::ECS::Service.Role.

Link

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.

Link

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

Return type

Optional[str]

service_arn

AWS::ECS::Service.ServiceArn.

Link

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

Return type

Optional[str]

service_name

AWS::ECS::Service.ServiceName.

Link

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.

Link

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

Return type

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

stack

The stack in which this element is defined.

CfnElements must be defined within a stack scope (directly or indirectly).

Return type

Stack

tags

AWS::ECS::Service.Tags.

Link

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

Return type

TagManager

task_definition

AWS::ECS::Service.TaskDefinition.

Link

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

Return type

Optional[str]

Static Methods

classmethod is_cfn_element(x)

Returns true if a construct is a stack element (i.e. part of the synthesized cloudformation template).

Uses duck-typing instead of instanceof to allow stack elements from different versions of this library to be included in the same stack.

Parameters

x (Any) –

Return type

bool

Returns

The construct as a stack element or undefined if it is not a stack element.

classmethod is_cfn_resource(construct)

Check whether the given construct is a CfnResource.

Parameters

construct (IConstruct) –

Return type

bool

classmethod is_construct(x)

Return whether the given object is a Construct.

Parameters

x (Any) –

Return type

bool

AwsVpcConfigurationProperty

class CfnService.AwsVpcConfigurationProperty(*, subnets, assign_public_ip=None, security_groups=None)

Bases: object

Parameters
  • subnets (List[str]) – CfnService.AwsVpcConfigurationProperty.Subnets.

  • assign_public_ip (Optional[str]) – CfnService.AwsVpcConfigurationProperty.AssignPublicIp.

  • security_groups (Optional[List[str]]) – CfnService.AwsVpcConfigurationProperty.SecurityGroups.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-awsvpcconfiguration.html

Attributes

assign_public_ip

CfnService.AwsVpcConfigurationProperty.AssignPublicIp.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-awsvpcconfiguration.html#cfn-ecs-service-awsvpcconfiguration-assignpublicip

Return type

Optional[str]

security_groups

CfnService.AwsVpcConfigurationProperty.SecurityGroups.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-awsvpcconfiguration.html#cfn-ecs-service-awsvpcconfiguration-securitygroups

Return type

Optional[List[str]]

subnets

CfnService.AwsVpcConfigurationProperty.Subnets.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-awsvpcconfiguration.html#cfn-ecs-service-awsvpcconfiguration-subnets

Return type

List[str]

CapacityProviderStrategyItemProperty

class CfnService.CapacityProviderStrategyItemProperty(*, base=None, capacity_provider=None, weight=None)

Bases: object

Parameters
  • base (Union[int, float, None]) – CfnService.CapacityProviderStrategyItemProperty.Base.

  • capacity_provider (Optional[str]) – CfnService.CapacityProviderStrategyItemProperty.CapacityProvider.

  • weight (Union[int, float, None]) – CfnService.CapacityProviderStrategyItemProperty.Weight.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-capacityproviderstrategyitem.html

Attributes

base

CfnService.CapacityProviderStrategyItemProperty.Base.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-capacityproviderstrategyitem.html#cfn-ecs-service-capacityproviderstrategyitem-base

Return type

Union[int, float, None]

capacity_provider

CfnService.CapacityProviderStrategyItemProperty.CapacityProvider.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-capacityproviderstrategyitem.html#cfn-ecs-service-capacityproviderstrategyitem-capacityprovider

Return type

Optional[str]

weight

CfnService.CapacityProviderStrategyItemProperty.Weight.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-capacityproviderstrategyitem.html#cfn-ecs-service-capacityproviderstrategyitem-weight

Return type

Union[int, float, None]

DeploymentCircuitBreakerProperty

class CfnService.DeploymentCircuitBreakerProperty(*, enable, rollback)

Bases: object

Parameters
  • enable (Union[bool, IResolvable]) – CfnService.DeploymentCircuitBreakerProperty.Enable.

  • rollback (Union[bool, IResolvable]) – CfnService.DeploymentCircuitBreakerProperty.Rollback.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-deploymentcircuitbreaker.html

Attributes

enable

CfnService.DeploymentCircuitBreakerProperty.Enable.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-deploymentcircuitbreaker.html#cfn-ecs-service-deploymentcircuitbreaker-enable

Return type

Union[bool, IResolvable]

rollback

CfnService.DeploymentCircuitBreakerProperty.Rollback.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-deploymentcircuitbreaker.html#cfn-ecs-service-deploymentcircuitbreaker-rollback

Return type

Union[bool, IResolvable]

DeploymentConfigurationProperty

class CfnService.DeploymentConfigurationProperty(*, deployment_circuit_breaker=None, maximum_percent=None, minimum_healthy_percent=None)

Bases: object

Parameters
  • deployment_circuit_breaker (Union[IResolvable, DeploymentCircuitBreakerProperty, None]) – CfnService.DeploymentConfigurationProperty.DeploymentCircuitBreaker.

  • maximum_percent (Union[int, float, None]) – CfnService.DeploymentConfigurationProperty.MaximumPercent.

  • minimum_healthy_percent (Union[int, float, None]) – CfnService.DeploymentConfigurationProperty.MinimumHealthyPercent.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-deploymentconfiguration.html

Attributes

deployment_circuit_breaker

CfnService.DeploymentConfigurationProperty.DeploymentCircuitBreaker.

Link

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

Return type

Union[IResolvable, DeploymentCircuitBreakerProperty, None]

maximum_percent

CfnService.DeploymentConfigurationProperty.MaximumPercent.

Link

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

Return type

Union[int, float, None]

minimum_healthy_percent

CfnService.DeploymentConfigurationProperty.MinimumHealthyPercent.

Link

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

Return type

Union[int, float, None]

DeploymentControllerProperty

class CfnService.DeploymentControllerProperty(*, type=None)

Bases: object

Parameters

type (Optional[str]) – CfnService.DeploymentControllerProperty.Type.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-deploymentcontroller.html

Attributes

type

CfnService.DeploymentControllerProperty.Type.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-deploymentcontroller.html#cfn-ecs-service-deploymentcontroller-type

Return type

Optional[str]

LoadBalancerProperty

class CfnService.LoadBalancerProperty(*, container_port, container_name=None, load_balancer_name=None, target_group_arn=None)

Bases: object

Parameters
  • container_port (Union[int, float]) – CfnService.LoadBalancerProperty.ContainerPort.

  • container_name (Optional[str]) – CfnService.LoadBalancerProperty.ContainerName.

  • load_balancer_name (Optional[str]) – CfnService.LoadBalancerProperty.LoadBalancerName.

  • target_group_arn (Optional[str]) – CfnService.LoadBalancerProperty.TargetGroupArn.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-loadbalancer.html

Attributes

container_name

CfnService.LoadBalancerProperty.ContainerName.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-loadbalancer.html#cfn-ecs-service-loadbalancer-containername

Return type

Optional[str]

container_port

CfnService.LoadBalancerProperty.ContainerPort.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-loadbalancer.html#cfn-ecs-service-loadbalancer-containerport

Return type

Union[int, float]

load_balancer_name

CfnService.LoadBalancerProperty.LoadBalancerName.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-loadbalancer.html#cfn-ecs-service-loadbalancer-loadbalancername

Return type

Optional[str]

target_group_arn

CfnService.LoadBalancerProperty.TargetGroupArn.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-loadbalancer.html#cfn-ecs-service-loadbalancer-targetgrouparn

Return type

Optional[str]

NetworkConfigurationProperty

class CfnService.NetworkConfigurationProperty(*, awsvpc_configuration=None)

Bases: object

Parameters

awsvpc_configuration (Union[IResolvable, AwsVpcConfigurationProperty, None]) – CfnService.NetworkConfigurationProperty.AwsvpcConfiguration.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-networkconfiguration.html

Attributes

awsvpc_configuration

CfnService.NetworkConfigurationProperty.AwsvpcConfiguration.

Link

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

Return type

Union[IResolvable, AwsVpcConfigurationProperty, None]

PlacementConstraintProperty

class CfnService.PlacementConstraintProperty(*, type, expression=None)

Bases: object

Parameters
  • type (str) – CfnService.PlacementConstraintProperty.Type.

  • expression (Optional[str]) – CfnService.PlacementConstraintProperty.Expression.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-placementconstraint.html

Attributes

expression

CfnService.PlacementConstraintProperty.Expression.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-placementconstraint.html#cfn-ecs-service-placementconstraint-expression

Return type

Optional[str]

type

CfnService.PlacementConstraintProperty.Type.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-placementconstraint.html#cfn-ecs-service-placementconstraint-type

Return type

str

PlacementStrategyProperty

class CfnService.PlacementStrategyProperty(*, type, field=None)

Bases: object

Parameters
  • type (str) – CfnService.PlacementStrategyProperty.Type.

  • field (Optional[str]) – CfnService.PlacementStrategyProperty.Field.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-placementstrategy.html

Attributes

field

CfnService.PlacementStrategyProperty.Field.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-placementstrategy.html#cfn-ecs-service-placementstrategy-field

Return type

Optional[str]

type

CfnService.PlacementStrategyProperty.Type.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-placementstrategy.html#cfn-ecs-service-placementstrategy-type

Return type

str

ServiceRegistryProperty

class CfnService.ServiceRegistryProperty(*, container_name=None, container_port=None, port=None, registry_arn=None)

Bases: object

Parameters
  • container_name (Optional[str]) – CfnService.ServiceRegistryProperty.ContainerName.

  • container_port (Union[int, float, None]) – CfnService.ServiceRegistryProperty.ContainerPort.

  • port (Union[int, float, None]) – CfnService.ServiceRegistryProperty.Port.

  • registry_arn (Optional[str]) – CfnService.ServiceRegistryProperty.RegistryArn.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-serviceregistry.html

Attributes

container_name

CfnService.ServiceRegistryProperty.ContainerName.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-serviceregistry.html#cfn-ecs-service-serviceregistry-containername

Return type

Optional[str]

container_port

CfnService.ServiceRegistryProperty.ContainerPort.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-serviceregistry.html#cfn-ecs-service-serviceregistry-containerport

Return type

Union[int, float, None]

port

CfnService.ServiceRegistryProperty.Port.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-serviceregistry.html#cfn-ecs-service-serviceregistry-port

Return type

Union[int, float, None]

registry_arn

CfnService.ServiceRegistryProperty.RegistryArn.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-serviceregistry.html#cfn-ecs-service-serviceregistry-registryarn

Return type

Optional[str]