aws-native logo
AWS Native v0.55.0, Mar 28 23

aws-native.ecs.Service

Resource Type definition for AWS::ECS::Service

Create Service Resource

new Service(name: string, args?: ServiceArgs, opts?: CustomResourceOptions);
@overload
def Service(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            capacity_provider_strategy: Optional[Sequence[ServiceCapacityProviderStrategyItemArgs]] = None,
            cluster: Optional[str] = None,
            deployment_configuration: Optional[ServiceDeploymentConfigurationArgs] = None,
            deployment_controller: Optional[ServiceDeploymentControllerArgs] = None,
            desired_count: Optional[int] = None,
            enable_ecs_managed_tags: Optional[bool] = None,
            enable_execute_command: Optional[bool] = None,
            health_check_grace_period_seconds: Optional[int] = None,
            launch_type: Optional[ServiceLaunchType] = None,
            load_balancers: Optional[Sequence[ServiceLoadBalancerArgs]] = None,
            network_configuration: Optional[ServiceNetworkConfigurationArgs] = None,
            placement_constraints: Optional[Sequence[ServicePlacementConstraintArgs]] = None,
            placement_strategies: Optional[Sequence[ServicePlacementStrategyArgs]] = None,
            platform_version: Optional[str] = None,
            propagate_tags: Optional[ServicePropagateTags] = None,
            role: Optional[str] = None,
            scheduling_strategy: Optional[ServiceSchedulingStrategy] = None,
            service_connect_configuration: Optional[ServiceConnectConfigurationArgs] = None,
            service_name: Optional[str] = None,
            service_registries: Optional[Sequence[ServiceRegistryArgs]] = None,
            tags: Optional[Sequence[ServiceTagArgs]] = None,
            task_definition: Optional[str] = None)
@overload
def Service(resource_name: str,
            args: Optional[ServiceArgs] = None,
            opts: Optional[ResourceOptions] = None)
func NewService(ctx *Context, name string, args *ServiceArgs, opts ...ResourceOption) (*Service, error)
public Service(string name, ServiceArgs? args = null, CustomResourceOptions? opts = null)
public Service(String name, ServiceArgs args)
public Service(String name, ServiceArgs args, CustomResourceOptions options)
type: aws-native:ecs:Service
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args ServiceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args ServiceArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args ServiceArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ServiceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args ServiceArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Service Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The Service resource accepts the following input properties:

