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.networkmanager.getConnection
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
Retrieve information about a connection.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.networkmanager.getConnection({
globalNetworkId: globalNetworkId,
connectionId: connectionId,
});
import pulumi
import pulumi_aws as aws
example = aws.networkmanager.get_connection(global_network_id=global_network_id,
connection_id=connection_id)
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/networkmanager"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := networkmanager.LookupConnection(ctx, &networkmanager.LookupConnectionArgs{
GlobalNetworkId: globalNetworkId,
ConnectionId: connectionId,
}, 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.NetworkManager.GetConnection.Invoke(new()
{
GlobalNetworkId = globalNetworkId,
ConnectionId = connectionId,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.networkmanager.NetworkmanagerFunctions;
import com.pulumi.aws.networkmanager.inputs.GetConnectionArgs;
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 = NetworkmanagerFunctions.getConnection(GetConnectionArgs.builder()
.globalNetworkId(globalNetworkId)
.connectionId(connectionId)
.build());
}
}
variables:
example:
fn::invoke:
Function: aws:networkmanager:getConnection
Arguments:
globalNetworkId: ${globalNetworkId}
connectionId: ${connectionId}
Using getConnection
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 getConnection(args: GetConnectionArgs, opts?: InvokeOptions): Promise<GetConnectionResult>
function getConnectionOutput(args: GetConnectionOutputArgs, opts?: InvokeOptions): Output<GetConnectionResult>
def get_connection(connection_id: Optional[str] = None,
global_network_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
opts: Optional[InvokeOptions] = None) -> GetConnectionResult
def get_connection_output(connection_id: Optional[pulumi.Input[str]] = None,
global_network_id: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetConnectionResult]
func LookupConnection(ctx *Context, args *LookupConnectionArgs, opts ...InvokeOption) (*LookupConnectionResult, error)
func LookupConnectionOutput(ctx *Context, args *LookupConnectionOutputArgs, opts ...InvokeOption) LookupConnectionResultOutput
> Note: This function is named LookupConnection
in the Go SDK.
public static class GetConnection
{
public static Task<GetConnectionResult> InvokeAsync(GetConnectionArgs args, InvokeOptions? opts = null)
public static Output<GetConnectionResult> Invoke(GetConnectionInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetConnectionResult> getConnection(GetConnectionArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws:networkmanager/getConnection:getConnection
arguments:
# arguments dictionary
The following arguments are supported:
- Connection
Id string - ID of the specific connection to retrieve.
- Global
Network stringId - ID of the Global Network of the connection to retrieve.
- Dictionary<string, string>
- Key-value tags for the connection.
- Connection
Id string - ID of the specific connection to retrieve.
- Global
Network stringId - ID of the Global Network of the connection to retrieve.
- map[string]string
- Key-value tags for the connection.
- connection
Id String - ID of the specific connection to retrieve.
- global
Network StringId - ID of the Global Network of the connection to retrieve.
- Map<String,String>
- Key-value tags for the connection.
- connection
Id string - ID of the specific connection to retrieve.
- global
Network stringId - ID of the Global Network of the connection to retrieve.
- {[key: string]: string}
- Key-value tags for the connection.
- connection_
id str - ID of the specific connection to retrieve.
- global_
network_ strid - ID of the Global Network of the connection to retrieve.
- Mapping[str, str]
- Key-value tags for the connection.
- connection
Id String - ID of the specific connection to retrieve.
- global
Network StringId - ID of the Global Network of the connection to retrieve.
- Map<String>
- Key-value tags for the connection.
getConnection Result
The following output properties are available:
- Arn string
- ARN of the connection.
- Connected
Device stringId - ID of the second device in the connection.
- Connected
Link stringId - ID of the link for the second device.
- Connection
Id string - Description string
- Description of the connection.
- Device
Id string - ID of the first device in the connection.
- Global
Network stringId - Id string
- The provider-assigned unique ID for this managed resource.
- Link
Id string - ID of the link for the first device.
- Dictionary<string, string>
- Key-value tags for the connection.
- Arn string
- ARN of the connection.
- Connected
Device stringId - ID of the second device in the connection.
- Connected
Link stringId - ID of the link for the second device.
- Connection
Id string - Description string
- Description of the connection.
- Device
Id string - ID of the first device in the connection.
- Global
Network stringId - Id string
- The provider-assigned unique ID for this managed resource.
- Link
Id string - ID of the link for the first device.
- map[string]string
- Key-value tags for the connection.
- arn String
- ARN of the connection.
- connected
Device StringId - ID of the second device in the connection.
- connected
Link StringId - ID of the link for the second device.
- connection
Id String - description String
- Description of the connection.
- device
Id String - ID of the first device in the connection.
- global
Network StringId - id String
- The provider-assigned unique ID for this managed resource.
- link
Id String - ID of the link for the first device.
- Map<String,String>
- Key-value tags for the connection.
- arn string
- ARN of the connection.
- connected
Device stringId - ID of the second device in the connection.
- connected
Link stringId - ID of the link for the second device.
- connection
Id string - description string
- Description of the connection.
- device
Id string - ID of the first device in the connection.
- global
Network stringId - id string
- The provider-assigned unique ID for this managed resource.
- link
Id string - ID of the link for the first device.
- {[key: string]: string}
- Key-value tags for the connection.
- arn str
- ARN of the connection.
- connected_
device_ strid - ID of the second device in the connection.
- connected_
link_ strid - ID of the link for the second device.
- connection_
id str - description str
- Description of the connection.
- device_
id str - ID of the first device in the connection.
- global_
network_ strid - id str
- The provider-assigned unique ID for this managed resource.
- link_
id str - ID of the link for the first device.
- Mapping[str, str]
- Key-value tags for the connection.
- arn String
- ARN of the connection.
- connected
Device StringId - ID of the second device in the connection.
- connected
Link StringId - ID of the link for the second device.
- connection
Id String - description String
- Description of the connection.
- device
Id String - ID of the first device in the connection.
- global
Network StringId - id String
- The provider-assigned unique ID for this managed resource.
- link
Id String - ID of the link for the first device.
- Map<String>
- Key-value tags for the connection.
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