# MeshSpecProperty

An object that represents the specification of a service mesh.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## 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 meshSpecProperty: appmesh.CfnMesh.MeshSpecProperty = {
  egressFilter: {
    type: 'type',
  },
  serviceDiscovery: {
    ipPreference: 'ipPreference',
  },
};
```

Python:

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

mesh_spec_property = appmesh.CfnMesh.MeshSpecProperty(
    egress_filter=appmesh.CfnMesh.EgressFilterProperty(
        type="type"
    ),
    service_discovery=appmesh.CfnMesh.MeshServiceDiscoveryProperty(
        ip_preference="ipPreference"
    )
)
```

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.*;

MeshSpecProperty meshSpecProperty = MeshSpecProperty.builder()
        .egressFilter(EgressFilterProperty.builder()
                .type("type")
                .build())
        .serviceDiscovery(MeshServiceDiscoveryProperty.builder()
                .ipPreference("ipPreference")
                .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 meshSpecProperty = new MeshSpecProperty {
    EgressFilter = new EgressFilterProperty {
        Type = "type"
    },
    ServiceDiscovery = new MeshServiceDiscoveryProperty {
        IpPreference = "ipPreference"
    }
};
```

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"

meshSpecProperty := &MeshSpecProperty{
	EgressFilter: &EgressFilterProperty{
		Type: jsii.String("type"),
	},
	ServiceDiscovery: &MeshServiceDiscoveryProperty{
		IpPreference: jsii.String("ipPreference"),
	},
}
```

## Properties

- `egressFilter`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnMesh.EgressFilterProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appmesh.CfnMesh.EgressFilterProperty.html) — The egress filter rules for the service mesh.

- `serviceDiscovery`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnMesh.MeshServiceDiscoveryProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appmesh.CfnMesh.MeshServiceDiscoveryProperty.html) — An object that represents the service discovery information for a service mesh.
