1. Packages
  2. AWS Native
  3. API Docs
  4. ecs
  5. getService

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.79.0 published on Monday, Oct 2, 2023 by Pulumi

aws-native.ecs.getService

Explore with Pulumi AI

aws-native logo

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.79.0 published on Monday, Oct 2, 2023 by Pulumi

    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
    aws-native logo

    AWS Native is in preview. AWS Classic is fully supported.

    AWS Native v0.79.0 published on Monday, Oct 2, 2023 by Pulumi