@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:42.142Z") @Stability(value=Stable) public interface CfnServiceProps extends software.amazon.jsii.JsiiSerializable
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnServiceProps.Builder
A builder for
CfnServiceProps |
static class |
CfnServiceProps.Jsii$Proxy
An implementation for
CfnServiceProps |
| Modifier and Type | Method and Description |
|---|---|
static CfnServiceProps.Builder |
builder() |
default String |
getDescription()
The description of the service.
|
default Object |
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.
|
default Object |
getHealthCheckConfig()
*Public DNS and HTTP namespaces only.* A complex type that contains settings for an optional health check.
|
default Object |
getHealthCheckCustomConfig()
A complex type that contains information about an optional custom health check.
|
default String |
getName()
The name of the service.
|
default String |
getNamespaceId()
The ID of the namespace that was used to create the service.
|
default List<CfnTag> |
getTags()
The tags for the service.
|
default String |
getType()
If present, specifies that the service instances are only discoverable using the `DiscoverInstances` API operation.
|
@Stability(value=Stable) @Nullable default String getDescription()
@Stability(value=Stable) @Nullable default Object getDnsConfig()
@Stability(value=Stable) @Nullable default Object getHealthCheckConfig()
For information about the charges for health checks, see Amazon Route 53 Pricing .
@Stability(value=Stable) @Nullable default Object getHealthCheckCustomConfig()
If you specify a health check configuration, you can specify either
HealthCheckCustomConfigorHealthCheckConfigbut not both.
@Stability(value=Stable) @Nullable default String getName()
@Stability(value=Stable) @Nullable default String getNamespaceId()
You must specify a value for
NamespaceIdeither for the service properties or for DnsConfig . Don't specify a value in both places.
@Stability(value=Stable) @Nullable default List<CfnTag> getTags()
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.
@Stability(value=Stable) @Nullable default String getType()
No DNS records is registered for the service instances. The only valid value is HTTP .
@Stability(value=Stable) static CfnServiceProps.Builder builder()
CfnServiceProps.Builder of CfnServicePropsCopyright © 2022. All rights reserved.