AWS Classic

Pulumi Official
Package maintained by Pulumi
v5.10.0 published on Monday, Jul 11, 2022 by Pulumi

getImagePipelines

Use this data source to get the ARNs and names of Image Builder Image Pipelines matching the specified criteria.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(Aws.ImageBuilder.GetImagePipelines.InvokeAsync(new Aws.ImageBuilder.GetImagePipelinesArgs
        {
            Filters = 
            {
                new Aws.ImageBuilder.Inputs.GetImagePipelinesFilterArgs
                {
                    Name = "name",
                    Values = 
                    {
                        "example",
                    },
                },
            },
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/imagebuilder"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := imagebuilder.GetImagePipelines(ctx, &imagebuilder.GetImagePipelinesArgs{
			Filters: []imagebuilder.GetImagePipelinesFilter{
				imagebuilder.GetImagePipelinesFilter{
					Name: "name",
					Values: []string{
						"example",
					},
				},
			},
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var example = Output.of(ImagebuilderFunctions.getImagePipelines(GetImagePipelinesArgs.builder()
            .filters(GetImagePipelinesFilterArgs.builder()
                .name("name")
                .values("example")
                .build())
            .build()));

    }
}
import pulumi
import pulumi_aws as aws

example = aws.imagebuilder.get_image_pipelines(filters=[aws.imagebuilder.GetImagePipelinesFilterArgs(
    name="name",
    values=["example"],
)])
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = pulumi.output(aws.imagebuilder.getImagePipelines({
    filters: [{
        name: "name",
        values: ["example"],
    }],
}));
variables:
  example:
    Fn::Invoke:
      Function: aws:imagebuilder:getImagePipelines
      Arguments:
        filters:
          - name: name
            values:
              - example

Using getImagePipelines

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 getImagePipelines(args: GetImagePipelinesArgs, opts?: InvokeOptions): Promise<GetImagePipelinesResult>
function getImagePipelinesOutput(args: GetImagePipelinesOutputArgs, opts?: InvokeOptions): Output<GetImagePipelinesResult>
def get_image_pipelines(filters: Optional[Sequence[GetImagePipelinesFilter]] = None,
                        opts: Optional[InvokeOptions] = None) -> GetImagePipelinesResult
def get_image_pipelines_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetImagePipelinesFilterArgs]]]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetImagePipelinesResult]
func GetImagePipelines(ctx *Context, args *GetImagePipelinesArgs, opts ...InvokeOption) (*GetImagePipelinesResult, error)
func GetImagePipelinesOutput(ctx *Context, args *GetImagePipelinesOutputArgs, opts ...InvokeOption) GetImagePipelinesResultOutput

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

public static class GetImagePipelines 
{
    public static Task<GetImagePipelinesResult> InvokeAsync(GetImagePipelinesArgs args, InvokeOptions? opts = null)
    public static Output<GetImagePipelinesResult> Invoke(GetImagePipelinesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetImagePipelinesResult> getImagePipelines(GetImagePipelinesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: aws:imagebuilder/getImagePipelines:getImagePipelines
  Arguments:
    # Arguments dictionary

The following arguments are supported:

Filters List<GetImagePipelinesFilter>

Configuration block(s) for filtering. Detailed below.

Filters []GetImagePipelinesFilter

Configuration block(s) for filtering. Detailed below.

filters List<GetImagePipelinesFilter>

Configuration block(s) for filtering. Detailed below.

filters GetImagePipelinesFilter[]

Configuration block(s) for filtering. Detailed below.

filters Sequence[GetImagePipelinesFilter]

Configuration block(s) for filtering. Detailed below.

filters List<Property Map>

Configuration block(s) for filtering. Detailed below.

getImagePipelines Result

The following output properties are available:

Arns List<string>

Set of ARNs of the matched Image Builder Image Pipelines.

Id string

The provider-assigned unique ID for this managed resource.

Names List<string>

Set of names of the matched Image Builder Image Pipelines.

Filters List<GetImagePipelinesFilter>
Arns []string

Set of ARNs of the matched Image Builder Image Pipelines.

Id string

The provider-assigned unique ID for this managed resource.

Names []string

Set of names of the matched Image Builder Image Pipelines.

Filters []GetImagePipelinesFilter
arns List<String>

Set of ARNs of the matched Image Builder Image Pipelines.

id String

The provider-assigned unique ID for this managed resource.

names List<String>

Set of names of the matched Image Builder Image Pipelines.

filters List<GetImagePipelinesFilter>
arns string[]

Set of ARNs of the matched Image Builder Image Pipelines.

id string

The provider-assigned unique ID for this managed resource.

names string[]

Set of names of the matched Image Builder Image Pipelines.

filters GetImagePipelinesFilter[]
arns Sequence[str]

Set of ARNs of the matched Image Builder Image Pipelines.

id str

The provider-assigned unique ID for this managed resource.

names Sequence[str]

Set of names of the matched Image Builder Image Pipelines.

filters Sequence[GetImagePipelinesFilter]
arns List<String>

Set of ARNs of the matched Image Builder Image Pipelines.

id String

The provider-assigned unique ID for this managed resource.

names List<String>

Set of names of the matched Image Builder Image Pipelines.

filters List<Property Map>

Supporting Types

GetImagePipelinesFilter

Name string

The name of the filter field. Valid values can be found in the Image Builder ListImagePipelines API Reference.

Values List<string>

Set of values that are accepted for the given filter field. Results will be selected if any given value matches.

Name string

The name of the filter field. Valid values can be found in the Image Builder ListImagePipelines API Reference.

Values []string

Set of values that are accepted for the given filter field. Results will be selected if any given value matches.

name String

The name of the filter field. Valid values can be found in the Image Builder ListImagePipelines API Reference.

values List<String>

Set of values that are accepted for the given filter field. Results will be selected if any given value matches.

name string

The name of the filter field. Valid values can be found in the Image Builder ListImagePipelines API Reference.

values string[]

Set of values that are accepted for the given filter field. Results will be selected if any given value matches.

name str

The name of the filter field. Valid values can be found in the Image Builder ListImagePipelines API Reference.

values Sequence[str]

Set of values that are accepted for the given filter field. Results will be selected if any given value matches.

name String

The name of the filter field. Valid values can be found in the Image Builder ListImagePipelines API Reference.

values List<String>

Set of values that are accepted for the given filter field. Results will be selected if any given value matches.

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.