CapacityProviderStrategy List<Pulumi.AwsNative.ECS.Inputs.ServiceCapacityProviderStrategyItemArgs>
Cluster string
DeploymentConfiguration Pulumi.AwsNative.ECS.Inputs.ServiceDeploymentConfigurationArgs
DeploymentController Pulumi.AwsNative.ECS.Inputs.ServiceDeploymentControllerArgs
DesiredCount int
EnableECSManagedTags bool
EnableExecuteCommand bool
HealthCheckGracePeriodSeconds int
LaunchType Pulumi.AwsNative.ECS.ServiceLaunchType
LoadBalancers List<Pulumi.AwsNative.ECS.Inputs.ServiceLoadBalancerArgs>
NetworkConfiguration Pulumi.AwsNative.ECS.Inputs.ServiceNetworkConfigurationArgs
PlacementConstraints List<Pulumi.AwsNative.ECS.Inputs.ServicePlacementConstraintArgs>
PlacementStrategies List<Pulumi.AwsNative.ECS.Inputs.ServicePlacementStrategyArgs>
PlatformVersion string
PropagateTags Pulumi.AwsNative.ECS.ServicePropagateTags
Role string
SchedulingStrategy Pulumi.AwsNative.ECS.ServiceSchedulingStrategy
ServiceConnectConfiguration Pulumi.AwsNative.ECS.Inputs.ServiceConnectConfigurationArgs
ServiceName string
ServiceRegistries List<Pulumi.AwsNative.ECS.Inputs.ServiceRegistryArgs>
Tags List<Pulumi.AwsNative.ECS.Inputs.ServiceTagArgs>
TaskDefinition string
capacityProviderStrategy List<ServiceCapacityProviderStrategyItemArgs>
cluster String
deploymentConfiguration ServiceDeploymentConfigurationArgs
deploymentController ServiceDeploymentControllerArgs
desiredCount Integer
enableECSManagedTags Boolean
enableExecuteCommand Boolean
healthCheckGracePeriodSeconds Integer
launchType ServiceLaunchType
loadBalancers List<ServiceLoadBalancerArgs>
networkConfiguration ServiceNetworkConfigurationArgs
placementConstraints List<ServicePlacementConstraintArgs>
placementStrategies List<ServicePlacementStrategyArgs>
platformVersion String
propagateTags ServicePropagateTags
role String
schedulingStrategy ServiceSchedulingStrategy
serviceConnectConfiguration ServiceConnectConfigurationArgs
serviceName String
serviceRegistries List<ServiceRegistryArgs>
tags List<ServiceTagArgs>
taskDefinition String
capacity_provider_strategy Sequence[ServiceCapacityProviderStrategyItemArgs]
cluster str
deployment_configuration ServiceDeploymentConfigurationArgs
deployment_controller ServiceDeploymentControllerArgs
desired_count int
enable_ecs_managed_tags bool
enable_execute_command bool
health_check_grace_period_seconds int
launch_type ServiceLaunchType
load_balancers Sequence[ServiceLoadBalancerArgs]
network_configuration ServiceNetworkConfigurationArgs
placement_constraints Sequence[ServicePlacementConstraintArgs]
placement_strategies Sequence[ServicePlacementStrategyArgs]
platform_version str
propagate_tags ServicePropagateTags
role str
scheduling_strategy ServiceSchedulingStrategy
service_connect_configuration ServiceConnectConfigurationArgs
service_name str
service_registries Sequence[ServiceRegistryArgs]
tags Sequence[ServiceTagArgs]
task_definition str

Outputs

All input properties are implicitly available as output properties. Additionally, the Service resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Name string
ServiceArn string
Id string

The provider-assigned unique ID for this managed resource.

Name string
ServiceArn string
id String

The provider-assigned unique ID for this managed resource.

name String
serviceArn String
id string

The provider-assigned unique ID for this managed resource.

name string
serviceArn string
id str

The provider-assigned unique ID for this managed resource.

name str
service_arn str
id String

The provider-assigned unique ID for this managed resource.

name String
serviceArn String

Supporting Types

ServiceAwsVpcConfiguration

ServiceAwsVpcConfigurationAssignPublicIp

Disabled
DISABLED
Enabled
ENABLED
ServiceAwsVpcConfigurationAssignPublicIpDisabled
DISABLED
ServiceAwsVpcConfigurationAssignPublicIpEnabled
ENABLED
Disabled
DISABLED
Enabled
ENABLED
Disabled
DISABLED
Enabled
ENABLED
DISABLED
DISABLED
ENABLED
ENABLED
"DISABLED"
DISABLED
"ENABLED"
ENABLED

ServiceCapacityProviderStrategyItem

base Integer
capacityProvider String
weight Integer
base number
capacityProvider string
weight number
base Number
capacityProvider String
weight Number

ServiceConnectClientAlias

Port int
DnsName string
Port int
DnsName string
port Integer
dnsName String
port number
dnsName string
port int
dns_name str
port Number
dnsName String

ServiceConnectConfiguration

ServiceConnectService

ServiceDeploymentAlarms

AlarmNames List<string>
Enable bool
Rollback bool
AlarmNames []string
Enable bool
Rollback bool
alarmNames List<String>
enable Boolean
rollback Boolean
alarmNames string[]
enable boolean
rollback boolean
alarm_names Sequence[str]
enable bool
rollback bool
alarmNames List<String>
enable Boolean
rollback Boolean

ServiceDeploymentCircuitBreaker

Enable bool
Rollback bool
Enable bool
Rollback bool
enable Boolean
rollback Boolean
enable boolean
rollback boolean
enable bool
rollback bool
enable Boolean
rollback Boolean

ServiceDeploymentConfiguration

ServiceDeploymentController

