UNPKG

@pulumi/aws

Version:

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

126 lines (125 loc) 3.37 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * The ECS Service data source allows access to details of a specific * Service within a AWS ECS Cluster. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.ecs.getService({ * serviceName: "example", * clusterArn: exampleAwsEcsCluster.arn, * }); * ``` */ export declare function getService(args: GetServiceArgs, opts?: pulumi.InvokeOptions): Promise<GetServiceResult>; /** * A collection of arguments for invoking getService. */ export interface GetServiceArgs { /** * ARN of the ECS Cluster */ clusterArn: string; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: string; /** * Name of the ECS Service */ serviceName: string; /** * Resource tags. */ tags?: { [key: string]: string; }; } /** * A collection of values returned by getService. */ export interface GetServiceResult { /** * ARN of the ECS Service */ readonly arn: string; readonly availabilityZoneRebalancing: string; readonly clusterArn: string; /** * Number of tasks for the ECS Service */ readonly desiredCount: number; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * Launch type for the ECS Service */ readonly launchType: string; /** * Load balancers for the ECS Service. See `loadBalancer` Block for details. */ readonly loadBalancers: outputs.ecs.GetServiceLoadBalancer[]; readonly region: string; /** * Scheduling strategy for the ECS Service */ readonly schedulingStrategy: string; readonly serviceName: string; /** * Resource tags. */ readonly tags: { [key: string]: string; }; /** * Family for the latest ACTIVE revision or full ARN of the task definition. */ readonly taskDefinition: string; } /** * The ECS Service data source allows access to details of a specific * Service within a AWS ECS Cluster. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.ecs.getService({ * serviceName: "example", * clusterArn: exampleAwsEcsCluster.arn, * }); * ``` */ export declare function getServiceOutput(args: GetServiceOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetServiceResult>; /** * A collection of arguments for invoking getService. */ export interface GetServiceOutputArgs { /** * ARN of the ECS Cluster */ clusterArn: pulumi.Input<string>; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input<string>; /** * Name of the ECS Service */ serviceName: pulumi.Input<string>; /** * Resource tags. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input<string>; }>; }