import * as core from "@terrascript/core"; export interface ParameterArgs extends core.SchemaArgs { name: string | core.StringOut; value: string | core.StringOut; } export class Parameter extends core.Schema { @core.attr(String) public name!: string | core.StringOut; @core.attr(String) public value!: string | core.StringOut; } export interface ComponentArgs extends core.SchemaArgs { componentArn: string | core.StringOut; parameter?: core.Array | core.ArrayOut; } export class Component extends core.Schema { @core.attr(String) public componentArn!: string | core.StringOut; @core.attr(Parameter, { kind: "array" }) public parameter?: core.Array | core.ArrayOut; } export interface SystemsManagerAgentArgs extends core.SchemaArgs { uninstallAfterBuild: boolean | core.BooleanOut; } export class SystemsManagerAgent extends core.Schema { @core.attr(Boolean) public uninstallAfterBuild!: boolean | core.BooleanOut; } export interface EbsArgs extends core.SchemaArgs { deleteOnTermination?: string | core.StringOut; encrypted?: string | core.StringOut; iops?: number | core.NumberOut; kmsKeyId?: string | core.StringOut; snapshotId?: string | core.StringOut; throughput?: number | core.NumberOut; volumeSize?: number | core.NumberOut; volumeType?: string | core.StringOut; } export class Ebs extends core.Schema { @core.attr(String) public deleteOnTermination?: string | core.StringOut; @core.attr(String) public encrypted?: string | core.StringOut; @core.attr(Number) public iops?: number | core.NumberOut; @core.attr(String) public kmsKeyId?: string | core.StringOut; @core.attr(String) public snapshotId?: string | core.StringOut; @core.attr(Number) public throughput?: number | core.NumberOut; @core.attr(Number) public volumeSize?: number | core.NumberOut; @core.attr(String) public volumeType?: string | core.StringOut; } export interface BlockDeviceMappingArgs extends core.SchemaArgs { deviceName?: string | core.StringOut; ebs?: Ebs; noDevice?: boolean | core.BooleanOut; virtualName?: string | core.StringOut; } export class BlockDeviceMapping extends core.Schema { @core.attr(String) public deviceName?: string | core.StringOut; @core.attr(Ebs) public ebs?: Ebs; @core.attr(Boolean) public noDevice?: boolean | core.BooleanOut; @core.attr(String) public virtualName?: string | core.StringOut; } export interface ImageRecipeArgs extends core.ResourceArgs { /** * (Optional) Configuration block(s) with block device mappings for the image recipe. Detailed below. */ blockDeviceMapping?: | core.Array | core.ArrayOut; /** * (Required) Ordered configuration block(s) with components for the image recipe. Detailed below. */ component: core.Array | core.ArrayOut; /** * (Optional) Description of the image recipe. */ description?: string | core.StringOut; /** * (Required) Name of the image recipe. */ name: string | core.StringOut; /** * (Required) Platform of the image recipe. */ parentImage: string | core.StringOut; /** * (Optional) Configuration block for the Systems Manager Agent installed by default by Image Builder. * Detailed below. */ systemsManagerAgent?: SystemsManagerAgent; /** * (Optional) Key-value map of resource tags for the image recipe. If configured with a provider [`defa * ult_tags` configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#def * ault_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; userDataBase64?: string | core.StringOut; /** * (Required) Version of the image recipe. */ version: string | core.StringOut; /** * (Optional) The working directory to be used during build and test workflows. */ workingDirectory?: string | core.StringOut; } export class ImageRecipe extends core.Resource { /** * (Required) Amazon Resource Name (ARN) of the image recipe. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Optional) Configuration block(s) with block device mappings for the image recipe. Detailed below. */ @core.attr(BlockDeviceMapping, { kind: "array" }) public blockDeviceMapping?: | core.Array | core.ArrayOut; /** * (Required) Ordered configuration block(s) with components for the image recipe. Detailed below. */ @core.attr(Component, { kind: "array" }) public component!: core.Array | core.ArrayOut; /** * Date the image recipe was created. */ @core.attr(String, { computed: true }) public dateCreated!: string | core.StringOut; /** * (Optional) Description of the image recipe. */ @core.attr(String) public description?: string | core.StringOut; @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) Name of the image recipe. */ @core.attr(String) public name!: string | core.StringOut; /** * Owner of the image recipe. */ @core.attr(String, { computed: true }) public owner!: string | core.StringOut; /** * (Required) Platform of the image recipe. */ @core.attr(String) public parentImage!: string | core.StringOut; /** * Platform of the image recipe. */ @core.attr(String, { computed: true }) public platform!: string | core.StringOut; /** * (Optional) Configuration block for the Systems Manager Agent installed by default by Image Builder. * Detailed below. */ @core.attr(SystemsManagerAgent, { computed: true }) public systemsManagerAgent?: SystemsManagerAgent; /** * (Optional) Key-value map of resource tags for the image recipe. If configured with a provider [`defa * ult_tags` configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#def * ault_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; @core.attr(String, { computed: true }) public userDataBase64?: string | core.StringOut; /** * (Required) Version of the image recipe. */ @core.attr(String) public version!: string | core.StringOut; /** * (Optional) The working directory to be used during build and test workflows. */ @core.attr(String) public workingDirectory?: string | core.StringOut; constructor(name: string, args?: ImageRecipeArgs) { super(name, "aws_imagebuilder_image_recipe", args); } public override getNamespace(): string { return "aws_imagebuilder"; } }