CfnConnectPeerPropsMixin

class aws_cdk.mixins_preview.aws_networkmanager.mixins.CfnConnectPeerPropsMixin(props, *, strategy=None)

Bases: Mixin

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).

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-connectpeer.html

CloudformationResource:

AWS::NetworkManager::ConnectPeer

Mixin:

true

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.mixins_preview import mixins
from aws_cdk.mixins_preview.aws_networkmanager import mixins as networkmanager_mixins

cfn_connect_peer_props_mixin = networkmanager_mixins.CfnConnectPeerPropsMixin(networkmanager_mixins.CfnConnectPeerMixinProps(
    bgp_options=networkmanager_mixins.CfnConnectPeerPropsMixin.BgpOptionsProperty(
        peer_asn=123
    ),
    connect_attachment_id="connectAttachmentId",
    core_network_address="coreNetworkAddress",
    inside_cidr_blocks=["insideCidrBlocks"],
    peer_address="peerAddress",
    subnet_arn="subnetArn",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
),
    strategy=mixins.PropertyMergeStrategy.OVERRIDE
)

Create a mixin to apply properties to AWS::NetworkManager::ConnectPeer.

Parameters:
  • props (Union[CfnConnectPeerMixinProps, Dict[str, Any]]) – L1 properties to apply.

  • strategy (Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

IConstruct

supports(construct)

Check if this mixin supports the given construct.

Parameters:

construct (IConstruct)

Return type:

bool

Attributes

CFN_PROPERTY_KEYS = ['bgpOptions', 'connectAttachmentId', 'coreNetworkAddress', 'insideCidrBlocks', 'peerAddress', 'subnetArn', 'tags']

Static Methods

classmethod is_mixin(x)

(experimental) Checks if x is a Mixin.

Parameters:

x (Any) – Any object.

Return type:

bool

Returns:

true if x is an object created from a class which extends Mixin.

Stability:

experimental

BgpOptionsProperty

class CfnConnectPeerPropsMixin.BgpOptionsProperty(*, peer_asn=None)

Bases: object

Describes the BGP options.

Parameters:

peer_asn (Union[int, float, None]) – The Peer ASN of the BGP.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkmanager-connectpeer-bgpoptions.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.mixins_preview.aws_networkmanager import mixins as networkmanager_mixins

bgp_options_property = networkmanager_mixins.CfnConnectPeerPropsMixin.BgpOptionsProperty(
    peer_asn=123
)

Attributes

peer_asn

The Peer ASN of the BGP.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkmanager-connectpeer-bgpoptions.html#cfn-networkmanager-connectpeer-bgpoptions-peerasn

ConnectPeerBgpConfigurationProperty

class CfnConnectPeerPropsMixin.ConnectPeerBgpConfigurationProperty(*, core_network_address=None, core_network_asn=None, peer_address=None, peer_asn=None)

Bases: object

Describes a core network BGP configuration.

Parameters:
  • core_network_address (Optional[str]) – The address of a core network.

  • core_network_asn (Union[int, float, None]) – The ASN of the Coret Network.

  • peer_address (Optional[str]) – The address of a core network Connect peer.

  • peer_asn (Union[int, float, None]) – The ASN of the Connect peer.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkmanager-connectpeer-connectpeerbgpconfiguration.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.mixins_preview.aws_networkmanager import mixins as networkmanager_mixins

connect_peer_bgp_configuration_property = networkmanager_mixins.CfnConnectPeerPropsMixin.ConnectPeerBgpConfigurationProperty(
    core_network_address="coreNetworkAddress",
    core_network_asn=123,
    peer_address="peerAddress",
    peer_asn=123
)

Attributes

core_network_address

The address of a core network.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkmanager-connectpeer-connectpeerbgpconfiguration.html#cfn-networkmanager-connectpeer-connectpeerbgpconfiguration-corenetworkaddress

core_network_asn

The ASN of the Coret Network.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkmanager-connectpeer-connectpeerbgpconfiguration.html#cfn-networkmanager-connectpeer-connectpeerbgpconfiguration-corenetworkasn

peer_address

The address of a core network Connect peer.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkmanager-connectpeer-connectpeerbgpconfiguration.html#cfn-networkmanager-connectpeer-connectpeerbgpconfiguration-peeraddress

peer_asn

The ASN of the Connect peer.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkmanager-connectpeer-connectpeerbgpconfiguration.html#cfn-networkmanager-connectpeer-connectpeerbgpconfiguration-peerasn

ConnectPeerConfigurationProperty

class CfnConnectPeerPropsMixin.ConnectPeerConfigurationProperty(*, bgp_configurations=None, core_network_address=None, inside_cidr_blocks=None, peer_address=None, protocol=None)

Bases: object

Describes a core network Connect peer configuration.

Parameters:
  • bgp_configurations (Union[IResolvable, Sequence[Union[IResolvable, ConnectPeerBgpConfigurationProperty, Dict[str, Any]]], None]) – The Connect peer BGP configurations.

  • core_network_address (Optional[str]) – The IP address of a core network.

  • inside_cidr_blocks (Optional[Sequence[str]]) – The inside IP addresses used for a Connect peer configuration.

  • peer_address (Optional[str]) – The IP address of the Connect peer.

  • protocol (Optional[str]) – The protocol used for a Connect peer configuration.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkmanager-connectpeer-connectpeerconfiguration.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.mixins_preview.aws_networkmanager import mixins as networkmanager_mixins

connect_peer_configuration_property = networkmanager_mixins.CfnConnectPeerPropsMixin.ConnectPeerConfigurationProperty(
    bgp_configurations=[networkmanager_mixins.CfnConnectPeerPropsMixin.ConnectPeerBgpConfigurationProperty(
        core_network_address="coreNetworkAddress",
        core_network_asn=123,
        peer_address="peerAddress",
        peer_asn=123
    )],
    core_network_address="coreNetworkAddress",
    inside_cidr_blocks=["insideCidrBlocks"],
    peer_address="peerAddress",
    protocol="protocol"
)

Attributes

bgp_configurations

The Connect peer BGP configurations.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkmanager-connectpeer-connectpeerconfiguration.html#cfn-networkmanager-connectpeer-connectpeerconfiguration-bgpconfigurations

core_network_address

The IP address of a core network.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkmanager-connectpeer-connectpeerconfiguration.html#cfn-networkmanager-connectpeer-connectpeerconfiguration-corenetworkaddress

inside_cidr_blocks

The inside IP addresses used for a Connect peer configuration.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkmanager-connectpeer-connectpeerconfiguration.html#cfn-networkmanager-connectpeer-connectpeerconfiguration-insidecidrblocks

peer_address

The IP address of the Connect peer.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkmanager-connectpeer-connectpeerconfiguration.html#cfn-networkmanager-connectpeer-connectpeerconfiguration-peeraddress

protocol

The protocol used for a Connect peer configuration.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkmanager-connectpeer-connectpeerconfiguration.html#cfn-networkmanager-connectpeer-connectpeerconfiguration-protocol