ImageArgs

data class ImageArgs(val containerRecipeArn: Output<String>? = null, val distributionConfigurationArn: Output<String>? = null, val enhancedImageMetadataEnabled: Output<Boolean>? = null, val imageRecipeArn: Output<String>? = null, val imageTestsConfiguration: Output<ImageImageTestsConfigurationArgs>? = null, val infrastructureConfigurationArn: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<ImageArgs>

Manages an Image Builder Image.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.imagebuilder.Image;
import com.pulumi.aws.imagebuilder.ImageArgs;
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) {
var example = new Image("example", ImageArgs.builder()
.distributionConfigurationArn(aws_imagebuilder_distribution_configuration.example().arn())
.imageRecipeArn(aws_imagebuilder_image_recipe.example().arn())
.infrastructureConfigurationArn(aws_imagebuilder_infrastructure_configuration.example().arn())
.build());
}
}

Import

aws_imagebuilder_image resources can be imported using the Amazon Resource Name (ARN), e.g.,

$ pulumi import aws:imagebuilder/image:Image example arn:aws:imagebuilder:us-east-1:123456789012:image/example/1.0.0/1

Constructors

Link copied to clipboard
constructor(containerRecipeArn: Output<String>? = null, distributionConfigurationArn: Output<String>? = null, enhancedImageMetadataEnabled: Output<Boolean>? = null, imageRecipeArn: Output<String>? = null, imageTestsConfiguration: Output<ImageImageTestsConfigurationArgs>? = null, infrastructureConfigurationArn: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val containerRecipeArn: Output<String>? = null

Amazon Resource Name (ARN) of the container recipe.

Link copied to clipboard

Amazon Resource Name (ARN) of the Image Builder Distribution Configuration.

Link copied to clipboard

Whether additional information about the image being created is collected. Defaults to true.

Link copied to clipboard
val imageRecipeArn: Output<String>? = null

Amazon Resource Name (ARN) of the image recipe.

Link copied to clipboard

Configuration block with image tests configuration. Detailed below.

Link copied to clipboard

Amazon Resource Name (ARN) of the Image Builder Infrastructure Configuration. The following arguments are optional:

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Key-value map of resource tags for the Image Builder Image. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Functions

Link copied to clipboard
open override fun toJava(): ImageArgs