CfnMeshPropsMixin

class aws_cdk.mixins_preview.aws_appmesh.mixins.CfnMeshPropsMixin(props, *, strategy=None)

Bases: Mixin

Creates 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:

IConstruct

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

EgressFilterProperty

class CfnMeshPropsMixin.EgressFilterProperty(*, type=None)

Bases: object

An object that represents the egress filter rules for a service mesh.

Parameters:

type (Optional[str]) – 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 for AWS API calls). You can set the egress filter type to ALLOW_ALL to 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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-mesh-egressfilter.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_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 for AWS API calls). You can set the egress filter type to ALLOW_ALL to 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.
See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-mesh-egressfilter.html#cfn-appmesh-mesh-egressfilter-type

MeshServiceDiscoveryProperty

class CfnMeshPropsMixin.MeshServiceDiscoveryProperty(*, ip_preference=None)

Bases: object

An 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:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-mesh-meshservicediscovery.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_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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-mesh-meshservicediscovery.html#cfn-appmesh-mesh-meshservicediscovery-ippreference

MeshSpecProperty

class CfnMeshPropsMixin.MeshSpecProperty(*, egress_filter=None, service_discovery=None)

Bases: object

An object that represents the specification of a service mesh.

Parameters:
See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-mesh-meshspec.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_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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-mesh-meshspec.html#cfn-appmesh-mesh-meshspec-egressfilter

service_discovery

An object that represents the service discovery information for a service mesh.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-mesh-meshspec.html#cfn-appmesh-mesh-meshspec-servicediscovery