import * as core from "@terrascript/core"; export interface EntryArgs extends core.SchemaArgs { cidr: string | core.StringOut; description?: string | core.StringOut; } export class Entry extends core.Schema { @core.attr(String) public cidr!: string | core.StringOut; @core.attr(String) public description?: string | core.StringOut; } export interface Ec2ManagedPrefixListArgs extends core.ResourceArgs { /** * (Required, Forces new resource) Address family (`IPv4` or `IPv6`) of this prefix list. */ addressFamily: string | core.StringOut; /** * (Optional) Configuration block for prefix list entry. Detailed below. Different entries may have ove * rlapping CIDR blocks, but a particular CIDR should not be duplicated. */ entry?: core.Array | core.ArrayOut; /** * (Required) Maximum number of entries that this prefix list can contain. */ maxEntries: number | core.NumberOut; /** * (Required) Name of this resource. The name must not start with `com.amazonaws`. */ name: string | core.StringOut; /** * (Optional) Map of tags to assign to this resource. If configured with a provider [`default_tags` con * figuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-con * figuration-block) present, tags with matching keys will overwrite those defined at the provider-leve * l. */ tags?: core.Map | core.MapOut; /** * Map of tags assigned to the resource, including those inherited from the provider [`default_tags` co * nfiguration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-co * nfiguration-block). */ tagsAll?: core.Map | core.MapOut; } export class Ec2ManagedPrefixList extends core.Resource { /** * (Required, Forces new resource) Address family (`IPv4` or `IPv6`) of this prefix list. */ @core.attr(String) public addressFamily!: string | core.StringOut; /** * ARN of the prefix list. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Optional) Configuration block for prefix list entry. Detailed below. Different entries may have ove * rlapping CIDR blocks, but a particular CIDR should not be duplicated. */ @core.attr(Entry, { computed: true, kind: "array" }) public entry?: core.Array | core.ArrayOut; /** * ID of the prefix list. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) Maximum number of entries that this prefix list can contain. */ @core.attr(Number) public maxEntries!: number | core.NumberOut; /** * (Required) Name of this resource. The name must not start with `com.amazonaws`. */ @core.attr(String) public name!: string | core.StringOut; /** * ID of the AWS account that owns this prefix list. */ @core.attr(String, { computed: true }) public ownerId!: string | core.StringOut; /** * (Optional) Map of tags to assign to this resource. If configured with a provider [`default_tags` con * figuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-con * figuration-block) present, tags with matching keys will overwrite those defined at the provider-leve * l. */ @core.attr(String, { kind: "map" }) public tags?: core.Map | core.MapOut; /** * Map of tags assigned to the resource, including those inherited from the provider [`default_tags` co * nfiguration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-co * nfiguration-block). */ @core.attr(String, { computed: true, kind: "map" }) public tagsAll?: core.Map | core.MapOut; /** * Latest version of this prefix list. */ @core.attr(Number, { computed: true }) public version!: number | core.NumberOut; constructor(name: string, args?: Ec2ManagedPrefixListArgs) { super(name, "aws_ec2_managed_prefix_list", args); } public override getNamespace(): string { return "aws_vpc"; } }