aws-native logo
AWS Native v0.53.0, Mar 14 23

aws-native.ecs.getService

Resource Type definition for AWS::ECS::Service

Using getService

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getService(args: GetServiceArgs, opts?: InvokeOptions): Promise<GetServiceResult>
function getServiceOutput(args: GetServiceOutputArgs, opts?: InvokeOptions): Output<GetServiceResult>
def get_service(cluster: Optional[str] = None,
                service_arn: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetServiceResult
def get_service_output(cluster: Optional[pulumi.Input[str]] = None,
                service_arn: Optional[pulumi.Input[str]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetServiceResult]
func LookupService(ctx *Context, args *LookupServiceArgs, opts ...InvokeOption) (*LookupServiceResult, error)
func LookupServiceOutput(ctx *Context, args *LookupServiceOutputArgs, opts ...InvokeOption) LookupServiceResultOutput

> Note: This function is named LookupService in the Go SDK.

public static class GetService 
{
    public static Task<GetServiceResult> InvokeAsync(GetServiceArgs args, InvokeOptions? opts = null)
    public static Output<GetServiceResult> Invoke(GetServiceInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetServiceResult> getService(GetServiceArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: aws-native:ecs:getService
  arguments:
    # arguments dictionary

The following arguments are supported:

Cluster string
ServiceArn string
Cluster string
ServiceArn string
cluster String
serviceArn String
cluster string
serviceArn string
cluster String
serviceArn String

getService Result

The following output properties are available:

CapacityProviderStrategy List<Pulumi.AwsNative.ECS.Outputs.ServiceCapacityProviderStrategyItem>
DeploymentConfiguration Pulumi.AwsNative.ECS.Outputs.ServiceDeploymentConfiguration
DesiredCount int
EnableECSManagedTags bool
EnableExecuteCommand bool
HealthCheckGracePeriodSeconds int
LoadBalancers List<Pulumi.AwsNative.ECS.Outputs.ServiceLoadBalancer>
Name string
NetworkConfiguration Pulumi.AwsNative.ECS.Outputs.ServiceNetworkConfiguration
PlacementConstraints List<Pulumi.AwsNative.ECS.Outputs.ServicePlacementConstraint>
PlacementStrategies List<Pulumi.AwsNative.ECS.Outputs.ServicePlacementStrategy>
PlatformVersion string
PropagateTags Pulumi.AwsNative.ECS.ServicePropagateTags
ServiceArn string
ServiceRegistries List<Pulumi.AwsNative.ECS.Outputs.ServiceRegistry>
Tags List<Pulumi.AwsNative.ECS.Outputs.ServiceTag>
TaskDefinition string

Supporting Types

ServiceAwsVpcConfiguration

ServiceAwsVpcConfigurationAssignPublicIp

ServiceCapacityProviderStrategyItem

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

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

ServiceLoadBalancer

ServiceNetworkConfiguration

ServicePlacementConstraint

ServicePlacementConstraintType

ServicePlacementStrategy

ServicePlacementStrategyType

ServicePropagateTags

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

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