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

We recommend new projects start with resources from the AWS provider.

AWS Native v0.126.0 published on Monday, Sep 30, 2024 by Pulumi

aws-native.ecs.getClusterCapacityProviderAssociations

Explore with Pulumi AI

aws-native logo

We recommend new projects start with resources from the AWS provider.

AWS Native v0.126.0 published on Monday, Sep 30, 2024 by Pulumi

    Associate a set of ECS Capacity Providers with a specified ECS Cluster

    Using getClusterCapacityProviderAssociations

    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 getClusterCapacityProviderAssociations(args: GetClusterCapacityProviderAssociationsArgs, opts?: InvokeOptions): Promise<GetClusterCapacityProviderAssociationsResult>
    function getClusterCapacityProviderAssociationsOutput(args: GetClusterCapacityProviderAssociationsOutputArgs, opts?: InvokeOptions): Output<GetClusterCapacityProviderAssociationsResult>
    def get_cluster_capacity_provider_associations(cluster: Optional[str] = None,
                                                   opts: Optional[InvokeOptions] = None) -> GetClusterCapacityProviderAssociationsResult
    def get_cluster_capacity_provider_associations_output(cluster: Optional[pulumi.Input[str]] = None,
                                                   opts: Optional[InvokeOptions] = None) -> Output[GetClusterCapacityProviderAssociationsResult]
    func LookupClusterCapacityProviderAssociations(ctx *Context, args *LookupClusterCapacityProviderAssociationsArgs, opts ...InvokeOption) (*LookupClusterCapacityProviderAssociationsResult, error)
    func LookupClusterCapacityProviderAssociationsOutput(ctx *Context, args *LookupClusterCapacityProviderAssociationsOutputArgs, opts ...InvokeOption) LookupClusterCapacityProviderAssociationsResultOutput

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

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

    The following arguments are supported:

    Cluster string
    The cluster the capacity provider association is the target of.
    Cluster string
    The cluster the capacity provider association is the target of.
    cluster String
    The cluster the capacity provider association is the target of.
    cluster string
    The cluster the capacity provider association is the target of.
    cluster str
    The cluster the capacity provider association is the target of.
    cluster String
    The cluster the capacity provider association is the target of.

    getClusterCapacityProviderAssociations Result

    The following output properties are available:

    CapacityProviders List<string>
    The capacity providers to associate with the cluster.
    DefaultCapacityProviderStrategy List<Pulumi.AwsNative.Ecs.Outputs.ClusterCapacityProviderAssociationsCapacityProviderStrategy>
    The default capacity provider strategy to associate with the cluster.
    CapacityProviders []string
    The capacity providers to associate with the cluster.
    DefaultCapacityProviderStrategy []ClusterCapacityProviderAssociationsCapacityProviderStrategy
    The default capacity provider strategy to associate with the cluster.
    capacityProviders List<String>
    The capacity providers to associate with the cluster.
    defaultCapacityProviderStrategy List<ClusterCapacityProviderAssociationsCapacityProviderStrategy>
    The default capacity provider strategy to associate with the cluster.
    capacityProviders (ClusterCapacityProviderAssociationsCapacityProvider | string)[]
    The capacity providers to associate with the cluster.
    defaultCapacityProviderStrategy ClusterCapacityProviderAssociationsCapacityProviderStrategy[]
    The default capacity provider strategy to associate with the cluster.
    capacity_providers Sequence[str]
    The capacity providers to associate with the cluster.
    default_capacity_provider_strategy Sequence[ClusterCapacityProviderAssociationsCapacityProviderStrategy]
    The default capacity provider strategy to associate with the cluster.
    capacityProviders List<"FARGATE" | "FARGATE_SPOT" | String>
    The capacity providers to associate with the cluster.
    defaultCapacityProviderStrategy List<Property Map>
    The default capacity provider strategy to associate with the cluster.

    Supporting Types

    ClusterCapacityProviderAssociationsCapacityProvider

    ClusterCapacityProviderAssociationsCapacityProviderStrategy

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo

    We recommend new projects start with resources from the AWS provider.

    AWS Native v0.126.0 published on Monday, Sep 30, 2024 by Pulumi