@Generated(value="jsii-pacmak/1.60.0 (build ebcefe6)", date="2022-06-22T23:27:52.091Z") public class CfnConnectPeer extends CfnResource implements IInspectable
Creates a core network Connect peer for a specified core network connect attachment between a core network and an appliance. The peer address and transit gateway address must be the same IP address family (IPv4 or IPv6).
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.*; CfnConnectPeer cfnConnectPeer = CfnConnectPeer.Builder.create(this, "MyCfnConnectPeer") .bgpOptions(BgpOptionsProperty.builder() .peerAsn(123) .build()) .connectAttachmentId("connectAttachmentId") .coreNetworkAddress("coreNetworkAddress") .insideCidrBlocks(List.of("insideCidrBlocks")) .peerAddress("peerAddress") .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .build();
Modifier and Type | Class and Description |
---|---|
static interface |
CfnConnectPeer.BgpOptionsProperty
Describes the BGP options.
|
static class |
CfnConnectPeer.Builder
A fluent builder for
CfnConnectPeer . |
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 |
---|---|
|
CfnConnectPeer(Construct scope,
java.lang.String id)
Create a new `AWS::NetworkManager::ConnectPeer`.
|
|
CfnConnectPeer(Construct scope,
java.lang.String id,
CfnConnectPeerProps props)
Create a new `AWS::NetworkManager::ConnectPeer`.
|
protected |
CfnConnectPeer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnConnectPeer(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttrConnectPeerId()
The ID of the Connect peer.
|
java.lang.String |
getAttrCoreNetworkId()
The core network ID.
|
java.lang.String |
getAttrCreatedAt()
The timestamp when the Connect peer was created.
|
java.lang.String |
getAttrEdgeLocation()
The Region where the edge is located.
|
java.lang.String |
getAttrState()
The state of the Connect peer.
|
java.lang.Object |
getBgpOptions()
The BGP peer options.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.String |
getConnectAttachmentId()
The ID of Connect peer.
|
java.lang.String |
getCoreNetworkAddress()
The IP address of a core network.
|
java.util.List<java.lang.String> |
getInsideCidrBlocks()
The inside IP addresses used for a Connect peer configuration.
|
java.lang.String |
getPeerAddress()
The IP address of the Connect peer.
|
TagManager |
getTags()
The tags associated with the Connect peer.
|
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 |
setBgpOptions(CfnConnectPeer.BgpOptionsProperty value)
The BGP peer options.
|
void |
setBgpOptions(IResolvable value)
The BGP peer options.
|
void |
setConnectAttachmentId(java.lang.String value)
The ID of Connect peer.
|
void |
setCoreNetworkAddress(java.lang.String value)
The IP address of a core network.
|
void |
setInsideCidrBlocks(java.util.List<java.lang.String> value)
The inside IP addresses used for a Connect peer configuration.
|
void |
setPeerAddress(java.lang.String value)
The IP address of the Connect peer.
|
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 CfnConnectPeer(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnConnectPeer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnConnectPeer(Construct scope, java.lang.String id, CfnConnectPeerProps 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.public CfnConnectPeer(Construct scope, java.lang.String id)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. 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 getAttrConnectPeerId()
public java.lang.String getAttrCoreNetworkId()
public java.lang.String getAttrCreatedAt()
public java.lang.String getAttrEdgeLocation()
public java.lang.String getAttrState()
This will be: REJECTED
| PENDING_ATTACHMENT_ACCEPTANCE
| CREATING
| FAILED
| AVAILABLE
| UPDATING
| PENDING_NETWORK_UPDATE
| PENDING_TAG_ACCEPTANCE
| DELETING
.
protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public TagManager getTags()
public java.lang.Object getBgpOptions()
public void setBgpOptions(IResolvable value)
public void setBgpOptions(CfnConnectPeer.BgpOptionsProperty value)
public java.lang.String getConnectAttachmentId()
public void setConnectAttachmentId(java.lang.String value)
public java.lang.String getCoreNetworkAddress()
public void setCoreNetworkAddress(java.lang.String value)
public java.util.List<java.lang.String> getInsideCidrBlocks()
public void setInsideCidrBlocks(java.util.List<java.lang.String> value)
public java.lang.String getPeerAddress()
public void setPeerAddress(java.lang.String value)