Class GetService
Inheritance
System.Object
GetService
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aws.Ecs
Assembly: Pulumi.Aws.dll
Syntax
public static class GetService
Methods
View SourceInvokeAsync(GetServiceArgs, InvokeOptions)
The ECS Service data source allows access to details of a specific Service within a AWS ECS Cluster.
{{% examples %}}
Example Usage
{{% example %}}
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Aws.Ecs.GetService.InvokeAsync(new Aws.Ecs.GetServiceArgs
{
ClusterArn = data.Aws_ecs_cluster.Example.Arn,
ServiceName = "example",
}));
}
}
{{% /example %}} {{% /examples %}}
Declaration
public static Task<GetServiceResult> InvokeAsync(GetServiceArgs args, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetServiceArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetServiceResult> |