public static final class CfnService.Builder
extends java.lang.Object
CfnService
.Modifier and Type | Method and Description |
---|---|
CfnService |
build() |
static CfnService.Builder |
create(Construct scope,
java.lang.String id) |
CfnService.Builder |
description(java.lang.String description)
The description of the service.
|
CfnService.Builder |
dnsConfig(CfnService.DnsConfigProperty dnsConfig)
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.
|
CfnService.Builder |
dnsConfig(IResolvable dnsConfig)
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.
|
CfnService.Builder |
healthCheckConfig(CfnService.HealthCheckConfigProperty healthCheckConfig)
*Public DNS and HTTP namespaces only.* A complex type that contains settings for an optional health check.
|
CfnService.Builder |
healthCheckConfig(IResolvable healthCheckConfig)
*Public DNS and HTTP namespaces only.* A complex type that contains settings for an optional health check.
|
CfnService.Builder |
healthCheckCustomConfig(CfnService.HealthCheckCustomConfigProperty healthCheckCustomConfig)
A complex type that contains information about an optional custom health check.
|
CfnService.Builder |
healthCheckCustomConfig(IResolvable healthCheckCustomConfig)
A complex type that contains information about an optional custom health check.
|
CfnService.Builder |
name(java.lang.String name)
The name of the service.
|
CfnService.Builder |
namespaceId(java.lang.String namespaceId)
The ID of the namespace that was used to create the service.
|
CfnService.Builder |
tags(java.util.List<? extends CfnTag> tags)
The tags for the service.
|
CfnService.Builder |
type(java.lang.String type)
If present, specifies that the service instances are only discoverable using the `DiscoverInstances` API operation.
|
public static CfnService.Builder create(Construct scope, java.lang.String id)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.CfnService.DnsConfigProperty.Builder
.public CfnService.Builder description(java.lang.String description)
description
- The description of the service. This parameter is required.this
public CfnService.Builder dnsConfig(IResolvable dnsConfig)
dnsConfig
- 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. This parameter is required.this
public CfnService.Builder dnsConfig(CfnService.DnsConfigProperty dnsConfig)
dnsConfig
- 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. This parameter is required.this
public CfnService.Builder healthCheckConfig(IResolvable healthCheckConfig)
For information about the charges for health checks, see Amazon Route 53 Pricing .
healthCheckConfig
- *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 in `DnsConfig` . This parameter is required.this
public CfnService.Builder healthCheckConfig(CfnService.HealthCheckConfigProperty healthCheckConfig)
For information about the charges for health checks, see Amazon Route 53 Pricing .
healthCheckConfig
- *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 in `DnsConfig` . This parameter is required.this
public CfnService.Builder healthCheckCustomConfig(IResolvable healthCheckCustomConfig)
If you specify a health check configuration, you can specify either
HealthCheckCustomConfig
orHealthCheckConfig
but not both.
healthCheckCustomConfig
- A complex type that contains information about an optional custom health check. This parameter is required.this
public CfnService.Builder healthCheckCustomConfig(CfnService.HealthCheckCustomConfigProperty healthCheckCustomConfig)
If you specify a health check configuration, you can specify either
HealthCheckCustomConfig
orHealthCheckConfig
but not both.
healthCheckCustomConfig
- A complex type that contains information about an optional custom health check. This parameter is required.this
public CfnService.Builder name(java.lang.String name)
name
- The name of the service. This parameter is required.this
public CfnService.Builder namespaceId(java.lang.String namespaceId)
You must specify a value for
NamespaceId
either for the service properties or for DnsConfig . Don't specify a value in both places.
namespaceId
- The ID of the namespace that was used to create the service. This parameter is required.this
public CfnService.Builder tags(java.util.List<? extends CfnTag> tags)
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.
tags
- The tags for the service. This parameter is required.this
public CfnService.Builder type(java.lang.String type)
No DNS records is registered for the service instances. The only valid value is HTTP
.
type
- If present, specifies that the service instances are only discoverable using the `DiscoverInstances` API operation. This parameter is required.this
public CfnService build()