ServiceDeploymentControllerType

CodeDeploy
CODE_DEPLOY
Ecs
ECS
External
EXTERNAL
ServiceDeploymentControllerTypeCodeDeploy
CODE_DEPLOY
ServiceDeploymentControllerTypeEcs
ECS
ServiceDeploymentControllerTypeExternal
EXTERNAL
CodeDeploy
CODE_DEPLOY
Ecs
ECS
External
EXTERNAL
CodeDeploy
CODE_DEPLOY
Ecs
ECS
External
EXTERNAL
CODE_DEPLOY
CODE_DEPLOY
ECS
ECS
EXTERNAL
EXTERNAL
"CODE_DEPLOY"
CODE_DEPLOY
"ECS"
ECS
"EXTERNAL"
EXTERNAL

ServiceLaunchType

Ec2
EC2
Fargate
FARGATE
External
EXTERNAL
ServiceLaunchTypeEc2
EC2
ServiceLaunchTypeFargate
FARGATE
ServiceLaunchTypeExternal
EXTERNAL
Ec2
EC2
Fargate
FARGATE
External
EXTERNAL
Ec2
EC2
Fargate
FARGATE
External
EXTERNAL
EC2
EC2
FARGATE
FARGATE
EXTERNAL
EXTERNAL
"EC2"
EC2
"FARGATE"
FARGATE
"EXTERNAL"
EXTERNAL

ServiceLoadBalancer

ServiceLogConfiguration

ServiceNetworkConfiguration

ServicePlacementConstraint

ServicePlacementConstraintType

DistinctInstance
distinctInstance
MemberOf
memberOf
ServicePlacementConstraintTypeDistinctInstance
distinctInstance
ServicePlacementConstraintTypeMemberOf
memberOf
DistinctInstance
distinctInstance
MemberOf
memberOf
DistinctInstance
distinctInstance
MemberOf
memberOf
DISTINCT_INSTANCE
distinctInstance
MEMBER_OF
memberOf
"distinctInstance"
distinctInstance
"memberOf"
memberOf

ServicePlacementStrategy

ServicePlacementStrategyType

Binpack
binpack
Random
random
Spread
spread
ServicePlacementStrategyTypeBinpack
binpack
ServicePlacementStrategyTypeRandom
random
ServicePlacementStrategyTypeSpread
spread
Binpack
binpack
Random
random
Spread
spread
Binpack
binpack
Random
random
Spread
spread
BINPACK
binpack
RANDOM
random
SPREAD
spread
"binpack"
binpack
"random"
random
"spread"
spread

ServicePropagateTags

Service
SERVICE
TaskDefinition
TASK_DEFINITION
ServicePropagateTagsService
SERVICE
ServicePropagateTagsTaskDefinition
TASK_DEFINITION
Service
SERVICE
TaskDefinition
TASK_DEFINITION
Service
SERVICE
TaskDefinition
TASK_DEFINITION
SERVICE
SERVICE
TASK_DEFINITION
TASK_DEFINITION
"SERVICE"
SERVICE
"TASK_DEFINITION"
TASK_DEFINITION

ServiceRegistry

containerName String
containerPort Integer
port Integer
registryArn String
containerName string
containerPort number
port number
registryArn string
containerName String
containerPort Number
port Number
registryArn String

ServiceSchedulingStrategy

Daemon
DAEMON
Replica
REPLICA
ServiceSchedulingStrategyDaemon
DAEMON
ServiceSchedulingStrategyReplica
REPLICA
Daemon
DAEMON
Replica
REPLICA
Daemon
DAEMON
Replica
REPLICA
DAEMON
DAEMON
REPLICA
REPLICA
"DAEMON"
DAEMON
"REPLICA"
REPLICA

ServiceSecret

Name string
ValueFrom string
Name string
ValueFrom string
name String
valueFrom String
name string
valueFrom string
name String
valueFrom String

ServiceTag

Key string
Value string
Key string
Value string
key String
value String
key string
value string
key str
value str
key String
value String

Package Details

Repository
AWS Native pulumi/pulumi-aws-native
License
Apache-2.0