MeshSpecProperty Struct
An object that represents the specification of a service mesh.
| Source | |
|---|---|
| Type last changed |
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 meshSpecProperty: appmesh.CfnMesh.MeshSpecProperty = {
egressFilter: {
type: 'type',
},
serviceDiscovery: {
ipPreference: 'ipPreference',
},
};
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
// 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();
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"
}
};
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
egressFilteroptionalIResolvable | CfnMesh.EgressFilterPropertyegress_filteroptionaltyping.Union[IResolvable, EgressFilterProperty]egressFilteroptionalIResolvableEgressFilteroptionalIResolvableEgressFilteroptionalinterface{} #The egress filter rules for the service mesh.
serviceDiscoveryoptionalIResolvable | CfnMesh.service_discoveryoptionaltyping.Union[IResolvable, MeshServiceDiscoveryProperty]serviceDiscoveryoptionalIResolvableServiceDiscoveryoptionalIResolvableServiceDiscoveryoptionalinterface{} #An object that represents the service discovery information for a service mesh.