# CfnMeshProps

Properties for defining a `CfnMesh`.

Used as props by: [CfnMesh](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appmesh.CfnMesh.html)

- Source: Generated at build time

## Example

TypeScript:

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

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

```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();
```

C# / .NET:

```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"
    } }
};
```

Golang:

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

- `meshName`: string — The name to use for the service mesh.

- `spec`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnMesh.MeshSpecProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appmesh.CfnMesh.MeshSpecProperty.html) — The service mesh specification to apply.

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — 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.
