@Generated(value="jsii-pacmak/1.46.0 (build cd08c55)", date="2021-11-25T20:11:07.934Z") @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()
`AWS::ServiceDiscovery::Service.Description`.
|
default Object |
getDnsConfig()
`AWS::ServiceDiscovery::Service.DnsConfig`.
|
default Object |
getHealthCheckConfig()
`AWS::ServiceDiscovery::Service.HealthCheckConfig`.
|
default Object |
getHealthCheckCustomConfig()
`AWS::ServiceDiscovery::Service.HealthCheckCustomConfig`.
|
default String |
getName()
`AWS::ServiceDiscovery::Service.Name`.
|
default String |
getNamespaceId()
`AWS::ServiceDiscovery::Service.NamespaceId`.
|
default List<CfnTag> |
getTags()
`AWS::ServiceDiscovery::Service.Tags`.
|
default String |
getType()
`AWS::ServiceDiscovery::Service.Type`.
|
@Stability(value=Stable) @Nullable default String getDescription()
@Stability(value=Stable) @Nullable default Object getDnsConfig()
@Stability(value=Stable) @Nullable default Object getHealthCheckConfig()
@Stability(value=Stable) @Nullable default Object getHealthCheckCustomConfig()
@Stability(value=Stable) @Nullable default String getName()
@Stability(value=Stable) @Nullable default String getNamespaceId()
@Stability(value=Stable) @Nullable default List<CfnTag> getTags()
@Stability(value=Stable) @Nullable default String getType()
@Stability(value=Stable) static CfnServiceProps.Builder builder()
CfnServiceProps.Builder of CfnServicePropsCopyright © 2021. All rights reserved.