1. Packages
  2. AWS Classic
  3. API Docs
  4. imagebuilder
  5. getInfrastructureConfiguration

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi

aws.imagebuilder.getInfrastructureConfiguration

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi

    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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aws:imagebuilder/getInfrastructureConfiguration:getInfrastructureConfiguration
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Arn 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 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 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 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 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 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 int
    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.
    HttpPutResponseHopLimit int
    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.
    httpPutResponseHopLimit Integer
    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.
    httpPutResponseHopLimit number
    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_response_hop_limit int
    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.
    httpPutResponseHopLimit Number
    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<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_name str
    Name of the S3 Bucket for logging.
    s3_key_prefix str
    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 aws Terraform Provider.
    aws logo

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi