import * as core from "@terrascript/core"; export interface S3LogsArgs extends core.SchemaArgs { s3BucketName: string | core.StringOut; s3KeyPrefix?: string | core.StringOut; } export class S3Logs extends core.Schema { @core.attr(String) public s3BucketName!: string | core.StringOut; @core.attr(String) public s3KeyPrefix?: string | core.StringOut; } export interface LoggingArgs extends core.SchemaArgs { s3Logs: S3Logs; } export class Logging extends core.Schema { @core.attr(S3Logs) public s3Logs!: S3Logs; } export interface InstanceMetadataOptionsArgs extends core.SchemaArgs { httpPutResponseHopLimit?: number | core.NumberOut; httpTokens?: string | core.StringOut; } export class InstanceMetadataOptions extends core.Schema { @core.attr(Number) public httpPutResponseHopLimit?: number | core.NumberOut; @core.attr(String) public httpTokens?: string | core.StringOut; } export interface InfrastructureConfigurationArgs extends core.ResourceArgs { /** * (Optional) Description for the configuration. */ description?: string | core.StringOut; /** * (Optional) Configuration block with instance metadata options for the HTTP requests that pipeline bu * ilds use to launch EC2 build and test instances. Detailed below. */ instanceMetadataOptions?: InstanceMetadataOptions; /** * (Required) Name of IAM Instance Profile. */ instanceProfileName: string | core.StringOut; /** * (Optional) Set of EC2 Instance Types. */ instanceTypes?: core.Array | core.ArrayOut; /** * (Optional) Name of EC2 Key Pair. */ keyPair?: string | core.StringOut; /** * (Optional) Configuration block with logging settings. Detailed below. */ logging?: Logging; /** * (Required) Name for the configuration. */ name: string | core.StringOut; /** * (Optional) Key-value map of resource tags to assign to infrastructure created by the configuration. */ resourceTags?: core.Map | core.MapOut; /** * (Optional) Set of EC2 Security Group identifiers. */ securityGroupIds?: core.Array | core.ArrayOut; /** * (Optional) Amazon Resource Name (ARN) of SNS Topic. */ snsTopicArn?: string | core.StringOut; /** * (Optional) EC2 Subnet identifier. Also requires `security_group_ids` argument. */ subnetId?: string | core.StringOut; /** * (Optional) Key-value map of resource tags to assign to the configuration. If configured with a provi * der [`default_tags` configuration block](https://registry.terraform.io/providers/hashicorp/aws/lates * t/docs#default_tags-configuration-block) present, tags with matching keys will overwrite those defin * ed 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; /** * (Optional) Enable if the instance should be terminated when the pipeline fails. Defaults to `false`. */ terminateInstanceOnFailure?: boolean | core.BooleanOut; } export class InfrastructureConfiguration extends core.Resource { /** * Amazon Resource Name (ARN) of the configuration. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * Date when the configuration was created. */ @core.attr(String, { computed: true }) public dateCreated!: string | core.StringOut; /** * Date when the configuration was updated. */ @core.attr(String, { computed: true }) public dateUpdated!: string | core.StringOut; /** * (Optional) Description for the configuration. */ @core.attr(String) public description?: string | core.StringOut; /** * Amazon Resource Name (ARN) of the configuration. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Optional) Configuration block with instance metadata options for the HTTP requests that pipeline bu * ilds use to launch EC2 build and test instances. Detailed below. */ @core.attr(InstanceMetadataOptions) public instanceMetadataOptions?: InstanceMetadataOptions; /** * (Required) Name of IAM Instance Profile. */ @core.attr(String) public instanceProfileName!: string | core.StringOut; /** * (Optional) Set of EC2 Instance Types. */ @core.attr(String, { kind: "array" }) public instanceTypes?: core.Array | core.ArrayOut; /** * (Optional) Name of EC2 Key Pair. */ @core.attr(String) public keyPair?: string | core.StringOut; /** * (Optional) Configuration block with logging settings. Detailed below. */ @core.attr(Logging) public logging?: Logging; /** * (Required) Name for the configuration. */ @core.attr(String) public name!: string | core.StringOut; /** * (Optional) Key-value map of resource tags to assign to infrastructure created by the configuration. */ @core.attr(String, { kind: "map" }) public resourceTags?: core.Map | core.MapOut; /** * (Optional) Set of EC2 Security Group identifiers. */ @core.attr(String, { kind: "array" }) public securityGroupIds?: core.Array | core.ArrayOut; /** * (Optional) Amazon Resource Name (ARN) of SNS Topic. */ @core.attr(String) public snsTopicArn?: string | core.StringOut; /** * (Optional) EC2 Subnet identifier. Also requires `security_group_ids` argument. */ @core.attr(String) public subnetId?: string | core.StringOut; /** * (Optional) Key-value map of resource tags to assign to the configuration. If configured with a provi * der [`default_tags` configuration block](https://registry.terraform.io/providers/hashicorp/aws/lates * t/docs#default_tags-configuration-block) present, tags with matching keys will overwrite those defin * ed 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; /** * (Optional) Enable if the instance should be terminated when the pipeline fails. Defaults to `false`. */ @core.attr(Boolean) public terminateInstanceOnFailure?: boolean | core.BooleanOut; constructor(name: string, args?: InfrastructureConfigurationArgs) { super(name, "aws_imagebuilder_infrastructure_configuration", args); } public override getNamespace(): string { return "aws_imagebuilder"; } }