1. Packages
  2. AWS
  3. API Docs
  4. imagebuilder
  5. getImageRecipe
AWS v6.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

aws.imagebuilder.getImageRecipe

Explore with Pulumi AI

AWS v6.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

Provides details about an Image Builder Image Recipe.

Example Usage

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

const example = aws.imagebuilder.getImageRecipe({
    arn: "arn:aws:imagebuilder:us-east-1:aws:image-recipe/example/1.0.0",
});
Copy
import pulumi
import pulumi_aws as aws

example = aws.imagebuilder.get_image_recipe(arn="arn:aws:imagebuilder:us-east-1:aws:image-recipe/example/1.0.0")
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.LookupImageRecipe(ctx, &imagebuilder.LookupImageRecipeArgs{
			Arn: "arn:aws:imagebuilder:us-east-1:aws:image-recipe/example/1.0.0",
		}, 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.GetImageRecipe.Invoke(new()
    {
        Arn = "arn:aws:imagebuilder:us-east-1:aws:image-recipe/example/1.0.0",
    });

});
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.GetImageRecipeArgs;
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.getImageRecipe(GetImageRecipeArgs.builder()
            .arn("arn:aws:imagebuilder:us-east-1:aws:image-recipe/example/1.0.0")
            .build());

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: aws:imagebuilder:getImageRecipe
      arguments:
        arn: arn:aws:imagebuilder:us-east-1:aws:image-recipe/example/1.0.0
Copy

Using getImageRecipe

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 getImageRecipe(args: GetImageRecipeArgs, opts?: InvokeOptions): Promise<GetImageRecipeResult>
function getImageRecipeOutput(args: GetImageRecipeOutputArgs, opts?: InvokeOptions): Output<GetImageRecipeResult>
Copy
def get_image_recipe(arn: Optional[str] = None,
                     tags: Optional[Mapping[str, str]] = None,
                     opts: Optional[InvokeOptions] = None) -> GetImageRecipeResult
def get_image_recipe_output(arn: Optional[pulumi.Input[str]] = None,
                     tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetImageRecipeResult]
Copy
func LookupImageRecipe(ctx *Context, args *LookupImageRecipeArgs, opts ...InvokeOption) (*LookupImageRecipeResult, error)
func LookupImageRecipeOutput(ctx *Context, args *LookupImageRecipeOutputArgs, opts ...InvokeOption) LookupImageRecipeResultOutput
Copy

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

