import * as core from "@terrascript/core"; export interface IngressArgs extends core.SchemaArgs { cidrBlocks?: core.Array | core.ArrayOut; description?: string | core.StringOut; fromPort: number | core.NumberOut; ipv6CidrBlocks?: core.Array | core.ArrayOut; prefixListIds?: core.Array | core.ArrayOut; protocol: string | core.StringOut; securityGroups?: core.Array | core.ArrayOut; self?: boolean | core.BooleanOut; toPort: number | core.NumberOut; } export class Ingress extends core.Schema { @core.attr(String, { kind: "array" }) public cidrBlocks?: core.Array | core.ArrayOut; @core.attr(String) public description?: string | core.StringOut; @core.attr(Number) public fromPort!: number | core.NumberOut; @core.attr(String, { kind: "array" }) public ipv6CidrBlocks?: core.Array | core.ArrayOut; @core.attr(String, { kind: "array" }) public prefixListIds?: core.Array | core.ArrayOut; @core.attr(String) public protocol!: string | core.StringOut; @core.attr(String, { kind: "array" }) public securityGroups?: core.Array | core.ArrayOut; @core.attr(Boolean) public self?: boolean | core.BooleanOut; @core.attr(Number) public toPort!: number | core.NumberOut; } export interface EgressArgs extends core.SchemaArgs { cidrBlocks?: core.Array | core.ArrayOut; description?: string | core.StringOut; fromPort: number | core.NumberOut; ipv6CidrBlocks?: core.Array | core.ArrayOut; prefixListIds?: core.Array | core.ArrayOut; protocol: string | core.StringOut; securityGroups?: core.Array | core.ArrayOut; self?: boolean | core.BooleanOut; toPort: number | core.NumberOut; } export class Egress extends core.Schema { @core.attr(String, { kind: "array" }) public cidrBlocks?: core.Array | core.ArrayOut; @core.attr(String) public description?: string | core.StringOut; @core.attr(Number) public fromPort!: number | core.NumberOut; @core.attr(String, { kind: "array" }) public ipv6CidrBlocks?: core.Array | core.ArrayOut; @core.attr(String, { kind: "array" }) public prefixListIds?: core.Array | core.ArrayOut; @core.attr(String) public protocol!: string | core.StringOut; @core.attr(String, { kind: "array" }) public securityGroups?: core.Array | core.ArrayOut; @core.attr(Boolean) public self?: boolean | core.BooleanOut; @core.attr(Number) public toPort!: number | core.NumberOut; } export interface DefaultSecurityGroupArgs extends core.ResourceArgs { /** * (Optional, VPC only) Configuration block. Detailed below. */ egress?: core.Array | core.ArrayOut; /** * (Optional) Configuration block. Detailed below. */ ingress?: core.Array | core.ArrayOut; revokeRulesOnDelete?: boolean | core.BooleanOut; /** * (Optional) Map of tags to assign to the resource. If configured with a provider [`default_tags` conf * iguration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-conf * iguration-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; /** * (Optional, Forces new resource) VPC ID. **Note that changing the `vpc_id` will _not_ restore any def * ault security group rules that were modified, added, or removed.** It will be left in its current st * ate. */ vpcId?: string | core.StringOut; } export class DefaultSecurityGroup extends core.Resource { /** * ARN of the security group. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Optional) Description of this rule. */ @core.attr(String, { computed: true }) public description!: string | core.StringOut; /** * (Optional, VPC only) Configuration block. Detailed below. */ @core.attr(Egress, { computed: true, kind: "array" }) public egress?: core.Array | core.ArrayOut; /** * ID of the security group. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Optional) Configuration block. Detailed below. */ @core.attr(Ingress, { computed: true, kind: "array" }) public ingress?: core.Array | core.ArrayOut; /** * Name of the security group. */ @core.attr(String, { computed: true }) public name!: string | core.StringOut; @core.attr(String, { computed: true }) public namePrefix!: string | core.StringOut; /** * Owner ID. */ @core.attr(String, { computed: true }) public ownerId!: string | core.StringOut; @core.attr(Boolean) public revokeRulesOnDelete?: boolean | core.BooleanOut; /** * (Optional) Map of tags to assign to the resource. If configured with a provider [`default_tags` conf * iguration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-conf * iguration-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; /** * (Optional, Forces new resource) VPC ID. **Note that changing the `vpc_id` will _not_ restore any def * ault security group rules that were modified, added, or removed.** It will be left in its current st * ate. */ @core.attr(String, { computed: true }) public vpcId?: string | core.StringOut; constructor(name: string, args?: DefaultSecurityGroupArgs) { super(name, "aws_default_security_group", args); } public override getNamespace(): string { return "aws_vpc"; } }