Try AWS Native preview for resources not in the classic version.
AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi
aws.ec2.getNetworkInsightsPath
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi
aws.ec2.NetworkInsightsPath
provides details about a specific Network Insights Path.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.ec2.getNetworkInsightsPath({
networkInsightsPathId: exampleAwsEc2NetworkInsightsPath.id,
});
import pulumi
import pulumi_aws as aws
example = aws.ec2.get_network_insights_path(network_insights_path_id=example_aws_ec2_network_insights_path["id"])
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ec2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ec2.LookupNetworkInsightsPath(ctx, &ec2.LookupNetworkInsightsPathArgs{
NetworkInsightsPathId: pulumi.StringRef(exampleAwsEc2NetworkInsightsPath.Id),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = Aws.Ec2.GetNetworkInsightsPath.Invoke(new()
{
NetworkInsightsPathId = exampleAwsEc2NetworkInsightsPath.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2.Ec2Functions;
import com.pulumi.aws.ec2.inputs.GetNetworkInsightsPathArgs;
import java.util.List;
import java.util.ArrayList;
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) {
final var example = Ec2Functions.getNetworkInsightsPath(GetNetworkInsightsPathArgs.builder()
.networkInsightsPathId(exampleAwsEc2NetworkInsightsPath.id())
.build());
}
}
variables:
example:
fn::invoke:
Function: aws:ec2:getNetworkInsightsPath
Arguments:
networkInsightsPathId: ${exampleAwsEc2NetworkInsightsPath.id}
Using getNetworkInsightsPath
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getNetworkInsightsPath(args: GetNetworkInsightsPathArgs, opts?: InvokeOptions): Promise<GetNetworkInsightsPathResult>
function getNetworkInsightsPathOutput(args: GetNetworkInsightsPathOutputArgs, opts?: InvokeOptions): Output<GetNetworkInsightsPathResult>
def get_network_insights_path(filters: Optional[Sequence[GetNetworkInsightsPathFilter]] = None,
network_insights_path_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
opts: Optional[InvokeOptions] = None) -> GetNetworkInsightsPathResult
def get_network_insights_path_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetNetworkInsightsPathFilterArgs]]]] = None,
network_insights_path_id: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNetworkInsightsPathResult]
func LookupNetworkInsightsPath(ctx *Context, args *LookupNetworkInsightsPathArgs, opts ...InvokeOption) (*LookupNetworkInsightsPathResult, error)
func LookupNetworkInsightsPathOutput(ctx *Context, args *LookupNetworkInsightsPathOutputArgs, opts ...InvokeOption) LookupNetworkInsightsPathResultOutput
> Note: This function is named LookupNetworkInsightsPath
in the Go SDK.
public static class GetNetworkInsightsPath
{
public static Task<GetNetworkInsightsPathResult> InvokeAsync(GetNetworkInsightsPathArgs args, InvokeOptions? opts = null)
public static Output<GetNetworkInsightsPathResult> Invoke(GetNetworkInsightsPathInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetNetworkInsightsPathResult> getNetworkInsightsPath(GetNetworkInsightsPathArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws:ec2/getNetworkInsightsPath:getNetworkInsightsPath
arguments:
# arguments dictionary
The following arguments are supported:
- Filters
List<Get
Network Insights Path Filter> - Configuration block(s) for filtering. Detailed below.
- Network
Insights stringPath Id - ID of the Network Insights Path to select.
- Dictionary<string, string>
- Map of tags assigned to the resource.
- Filters
[]Get
Network Insights Path Filter - Configuration block(s) for filtering. Detailed below.
- Network
Insights stringPath Id - ID of the Network Insights Path to select.
- map[string]string
- Map of tags assigned to the resource.
- filters
List<Get
Network Insights Path Filter> - Configuration block(s) for filtering. Detailed below.
- network
Insights StringPath Id - ID of the Network Insights Path to select.
- Map<String,String>
- Map of tags assigned to the resource.
- filters
Get
Network Insights Path Filter[] - Configuration block(s) for filtering. Detailed below.
- network
Insights stringPath Id - ID of the Network Insights Path to select.
- {[key: string]: string}
- Map of tags assigned to the resource.
- filters
Sequence[Get
Network Insights Path Filter] - Configuration block(s) for filtering. Detailed below.
- network_
insights_ strpath_ id - ID of the Network Insights Path to select.
- Mapping[str, str]
- Map of tags assigned to the resource.
- filters List<Property Map>
- Configuration block(s) for filtering. Detailed below.
- network
Insights StringPath Id - ID of the Network Insights Path to select.
- Map<String>
- Map of tags assigned to the resource.
getNetworkInsightsPath Result
The following output properties are available:
- Arn string
- ARN of the selected Network Insights Path.
- Destination string
- AWS resource that is the destination of the path.
- Destination
Arn string - ARN of the destination.
- Destination
Ip string - IP address of the AWS resource that is the destination of the path.
- Destination
Port int - Destination port.
- Id string
- The provider-assigned unique ID for this managed resource.
- Network
Insights stringPath Id - Protocol string
- Protocol.
- Source string
- AWS resource that is the source of the path.
- Source
Arn string - ARN of the source.
- Source
Ip string - IP address of the AWS resource that is the source of the path.
- Dictionary<string, string>
- Map of tags assigned to the resource.
- Filters
List<Get
Network Insights Path Filter>
- Arn string
- ARN of the selected Network Insights Path.
- Destination string
- AWS resource that is the destination of the path.
- Destination
Arn string - ARN of the destination.
- Destination
Ip string - IP address of the AWS resource that is the destination of the path.
- Destination
Port int - Destination port.
- Id string
- The provider-assigned unique ID for this managed resource.
- Network
Insights stringPath Id - Protocol string
- Protocol.
- Source string
- AWS resource that is the source of the path.
- Source
Arn string - ARN of the source.
- Source
Ip string - IP address of the AWS resource that is the source of the path.
- map[string]string
- Map of tags assigned to the resource.
- Filters
[]Get
Network Insights Path Filter
- arn String
- ARN of the selected Network Insights Path.
- destination String
- AWS resource that is the destination of the path.
- destination
Arn String - ARN of the destination.
- destination
Ip String - IP address of the AWS resource that is the destination of the path.
- destination
Port Integer - Destination port.
- id String
- The provider-assigned unique ID for this managed resource.
- network
Insights StringPath Id - protocol String
- Protocol.
- source String
- AWS resource that is the source of the path.
- source
Arn String - ARN of the source.
- source
Ip String - IP address of the AWS resource that is the source of the path.
- Map<String,String>
- Map of tags assigned to the resource.
- filters
List<Get
Network Insights Path Filter>
- arn string
- ARN of the selected Network Insights Path.
- destination string
- AWS resource that is the destination of the path.
- destination
Arn string - ARN of the destination.
- destination
Ip string - IP address of the AWS resource that is the destination of the path.
- destination
Port number - Destination port.
- id string
- The provider-assigned unique ID for this managed resource.
- network
Insights stringPath Id - protocol string
- Protocol.
- source string
- AWS resource that is the source of the path.
- source
Arn string - ARN of the source.
- source
Ip string - IP address of the AWS resource that is the source of the path.
- {[key: string]: string}
- Map of tags assigned to the resource.
- filters
Get
Network Insights Path Filter[]
- arn str
- ARN of the selected Network Insights Path.
- destination str
- AWS resource that is the destination of the path.
- destination_
arn str - ARN of the destination.
- destination_
ip str - IP address of the AWS resource that is the destination of the path.
- destination_
port int - Destination port.
- id str
- The provider-assigned unique ID for this managed resource.
- network_
insights_ strpath_ id - protocol str
- Protocol.
- source str
- AWS resource that is the source of the path.
- source_
arn str - ARN of the source.
- source_
ip str - IP address of the AWS resource that is the source of the path.
- Mapping[str, str]
- Map of tags assigned to the resource.
- filters
Sequence[Get
Network Insights Path Filter]
- arn String
- ARN of the selected Network Insights Path.
- destination String
- AWS resource that is the destination of the path.
- destination
Arn String - ARN of the destination.
- destination
Ip String - IP address of the AWS resource that is the destination of the path.
- destination
Port Number - Destination port.
- id String
- The provider-assigned unique ID for this managed resource.
- network
Insights StringPath Id - protocol String
- Protocol.
- source String
- AWS resource that is the source of the path.
- source
Arn String - ARN of the source.
- source
Ip String - IP address of the AWS resource that is the source of the path.
- Map<String>
- Map of tags assigned to the resource.
- filters List<Property Map>
Supporting Types
GetNetworkInsightsPathFilter
- Name string
- Name of the filter field. Valid values can be found in the EC2
DescribeNetworkInsightsPaths
API Reference. - Values List<string>
- Set of values that are accepted for the given filter field. Results will be selected if any given value matches.
- Name string
- Name of the filter field. Valid values can be found in the EC2
DescribeNetworkInsightsPaths
API Reference. - Values []string
- Set of values that are accepted for the given filter field. Results will be selected if any given value matches.
- name String
- Name of the filter field. Valid values can be found in the EC2
DescribeNetworkInsightsPaths
API Reference. - values List<String>
- Set of values that are accepted for the given filter field. Results will be selected if any given value matches.
- name string
- Name of the filter field. Valid values can be found in the EC2
DescribeNetworkInsightsPaths
API Reference. - values string[]
- Set of values that are accepted for the given filter field. Results will be selected if any given value matches.
- name str
- Name of the filter field. Valid values can be found in the EC2
DescribeNetworkInsightsPaths
API Reference. - values Sequence[str]
- Set of values that are accepted for the given filter field. Results will be selected if any given value matches.
- name String
- Name of the filter field. Valid values can be found in the EC2
DescribeNetworkInsightsPaths
API Reference. - values List<String>
- Set of values that are accepted for the given filter field. Results will be selected if any given value matches.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.
Try AWS Native preview for resources not in the classic version.
AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi