Resource: awsEc2NetworkInsightsPath
Provides a Network Insights Path resource. Part of the "Reachability Analyzer" service in the AWS VPC console.
Example Usage
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.ec2NetworkInsightsPath.Ec2NetworkInsightsPath(this, "test", {
destination: "${aws_network_interface.destination.id}",
protocol: "tcp",
source: "${aws_network_interface.source.id}",
});
Argument Reference
The following arguments are required:
source
- (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
- (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.protocol
- (Required) Protocol to use for analysis. Valid options aretcp
orudp
.
The following arguments are optional:
sourceIp
- (Optional) IP address of the source resource.destinationIp
- (Optional) IP address of the destination resource.destinationPort
- (Optional) Destination port to analyze access to.tags
- (Optional) Map of tags to assign to the resource. If configured with a providerdefaultTags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Attributes Reference
In addition to all arguments above, the following attributes are exported:
arn
- ARN of the Network Insights Path.id
- ID of the Network Insights Path.tagsAll
- Map of tags assigned to the resource, including those inherited from the providerdefaultTags
configuration block.
Import
Network Insights Paths can be imported using the id
, e.g.,