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
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.
- 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
- Date
Created string - Date the infrastructure configuration was updated.
- Date
Updated string - Description string
- Description of the infrastructure configuration.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Metadata 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.
- Instance
Profile stringName - Name of the IAM Instance Profile associated with the configuration.
- Instance
Types List<string> - Set of EC2 Instance Types associated with the configuration.
- Key
Pair string - Name of the EC2 Key Pair associated with the configuration.
- Loggings
List<Get
Infrastructure 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.
- Security
Group List<string>Ids - Set of EC2 Security Group identifiers associated with the configuration.
- Sns
Topic stringArn - ARN of the SNS Topic associated with the configuration.
- Subnet
Id string - Identifier of the EC2 Subnet associated with the configuration.
- Dictionary<string, string>
- Key-value map of resource tags for the infrastructure configuration.
- Terminate
Instance boolOn Failure - Whether instances are terminated on failure.
- Arn string
- Date
Created string - Date the infrastructure configuration was updated.
- Date
Updated string - Description string
- Description of the infrastructure configuration.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Metadata []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 stringName - Name of the IAM Instance Profile associated with the configuration.
- Instance
Types []string - Set of EC2 Instance Types associated with the configuration.
- Key
Pair string - Name of the EC2 Key Pair associated with the configuration.
- Loggings
[]Get
Infrastructure 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.
- Security
Group []stringIds - Set of EC2 Security Group identifiers associated with the configuration.
- Sns
Topic stringArn - ARN of the SNS Topic associated with the configuration.
- Subnet
Id string - Identifier of the EC2 Subnet associated with the configuration.
- map[string]string
- Key-value map of resource tags for the infrastructure configuration.
- Terminate
Instance boolOn Failure - Whether instances are terminated on failure.
- arn String
- date
Created String - Date the infrastructure configuration was updated.
- date
Updated String - description String
- Description of the infrastructure configuration.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Metadata 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.
- instance
Profile StringName - Name of the IAM Instance Profile associated with the configuration.
- instance
Types List<String> - Set of EC2 Instance Types associated with the configuration.
- key
Pair String - Name of the EC2 Key Pair associated with the configuration.
- loggings
List<Get
Infrastructure 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.
- security
Group List<String>Ids - Set of EC2 Security Group identifiers associated with the configuration.
- sns
Topic StringArn - ARN of the SNS Topic associated with the configuration.
- subnet
Id String - Identifier of the EC2 Subnet associated with the configuration.
- Map<String,String>
- Key-value map of resource tags for the infrastructure configuration.
- terminate
Instance BooleanOn Failure - Whether instances are terminated on failure.
- arn string
- date
Created string - Date the infrastructure configuration was updated.
- date
Updated string - description string
- Description of the infrastructure configuration.
- id string
- The provider-assigned unique ID for this managed resource.
- instance
Metadata 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 stringName - Name of the IAM Instance Profile associated with the configuration.
- instance
Types string[] - Set of EC2 Instance Types associated with the configuration.
- key
Pair string - Name of the EC2 Key Pair associated with the configuration.
- loggings
Get
Infrastructure 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.
- security
Group string[]Ids - Set of EC2 Security Group identifiers associated with the configuration.
- sns
Topic stringArn - ARN of the SNS Topic associated with the configuration.
- subnet
Id string - Identifier of the EC2 Subnet associated with the configuration.
- {[key: string]: string}
- Key-value map of resource tags for the infrastructure configuration.
- terminate
Instance 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[Get
Infrastructure 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
- date
Created String - Date the infrastructure configuration was updated.
- date
Updated String - description String
- Description of the infrastructure configuration.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Metadata 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.
- instance
Profile StringName - Name of the IAM Instance Profile associated with the configuration.
- instance
Types List<String> - Set of EC2 Instance Types associated with the configuration.
- key
Pair 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.
- security
Group List<String>Ids - Set of EC2 Security Group identifiers associated with the configuration.
- sns
Topic StringArn - ARN of the SNS Topic associated with the configuration.
- subnet
Id String - Identifier of the EC2 Subnet associated with the configuration.
- Map<String>
- Key-value map of resource tags for the infrastructure configuration.
- terminate
Instance BooleanOn Failure - Whether instances are terminated on failure.
Supporting Types
GetInfrastructureConfigurationInstanceMetadataOption
- Http
Put intResponse Hop Limit - Number of hops that an instance can traverse to reach its destonation.
- Http
Tokens 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 string - Whether a signed token is required for instance metadata retrieval requests.
- http
Put IntegerResponse Hop Limit - Number of hops that an instance can traverse to reach its destonation.
- http
Tokens String - Whether a signed token is required for instance metadata retrieval requests.
- http
Put numberResponse Hop Limit - Number of hops that an instance can traverse to reach its destonation.
- http
Tokens 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.
- http
Put NumberResponse Hop Limit - Number of hops that an instance can traverse to reach its destonation.
- http
Tokens String - Whether a signed token is required for instance metadata retrieval requests.
GetInfrastructureConfigurationLogging
- S3Logs
List<Get
Infrastructure Configuration Logging S3Log> - Nested list of S3 logs settings.
- S3Logs
[]Get
Infrastructure Configuration Logging S3Log - Nested list of S3 logs settings.
- s3Logs
List<Get
Infrastructure Configuration Logging S3Log> - Nested list of S3 logs settings.
- s3Logs
Get
Infrastructure 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
- S3Bucket
Name string - Name of the S3 Bucket for logging.
- S3Key
Prefix string - Key prefix for S3 Bucket logging.
- S3Bucket
Name string - Name of the S3 Bucket for logging.
- S3Key
Prefix string - Key prefix for S3 Bucket logging.
- s3Bucket
Name String - Name of the S3 Bucket for logging.
- s3Key
Prefix String - Key prefix for S3 Bucket logging.
- s3Bucket
Name string - Name of the S3 Bucket for logging.
- s3Key
Prefix 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.
- s3Bucket
Name String - Name of the S3 Bucket for logging.
- s3Key
Prefix 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.
Try AWS Native preview for resources not in the classic version.
AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi