import * as core from "@terrascript/core"; export interface AmisArgs extends core.SchemaArgs { accountId: string | core.StringOut; description: string | core.StringOut; image: string | core.StringOut; name: string | core.StringOut; region: string | core.StringOut; } export class Amis extends core.Schema { @core.attr(String, { computed: true }) public accountId!: string | core.StringOut; @core.attr(String, { computed: true }) public description!: string | core.StringOut; @core.attr(String, { computed: true }) public image!: string | core.StringOut; @core.attr(String, { computed: true }) public name!: string | core.StringOut; @core.attr(String, { computed: true }) public region!: string | core.StringOut; } export interface OutputResourcesArgs extends core.SchemaArgs { amis: core.Array | core.ArrayOut; } export class OutputResources extends core.Schema { @core.attr(Amis, { computed: true, kind: "array" }) public amis!: core.Array | core.ArrayOut; } export interface ImageTestsConfigurationArgs extends core.SchemaArgs { imageTestsEnabled?: boolean | core.BooleanOut; timeoutMinutes?: number | core.NumberOut; } export class ImageTestsConfiguration extends core.Schema { @core.attr(Boolean) public imageTestsEnabled?: boolean | core.BooleanOut; @core.attr(Number) public timeoutMinutes?: number | core.NumberOut; } export interface ImageArgs extends core.ResourceArgs { /** * (Optional) - Amazon Resource Name (ARN) of the container recipe. */ containerRecipeArn?: string | core.StringOut; /** * (Optional) Amazon Resource Name (ARN) of the Image Builder Distribution Configuration. */ distributionConfigurationArn?: string | core.StringOut; /** * (Optional) Whether additional information about the image being created is collected. Defaults to `t * rue`. */ enhancedImageMetadataEnabled?: boolean | core.BooleanOut; /** * (Optional) Amazon Resource Name (ARN) of the image recipe. */ imageRecipeArn?: string | core.StringOut; /** * (Optional) Configuration block with image tests configuration. Detailed below. */ imageTestsConfiguration?: ImageTestsConfiguration; /** * (Required) Amazon Resource Name (ARN) of the Image Builder Infrastructure Configuration. */ infrastructureConfigurationArn: string | core.StringOut; /** * (Optional) Key-value map of resource tags for the Image Builder Image. If configured with a provider * [`default_tags` configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/d * ocs#default_tags-configuration-block) present, tags with matching keys will overwrite those defined * at the provider-level. */ tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ tagsAll?: core.Map | core.MapOut; } export class Image extends core.Resource { /** * Amazon Resource Name (ARN) of the image. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Optional) - Amazon Resource Name (ARN) of the container recipe. */ @core.attr(String) public containerRecipeArn?: string | core.StringOut; /** * Date the image was created. */ @core.attr(String, { computed: true }) public dateCreated!: string | core.StringOut; /** * (Optional) Amazon Resource Name (ARN) of the Image Builder Distribution Configuration. */ @core.attr(String) public distributionConfigurationArn?: string | core.StringOut; /** * (Optional) Whether additional information about the image being created is collected. Defaults to `t * rue`. */ @core.attr(Boolean) public enhancedImageMetadataEnabled?: boolean | core.BooleanOut; @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Optional) Amazon Resource Name (ARN) of the image recipe. */ @core.attr(String) public imageRecipeArn?: string | core.StringOut; /** * (Optional) Configuration block with image tests configuration. Detailed below. */ @core.attr(ImageTestsConfiguration, { computed: true }) public imageTestsConfiguration?: ImageTestsConfiguration; /** * (Required) Amazon Resource Name (ARN) of the Image Builder Infrastructure Configuration. */ @core.attr(String) public infrastructureConfigurationArn!: string | core.StringOut; /** * name` - Name of the AMI. */ @core.attr(String, { computed: true }) public name!: string | core.StringOut; /** * Operating System version of the image. */ @core.attr(String, { computed: true }) public osVersion!: string | core.StringOut; /** * List of objects with resources created by the image. */ @core.attr(OutputResources, { computed: true, kind: "array" }) public outputResources!: | core.Array | core.ArrayOut; /** * Platform of the image. */ @core.attr(String, { computed: true }) public platform!: string | core.StringOut; /** * (Optional) Key-value map of resource tags for the Image Builder Image. If configured with a provider * [`default_tags` configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/d * ocs#default_tags-configuration-block) present, tags with matching keys will overwrite those defined * at the provider-level. */ @core.attr(String, { kind: "map" }) public tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ @core.attr(String, { computed: true, kind: "map" }) public tagsAll?: core.Map | core.MapOut; /** * Version of the image. */ @core.attr(String, { computed: true }) public version!: string | core.StringOut; constructor(name: string, args?: ImageArgs) { super(name, "aws_imagebuilder_image", args); } public override getNamespace(): string { return "aws_imagebuilder"; } }