1. Packages
  2. AWS Classic
  3. API Docs
  4. emr
  5. getReleaseLabels

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi

aws.emr.getReleaseLabels

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi

    Retrieve information about EMR Release Labels.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = aws.emr.getReleaseLabels({
        filters: {
            application: "spark@2.1.0",
            prefix: "emr-5",
        },
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.emr.get_release_labels(filters={
        "application": "spark@2.1.0",
        "prefix": "emr-5",
    })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/emr"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := emr.GetReleaseLabels(ctx, &emr.GetReleaseLabelsArgs{
    			Filters: emr.GetReleaseLabelsFilters{
    				Application: pulumi.StringRef("spark@2.1.0"),
    				Prefix:      pulumi.StringRef("emr-5"),
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Aws.Emr.GetReleaseLabels.Invoke(new()
        {
            Filters = new Aws.Emr.Inputs.GetReleaseLabelsFiltersInputArgs
            {
                Application = "spark@2.1.0",
                Prefix = "emr-5",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.emr.EmrFunctions;
    import com.pulumi.aws.emr.inputs.GetReleaseLabelsArgs;
    import com.pulumi.aws.emr.inputs.GetReleaseLabelsFiltersArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var example = EmrFunctions.getReleaseLabels(GetReleaseLabelsArgs.builder()
                .filters(GetReleaseLabelsFiltersArgs.builder()
                    .application("spark@2.1.0")
                    .prefix("emr-5")
                    .build())
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: aws:emr:getReleaseLabels
          Arguments:
            filters:
              application: spark@2.1.0
              prefix: emr-5
    

    Using getReleaseLabels

    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 getReleaseLabels(args: GetReleaseLabelsArgs, opts?: InvokeOptions): Promise<GetReleaseLabelsResult>
    function getReleaseLabelsOutput(args: GetReleaseLabelsOutputArgs, opts?: InvokeOptions): Output<GetReleaseLabelsResult>
    def get_release_labels(filters: Optional[GetReleaseLabelsFilters] = None,
                           opts: Optional[InvokeOptions] = None) -> GetReleaseLabelsResult
    def get_release_labels_output(filters: Optional[pulumi.Input[GetReleaseLabelsFiltersArgs]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetReleaseLabelsResult]
    func GetReleaseLabels(ctx *Context, args *GetReleaseLabelsArgs, opts ...InvokeOption) (*GetReleaseLabelsResult, error)
    func GetReleaseLabelsOutput(ctx *Context, args *GetReleaseLabelsOutputArgs, opts ...InvokeOption) GetReleaseLabelsResultOutput

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

    public static class GetReleaseLabels 
    {
        public static Task<GetReleaseLabelsResult> InvokeAsync(GetReleaseLabelsArgs args, InvokeOptions? opts = null)
        public static Output<GetReleaseLabelsResult> Invoke(GetReleaseLabelsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetReleaseLabelsResult> getReleaseLabels(GetReleaseLabelsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aws:emr/getReleaseLabels:getReleaseLabels
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Filters GetReleaseLabelsFilters
    Filters the results of the request. Prefix specifies the prefix of release labels to return. Application specifies the application (with/without version) of release labels to return. See Filters.
    Filters GetReleaseLabelsFilters
    Filters the results of the request. Prefix specifies the prefix of release labels to return. Application specifies the application (with/without version) of release labels to return. See Filters.
    filters GetReleaseLabelsFilters
    Filters the results of the request. Prefix specifies the prefix of release labels to return. Application specifies the application (with/without version) of release labels to return. See Filters.
    filters GetReleaseLabelsFilters
    Filters the results of the request. Prefix specifies the prefix of release labels to return. Application specifies the application (with/without version) of release labels to return. See Filters.
    filters GetReleaseLabelsFilters
    Filters the results of the request. Prefix specifies the prefix of release labels to return. Application specifies the application (with/without version) of release labels to return. See Filters.
    filters Property Map
    Filters the results of the request. Prefix specifies the prefix of release labels to return. Application specifies the application (with/without version) of release labels to return. See Filters.

    getReleaseLabels Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    ReleaseLabels List<string>
    Returned release labels.
    Filters GetReleaseLabelsFilters
    Id string
    The provider-assigned unique ID for this managed resource.
    ReleaseLabels []string
    Returned release labels.
    Filters GetReleaseLabelsFilters
    id String
    The provider-assigned unique ID for this managed resource.
    releaseLabels List<String>
    Returned release labels.
    filters GetReleaseLabelsFilters
    id string
    The provider-assigned unique ID for this managed resource.
    releaseLabels string[]
    Returned release labels.
    filters GetReleaseLabelsFilters
    id str
    The provider-assigned unique ID for this managed resource.
    release_labels Sequence[str]
    Returned release labels.
    filters GetReleaseLabelsFilters
    id String
    The provider-assigned unique ID for this managed resource.
    releaseLabels List<String>
    Returned release labels.
    filters Property Map

    Supporting Types

    GetReleaseLabelsFilters

    Application string
    Optional release label application filter. For example, Spark@2.1.0 or Spark.
    Prefix string
    Optional release label version prefix filter. For example, emr-5.
    Application string
    Optional release label application filter. For example, Spark@2.1.0 or Spark.
    Prefix string
    Optional release label version prefix filter. For example, emr-5.
    application String
    Optional release label application filter. For example, Spark@2.1.0 or Spark.
    prefix String
    Optional release label version prefix filter. For example, emr-5.
    application string
    Optional release label application filter. For example, Spark@2.1.0 or Spark.
    prefix string
    Optional release label version prefix filter. For example, emr-5.
    application str
    Optional release label application filter. For example, Spark@2.1.0 or Spark.
    prefix str
    Optional release label version prefix filter. For example, emr-5.
    application String
    Optional release label application filter. For example, Spark@2.1.0 or Spark.
    prefix String
    Optional release label version prefix filter. For example, emr-5.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi