import * as core from "@terrascript/core"; export interface EipAssociationArgs extends core.ResourceArgs { /** * (Optional) The allocation ID. This is required for EC2-VPC. */ allocationId?: string | core.StringOut; /** * (Optional, Boolean) Whether to allow an Elastic IP to */ allowReassociation?: boolean | core.BooleanOut; /** * (Optional) The ID of the instance. This is required for */ instanceId?: string | core.StringOut; /** * (Optional) The ID of the network interface. If the */ networkInterfaceId?: string | core.StringOut; /** * (Optional) The primary or secondary private IP address */ privateIpAddress?: string | core.StringOut; /** * (Optional) The Elastic IP address. This is required for EC2-Classic. */ publicIp?: string | core.StringOut; } export class EipAssociation extends core.Resource { /** * (Optional) The allocation ID. This is required for EC2-VPC. */ @core.attr(String, { computed: true }) public allocationId?: string | core.StringOut; /** * (Optional, Boolean) Whether to allow an Elastic IP to */ @core.attr(Boolean) public allowReassociation?: boolean | core.BooleanOut; @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Optional) The ID of the instance. This is required for */ @core.attr(String, { computed: true }) public instanceId?: string | core.StringOut; /** * (Optional) The ID of the network interface. If the */ @core.attr(String, { computed: true }) public networkInterfaceId?: string | core.StringOut; /** * (Optional) The primary or secondary private IP address */ @core.attr(String, { computed: true }) public privateIpAddress?: string | core.StringOut; /** * (Optional) The Elastic IP address. This is required for EC2-Classic. */ @core.attr(String, { computed: true }) public publicIp?: string | core.StringOut; constructor(name: string, args?: EipAssociationArgs) { super(name, "aws_eip_association", args); } public override getNamespace(): string { return "aws_ec2"; } }