Package com.pulumi.aws.ec2
Class NetworkInsightsPath
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.ec2.NetworkInsightsPath
-
public class NetworkInsightsPath extends com.pulumi.resources.CustomResourceProvides a Network Insights Path resource. Part of the "Reachability Analyzer" service in the AWS VPC console. ## Example Usage
## Import Using `pulumi import`, import Network Insights Paths using the `id`. For example: ```sh $ pulumi import aws:ec2/networkInsightsPath:NetworkInsightsPath test nip-00edfba169923aefd ```package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.aws.ec2.NetworkInsightsPath; import com.pulumi.aws.ec2.NetworkInsightsPathArgs; import java.util.ArrayList; import java.util.Arrays; import java.util.Map; import java.io.File; import java.nio.file.Files; import java.nio.file.Paths; public class App { public static void main(String[] args) { Pulumi.run(App::stack); } public static void stack(Context ctx) { var test = new NetworkInsightsPath("test", NetworkInsightsPathArgs.builder() .source(source.id()) .destination(destination.id()) .protocol("tcp") .build()); } }
-
-
Constructor Summary
Constructors Constructor Description NetworkInsightsPath(java.lang.String name)NetworkInsightsPath(java.lang.String name, NetworkInsightsPathArgs args)NetworkInsightsPath(java.lang.String name, NetworkInsightsPathArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.lang.String>arn()com.pulumi.core.Output<java.util.Optional<java.lang.String>>destination()com.pulumi.core.Output<java.lang.String>destinationArn()com.pulumi.core.Output<java.util.Optional<java.lang.String>>destinationIp()com.pulumi.core.Output<java.util.Optional<java.lang.Integer>>destinationPort()com.pulumi.core.Output<NetworkInsightsPathFilterAtDestination>filterAtDestination()com.pulumi.core.Output<NetworkInsightsPathFilterAtSource>filterAtSource()static NetworkInsightsPathget(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, NetworkInsightsPathState state, com.pulumi.resources.CustomResourceOptions options)Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.lang.String>protocol()com.pulumi.core.Output<java.lang.String>region()com.pulumi.core.Output<java.lang.String>source()com.pulumi.core.Output<java.lang.String>sourceArn()com.pulumi.core.Output<java.util.Optional<java.lang.String>>sourceIp()com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>>tags()com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>>tagsAll()
-
-
-
Constructor Detail
-
NetworkInsightsPath
public NetworkInsightsPath(java.lang.String name)
- Parameters:
name- The _unique_ name of the resulting resource.
-
NetworkInsightsPath
public NetworkInsightsPath(java.lang.String name, NetworkInsightsPathArgs args)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.
-
NetworkInsightsPath
public NetworkInsightsPath(java.lang.String name, NetworkInsightsPathArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.options- A bag of options that control this resource's behavior.
-
-
Method Detail
-
arn
public com.pulumi.core.Output<java.lang.String> arn()
- Returns:
- ARN of the Network Insights Path.
-
destination
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> destination()
- Returns:
- ID or ARN of the resource which is the destination of the path. Can be an Instance, Internet Gateway, Network Interface, Transit Gateway, VPC Endpoint, VPC Peering Connection or VPN Gateway. If the resource is in another account, you must specify an ARN. Either the `destination` argument or the `destinationAddress` argument in the `filterAtSource` block must be specified.
-
destinationArn
public com.pulumi.core.Output<java.lang.String> destinationArn()
- Returns:
- ARN of the destination.
-
destinationIp
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> destinationIp()
- Returns:
- IP address of the destination resource.
-
destinationPort
public com.pulumi.core.Output<java.util.Optional<java.lang.Integer>> destinationPort()
- Returns:
- Destination port to analyze access to.
-
filterAtDestination
public com.pulumi.core.Output<NetworkInsightsPathFilterAtDestination> filterAtDestination()
- Returns:
- Scopes the analysis to network paths that match specific filters at the destination. If you specify this parameter, you can't specify `destinationIp`. See below for details. Note that Terraform performs drift detection on this argument only when the value is provided.
-
filterAtSource
public com.pulumi.core.Output<NetworkInsightsPathFilterAtSource> filterAtSource()
- Returns:
- Scopes the analysis to network paths that match specific filters at the source. If you specify this parameter, you can't specify `sourceIp` or `destinationPort`. See below for details. Note that Terraform performs drift detection on this argument only when the value is provided.
-
protocol
public com.pulumi.core.Output<java.lang.String> protocol()
- Returns:
- Protocol to use for analysis. Valid options are `tcp` or `udp`. The following arguments are optional:
-
region
public com.pulumi.core.Output<java.lang.String> region()
- Returns:
- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
-
source
public com.pulumi.core.Output<java.lang.String> source()
- Returns:
- ID or ARN 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. If the resource is in another account, you must specify an ARN.
-
sourceArn
public com.pulumi.core.Output<java.lang.String> sourceArn()
- Returns:
- ARN of the source.
-
sourceIp
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> sourceIp()
- Returns:
- IP address of the source resource.
-
tags
public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>> tags()
- Returns:
- Map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
-
tagsAll
public com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tagsAll()
- Returns:
- Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
-
get
public static NetworkInsightsPath get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable NetworkInsightsPathState state, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name- The _unique_ name of the resulting resource.id- The _unique_ provider ID of the resource to lookup.state-options- Optional settings to control the behavior of the CustomResource.
-
-