DnsServiceDiscoveryProperty
Struct External
An object that represents the DNS service discovery information for your virtual node.
| 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 dnsServiceDiscoveryProperty: appmesh.CfnVirtualNode.DnsServiceDiscoveryProperty = {
hostname: 'hostname',
// the properties below are optional
ipPreference: 'ipPreference',
responseType: 'responseType',
};
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
dns_service_discovery_property = appmesh.CfnVirtualNode.DnsServiceDiscoveryProperty(
hostname="hostname",
# the properties below are optional
ip_preference="ipPreference",
response_type="responseType"
)
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.*;
DnsServiceDiscoveryProperty dnsServiceDiscoveryProperty = DnsServiceDiscoveryProperty.builder()
.hostname("hostname")
// the properties below are optional
.ipPreference("ipPreference")
.responseType("responseType")
.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 dnsServiceDiscoveryProperty = new DnsServiceDiscoveryProperty {
Hostname = "hostname",
// the properties below are optional
IpPreference = "ipPreference",
ResponseType = "responseType"
};
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"
dnsServiceDiscoveryProperty := &DnsServiceDiscoveryProperty{
Hostname: jsii.String("hostname"),
// the properties below are optional
IpPreference: jsii.String("ipPreference"),
ResponseType: jsii.String("responseType"),
}
Properties
Specifies the DNS service discovery hostname for the virtual node.
ipPreferenceoptionalstringip_preferenceoptionalstripPreferenceoptionalStringIpPreferenceoptionalstringIpPreferenceoptional*string #The preferred IP version that this virtual node uses.
Setting the IP preference on the virtual node only overrides the IP preference set for the mesh on this specific node.
responseTypeoptionalstringresponse_typeoptionalstrresponseTypeoptionalStringResponseTypeoptionalstringResponseTypeoptional*string #Specifies the DNS response type for the virtual node.