public static class GetImageRecipe 
{
    public static Task<GetImageRecipeResult> InvokeAsync(GetImageRecipeArgs args, InvokeOptions? opts = null)
    public static Output<GetImageRecipeResult> Invoke(GetImageRecipeInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetImageRecipeResult> getImageRecipe(GetImageRecipeArgs args, InvokeOptions options)
public static Output<GetImageRecipeResult> getImageRecipe(GetImageRecipeArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: aws:imagebuilder/getImageRecipe:getImageRecipe
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Arn This property is required. string
ARN of the image recipe.
Tags Dictionary<string, string>
Key-value map of resource tags for the image recipe.
Arn This property is required. string
ARN of the image recipe.
Tags map[string]string
Key-value map of resource tags for the image recipe.
arn This property is required. String
ARN of the image recipe.
tags Map<String,String>
Key-value map of resource tags for the image recipe.
arn This property is required. string
ARN of the image recipe.
tags {[key: string]: string}
Key-value map of resource tags for the image recipe.
arn This property is required. str
ARN of the image recipe.
tags Mapping[str, str]
Key-value map of resource tags for the image recipe.
arn This property is required. String
ARN of the image recipe.
tags Map<String>
Key-value map of resource tags for the image recipe.

getImageRecipe Result

The following output properties are available:

Arn string
BlockDeviceMappings List<GetImageRecipeBlockDeviceMapping>
Set of objects with block device mappings for the image recipe.
Components List<GetImageRecipeComponent>
List of objects with components for the image recipe.
DateCreated string
Date the image recipe was created.
Description string
Description of the image recipe.
Id string
The provider-assigned unique ID for this managed resource.
Name string
Name of the image recipe.
Owner string
Owner of the image recipe.
ParentImage string
Base image of the image recipe.
Platform string
Platform of the image recipe.
Tags Dictionary<string, string>
Key-value map of resource tags for the image recipe.
UserDataBase64 string
Base64 encoded contents of user data. Commands or a command script to run when build instance is launched.
Version string
Version of the image recipe.
WorkingDirectory string
Working directory used during build and test workflows.
Arn string
BlockDeviceMappings []GetImageRecipeBlockDeviceMapping
Set of objects with block device mappings for the image recipe.
Components []GetImageRecipeComponent
List of objects with components for the image recipe.
DateCreated string
Date the image recipe was created.
Description string
Description of the image recipe.
Id string
The provider-assigned unique ID for this managed resource.
Name string
Name of the image recipe.
Owner string
Owner of the image recipe.
ParentImage string
Base image of the image recipe.
Platform string
Platform of the image recipe.
Tags map[string]string
Key-value map of resource tags for the image recipe.
UserDataBase64 string
Base64 encoded contents of user data. Commands or a command script to run when build instance is launched.
Version string
Version of the image recipe.
WorkingDirectory string
Working directory used during build and test workflows.
arn String
blockDeviceMappings List<GetImageRecipeBlockDeviceMapping>
Set of objects with block device mappings for the image recipe.
components List<GetImageRecipeComponent>
List of objects with components for the image recipe.
dateCreated String
Date the image recipe was created.
description String
Description of the image recipe.
id String
The provider-assigned unique ID for this managed resource.
name String
Name of the image recipe.
owner String
Owner of the image recipe.
parentImage String
Base image of the image recipe.
platform String
Platform of the image recipe.
tags Map<String,String>
Key-value map of resource tags for the image recipe.
userDataBase64 String
Base64 encoded contents of user data. Commands or a command script to run when build instance is launched.
version String
Version of the image recipe.
workingDirectory String
Working directory used during build and test workflows.
arn string
blockDeviceMappings GetImageRecipeBlockDeviceMapping[]
Set of objects with block device mappings for the image recipe.
components GetImageRecipeComponent[]
List of objects with components for the image recipe.
dateCreated string
Date the image recipe was created.
description string
Description of the image recipe.
id string
The provider-assigned unique ID for this managed resource.
name string
Name of the image recipe.
owner string
Owner of the image recipe.
parentImage string
Base image of the image recipe.
platform string
Platform of the image recipe.
tags {[key: string]: string}
Key-value map of resource tags for the image recipe.
userDataBase64 string
Base64 encoded contents of user data. Commands or a command script to run when build instance is launched.
version string
Version of the image recipe.
workingDirectory string
Working directory used during build and test workflows.
arn str
block_device_mappings Sequence[GetImageRecipeBlockDeviceMapping]
Set of objects with block device mappings for the image recipe.
components Sequence[GetImageRecipeComponent]
List of objects with components for the image recipe.
date_created str
Date the image recipe was created.
description str
Description of the image recipe.
id str
The provider-assigned unique ID for this managed resource.
name str
Name of the image recipe.
owner str
Owner of the image recipe.
parent_image str
Base image of the image recipe.
platform str
Platform of the image recipe.
tags Mapping[str, str]
Key-value map of resource tags for the image recipe.
user_data_base64 str
Base64 encoded contents of user data. Commands or a command script to run when build instance is launched.
version str
Version of the image recipe.
working_directory str
Working directory used during build and test workflows.
arn String
blockDeviceMappings List<Property Map>
Set of objects with block device mappings for the image recipe.
components List<Property Map>
List of objects with components for the image recipe.
dateCreated String
Date the image recipe was created.
description String
Description of the image recipe.
id String
The provider-assigned unique ID for this managed resource.
name String
Name of the image recipe.
owner String
Owner of the image recipe.
parentImage String
Base image of the image recipe.
platform String
Platform of the image recipe.
tags Map<String>
Key-value map of resource tags for the image recipe.
userDataBase64 String
Base64 encoded contents of user data. Commands or a command script to run when build instance is launched.
version String
Version of the image recipe.
workingDirectory String
Working directory used during build and test workflows.

Supporting Types

GetImageRecipeBlockDeviceMapping

DeviceName This property is required. string
Name of the device. For example, /dev/sda or /dev/xvdb.
Ebs This property is required. List<GetImageRecipeBlockDeviceMappingEb>
Single list of object with Elastic Block Storage (EBS) block device mapping settings.
NoDevice This property is required. string
Whether to remove a mapping from the parent image.
VirtualName This property is required. string
Virtual device name. For example, ephemeral0. Instance store volumes are numbered starting from 0.
DeviceName This property is required. string
Name of the device. For example, /dev/sda or /dev/xvdb.
Ebs This property is required. []GetImageRecipeBlockDeviceMappingEb
Single list of object with Elastic Block Storage (EBS) block device mapping settings.
NoDevice This property is required. string
Whether to remove a mapping from the parent image.
VirtualName This property is required. string
Virtual device name. For example, ephemeral0. Instance store volumes are numbered starting from 0.
deviceName This property is required. String
Name of the device. For example, /dev/sda or /dev/xvdb.
ebs This property is required. List<GetImageRecipeBlockDeviceMappingEb>
Single list of object with Elastic Block Storage (EBS) block device mapping settings.
noDevice This property is required. String
Whether to remove a mapping from the parent image.
virtualName This property is required. String
Virtual device name. For example, ephemeral0. Instance store volumes are numbered starting from 0.
deviceName This property is required. string
Name of the device. For example, /dev/sda or /dev/xvdb.
ebs This property is required. GetImageRecipeBlockDeviceMappingEb[]
Single list of object with Elastic Block Storage (EBS) block device mapping settings.
noDevice This property is required. string
Whether to remove a mapping from the parent image.
virtualName This property is required. string
Virtual device name. For example, ephemeral0. Instance store volumes are numbered starting from 0.
device_name This property is required. str
Name of the device. For example, /dev/sda or /dev/xvdb.
ebs This property is required. Sequence[GetImageRecipeBlockDeviceMappingEb]
Single list of object with Elastic Block Storage (EBS) block device mapping settings.
no_device This property is required. str
Whether to remove a mapping from the parent image.
virtual_name This property is required. str
Virtual device name. For example, ephemeral0. Instance store volumes are numbered starting from 0.
deviceName This property is required. String
Name of the device. For example, /dev/sda or /dev/xvdb.
ebs This property is required. List<Property Map>
Single list of object with Elastic Block Storage (EBS) block device mapping settings.
noDevice This property is required. String
Whether to remove a mapping from the parent image.
virtualName This property is required. String
Virtual device name. For example, ephemeral0. Instance store volumes are numbered starting from 0.

GetImageRecipeBlockDeviceMappingEb

DeleteOnTermination This property is required. string
Whether to delete the volume on termination. Defaults to unset, which is the value inherited from the parent image.
Encrypted This property is required. string
Whether to encrypt the volume. Defaults to unset, which is the value inherited from the parent image.
Iops This property is required. int
Number of Input/Output (I/O) operations per second to provision for an io1 or io2 volume.
KmsKeyId This property is required. string
ARN of the Key Management Service (KMS) Key for encryption.
SnapshotId This property is required. string
Identifier of the EC2 Volume Snapshot.
Throughput This property is required. int
For GP3 volumes only. The throughput in MiB/s that the volume supports.
VolumeSize This property is required. int
Size of the volume, in GiB.
VolumeType This property is required. string
Type of the volume. For example, gp2 or io2.
DeleteOnTermination This property is required. string
Whether to delete the volume on termination. Defaults to unset, which is the value inherited from the parent image.
Encrypted This property is required. string
Whether to encrypt the volume. Defaults to unset, which is the value inherited from the parent image.
Iops This property is required. int
Number of Input/Output (I/O) operations per second to provision for an io1 or io2 volume.
KmsKeyId This property is required. string
ARN of the Key Management Service (KMS) Key for encryption.
SnapshotId This property is required. string
Identifier of the EC2 Volume Snapshot.
Throughput This property is required. int
For GP3 volumes only. The throughput in MiB/s that the volume supports.
VolumeSize This property is required. int
Size of the volume, in GiB.
VolumeType This property is required. string
Type of the volume. For example, gp2 or io2.
deleteOnTermination This property is required. String
Whether to delete the volume on termination. Defaults to unset, which is the value inherited from the parent image.
encrypted This property is required. String
Whether to encrypt the volume. Defaults to unset, which is the value inherited from the parent image.
iops This property is required. Integer
Number of Input/Output (I/O) operations per second to provision for an io1 or io2 volume.
kmsKeyId This property is required. String
ARN of the Key Management Service (KMS) Key for encryption.
snapshotId This property is required. String
Identifier of the EC2 Volume Snapshot.
throughput This property is required. Integer
For GP3 volumes only. The throughput in MiB/s that the volume supports.
volumeSize This property is required. Integer
Size of the volume, in GiB.
volumeType This property is required. String
Type of the volume. For example, gp2 or io2.
deleteOnTermination This property is required. string
Whether to delete the volume on termination. Defaults to unset, which is the value inherited from the parent image.
encrypted This property is required. string
Whether to encrypt the volume. Defaults to unset, which is the value inherited from the parent image.
iops This property is required. number
Number of Input/Output (I/O) operations per second to provision for an io1 or io2 volume.
kmsKeyId This property is required. string
ARN of the Key Management Service (KMS) Key for encryption.
snapshotId This property is required. string
Identifier of the EC2 Volume Snapshot.
throughput This property is required. number
For GP3 volumes only. The throughput in MiB/s that the volume supports.
volumeSize This property is required. number
Size of the volume, in GiB.
volumeType This property is required. string
Type of the volume. For example, gp2 or io2.
delete_on_termination This property is required. str
Whether to delete the volume on termination. Defaults to unset, which is the value inherited from the parent image.
encrypted This property is required. str
Whether to encrypt the volume. Defaults to unset, which is the value inherited from the parent image.
iops This property is required. int
Number of Input/Output (I/O) operations per second to provision for an io1 or io2 volume.
kms_key_id This property is required. str
ARN of the Key Management Service (KMS) Key for encryption.
snapshot_id This property is required. str
Identifier of the EC2 Volume Snapshot.
throughput This property is required. int
For GP3 volumes only. The throughput in MiB/s that the volume supports.
volume_size This property is required. int
Size of the volume, in GiB.
volume_type This property is required. str
Type of the volume. For example, gp2 or io2.
deleteOnTermination This property is required. String
Whether to delete the volume on termination. Defaults to unset, which is the value inherited from the parent image.
encrypted This property is required. String
Whether to encrypt the volume. Defaults to unset, which is the value inherited from the parent image.
iops This property is required. Number
Number of Input/Output (I/O) operations per second to provision for an io1 or io2 volume.
kmsKeyId This property is required. String
ARN of the Key Management Service (KMS) Key for encryption.
snapshotId This property is required. String
Identifier of the EC2 Volume Snapshot.
throughput This property is required. Number
For GP3 volumes only. The throughput in MiB/s that the volume supports.
volumeSize This property is required. Number
Size of the volume, in GiB.
volumeType This property is required. String
Type of the volume. For example, gp2 or io2.

GetImageRecipeComponent

ComponentArn This property is required. string
ARN of the Image Builder Component.
Parameters This property is required. List<GetImageRecipeComponentParameter>
Set of parameters that are used to configure the component.
ComponentArn This property is required. string
ARN of the Image Builder Component.
Parameters This property is required. []GetImageRecipeComponentParameter
Set of parameters that are used to configure the component.
componentArn This property is required. String
ARN of the Image Builder Component.
parameters This property is required. List<GetImageRecipeComponentParameter>
Set of parameters that are used to configure the component.
componentArn This property is required. string
ARN of the Image Builder Component.
parameters This property is required. GetImageRecipeComponentParameter[]
Set of parameters that are used to configure the component.
component_arn This property is required. str
ARN of the Image Builder Component.
parameters This property is required. Sequence[GetImageRecipeComponentParameter]
Set of parameters that are used to configure the component.
componentArn This property is required. String
ARN of the Image Builder Component.
parameters This property is required. List<Property Map>
Set of parameters that are used to configure the component.

GetImageRecipeComponentParameter

Name This property is required. string
Name of the image recipe.
Value This property is required. string
Value of the component parameter.
Name This property is required. string
Name of the image recipe.
Value This property is required. string
Value of the component parameter.
name This property is required. String
Name of the image recipe.
value This property is required. String
Value of the component parameter.
name This property is required. string
Name of the image recipe.
value This property is required. string
Value of the component parameter.
name This property is required. str
Name of the image recipe.
value This property is required. str
Value of the component parameter.
name This property is required. String
Name of the image recipe.
value This property is required. String
Value of the component parameter.

Package Details

Repository
AWS Classic pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.
AWS v6.76.0 published on Tuesday, Apr 8, 2025 by Pulumi