Interface CfnServiceProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnServiceProps.Jsii$Proxy
CfnService.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.servicediscovery.*;
CfnServiceProps cfnServiceProps = CfnServiceProps.builder()
.description("description")
.dnsConfig(DnsConfigProperty.builder()
.dnsRecords(List.of(DnsRecordProperty.builder()
.ttl(123)
.type("type")
.build()))
// the properties below are optional
.namespaceId("namespaceId")
.routingPolicy("routingPolicy")
.build())
.healthCheckConfig(HealthCheckConfigProperty.builder()
.type("type")
// the properties below are optional
.failureThreshold(123)
.resourcePath("resourcePath")
.build())
.healthCheckCustomConfig(HealthCheckCustomConfigProperty.builder()
.failureThreshold(123)
.build())
.name("name")
.namespaceId("namespaceId")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.type("type")
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnServicePropsstatic final classAn implementation forCfnServiceProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnServiceProps.Builderbuilder()default StringThe description of the service.default ObjectA complex type that contains information about the Route 53 DNS records that you want AWS Cloud Map to create when you register an instance.default ObjectPublic DNS and HTTP namespaces only. A complex type that contains settings for an optional health check.default ObjectA complex type that contains information about an optional custom health check.default StringgetName()The name of the service.default StringThe ID of the namespace that was used to create the service.getTags()The tags for the service.default StringgetType()If present, specifies that the service instances are only discoverable using theDiscoverInstancesAPI operation.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDescription
The description of the service. -
getDnsConfig
A complex type that contains information about the Route 53 DNS records that you want AWS Cloud Map to create when you register an instance.The record types of a service can only be changed by deleting the service and recreating it with a new
Dnsconfig. -
getHealthCheckConfig
Public DNS and HTTP namespaces only. A complex type that contains settings for an optional health check. If you specify settings for a health check, AWS Cloud Map associates the health check with the records that you specify inDnsConfig.For information about the charges for health checks, see Amazon Route 53 Pricing .
-
getHealthCheckCustomConfig
A complex type that contains information about an optional custom health check.If you specify a health check configuration, you can specify either
HealthCheckCustomConfigorHealthCheckConfigbut not both. -
getName
The name of the service. -
getNamespaceId
The ID of the namespace that was used to create the service.You must specify a value for
NamespaceIdeither for the service properties or for DnsConfig . Don't specify a value in both places. -
getTags
The tags for the service.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.
-
getType
If present, specifies that the service instances are only discoverable using theDiscoverInstancesAPI operation.No DNS records is registered for the service instances. The only valid value is
HTTP. -
builder
- Returns:
- a
CfnServiceProps.BuilderofCfnServiceProps
-