@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:38.935Z") public class CfnLink extends CfnResource implements IInspectable
Specifies a link for a site.
Example:
// 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.*; CfnLink cfnLink = CfnLink.Builder.create(this, "MyCfnLink") .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();
Modifier and Type | Class and Description |
---|---|
static interface |
CfnLink.BandwidthProperty
Describes bandwidth information.
|
static class |
CfnLink.Builder
A fluent builder for
CfnLink . |
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnLink(Construct scope,
java.lang.String id,
CfnLinkProps props)
Create a new `AWS::NetworkManager::Link`.
|
protected |
CfnLink(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnLink(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttrLinkArn()
The ARN of the link.
|
java.lang.String |
getAttrLinkId()
The ID of the link.
|
java.lang.Object |
getBandwidth()
The bandwidth for the link.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.String |
getDescription()
A description of the link.
|
java.lang.String |
getGlobalNetworkId()
The ID of the global network.
|
java.lang.String |
getProvider()
The provider of the link.
|
java.lang.String |
getSiteId()
The ID of the site.
|
TagManager |
getTags()
The tags for the link.
|
java.lang.String |
getType()
The type of the link.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setBandwidth(CfnLink.BandwidthProperty value)
The bandwidth for the link.
|
void |
setBandwidth(IResolvable value)
The bandwidth for the link.
|
void |
setDescription(java.lang.String value)
A description of the link.
|
void |
setGlobalNetworkId(java.lang.String value)
The ID of the global network.
|
void |
setProvider(java.lang.String value)
The provider of the link.
|
void |
setSiteId(java.lang.String value)
The ID of the site.
|
void |
setType(java.lang.String value)
The type of the link.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
protected CfnLink(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnLink(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnLink(Construct scope, java.lang.String id, CfnLinkProps props)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.props
- - resource properties. This parameter is required.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.public java.lang.String getAttrLinkArn()
For example, arn:aws:networkmanager::123456789012:link/global-network-01231231231231231/link-11112222aaaabbbb1
.
public java.lang.String getAttrLinkId()
For example, link-11112222aaaabbbb1
.
protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public TagManager getTags()
public java.lang.Object getBandwidth()
public void setBandwidth(IResolvable value)
public void setBandwidth(CfnLink.BandwidthProperty value)
public java.lang.String getGlobalNetworkId()
public void setGlobalNetworkId(java.lang.String value)
public java.lang.String getSiteId()
public void setSiteId(java.lang.String value)
public java.lang.String getDescription()
Constraints: Maximum length of 256 characters.
public void setDescription(java.lang.String value)
Constraints: Maximum length of 256 characters.
public java.lang.String getProvider()
Constraints: Maximum length of 128 characters. Cannot include the following characters: | \ ^
public void setProvider(java.lang.String value)
Constraints: Maximum length of 128 characters. Cannot include the following characters: | \ ^
public java.lang.String getType()
Constraints: Maximum length of 128 characters. Cannot include the following characters: | \ ^
public void setType(java.lang.String value)
Constraints: Maximum length of 128 characters. Cannot include the following characters: | \ ^