Skip to content
v2.278.0

CfnLinkProps Struct ​

Properties for defining a CfnLink.

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 cfnLinkProps: networkmanager.CfnLinkProps = {
  bandwidth: {
    downloadSpeed: 123,
    uploadSpeed: 123,
  },
  globalNetworkId: 'globalNetworkId',
  siteId: 'siteId',

  // the properties below are optional
  description: 'description',
  provider: 'provider',
  tags: [{
    key: 'key',
    value: 'value',
  }],
  type: 'type',
};
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_link_props = networkmanager.CfnLinkProps(
    bandwidth=networkmanager.CfnLink.BandwidthProperty(
        download_speed=123,
        upload_speed=123
    ),
    global_network_id="globalNetworkId",
    site_id="siteId",

    # the properties below are optional
    description="description",
    provider="provider",
    tags=[CfnTag(
        key="key",
        value="value"
    )],
    type="type"
)
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.*;

CfnLinkProps cfnLinkProps = CfnLinkProps.builder()
        .bandwidth(BandwidthProperty.builder()
                .downloadSpeed(123)
                .uploadSpeed(123)
                .build())
        .globalNetworkId("globalNetworkId")
        .siteId("siteId")

        // the properties below are optional
        .description("description")
        .provider("provider")
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .type("type")
        .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 cfnLinkProps = new CfnLinkProps {
    Bandwidth = new BandwidthProperty {
        DownloadSpeed = 123,
        UploadSpeed = 123
    },
    GlobalNetworkId = "globalNetworkId",
    SiteId = "siteId",

    // the properties below are optional
    Description = "description",
    Provider = "provider",
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } },
    Type = "type"
};
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"

cfnLinkProps := &CfnLinkProps{
	Bandwidth: &BandwidthProperty{
		DownloadSpeed: jsii.Number(123),
		UploadSpeed: jsii.Number(123),
	},
	GlobalNetworkId: jsii.String("globalNetworkId"),
	SiteId: jsii.String("siteId"),

	// the properties below are optional
	Description: jsii.String("description"),
	Provider: jsii.String("provider"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
	Type: jsii.String("type"),
}

Properties ​

bandwidthIResolvable | CfnLink.BandwidthPropertybandwidthtyping.Union[IResolvable, BandwidthProperty]bandwidthIResolvableBandwidthIResolvableBandwidthinterface{} required #
The bandwidth for the link.
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #
A description of the link.

Constraints: Maximum length of 256 characters.

globalNetworkIdstringglobal_network_idstrglobalNetworkIdStringGlobalNetworkIdstringGlobalNetworkId*string required #
The ID of the global network.
provideroptionalstringprovideroptionalstrprovideroptionalStringProvideroptionalstringProvideroptional*string #
The provider of the link.

Constraints: Maximum length of 128 characters. Cannot include the following characters: | \ ^

siteIdstringsite_idstrsiteIdStringSiteIdstringSiteId*string required #
The ID of the site.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
The tags for the link.
typeoptionalstringtypeoptionalstrtypeoptionalStringTypeoptionalstringTypeoptional*string #
The type of the link.

Constraints: Maximum length of 128 characters. Cannot include the following characters: | \ ^