Skip to content
v2.276.0

CfnMeshProps Struct ​

Properties for defining a CfnMesh.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_appmesh as appmesh } from 'aws-cdk-lib';
const cfnMeshProps: appmesh.CfnMeshProps = {
  meshName: 'meshName',
  spec: {
    egressFilter: {
      type: 'type',
    },
    serviceDiscovery: {
      ipPreference: 'ipPreference',
    },
  },
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_appmesh as appmesh

cfn_mesh_props = appmesh.CfnMeshProps(
    mesh_name="meshName",
    spec=appmesh.CfnMesh.MeshSpecProperty(
        egress_filter=appmesh.CfnMesh.EgressFilterProperty(
            type="type"
        ),
        service_discovery=appmesh.CfnMesh.MeshServiceDiscoveryProperty(
            ip_preference="ipPreference"
        )
    ),
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.appmesh.*;

CfnMeshProps cfnMeshProps = CfnMeshProps.builder()
        .meshName("meshName")
        .spec(MeshSpecProperty.builder()
                .egressFilter(EgressFilterProperty.builder()
                        .type("type")
                        .build())
                .serviceDiscovery(MeshServiceDiscoveryProperty.builder()
                        .ipPreference("ipPreference")
                        .build())
                .build())
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AppMesh;

var cfnMeshProps = new CfnMeshProps {
    MeshName = "meshName",
    Spec = new MeshSpecProperty {
        EgressFilter = new EgressFilterProperty {
            Type = "type"
        },
        ServiceDiscovery = new MeshServiceDiscoveryProperty {
            IpPreference = "ipPreference"
        }
    },
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnMeshProps := &CfnMeshProps{
	MeshName: jsii.String("meshName"),
	Spec: &MeshSpecProperty{
		EgressFilter: &EgressFilterProperty{
			Type: jsii.String("type"),
		},
		ServiceDiscovery: &MeshServiceDiscoveryProperty{
			IpPreference: jsii.String("ipPreference"),
		},
	},
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

meshNameoptionalstringmesh_nameoptionalstrmeshNameoptionalStringMeshNameoptionalstringMeshNameoptional*string#
The name to use for the service mesh.
specoptionalIResolvable | CfnMesh.MeshSpecPropertyspecoptionaltyping.Union[IResolvable, MeshSpecProperty]specoptionalIResolvableSpecoptionalIResolvableSpecoptionalinterface{}#
The service mesh specification to apply.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag#
Optional metadata that you can apply to the service mesh to assist with categorization and organization.

Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.