CfnVirtualRouterPropsMixin
- class aws_cdk.mixins_preview.aws_appmesh.mixins.CfnVirtualRouterPropsMixin(props, *, strategy=None)
Bases:
MixinCreates a virtual router within a service mesh.
Specify a
listenerfor any inbound traffic that your virtual router receives. Create a virtual router for each protocol and port that you need to route. Virtual routers handle traffic for one or more virtual services within your mesh. After you create your virtual router, create and associate routes for your virtual router that direct incoming requests to different virtual nodes.For more information about virtual routers, see Virtual routers .
- See:
- CloudformationResource:
AWS::AppMesh::VirtualRouter
- 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_appmesh import mixins as appmesh_mixins cfn_virtual_router_props_mixin = appmesh_mixins.CfnVirtualRouterPropsMixin(appmesh_mixins.CfnVirtualRouterMixinProps( mesh_name="meshName", mesh_owner="meshOwner", spec=appmesh_mixins.CfnVirtualRouterPropsMixin.VirtualRouterSpecProperty( listeners=[appmesh_mixins.CfnVirtualRouterPropsMixin.VirtualRouterListenerProperty( port_mapping=appmesh_mixins.CfnVirtualRouterPropsMixin.PortMappingProperty( port=123, protocol="protocol" ) )] ), tags=[CfnTag( key="key", value="value" )], virtual_router_name="virtualRouterName" ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::AppMesh::VirtualRouter.- Parameters:
props (
Union[CfnVirtualRouterMixinProps,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:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['meshName', 'meshOwner', 'spec', 'tags', 'virtualRouterName']
Static Methods
- classmethod is_mixin(x)
(experimental) Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental
PortMappingProperty
- class CfnVirtualRouterPropsMixin.PortMappingProperty(*, port=None, protocol=None)
Bases:
objectAn object representing a virtual router listener port mapping.
- Parameters:
port (
Union[int,float,None]) – The port used for the port mapping.protocol (
Optional[str]) – The protocol used for the port mapping. Specify one protocol.
- See:
- 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_appmesh import mixins as appmesh_mixins port_mapping_property = appmesh_mixins.CfnVirtualRouterPropsMixin.PortMappingProperty( port=123, protocol="protocol" )
Attributes
- port
The port used for the port mapping.
- protocol
The protocol used for the port mapping.
Specify one protocol.
VirtualRouterListenerProperty
- class CfnVirtualRouterPropsMixin.VirtualRouterListenerProperty(*, port_mapping=None)
Bases:
objectAn object that represents a virtual router listener.
- Parameters:
port_mapping (
Union[IResolvable,PortMappingProperty,Dict[str,Any],None]) – The port mapping information for the listener.- See:
- 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_appmesh import mixins as appmesh_mixins virtual_router_listener_property = appmesh_mixins.CfnVirtualRouterPropsMixin.VirtualRouterListenerProperty( port_mapping=appmesh_mixins.CfnVirtualRouterPropsMixin.PortMappingProperty( port=123, protocol="protocol" ) )
Attributes
- port_mapping
The port mapping information for the listener.
VirtualRouterSpecProperty
- class CfnVirtualRouterPropsMixin.VirtualRouterSpecProperty(*, listeners=None)
Bases:
objectAn object that represents the specification of a virtual router.
- Parameters:
listeners (
Union[IResolvable,Sequence[Union[IResolvable,VirtualRouterListenerProperty,Dict[str,Any]]],None]) – The listeners that the virtual router is expected to receive inbound traffic from.- See:
- 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_appmesh import mixins as appmesh_mixins virtual_router_spec_property = appmesh_mixins.CfnVirtualRouterPropsMixin.VirtualRouterSpecProperty( listeners=[appmesh_mixins.CfnVirtualRouterPropsMixin.VirtualRouterListenerProperty( port_mapping=appmesh_mixins.CfnVirtualRouterPropsMixin.PortMappingProperty( port=123, protocol="protocol" ) )] )
Attributes
- listeners
The listeners that the virtual router is expected to receive inbound traffic from.