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

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

AWS Native v0.103.0 published on Monday, Apr 22, 2024 by Pulumi

aws-native.ecs.getPrimaryTaskSet

Explore with Pulumi AI

aws-native logo

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

AWS Native v0.103.0 published on Monday, Apr 22, 2024 by Pulumi

    A pseudo-resource that manages which of your ECS task sets is primary.

    Using getPrimaryTaskSet

    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 getPrimaryTaskSet(args: GetPrimaryTaskSetArgs, opts?: InvokeOptions): Promise<GetPrimaryTaskSetResult>
    function getPrimaryTaskSetOutput(args: GetPrimaryTaskSetOutputArgs, opts?: InvokeOptions): Output<GetPrimaryTaskSetResult>
    def get_primary_task_set(cluster: Optional[str] = None,
                             service: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetPrimaryTaskSetResult
    def get_primary_task_set_output(cluster: Optional[pulumi.Input[str]] = None,
                             service: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetPrimaryTaskSetResult]
    func LookupPrimaryTaskSet(ctx *Context, args *LookupPrimaryTaskSetArgs, opts ...InvokeOption) (*LookupPrimaryTaskSetResult, error)
    func LookupPrimaryTaskSetOutput(ctx *Context, args *LookupPrimaryTaskSetOutputArgs, opts ...InvokeOption) LookupPrimaryTaskSetResultOutput

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

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

    The following arguments are supported:

    Cluster string
    The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service to create the task set in.
    Service string
    The short name or full Amazon Resource Name (ARN) of the service to create the task set in.
    Cluster string
    The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service to create the task set in.
    Service string
    The short name or full Amazon Resource Name (ARN) of the service to create the task set in.
    cluster String
    The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service to create the task set in.
    service String
    The short name or full Amazon Resource Name (ARN) of the service to create the task set in.
    cluster string
    The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service to create the task set in.
    service string
    The short name or full Amazon Resource Name (ARN) of the service to create the task set in.
    cluster str
    The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service to create the task set in.
    service str
    The short name or full Amazon Resource Name (ARN) of the service to create the task set in.
    cluster String
    The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service to create the task set in.
    service String
    The short name or full Amazon Resource Name (ARN) of the service to create the task set in.

    getPrimaryTaskSet Result

    The following output properties are available:

    TaskSetId string
    The ID or full Amazon Resource Name (ARN) of the task set.
    TaskSetId string
    The ID or full Amazon Resource Name (ARN) of the task set.
    taskSetId String
    The ID or full Amazon Resource Name (ARN) of the task set.
    taskSetId string
    The ID or full Amazon Resource Name (ARN) of the task set.
    task_set_id str
    The ID or full Amazon Resource Name (ARN) of the task set.
    taskSetId String
    The ID or full Amazon Resource Name (ARN) of the task set.

    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.103.0 published on Monday, Apr 22, 2024 by Pulumi