BgpPeer
- Implements: github.com/alibabacloud-go/ros-cdk/alicloudroscdkvpc.datasource.IBgpPeer
This class encapsulates and extends the ROS resource type DATASOURCE::VPC::BgpPeer.
Initializers
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkvpc/datasource"
datasource.NewBgpPeer(scope Construct, id *string, props BgpPeerProps, enableResourcePropertyConstraint *bool) BgpPeer
| Name | Type | Description |
|---|---|---|
scope | github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Construct | No description. |
id | *string | No description. |
props | BgpPeerProps | No description. |
enableResourcePropertyConstraint | *bool | No description. |
scopeRequired
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Construct
idRequired
- Type: *string
propsOptional
- Type: BgpPeerProps
enableResourcePropertyConstraintOptional
- Type: *bool
Methods
| Name | Description |
|---|---|
ToString | Returns a string representation of this construct. |
Synthesize | Allows this construct to emit artifacts into the cloud assembly during synthesis. |
AddCondition | No description. |
AddCount | No description. |
AddDependency | No description. |
AddResourceDesc | No description. |
ApplyRemovalPolicy | No description. |
FetchCondition | No description. |
FetchDependency | No description. |
FetchResourceDesc | No description. |
GetAtt | No description. |
SetMetadata | No description. |
ToString
func ToString() *string
Returns a string representation of this construct.
Synthesize
func Synthesize(session ISynthesisSession)
Allows this construct to emit artifacts into the cloud assembly during synthesis.
This method is usually implemented by framework-level constructs such as Stack and Asset as they participate in synthesizing the cloud assembly.
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.ISynthesisSession
The synthesis session.
AddCondition
func AddCondition(condition RosCondition)
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RosCondition
AddCount
func AddCount(count interface{})
- Type: interface{}
AddDependency
func AddDependency(resource Resource)
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Resource
AddResourceDesc
func AddResourceDesc(desc *string)
- Type: *string
ApplyRemovalPolicy
func ApplyRemovalPolicy(policy RemovalPolicy)
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RemovalPolicy
FetchCondition
func FetchCondition() RosCondition
FetchDependency
func FetchDependency() *[]*string
FetchResourceDesc
func FetchResourceDesc() *string
GetAtt
func GetAtt(name *string) IResolvable
- Type: *string
SetMetadata
func SetMetadata(key *string, value interface{})
- Type: *string
- Type: interface{}
Static Functions
| Name | Description |
|---|---|
IsConstruct | Return whether the given object is a Construct. |
IsConstruct
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkvpc/datasource"
datasource.BgpPeer_IsConstruct(x interface{}) *bool
Return whether the given object is a Construct.
- Type: interface{}
Properties
| Name | Type | Description |
|---|---|---|
Node | github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.ConstructNode | The construct tree node associated with this construct. |
Env | github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResourceEnvironment | The environment this resource belongs to. |
Ref | *string | No description. |
Stack | github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Stack | The stack in which this resource is defined. |
Resource | github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RosResource | No description. |
AttrAdvertisedRouteCount | interface{} | Attribute AdvertisedRouteCount: The number of advertised routes. |
AttrAuthKey | interface{} | Attribute AuthKey: The authentication key of the BGP group. |
AttrBfdMultiHop | interface{} | Attribute BfdMultiHop: The Bidirectional Forwarding Detection (BFD) hop count. |
AttrBgpGroupId | interface{} | Attribute BgpGroupId: The ID of the BGP group. |
AttrBgpPeerId | interface{} | Attribute BgpPeerId: The ID of the BGP peer. |
AttrBgpStatus | interface{} | Attribute BgpStatus: The status of the BGP connection. |
AttrDescription | interface{} | Attribute Description: The description of the BGP group. |
AttrEnableBfd | interface{} | Attribute EnableBfd: Indicates whether BFD is enabled. |
AttrGmtModified | interface{} | Attribute GmtModified: The time when the BGP peer is modified. |
AttrHold | interface{} | Attribute Hold: The hold time. |
AttrIpVersion | interface{} | Attribute IpVersion: The version of the IP address. |
AttrIsFake | interface{} | Attribute IsFake: Indicates whether a fake autonomous system number (ASN) is used. |
AttrKeepalive | interface{} | Attribute Keepalive: The Keepalive interval. |
AttrLocalAsn | interface{} | Attribute LocalAsn: The ASN of the device on the Alibaba Cloud side. |
AttrName | interface{} | Attribute Name: The name of the BGP peer. |
AttrPeerAsn | interface{} | Attribute PeerAsn: The autonomous system number (ASN)of the BGP peer. |
AttrPeerIpAddress | interface{} | Attribute PeerIpAddress: The IP address of the BGP peer. |
AttrReceivedRouteCount | interface{} | Attribute ReceivedRouteCount: The number of received routes. |
AttrRouteLimit | interface{} | Attribute RouteLimit: The maximum number of routes. |
AttrRouterId | interface{} | Attribute RouterId: The Router ID. |
AttrStatus | interface{} | Attribute Status: The status of the BGP peer. |
Props | BgpPeerProps | No description. |
NodeRequired
func Node() ConstructNode
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.ConstructNode
The construct tree node associated with this construct.
EnvRequired
func Env() IResourceEnvironment
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResourceEnvironment
The environment this resource belongs to.
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
RefRequired
func Ref() *string
- Type: *string
StackRequired
func Stack() Stack
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Stack
The stack in which this resource is defined.
ResourceOptional
func Resource() RosResource
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RosResource
AttrAdvertisedRouteCountRequired
func AttrAdvertisedRouteCount() interface{}
- Type: interface{}
Attribute AdvertisedRouteCount: The number of advertised routes.
AttrAuthKeyRequired
func AttrAuthKey() interface{}
- Type: interface{}
Attribute AuthKey: The authentication key of the BGP group.
AttrBfdMultiHopRequired
func AttrBfdMultiHop() interface{}
- Type: interface{}
Attribute BfdMultiHop: The Bidirectional Forwarding Detection (BFD) hop count.
AttrBgpGroupIdRequired
func AttrBgpGroupId() interface{}
- Type: interface{}
Attribute BgpGroupId: The ID of the BGP group.
AttrBgpPeerIdRequired
func AttrBgpPeerId() interface{}
- Type: interface{}
Attribute BgpPeerId: The ID of the BGP peer.
AttrBgpStatusRequired
func AttrBgpStatus() interface{}
- Type: interface{}
Attribute BgpStatus: The status of the BGP connection.
Valid values: Idle: The BGP connection is not used. Connect: The BGP connection is used. Active: The BGP connection is available. Established: The BGP connection is established. Down: The BGP connection is unavailable.
AttrDescriptionRequired
func AttrDescription() interface{}
- Type: interface{}
Attribute Description: The description of the BGP group.
AttrEnableBfdRequired
func AttrEnableBfd() interface{}
- Type: interface{}
Attribute EnableBfd: Indicates whether BFD is enabled.
Valid values: false true
AttrGmtModifiedRequired
func AttrGmtModified() interface{}
- Type: interface{}
Attribute GmtModified: The time when the BGP peer is modified.
AttrHoldRequired
func AttrHold() interface{}
- Type: interface{}
Attribute Hold: The hold time.
AttrIpVersionRequired
func AttrIpVersion() interface{}
- Type: interface{}
Attribute IpVersion: The version of the IP address.
AttrIsFakeRequired
func AttrIsFake() interface{}
- Type: interface{}
Attribute IsFake: Indicates whether a fake autonomous system number (ASN) is used.
Valid values: false true
AttrKeepaliveRequired
func AttrKeepalive() interface{}
- Type: interface{}
Attribute Keepalive: The Keepalive interval.
AttrLocalAsnRequired
func AttrLocalAsn() interface{}
- Type: interface{}
Attribute LocalAsn: The ASN of the device on the Alibaba Cloud side.
AttrNameRequired
func AttrName() interface{}
- Type: interface{}
Attribute Name: The name of the BGP peer.
AttrPeerAsnRequired
func AttrPeerAsn() interface{}
- Type: interface{}
Attribute PeerAsn: The autonomous system number (ASN)of the BGP peer.
AttrPeerIpAddressRequired
func AttrPeerIpAddress() interface{}
- Type: interface{}
Attribute PeerIpAddress: The IP address of the BGP peer.
AttrReceivedRouteCountRequired
func AttrReceivedRouteCount() interface{}
- Type: interface{}
Attribute ReceivedRouteCount: The number of received routes.
AttrRouteLimitRequired
func AttrRouteLimit() interface{}
- Type: interface{}
Attribute RouteLimit: The maximum number of routes.
AttrRouterIdRequired
func AttrRouterId() interface{}
- Type: interface{}
Attribute RouterId: The Router ID.
AttrStatusRequired
func AttrStatus() interface{}
- Type: interface{}
Attribute Status: The status of the BGP peer.
Valid values: Pending Available Modifying Deleting Deleted
PropsRequired
func Props() BgpPeerProps
- Type: BgpPeerProps