import * as core from "@terrascript/core"; export interface Ec2NetworkInsightsPathArgs extends core.ResourceArgs { /** * (Required) ID of the resource which is the source of the path. Can be an Instance, Internet Gateway, * Network Interface, Transit Gateway, VPC Endpoint, VPC Peering Connection or VPN Gateway. */ destination: string | core.StringOut; /** * (Optional) IP address of the destination resource. */ destinationIp?: string | core.StringOut; /** * (Optional) Destination port to analyze access to. */ destinationPort?: number | core.NumberOut; /** * (Required) Protocol to use for analysis. Valid options are `tcp` or `udp`. */ protocol: string | core.StringOut; /** * (Required) ID of the resource which is the source of the path. Can be an Instance, Internet Gateway, * Network Interface, Transit Gateway, VPC Endpoint, VPC Peering Connection or VPN Gateway. */ source: string | core.StringOut; /** * (Optional) IP address of the source resource. */ sourceIp?: string | core.StringOut; /** * (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; /** * 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 Ec2NetworkInsightsPath extends core.Resource { /** * ARN of the Network Insights Path. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Required) ID of the resource which is the source of the path. Can be an Instance, Internet Gateway, * Network Interface, Transit Gateway, VPC Endpoint, VPC Peering Connection or VPN Gateway. */ @core.attr(String) public destination!: string | core.StringOut; /** * (Optional) IP address of the destination resource. */ @core.attr(String) public destinationIp?: string | core.StringOut; /** * (Optional) Destination port to analyze access to. */ @core.attr(Number) public destinationPort?: number | core.NumberOut; /** * ID of the Network Insights Path. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) Protocol to use for analysis. Valid options are `tcp` or `udp`. */ @core.attr(String) public protocol!: string | core.StringOut; /** * (Required) ID of the resource which is the source of the path. Can be an Instance, Internet Gateway, * Network Interface, Transit Gateway, VPC Endpoint, VPC Peering Connection or VPN Gateway. */ @core.attr(String) public source!: string | core.StringOut; /** * (Optional) IP address of the source resource. */ @core.attr(String) public sourceIp?: string | core.StringOut; /** * (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; /** * 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; constructor(name: string, args?: Ec2NetworkInsightsPathArgs) { super(name, "aws_ec2_network_insights_path", args); } public override getNamespace(): string { return "aws_vpc"; } }