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 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 InstanceConfigurationArgs extends core.SchemaArgs { blockDeviceMapping?: | core.Array | core.ArrayOut; image?: string | core.StringOut; } export class InstanceConfiguration extends core.Schema { @core.attr(BlockDeviceMapping, { kind: "array" }) public blockDeviceMapping?: | core.Array | core.ArrayOut; @core.attr(String) public image?: string | core.StringOut; } export interface TargetRepositoryArgs extends core.SchemaArgs { repositoryName: string | core.StringOut; service: string | core.StringOut; } export class TargetRepository extends core.Schema { @core.attr(String) public repositoryName!: string | core.StringOut; @core.attr(String) public service!: string | core.StringOut; } export interface ContainerRecipeArgs extends core.ResourceArgs { /** * (Required) Ordered configuration block(s) with components for the container recipe. Detailed below. */ component: core.Array | core.ArrayOut; /** * (Required) The type of the container to create. Valid values: `DOCKER`. */ containerType: string | core.StringOut; /** * (Optional) The description of the container recipe. */ description?: string | core.StringOut; /** * (Optional) The Dockerfile template used to build the image as an inline data blob. */ dockerfileTemplateData?: string | core.StringOut; /** * (Optional) The Amazon S3 URI for the Dockerfile that will be used to build the container image. */ dockerfileTemplateUri?: string | core.StringOut; /** * (Optional) Configuration block used to configure an instance for building and testing container imag * es. Detailed below. */ instanceConfiguration?: InstanceConfiguration; /** * (Optional) The KMS key used to encrypt the container image. */ kmsKeyId?: string | core.StringOut; /** * (Required) The name of the container recipe. */ name: string | core.StringOut; parentImage: string | core.StringOut; /** * (Optional) Key-value map of resource tags for the container recipe. If configured with a provider [` * default_tags` configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs * #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; targetRepository: TargetRepository; version: string | core.StringOut; /** * (Optional) The working directory to be used during build and test workflows. */ workingDirectory?: string | core.StringOut; } export class ContainerRecipe extends core.Resource { /** * (Required) Amazon Resource Name (ARN) of the container recipe. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Required) Ordered configuration block(s) with components for the container recipe. Detailed below. */ @core.attr(Component, { kind: "array" }) public component!: core.Array | core.ArrayOut; /** * (Required) The type of the container to create. Valid values: `DOCKER`. */ @core.attr(String) public containerType!: string | core.StringOut; /** * Date the container recipe was created. */ @core.attr(String, { computed: true }) public dateCreated!: string | core.StringOut; /** * (Optional) The description of the container recipe. */ @core.attr(String) public description?: string | core.StringOut; /** * (Optional) The Dockerfile template used to build the image as an inline data blob. */ @core.attr(String, { computed: true }) public dockerfileTemplateData?: string | core.StringOut; /** * (Optional) The Amazon S3 URI for the Dockerfile that will be used to build the container image. */ @core.attr(String) public dockerfileTemplateUri?: string | core.StringOut; /** * (Optional) Whether to encrypt the volume. Defaults to unset, which is the value inherited from the p * arent image. */ @core.attr(Boolean, { computed: true }) public encrypted!: boolean | core.BooleanOut; @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Optional) Configuration block used to configure an instance for building and testing container imag * es. Detailed below. */ @core.attr(InstanceConfiguration) public instanceConfiguration?: InstanceConfiguration; /** * (Optional) The KMS key used to encrypt the container image. */ @core.attr(String) public kmsKeyId?: string | core.StringOut; /** * (Required) The name of the container recipe. */ @core.attr(String) public name!: string | core.StringOut; /** * Owner of the container recipe. */ @core.attr(String, { computed: true }) public owner!: string | core.StringOut; @core.attr(String) public parentImage!: string | core.StringOut; /** * Platform of the container recipe. */ @core.attr(String, { computed: true }) public platform!: string | core.StringOut; /** * (Optional) Key-value map of resource tags for the container recipe. If configured with a provider [` * default_tags` configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs * #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; @core.attr(TargetRepository) public targetRepository!: TargetRepository; @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?: ContainerRecipeArgs) { super(name, "aws_imagebuilder_container_recipe", args); } public override getNamespace(): string { return "aws_imagebuilder"; } }