AWS v6.72.0 published on Tuesday, Mar 11, 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",
});
import pulumi
import pulumi_aws as aws
example = aws.imagebuilder.get_infrastructure_configuration(arn="arn:aws:imagebuilder:us-west-2:aws:infrastructure-configuration/example")
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
	})
}
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",
    });
});
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());
    }
}
variables:
  example:
    fn::invoke:
      function: aws:imagebuilder:getInfrastructureConfiguration
      arguments:
        arn: arn:aws:imagebuilder:us-west-2:aws:infrastructure-configuration/example
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>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]func LookupInfrastructureConfiguration(ctx *Context, args *LookupInfrastructureConfigurationArgs, opts ...InvokeOption) (*LookupInfrastructureConfigurationResult, error)
func LookupInfrastructureConfigurationOutput(ctx *Context, args *LookupInfrastructureConfigurationOutputArgs, opts ...InvokeOption) LookupInfrastructureConfigurationResultOutput> 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)
}public static CompletableFuture<GetInfrastructureConfigurationResult> getInfrastructureConfiguration(GetInfrastructureConfigurationArgs args, InvokeOptions options)
public static Output<GetInfrastructureConfigurationResult> getInfrastructureConfiguration(GetInfrastructureConfigurationArgs args, InvokeOptions options)
fn::invoke:
  function: aws:imagebuilder/getInfrastructureConfiguration:getInfrastructureConfiguration
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Arn string
- ARN of the infrastructure configuration.
- Dictionary<string, string>
- Key-value map of resource tags for the infrastructure created by the infrastructure configuration.
- Dictionary<string, string>
- Key-value map of resource tags for the infrastructure configuration.
- Arn string
- ARN of the infrastructure configuration.
- map[string]string
- Key-value map of resource tags for the infrastructure created by the infrastructure configuration.
- map[string]string
- Key-value map of resource tags for the infrastructure configuration.
- arn String
- ARN of the infrastructure configuration.
- Map<String,String>
- Key-value map of resource tags for the infrastructure created by the infrastructure configuration.
- Map<String,String>
- Key-value map of resource tags for the infrastructure configuration.
- arn string
- ARN of the infrastructure configuration.
- {[key: string]: string}
- Key-value map of resource tags for the infrastructure created by the infrastructure configuration.
- {[key: string]: string}
- Key-value map of resource tags for the infrastructure configuration.
- arn str
- ARN of the infrastructure configuration.
- Mapping[str, str]
- Key-value map of resource tags for the infrastructure created by the infrastructure configuration.
- Mapping[str, str]
- Key-value map of resource tags for the infrastructure configuration.
- arn String
- ARN of the infrastructure configuration.
- Map<String>
- Key-value map of resource tags for the infrastructure created by the infrastructure configuration.
- 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.
- InstanceMetadata List<GetOptions Infrastructure Configuration Instance Metadata Option> 
- Nested list of instance metadata options for the HTTP requests that pipeline builds use to launch EC2 build and test instances.
- InstanceProfile stringName 
- 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<GetInfrastructure Configuration Logging> 
- Nested list of logging settings.
- Name string
- Name of the infrastructure configuration.
- Dictionary<string, string>
- Key-value map of resource tags for the infrastructure created by the infrastructure configuration.
- SecurityGroup List<string>Ids 
- Set of EC2 Security Group identifiers associated with the configuration.
- SnsTopic stringArn 
- ARN of the SNS Topic associated with the configuration.
- SubnetId string
- Identifier of the EC2 Subnet associated with the configuration.
- Dictionary<string, string>
- Key-value map of resource tags for the infrastructure configuration.
- TerminateInstance boolOn Failure 
- 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.
- InstanceMetadata []GetOptions Infrastructure Configuration Instance Metadata Option 
- Nested list of instance metadata options for the HTTP requests that pipeline builds use to launch EC2 build and test instances.
- InstanceProfile stringName 
- 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
[]GetInfrastructure Configuration Logging 
- Nested list of logging settings.
- Name string
- Name of the infrastructure configuration.
- map[string]string
- Key-value map of resource tags for the infrastructure created by the infrastructure configuration.
- SecurityGroup []stringIds 
- Set of EC2 Security Group identifiers associated with the configuration.
- SnsTopic stringArn 
- ARN of the SNS Topic associated with the configuration.
- SubnetId string
- Identifier of the EC2 Subnet associated with the configuration.
- map[string]string
- Key-value map of resource tags for the infrastructure configuration.
- TerminateInstance boolOn Failure 
- 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.
- instanceMetadata List<GetOptions Infrastructure Configuration Instance Metadata Option> 
- Nested list of instance metadata options for the HTTP requests that pipeline builds use to launch EC2 build and test instances.
- instanceProfile StringName 
- 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<GetInfrastructure Configuration Logging> 
- Nested list of logging settings.
- name String
- Name of the infrastructure configuration.
- Map<String,String>
- Key-value map of resource tags for the infrastructure created by the infrastructure configuration.
- securityGroup List<String>Ids 
- Set of EC2 Security Group identifiers associated with the configuration.
- snsTopic StringArn 
- ARN of the SNS Topic associated with the configuration.
- subnetId String
- Identifier of the EC2 Subnet associated with the configuration.
- Map<String,String>
- Key-value map of resource tags for the infrastructure configuration.
- terminateInstance BooleanOn Failure 
- 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.
- instanceMetadata GetOptions Infrastructure Configuration Instance Metadata Option[] 
- Nested list of instance metadata options for the HTTP requests that pipeline builds use to launch EC2 build and test instances.
- instanceProfile stringName 
- 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
GetInfrastructure Configuration Logging[] 
- Nested list of logging settings.
- name string
- Name of the infrastructure configuration.
- {[key: string]: string}
- Key-value map of resource tags for the infrastructure created by the infrastructure configuration.
- securityGroup string[]Ids 
- Set of EC2 Security Group identifiers associated with the configuration.
- snsTopic stringArn 
- ARN of the SNS Topic associated with the configuration.
- subnetId string
- Identifier of the EC2 Subnet associated with the configuration.
- {[key: string]: string}
- Key-value map of resource tags for the infrastructure configuration.
- terminateInstance booleanOn Failure 
- 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_ Sequence[Getoptions Infrastructure Configuration Instance Metadata Option] 
- Nested list of instance metadata options for the HTTP requests that pipeline builds use to launch EC2 build and test instances.
- instance_profile_ strname 
- 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[GetInfrastructure Configuration Logging] 
- Nested list of logging settings.
- name str
- Name of the infrastructure configuration.
- Mapping[str, str]
- Key-value map of resource tags for the infrastructure created by the infrastructure configuration.
- security_group_ Sequence[str]ids 
- Set of EC2 Security Group identifiers associated with the configuration.
- sns_topic_ strarn 
- ARN of the SNS Topic associated with the configuration.
- subnet_id str
- Identifier of the EC2 Subnet associated with the configuration.
- Mapping[str, str]
- Key-value map of resource tags for the infrastructure configuration.
- terminate_instance_ boolon_ failure 
- 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.
- instanceMetadata List<Property Map>Options 
- Nested list of instance metadata options for the HTTP requests that pipeline builds use to launch EC2 build and test instances.
- instanceProfile StringName 
- 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.
- Map<String>
- Key-value map of resource tags for the infrastructure created by the infrastructure configuration.
- securityGroup List<String>Ids 
- Set of EC2 Security Group identifiers associated with the configuration.
- snsTopic StringArn 
- ARN of the SNS Topic associated with the configuration.
- subnetId String
- Identifier of the EC2 Subnet associated with the configuration.
- Map<String>
- Key-value map of resource tags for the infrastructure configuration.
- terminateInstance BooleanOn Failure 
- Whether instances are terminated on failure.
Supporting Types
GetInfrastructureConfigurationInstanceMetadataOption     
- HttpPut intResponse Hop Limit 
- Number of hops that an instance can traverse to reach its destonation.
- HttpTokens string
- Whether a signed token is required for instance metadata retrieval requests.
- HttpPut intResponse Hop Limit 
- Number of hops that an instance can traverse to reach its destonation.
- HttpTokens string
- Whether a signed token is required for instance metadata retrieval requests.
- httpPut IntegerResponse Hop Limit 
- Number of hops that an instance can traverse to reach its destonation.
- httpTokens String
- Whether a signed token is required for instance metadata retrieval requests.
- httpPut numberResponse Hop Limit 
- Number of hops that an instance can traverse to reach its destonation.
- httpTokens string
- Whether a signed token is required for instance metadata retrieval requests.
- http_put_ intresponse_ hop_ limit 
- Number of hops that an instance can traverse to reach its destonation.
- http_tokens str
- Whether a signed token is required for instance metadata retrieval requests.
- httpPut NumberResponse Hop Limit 
- Number of hops that an instance can traverse to reach its destonation.
- httpTokens String
- Whether a signed token is required for instance metadata retrieval requests.
GetInfrastructureConfigurationLogging   
- S3Logs
List<GetInfrastructure Configuration Logging S3Log> 
- Nested list of S3 logs settings.
- S3Logs
[]GetInfrastructure Configuration Logging S3Log 
- Nested list of S3 logs settings.
- s3Logs
List<GetInfrastructure Configuration Logging S3Log> 
- Nested list of S3 logs settings.
- s3Logs
GetInfrastructure Configuration Logging S3Log[] 
- Nested list of S3 logs settings.
- s3_logs Sequence[GetInfrastructure Configuration Logging S3Log] 
- Nested list of S3 logs settings.
- s3Logs List<Property Map>
- Nested list of S3 logs settings.
GetInfrastructureConfigurationLoggingS3Log    
- S3BucketName string
- Name of the S3 Bucket for logging.
- S3KeyPrefix string
- Key prefix for S3 Bucket logging.
- S3BucketName string
- Name of the S3 Bucket for logging.
- S3KeyPrefix string
- Key prefix for S3 Bucket logging.
- s3BucketName String
- Name of the S3 Bucket for logging.
- s3KeyPrefix String
- Key prefix for S3 Bucket logging.
- s3BucketName string
- Name of the S3 Bucket for logging.
- s3KeyPrefix string
- Key prefix for S3 Bucket logging.
- s3_bucket_ strname 
- Name of the S3 Bucket for logging.
- s3_key_ strprefix 
- Key prefix for S3 Bucket logging.
- s3BucketName String
- Name of the S3 Bucket for logging.
- s3KeyPrefix 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 awsTerraform Provider.