1. Packages
  2. AWS
  3. API Docs
  4. imagebuilder
  5. getInfrastructureConfiguration
AWS v6.74.0 published on Wednesday, Mar 26, 2025 by Pulumi

aws.imagebuilder.getInfrastructureConfiguration

Explore with Pulumi AI

Provides details about an Image Builder Infrastructure Configuration.

Example Usage

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

const example = aws.imagebuilder.getInfrastructureConfiguration({
    arn: "arn:aws:imagebuilder:us-west-2:aws:infrastructure-configuration/example",
});
Copy
import pulumi
import pulumi_aws as aws

example = aws.imagebuilder.get_infrastructure_configuration(arn="arn:aws:imagebuilder:us-west-2:aws:infrastructure-configuration/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.LookupInfrastructureConfiguration(ctx, &imagebuilder.LookupInfrastructureConfigurationArgs{
			Arn: "arn:aws:imagebuilder:us-west-2:aws:infrastructure-configuration/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.GetInfrastructureConfiguration.Invoke(new()
    {
        Arn = "arn:aws:imagebuilder:us-west-2:aws:infrastructure-configuration/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.GetInfrastructureConfigurationArgs;
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.getInfrastructureConfiguration(GetInfrastructureConfigurationArgs.builder()
            .arn("arn:aws:imagebuilder:us-west-2:aws:infrastructure-configuration/example")
            .build());

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: aws:imagebuilder:getInfrastructureConfiguration
      arguments:
        arn: arn:aws:imagebuilder:us-west-2:aws:infrastructure-configuration/example
Copy

Using getInfrastructureConfiguration

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 getInfrastructureConfiguration(args: GetInfrastructureConfigurationArgs, opts?: InvokeOptions): Promise<GetInfrastructureConfigurationResult>
function getInfrastructureConfigurationOutput(args: GetInfrastructureConfigurationOutputArgs, opts?: InvokeOptions): Output<GetInfrastructureConfigurationResult>
Copy
def get_infrastructure_configuration(arn: Optional[str] = None,
                                     resource_tags: Optional[Mapping[str, str]] = None,
                                     tags: Optional[Mapping[str, str]] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetInfrastructureConfigurationResult
def get_infrastructure_configuration_output(arn: Optional[pulumi.Input[str]] = None,
                                     resource_tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                                     tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                                     opts: Optional[InvokeOptions] = None) -> Output[GetInfrastructureConfigurationResult]
Copy
func LookupInfrastructureConfiguration(ctx *Context, args *LookupInfrastructureConfigurationArgs, opts ...InvokeOption) (*LookupInfrastructureConfigurationResult, error)
func LookupInfrastructureConfigurationOutput(ctx *Context, args *LookupInfrastructureConfigurationOutputArgs, opts ...InvokeOption) LookupInfrastructureConfigurationResultOutput
Copy

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

public static class GetInfrastructureConfiguration 
{
    public static Task<GetInfrastructureConfigurationResult> InvokeAsync(GetInfrastructureConfigurationArgs args, InvokeOptions? opts = null)
    public static Output<GetInfrastructureConfigurationResult> Invoke(GetInfrastructureConfigurationInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetInfrastructureConfigurationResult> getInfrastructureConfiguration(GetInfrastructureConfigurationArgs args, InvokeOptions options)
public static Output<GetInfrastructureConfigurationResult> getInfrastructureConfiguration(GetInfrastructureConfigurationArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: aws:imagebuilder/getInfrastructureConfiguration:getInfrastructureConfiguration
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Arn This property is required. string
ARN of the infrastructure configuration.
ResourceTags Dictionary<string, string>
Key-value map of resource tags for the infrastructure created by the infrastructure configuration.
Tags Dictionary<string, string>
Key-value map of resource tags for the infrastructure configuration.
Arn This property is required. string
ARN of the infrastructure configuration.
ResourceTags map[string]string
Key-value map of resource tags for the infrastructure created by the infrastructure configuration.
Tags map[string]string
Key-value map of resource tags for the infrastructure configuration.
arn This property is required. String
ARN of the infrastructure configuration.
resourceTags Map<String,String>
Key-value map of resource tags for the infrastructure created by the infrastructure configuration.
tags Map<String,String>
Key-value map of resource tags for the infrastructure configuration.
arn This property is required. string
ARN of the infrastructure configuration.
resourceTags {[key: string]: string}
Key-value map of resource tags for the infrastructure created by the infrastructure configuration.
tags {[key: string]: string}
Key-value map of resource tags for the infrastructure configuration.
arn This property is required. str
ARN of the infrastructure configuration.
resource_tags Mapping[str, str]
Key-value map of resource tags for the infrastructure created by the infrastructure configuration.
tags Mapping[str, str]
Key-value map of resource tags for the infrastructure configuration.
arn This property is required. String
ARN of the infrastructure configuration.
resourceTags Map<String>
Key-value map of resource tags for the infrastructure created by the infrastructure configuration.
tags Map<String>
Key-value map of resource tags for the infrastructure configuration.

getInfrastructureConfiguration Result

The following output properties are available:

Arn string
DateCreated string
Date the infrastructure configuration was updated.
DateUpdated string
Description string
Description of the infrastructure configuration.
Id string
The provider-assigned unique ID for this managed resource.
InstanceMetadataOptions List<GetInfrastructureConfigurationInstanceMetadataOption>
Nested list of instance metadata options for the HTTP requests that pipeline builds use to launch EC2 build and test instances.
InstanceProfileName string
Name of the IAM Instance Profile associated with the configuration.
InstanceTypes List<string>
Set of EC2 Instance Types associated with the configuration.
KeyPair string
Name of the EC2 Key Pair associated with the configuration.
Loggings List<GetInfrastructureConfigurationLogging>
Nested list of logging settings.
Name string
Name of the infrastructure configuration.
ResourceTags Dictionary<string, string>
Key-value map of resource tags for the infrastructure created by the infrastructure configuration.
SecurityGroupIds List<string>
Set of EC2 Security Group identifiers associated with the configuration.
SnsTopicArn string
ARN of the SNS Topic associated with the configuration.
SubnetId string
Identifier of the EC2 Subnet associated with the configuration.
Tags Dictionary<string, string>
Key-value map of resource tags for the infrastructure configuration.
TerminateInstanceOnFailure bool
Whether instances are terminated on failure.
Arn string
DateCreated string
Date the infrastructure configuration was updated.
DateUpdated string
Description string
Description of the infrastructure configuration.
Id string
The provider-assigned unique ID for this managed resource.
InstanceMetadataOptions []GetInfrastructureConfigurationInstanceMetadataOption
Nested list of instance metadata options for the HTTP requests that pipeline builds use to launch EC2 build and test instances.
InstanceProfileName string
Name of the IAM Instance Profile associated with the configuration.
InstanceTypes []string
Set of EC2 Instance Types associated with the configuration.
KeyPair string
Name of the EC2 Key Pair associated with the configuration.
Loggings []GetInfrastructureConfigurationLogging
Nested list of logging settings.
Name string
Name of the infrastructure configuration.
ResourceTags map[string]string
Key-value map of resource tags for the infrastructure created by the infrastructure configuration.
SecurityGroupIds []string
Set of EC2 Security Group identifiers associated with the configuration.
SnsTopicArn string
ARN of the SNS Topic associated with the configuration.
SubnetId string
Identifier of the EC2 Subnet associated with the configuration.
Tags map[string]string
Key-value map of resource tags for the infrastructure configuration.
TerminateInstanceOnFailure bool
Whether instances are terminated on failure.
arn String
dateCreated String
Date the infrastructure configuration was updated.
dateUpdated String
description String
Description of the infrastructure configuration.
id String
The provider-assigned unique ID for this managed resource.
instanceMetadataOptions List<GetInfrastructureConfigurationInstanceMetadataOption>
Nested list of instance metadata options for the HTTP requests that pipeline builds use to launch EC2 build and test instances.
instanceProfileName String
Name of the IAM Instance Profile associated with the configuration.
instanceTypes List<String>
Set of EC2 Instance Types associated with the configuration.
keyPair String
Name of the EC2 Key Pair associated with the configuration.
loggings List<GetInfrastructureConfigurationLogging>
Nested list of logging settings.
name String
Name of the infrastructure configuration.
resourceTags Map<String,String>
Key-value map of resource tags for the infrastructure created by the infrastructure configuration.
securityGroupIds List<String>
Set of EC2 Security Group identifiers associated with the configuration.
snsTopicArn String
ARN of the SNS Topic associated with the configuration.
subnetId String
Identifier of the EC2 Subnet associated with the configuration.
tags Map<String,String>
Key-value map of resource tags for the infrastructure configuration.
terminateInstanceOnFailure Boolean
Whether instances are terminated on failure.
arn string
dateCreated string
Date the infrastructure configuration was updated.
dateUpdated string
description string
Description of the infrastructure configuration.
id string
The provider-assigned unique ID for this managed resource.
instanceMetadataOptions GetInfrastructureConfigurationInstanceMetadataOption[]
Nested list of instance metadata options for the HTTP requests that pipeline builds use to launch EC2 build and test instances.
instanceProfileName string
Name of the IAM Instance Profile associated with the configuration.
instanceTypes string[]
Set of EC2 Instance Types associated with the configuration.
keyPair string
Name of the EC2 Key Pair associated with the configuration.
loggings GetInfrastructureConfigurationLogging[]
Nested list of logging settings.
name string
Name of the infrastructure configuration.
resourceTags {[key: string]: string}
Key-value map of resource tags for the infrastructure created by the infrastructure configuration.
securityGroupIds string[]
Set of EC2 Security Group identifiers associated with the configuration.
snsTopicArn string
ARN of the SNS Topic associated with the configuration.
subnetId string
Identifier of the EC2 Subnet associated with the configuration.
tags {[key: string]: string}
Key-value map of resource tags for the infrastructure configuration.
terminateInstanceOnFailure boolean
Whether instances are terminated on failure.
arn str
date_created str
Date the infrastructure configuration was updated.
date_updated str
description str
Description of the infrastructure configuration.
id str
The provider-assigned unique ID for this managed resource.
instance_metadata_options Sequence[GetInfrastructureConfigurationInstanceMetadataOption]
Nested list of instance metadata options for the HTTP requests that pipeline builds use to launch EC2 build and test instances.
instance_profile_name str
Name of the IAM Instance Profile associated with the configuration.
instance_types Sequence[str]
Set of EC2 Instance Types associated with the configuration.
key_pair str
Name of the EC2 Key Pair associated with the configuration.
loggings Sequence[GetInfrastructureConfigurationLogging]
Nested list of logging settings.
name str
Name of the infrastructure configuration.
resource_tags Mapping[str, str]
Key-value map of resource tags for the infrastructure created by the infrastructure configuration.
security_group_ids Sequence[str]
Set of EC2 Security Group identifiers associated with the configuration.
sns_topic_arn str
ARN of the SNS Topic associated with the configuration.
subnet_id str
Identifier of the EC2 Subnet associated with the configuration.
tags Mapping[str, str]
Key-value map of resource tags for the infrastructure configuration.
terminate_instance_on_failure bool
Whether instances are terminated on failure.
arn String
dateCreated String
Date the infrastructure configuration was updated.
dateUpdated String
description String
Description of the infrastructure configuration.
id String
The provider-assigned unique ID for this managed resource.
instanceMetadataOptions List<Property Map>
Nested list of instance metadata options for the HTTP requests that pipeline builds use to launch EC2 build and test instances.
instanceProfileName String
Name of the IAM Instance Profile associated with the configuration.
instanceTypes List<String>
Set of EC2 Instance Types associated with the configuration.
keyPair String
Name of the EC2 Key Pair associated with the configuration.
loggings List<Property Map>
Nested list of logging settings.
name String
Name of the infrastructure configuration.
resourceTags Map<String>
Key-value map of resource tags for the infrastructure created by the infrastructure configuration.
securityGroupIds List<String>
Set of EC2 Security Group identifiers associated with the configuration.
snsTopicArn String
ARN of the SNS Topic associated with the configuration.
subnetId String
Identifier of the EC2 Subnet associated with the configuration.
tags Map<String>
Key-value map of resource tags for the infrastructure configuration.
terminateInstanceOnFailure Boolean
Whether instances are terminated on failure.

Supporting Types

GetInfrastructureConfigurationInstanceMetadataOption

HttpPutResponseHopLimit This property is required. int
Number of hops that an instance can traverse to reach its destonation.
HttpTokens This property is required. string
Whether a signed token is required for instance metadata retrieval requests.
HttpPutResponseHopLimit This property is required. int
Number of hops that an instance can traverse to reach its destonation.
HttpTokens This property is required. string
Whether a signed token is required for instance metadata retrieval requests.
httpPutResponseHopLimit This property is required. Integer
Number of hops that an instance can traverse to reach its destonation.
httpTokens This property is required. String
Whether a signed token is required for instance metadata retrieval requests.
httpPutResponseHopLimit This property is required. number
Number of hops that an instance can traverse to reach its destonation.
httpTokens This property is required. string
Whether a signed token is required for instance metadata retrieval requests.
http_put_response_hop_limit This property is required. int
Number of hops that an instance can traverse to reach its destonation.
http_tokens This property is required. str
Whether a signed token is required for instance metadata retrieval requests.
httpPutResponseHopLimit This property is required. Number
Number of hops that an instance can traverse to reach its destonation.
httpTokens This property is required. String
Whether a signed token is required for instance metadata retrieval requests.

GetInfrastructureConfigurationLogging

S3Logs This property is required. List<GetInfrastructureConfigurationLoggingS3Log>
Nested list of S3 logs settings.
S3Logs This property is required. []GetInfrastructureConfigurationLoggingS3Log
Nested list of S3 logs settings.
s3Logs This property is required. List<GetInfrastructureConfigurationLoggingS3Log>
Nested list of S3 logs settings.
s3Logs This property is required. GetInfrastructureConfigurationLoggingS3Log[]
Nested list of S3 logs settings.
s3_logs This property is required. Sequence[GetInfrastructureConfigurationLoggingS3Log]
Nested list of S3 logs settings.
s3Logs This property is required. List<Property Map>
Nested list of S3 logs settings.

GetInfrastructureConfigurationLoggingS3Log

S3BucketName This property is required. string
Name of the S3 Bucket for logging.
S3KeyPrefix This property is required. string
Key prefix for S3 Bucket logging.
S3BucketName This property is required. string
Name of the S3 Bucket for logging.
S3KeyPrefix This property is required. string
Key prefix for S3 Bucket logging.
s3BucketName This property is required. String
Name of the S3 Bucket for logging.
s3KeyPrefix This property is required. String
Key prefix for S3 Bucket logging.
s3BucketName This property is required. string
Name of the S3 Bucket for logging.
s3KeyPrefix This property is required. string
Key prefix for S3 Bucket logging.
s3_bucket_name This property is required. str
Name of the S3 Bucket for logging.
s3_key_prefix This property is required. str
Key prefix for S3 Bucket logging.
s3BucketName This property is required. String
Name of the S3 Bucket for logging.
s3KeyPrefix This property is required. String
Key prefix for S3 Bucket logging.

Package Details

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