1. Packages
  2. AWS
  3. API Docs
  4. imagebuilder
  5. getInfrastructureConfigurations
AWS v6.75.0 published on Wednesday, Apr 2, 2025 by Pulumi

aws.imagebuilder.getInfrastructureConfigurations

Explore with Pulumi AI

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

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = aws.imagebuilder.getInfrastructureConfigurations({
    filters: [{
        name: "name",
        values: ["example"],
    }],
});
Copy
import pulumi
import pulumi_aws as aws

example = aws.imagebuilder.get_infrastructure_configurations(filters=[{
    "name": "name",
    "values": ["example"],
}])
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := imagebuilder.GetInfrastructureConfigurations(ctx, &imagebuilder.GetInfrastructureConfigurationsArgs{
			Filters: []imagebuilder.GetInfrastructureConfigurationsFilter{
				{
					Name: "name",
					Values: []string{
						"example",
					},
				},
			},
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var example = Aws.ImageBuilder.GetInfrastructureConfigurations.Invoke(new()
    {
        Filters = new[]
        {
            new Aws.ImageBuilder.Inputs.GetInfrastructureConfigurationsFilterInputArgs
            {
                Name = "name",
                Values = new[]
                {
                    "example",
                },
            },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.imagebuilder.ImagebuilderFunctions;
import com.pulumi.aws.imagebuilder.inputs.GetInfrastructureConfigurationsArgs;
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 = ImagebuilderFunctions.getInfrastructureConfigurations(GetInfrastructureConfigurationsArgs.builder()
            .filters(GetInfrastructureConfigurationsFilterArgs.builder()
                .name("name")
                .values("example")
                .build())
            .build());

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: aws:imagebuilder:getInfrastructureConfigurations
      arguments:
        filters:
          - name: name
            values:
              - example
Copy

Using getInfrastructureConfigurations

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 getInfrastructureConfigurations(args: GetInfrastructureConfigurationsArgs, opts?: InvokeOptions): Promise<GetInfrastructureConfigurationsResult>
function getInfrastructureConfigurationsOutput(args: GetInfrastructureConfigurationsOutputArgs, opts?: InvokeOptions): Output<GetInfrastructureConfigurationsResult>
Copy
def get_infrastructure_configurations(filters: Optional[Sequence[GetInfrastructureConfigurationsFilter]] = None,
                                      opts: Optional[InvokeOptions] = None) -> GetInfrastructureConfigurationsResult
def get_infrastructure_configurations_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetInfrastructureConfigurationsFilterArgs]]]] = None,
                                      opts: Optional[InvokeOptions] = None) -> Output[GetInfrastructureConfigurationsResult]
Copy
func GetInfrastructureConfigurations(ctx *Context, args *GetInfrastructureConfigurationsArgs, opts ...InvokeOption) (*GetInfrastructureConfigurationsResult, error)
func GetInfrastructureConfigurationsOutput(ctx *Context, args *GetInfrastructureConfigurationsOutputArgs, opts ...InvokeOption) GetInfrastructureConfigurationsResultOutput
Copy

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

public static class GetInfrastructureConfigurations 
{
    public static Task<GetInfrastructureConfigurationsResult> InvokeAsync(GetInfrastructureConfigurationsArgs args, InvokeOptions? opts = null)
    public static Output<GetInfrastructureConfigurationsResult> Invoke(GetInfrastructureConfigurationsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetInfrastructureConfigurationsResult> getInfrastructureConfigurations(GetInfrastructureConfigurationsArgs args, InvokeOptions options)
public static Output<GetInfrastructureConfigurationsResult> getInfrastructureConfigurations(GetInfrastructureConfigurationsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: aws:imagebuilder/getInfrastructureConfigurations:getInfrastructureConfigurations
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Filters List<GetInfrastructureConfigurationsFilter>
Configuration block(s) for filtering. Detailed below.
Filters []GetInfrastructureConfigurationsFilter
Configuration block(s) for filtering. Detailed below.
filters List<GetInfrastructureConfigurationsFilter>
Configuration block(s) for filtering. Detailed below.
filters GetInfrastructureConfigurationsFilter[]
Configuration block(s) for filtering. Detailed below.
filters Sequence[GetInfrastructureConfigurationsFilter]
Configuration block(s) for filtering. Detailed below.
filters List<Property Map>
Configuration block(s) for filtering. Detailed below.

getInfrastructureConfigurations Result

The following output properties are available:

Arns List<string>
Set of ARNs of the matched Image Builder Infrastructure Configurations.
Id string
The provider-assigned unique ID for this managed resource.
Names List<string>
Set of names of the matched Image Builder Infrastructure Configurations.
Filters List<GetInfrastructureConfigurationsFilter>
Arns []string
Set of ARNs of the matched Image Builder Infrastructure Configurations.
Id string
The provider-assigned unique ID for this managed resource.
Names []string
Set of names of the matched Image Builder Infrastructure Configurations.
Filters []GetInfrastructureConfigurationsFilter
arns List<String>
Set of ARNs of the matched Image Builder Infrastructure Configurations.
id String
The provider-assigned unique ID for this managed resource.
names List<String>
Set of names of the matched Image Builder Infrastructure Configurations.
filters List<GetInfrastructureConfigurationsFilter>
arns string[]
Set of ARNs of the matched Image Builder Infrastructure Configurations.
id string
The provider-assigned unique ID for this managed resource.
names string[]
Set of names of the matched Image Builder Infrastructure Configurations.
filters GetInfrastructureConfigurationsFilter[]
arns Sequence[str]
Set of ARNs of the matched Image Builder Infrastructure Configurations.
id str
The provider-assigned unique ID for this managed resource.
names Sequence[str]
Set of names of the matched Image Builder Infrastructure Configurations.
filters Sequence[GetInfrastructureConfigurationsFilter]
arns List<String>
Set of ARNs of the matched Image Builder Infrastructure Configurations.
id String
The provider-assigned unique ID for this managed resource.
names List<String>
Set of names of the matched Image Builder Infrastructure Configurations.
filters List<Property Map>

Supporting Types

GetInfrastructureConfigurationsFilter

Name This property is required. string
Name of the filter field. Valid values can be found in the Image Builder ListInfrastructureConfigurations API Reference.
Values This property is required. List<string>
Set of values that are accepted for the given filter field. Results will be selected if any given value matches.
Name This property is required. string
Name of the filter field. Valid values can be found in the Image Builder ListInfrastructureConfigurations API Reference.
Values This property is required. []string
Set of values that are accepted for the given filter field. Results will be selected if any given value matches.
name This property is required. String
Name of the filter field. Valid values can be found in the Image Builder ListInfrastructureConfigurations API Reference.
values This property is required. List<String>
Set of values that are accepted for the given filter field. Results will be selected if any given value matches.
name This property is required. string
Name of the filter field. Valid values can be found in the Image Builder ListInfrastructureConfigurations API Reference.
values This property is required. string[]
Set of values that are accepted for the given filter field. Results will be selected if any given value matches.
name This property is required. str
Name of the filter field. Valid values can be found in the Image Builder ListInfrastructureConfigurations API Reference.
values This property is required. Sequence[str]
Set of values that are accepted for the given filter field. Results will be selected if any given value matches.
name This property is required. String
Name of the filter field. Valid values can be found in the Image Builder ListInfrastructureConfigurations API Reference.
values This property is required. 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
AWS Classic pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.