import * as core from "@terrascript/core"; export interface PortInfoArgs extends core.SchemaArgs { cidrs?: core.Array | core.ArrayOut; fromPort: number | core.NumberOut; protocol: string | core.StringOut; toPort: number | core.NumberOut; } export class PortInfo extends core.Schema { @core.attr(String, { computed: true, kind: "array" }) public cidrs?: core.Array | core.ArrayOut; @core.attr(Number) public fromPort!: number | core.NumberOut; @core.attr(String) public protocol!: string | core.StringOut; @core.attr(Number) public toPort!: number | core.NumberOut; } export interface InstancePublicPortsArgs extends core.ResourceArgs { /** * (Required) Name of the Lightsail Instance. */ instanceName: string | core.StringOut; /** * (Required) Configuration block with port information. AWS closes all currently open ports that are n * ot included in the `port_info`. Detailed below. */ portInfo: core.Array | core.ArrayOut; } export class InstancePublicPorts extends core.Resource { /** * ID of the resource. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) Name of the Lightsail Instance. */ @core.attr(String) public instanceName!: string | core.StringOut; /** * (Required) Configuration block with port information. AWS closes all currently open ports that are n * ot included in the `port_info`. Detailed below. */ @core.attr(PortInfo, { kind: "array" }) public portInfo!: core.Array | core.ArrayOut; constructor(name: string, args?: InstancePublicPortsArgs) { super(name, "aws_lightsail_instance_public_ports", args); } public override getNamespace(): string { return "aws_lightsail"; } }