import * as core from "@terrascript/core"; 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 ScheduleArgs extends core.SchemaArgs { pipelineExecutionStartCondition?: string | core.StringOut; scheduleExpression: string | core.StringOut; timezone?: string | core.StringOut; } export class Schedule extends core.Schema { @core.attr(String) public pipelineExecutionStartCondition?: string | core.StringOut; @core.attr(String) public scheduleExpression!: string | core.StringOut; @core.attr(String, { computed: true }) public timezone?: string | core.StringOut; } export interface ImagePipelineArgs extends core.ResourceArgs { /** * (Optional) Amazon Resource Name (ARN) of the container recipe. */ containerRecipeArn?: string | core.StringOut; /** * (Optional) Description of the image pipeline. */ description?: 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; /** * (Required) Name of the image pipeline. */ name: string | core.StringOut; /** * (Optional) Configuration block with schedule settings. Detailed below. */ schedule?: Schedule; /** * (Optional) Status of the image pipeline. Valid values are `DISABLED` and `ENABLED`. Defaults to `ENA * BLED`. */ status?: string | core.StringOut; /** * (Optional) Key-value map of resource tags for the image pipeline. If configured with a provider [`de * fault_tags` configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#d * efault_tags-configuration-block) present, tags with matching keys will overwrite those defined at th * e 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 ImagePipeline extends core.Resource { /** * Amazon Resource Name (ARN) of the image pipeline. */ @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 pipeline was created. */ @core.attr(String, { computed: true }) public dateCreated!: string | core.StringOut; /** * Date the image pipeline was last run. */ @core.attr(String, { computed: true }) public dateLastRun!: string | core.StringOut; /** * Date the image pipeline will run next. */ @core.attr(String, { computed: true }) public dateNextRun!: string | core.StringOut; /** * Date the image pipeline was updated. */ @core.attr(String, { computed: true }) public dateUpdated!: string | core.StringOut; /** * (Optional) Description of the image pipeline. */ @core.attr(String) public description?: 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; /** * (Required) Name of the image pipeline. */ @core.attr(String) public name!: string | core.StringOut; /** * Platform of the image pipeline. */ @core.attr(String, { computed: true }) public platform!: string | core.StringOut; /** * (Optional) Configuration block with schedule settings. Detailed below. */ @core.attr(Schedule) public schedule?: Schedule; /** * (Optional) Status of the image pipeline. Valid values are `DISABLED` and `ENABLED`. Defaults to `ENA * BLED`. */ @core.attr(String) public status?: string | core.StringOut; /** * (Optional) Key-value map of resource tags for the image pipeline. If configured with a provider [`de * fault_tags` configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#d * efault_tags-configuration-block) present, tags with matching keys will overwrite those defined at th * e 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; constructor(name: string, args?: ImagePipelineArgs) { super(name, "aws_imagebuilder_image_pipeline", args); } public override getNamespace(): string { return "aws_imagebuilder"; } }