Skip to content
v2.277.0

CfnConnectionProps Struct ​

Properties for defining a CfnConnection.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_networkmanager as networkmanager } from 'aws-cdk-lib';
const cfnConnectionProps: networkmanager.CfnConnectionProps = {
  connectedDeviceId: 'connectedDeviceId',
  deviceId: 'deviceId',
  globalNetworkId: 'globalNetworkId',

  // the properties below are optional
  connectedLinkId: 'connectedLinkId',
  description: 'description',
  linkId: 'linkId',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_networkmanager as networkmanager

cfn_connection_props = networkmanager.CfnConnectionProps(
    connected_device_id="connectedDeviceId",
    device_id="deviceId",
    global_network_id="globalNetworkId",

    # the properties below are optional
    connected_link_id="connectedLinkId",
    description="description",
    link_id="linkId",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.networkmanager.*;

CfnConnectionProps cfnConnectionProps = CfnConnectionProps.builder()
        .connectedDeviceId("connectedDeviceId")
        .deviceId("deviceId")
        .globalNetworkId("globalNetworkId")

        // the properties below are optional
        .connectedLinkId("connectedLinkId")
        .description("description")
        .linkId("linkId")
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.NetworkManager;

var cfnConnectionProps = new CfnConnectionProps {
    ConnectedDeviceId = "connectedDeviceId",
    DeviceId = "deviceId",
    GlobalNetworkId = "globalNetworkId",

    // the properties below are optional
    ConnectedLinkId = "connectedLinkId",
    Description = "description",
    LinkId = "linkId",
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnConnectionProps := &CfnConnectionProps{
	ConnectedDeviceId: jsii.String("connectedDeviceId"),
	DeviceId: jsii.String("deviceId"),
	GlobalNetworkId: jsii.String("globalNetworkId"),

	// the properties below are optional
	ConnectedLinkId: jsii.String("connectedLinkId"),
	Description: jsii.String("description"),
	LinkId: jsii.String("linkId"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

connectedDeviceIdstringconnected_device_idstrconnectedDeviceIdStringConnectedDeviceIdstringConnectedDeviceId*stringrequired#
The ID of the second device in the connection.
connectedLinkIdoptionalstringconnected_link_idoptionalstrconnectedLinkIdoptionalStringConnectedLinkIdoptionalstringConnectedLinkIdoptional*string#
The ID of the link for the second device.
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string#
The description of the connection.
deviceIdstringdevice_idstrdeviceIdStringDeviceIdstringDeviceId*stringrequired#
The ID of the first device in the connection.
globalNetworkIdstringglobal_network_idstrglobalNetworkIdStringGlobalNetworkIdstringGlobalNetworkId*stringrequired#
The ID of the global network that the connection belongs to.
linkIdoptionalstringlink_idoptionalstrlinkIdoptionalStringLinkIdoptionalstringLinkIdoptional*string#
The ID of the link for the first device.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag#
The tags for the connection.