CfnMeshPropsMixin
- class aws_cdk.mixins_preview.aws_appmesh.mixins.CfnMeshPropsMixin(props, *, strategy=None)
Bases:
MixinCreates a service mesh.
A service mesh is a logical boundary for network traffic between services that are represented by resources within the mesh. After you create your service mesh, you can create virtual services, virtual nodes, virtual routers, and routes to distribute traffic between the applications in your mesh.
For more information about service meshes, see Service meshes .
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-mesh.html
- CloudformationResource:
AWS::AppMesh::Mesh
- 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_mesh_props_mixin = appmesh_mixins.CfnMeshPropsMixin(appmesh_mixins.CfnMeshMixinProps( mesh_name="meshName", spec=appmesh_mixins.CfnMeshPropsMixin.MeshSpecProperty( egress_filter=appmesh_mixins.CfnMeshPropsMixin.EgressFilterProperty( type="type" ), service_discovery=appmesh_mixins.CfnMeshPropsMixin.MeshServiceDiscoveryProperty( ip_preference="ipPreference" ) ), tags=[CfnTag( key="key", value="value" )] ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::AppMesh::Mesh.- Parameters:
props (
Union[CfnMeshMixinProps,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', 'spec', 'tags']
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
EgressFilterProperty
- class CfnMeshPropsMixin.EgressFilterProperty(*, type=None)
Bases:
objectAn object that represents the egress filter rules for a service mesh.
- Parameters:
type (
Optional[str]) – The egress filter type. By default, the type isDROP_ALL, which allows egress only from virtual nodes to other defined resources in the service mesh (and any traffic to*.amazonaws.com.rproxy.govskope.cafor AWS API calls). You can set the egress filter type toALLOW_ALLto allow egress to any endpoint inside or outside of the service mesh. .. epigraph:: If you specify any backends on a virtual node when usingALLOW_ALL, you must specifiy all egress for that virtual node as backends. Otherwise,ALLOW_ALLwill no longer work for that virtual node.- 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 egress_filter_property = appmesh_mixins.CfnMeshPropsMixin.EgressFilterProperty( type="type" )
Attributes
- type
The egress filter type.
By default, the type is
DROP_ALL, which allows egress only from virtual nodes to other defined resources in the service mesh (and any traffic to*.amazonaws.com.rproxy.govskope.cafor AWS API calls). You can set the egress filter type toALLOW_ALLto allow egress to any endpoint inside or outside of the service mesh. .. epigraph:If you specify any backends on a virtual node when using ``ALLOW_ALL`` , you must specifiy all egress for that virtual node as backends. Otherwise, ``ALLOW_ALL`` will no longer work for that virtual node.
MeshServiceDiscoveryProperty
- class CfnMeshPropsMixin.MeshServiceDiscoveryProperty(*, ip_preference=None)
Bases:
objectAn object that represents the service discovery information for a service mesh.
- Parameters:
ip_preference (
Optional[str]) – The IP version to use to control traffic within the mesh.- 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 mesh_service_discovery_property = appmesh_mixins.CfnMeshPropsMixin.MeshServiceDiscoveryProperty( ip_preference="ipPreference" )
Attributes
- ip_preference
The IP version to use to control traffic within the mesh.
MeshSpecProperty
- class CfnMeshPropsMixin.MeshSpecProperty(*, egress_filter=None, service_discovery=None)
Bases:
objectAn object that represents the specification of a service mesh.
- Parameters:
egress_filter (
Union[IResolvable,EgressFilterProperty,Dict[str,Any],None]) – The egress filter rules for the service mesh.service_discovery (
Union[IResolvable,MeshServiceDiscoveryProperty,Dict[str,Any],None]) – An object that represents the service discovery information for a service mesh.
- 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 mesh_spec_property = appmesh_mixins.CfnMeshPropsMixin.MeshSpecProperty( egress_filter=appmesh_mixins.CfnMeshPropsMixin.EgressFilterProperty( type="type" ), service_discovery=appmesh_mixins.CfnMeshPropsMixin.MeshServiceDiscoveryProperty( ip_preference="ipPreference" ) )
Attributes
- egress_filter
The egress filter rules for the service mesh.
- service_discovery
An object that represents the service discovery information for a service mesh.