AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi
aws.emr.getReleaseLabels
Explore with Pulumi AI
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
Get
Release Labels Filters - 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
Get
Release Labels Filters - 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
Get
Release Labels Filters - 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
Get
Release Labels Filters - 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
Get
Release Labels Filters - 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.
- Release
Labels List<string> - Returned release labels.
- Filters
Get
Release Labels Filters
- Id string
- The provider-assigned unique ID for this managed resource.
- Release
Labels []string - Returned release labels.
- Filters
Get
Release Labels Filters
- id String
- The provider-assigned unique ID for this managed resource.
- release
Labels List<String> - Returned release labels.
- filters
Get
Release Labels Filters
- id string
- The provider-assigned unique ID for this managed resource.
- release
Labels string[] - Returned release labels.
- filters
Get
Release Labels Filters
- id str
- The provider-assigned unique ID for this managed resource.
- release_
labels Sequence[str] - Returned release labels.
- filters
Get
Release Labels Filters
- id String
- The provider-assigned unique ID for this managed resource.
- release
Labels List<String> - Returned release labels.
- filters Property Map
Supporting Types
GetReleaseLabelsFilters
- Application string
- Optional release label application filter. For example,
Spark@2.1.0
orSpark
. - 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
orSpark
. - 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
orSpark
. - 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
orSpark
. - 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
orSpark
. - 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
orSpark
. - 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.