CfnConnectionProps Struct
Properties for defining a CfnConnection.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_directconnect as directconnect } from 'aws-cdk-lib';
const cfnConnectionProps: directconnect.CfnConnectionProps = {
bandwidth: 'bandwidth',
connectionName: 'connectionName',
location: 'location',
// the properties below are optional
lagId: 'lagId',
providerName: 'providerName',
requestMacSec: false,
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_directconnect as directconnect
cfn_connection_props = directconnect.CfnConnectionProps(
bandwidth="bandwidth",
connection_name="connectionName",
location="location",
# the properties below are optional
lag_id="lagId",
provider_name="providerName",
request_mac_sec=False,
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.directconnect.*;
CfnConnectionProps cfnConnectionProps = CfnConnectionProps.builder()
.bandwidth("bandwidth")
.connectionName("connectionName")
.location("location")
// the properties below are optional
.lagId("lagId")
.providerName("providerName")
.requestMacSec(false)
.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.DirectConnect;
var cfnConnectionProps = new CfnConnectionProps {
Bandwidth = "bandwidth",
ConnectionName = "connectionName",
Location = "location",
// the properties below are optional
LagId = "lagId",
ProviderName = "providerName",
RequestMacSec = false,
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{
Bandwidth: jsii.String("bandwidth"),
ConnectionName: jsii.String("connectionName"),
Location: jsii.String("location"),
// the properties below are optional
LagId: jsii.String("lagId"),
ProviderName: jsii.String("providerName"),
RequestMacSec: jsii.Boolean(false),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
The bandwidth of the connection.
connectionNamestringconnection_namestrconnectionNameStringConnectionNamestringConnectionName*string required #The name of the connection.
The location of the connection.
providerNameoptionalstringprovider_nameoptionalstrproviderNameoptionalStringProviderNameoptionalstringProviderNameoptional*string #The name of the service provider associated with the requested connection.
requestMacSecoptionalboolean | IResolvablerequest_mac_secoptionaltyping.Union[bool, IResolvable]requestMacSecoptionalBooleanRequestMacSecoptionalboolRequestMacSecoptionalinterface{} #Indicates whether you want the connection to support MAC Security (MACsec).