AWS Native is in preview. AWS Classic is fully supported.
aws-native.ecs.getCluster
Explore with Pulumi AI
AWS Native is in preview. AWS Classic is fully supported.
Create an Elastic Container Service (ECS) cluster.
Using getCluster
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 getCluster(args: GetClusterArgs, opts?: InvokeOptions): Promise<GetClusterResult>
function getClusterOutput(args: GetClusterOutputArgs, opts?: InvokeOptions): Output<GetClusterResult>
def get_cluster(cluster_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetClusterResult
def get_cluster_output(cluster_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetClusterResult]
func LookupCluster(ctx *Context, args *LookupClusterArgs, opts ...InvokeOption) (*LookupClusterResult, error)
func LookupClusterOutput(ctx *Context, args *LookupClusterOutputArgs, opts ...InvokeOption) LookupClusterResultOutput
> Note: This function is named LookupCluster
in the Go SDK.
public static class GetCluster
{
public static Task<GetClusterResult> InvokeAsync(GetClusterArgs args, InvokeOptions? opts = null)
public static Output<GetClusterResult> Invoke(GetClusterInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetClusterResult> getCluster(GetClusterArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws-native:ecs:getCluster
arguments:
# arguments dictionary
The following arguments are supported:
- Cluster
Name string A user-generated string that you use to identify your cluster. If you don't specify a name, AWS CloudFormation generates a unique physical ID for the name.
- Cluster
Name string A user-generated string that you use to identify your cluster. If you don't specify a name, AWS CloudFormation generates a unique physical ID for the name.
- cluster
Name String A user-generated string that you use to identify your cluster. If you don't specify a name, AWS CloudFormation generates a unique physical ID for the name.
- cluster
Name string A user-generated string that you use to identify your cluster. If you don't specify a name, AWS CloudFormation generates a unique physical ID for the name.
- cluster_
name str A user-generated string that you use to identify your cluster. If you don't specify a name, AWS CloudFormation generates a unique physical ID for the name.
- cluster
Name String A user-generated string that you use to identify your cluster. If you don't specify a name, AWS CloudFormation generates a unique physical ID for the name.
getCluster Result
The following output properties are available:
- Arn string
The Amazon Resource Name (ARN) of the Amazon ECS cluster, such as arn:aws:ecs:us-east-2:123456789012:cluster/MyECSCluster.
- Capacity
Providers List<string> - Cluster
Settings List<Pulumi.Aws Native. Ecs. Outputs. Cluster Settings> - Configuration
Pulumi.
Aws Native. Ecs. Outputs. Cluster Configuration - Default
Capacity List<Pulumi.Provider Strategy Aws Native. Ecs. Outputs. Cluster Capacity Provider Strategy Item> - List<Pulumi.
Aws Native. Ecs. Outputs. Cluster Tag>
- Arn string
The Amazon Resource Name (ARN) of the Amazon ECS cluster, such as arn:aws:ecs:us-east-2:123456789012:cluster/MyECSCluster.
- Capacity
Providers []string - Cluster
Settings []ClusterSettings - Configuration
Cluster
Configuration - Default
Capacity []ClusterProvider Strategy Capacity Provider Strategy Item - []Cluster
Tag
- arn String
The Amazon Resource Name (ARN) of the Amazon ECS cluster, such as arn:aws:ecs:us-east-2:123456789012:cluster/MyECSCluster.
- capacity
Providers List<String> - cluster
Settings List<ClusterSettings> - configuration
Cluster
Configuration - default
Capacity List<ClusterProvider Strategy Capacity Provider Strategy Item> - List<Cluster
Tag>
- arn string
The Amazon Resource Name (ARN) of the Amazon ECS cluster, such as arn:aws:ecs:us-east-2:123456789012:cluster/MyECSCluster.
- capacity
Providers string[] - cluster
Settings ClusterSettings[] - configuration
Cluster
Configuration - default
Capacity ClusterProvider Strategy Capacity Provider Strategy Item[] - Cluster
Tag[]
- arn str
The Amazon Resource Name (ARN) of the Amazon ECS cluster, such as arn:aws:ecs:us-east-2:123456789012:cluster/MyECSCluster.
- capacity_
providers Sequence[str] - cluster_
settings Sequence[ClusterSettings] - configuration
Cluster
Configuration - default_
capacity_ Sequence[Clusterprovider_ strategy Capacity Provider Strategy Item] - Sequence[Cluster
Tag]
- arn String
The Amazon Resource Name (ARN) of the Amazon ECS cluster, such as arn:aws:ecs:us-east-2:123456789012:cluster/MyECSCluster.
- capacity
Providers List<String> - cluster
Settings List<Property Map> - configuration Property Map
- default
Capacity List<Property Map>Provider Strategy - List<Property Map>
Supporting Types
ClusterCapacityProviderStrategyItem
- Base int
- Capacity
Provider string - Weight int
- Base int
- Capacity
Provider string - Weight int
- base Integer
- capacity
Provider String - weight Integer
- base number
- capacity
Provider string - weight number
- base int
- capacity_
provider str - weight int
- base Number
- capacity
Provider String - weight Number
ClusterConfiguration
ClusterExecuteCommandConfiguration
- kms
Key StringId - log
Configuration Property Map - logging String
ClusterExecuteCommandLogConfiguration
- Cloud
Watch boolEncryption Enabled - Cloud
Watch stringLog Group Name - S3Bucket
Name string - S3Encryption
Enabled bool - S3Key
Prefix string
- Cloud
Watch boolEncryption Enabled - Cloud
Watch stringLog Group Name - S3Bucket
Name string - S3Encryption
Enabled bool - S3Key
Prefix string
- cloud
Watch BooleanEncryption Enabled - cloud
Watch StringLog Group Name - s3Bucket
Name String - s3Encryption
Enabled Boolean - s3Key
Prefix String
- cloud
Watch booleanEncryption Enabled - cloud
Watch stringLog Group Name - s3Bucket
Name string - s3Encryption
Enabled boolean - s3Key
Prefix string
- cloud
Watch BooleanEncryption Enabled - cloud
Watch StringLog Group Name - s3Bucket
Name String - s3Encryption
Enabled Boolean - s3Key
Prefix String
ClusterSettings
ClusterTag
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
AWS Native is in preview. AWS Classic is fully supported.