Class CfnService.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnService>
- Enclosing class:
CfnService
CfnService
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static CfnService.Builder
description
(String description) The description of the service.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.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.healthCheckConfig
(IResolvable healthCheckConfig) Public DNS and HTTP namespaces only. A complex type that contains settings for an optional health check.healthCheckConfig
(CfnService.HealthCheckConfigProperty healthCheckConfig) Public DNS and HTTP namespaces only. A complex type that contains settings for an optional health check.healthCheckCustomConfig
(IResolvable healthCheckCustomConfig) A complex type that contains information about an optional custom health check.healthCheckCustomConfig
(CfnService.HealthCheckCustomConfigProperty healthCheckCustomConfig) A complex type that contains information about an optional custom health check.The name of the service.namespaceId
(String namespaceId) The ID of the namespace that was used to create the service.The tags for the service.If present, specifies that the service instances are only discoverable using theDiscoverInstances
API operation.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnService.Builder
.
-
description
The description of the service.- Parameters:
description
- The description of the service. This parameter is required.- Returns:
this
-
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.The record types of a service can only be changed by deleting the service and recreating it with a new
Dnsconfig
.- Parameters:
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.- Returns:
this
-
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.The record types of a service can only be changed by deleting the service and recreating it with a new
Dnsconfig
.- Parameters:
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.- Returns:
this
-
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 inDnsConfig
.For information about the charges for health checks, see Amazon Route 53 Pricing .
- Parameters:
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 inDnsConfig
. This parameter is required.- Returns:
this
-
healthCheckConfig
@Stability(Stable) public CfnService.Builder healthCheckConfig(CfnService.HealthCheckConfigProperty 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 inDnsConfig
.For information about the charges for health checks, see Amazon Route 53 Pricing .
- Parameters:
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 inDnsConfig
. This parameter is required.- Returns:
this
-
healthCheckCustomConfig
@Stability(Stable) public CfnService.Builder healthCheckCustomConfig(IResolvable healthCheckCustomConfig) A complex type that contains information about an optional custom health check.If you specify a health check configuration, you can specify either
HealthCheckCustomConfig
orHealthCheckConfig
but not both.- Parameters:
healthCheckCustomConfig
- A complex type that contains information about an optional custom health check. This parameter is required.- Returns:
this
-
healthCheckCustomConfig
@Stability(Stable) public CfnService.Builder healthCheckCustomConfig(CfnService.HealthCheckCustomConfigProperty healthCheckCustomConfig) A complex type that contains information about an optional custom health check.If you specify a health check configuration, you can specify either
HealthCheckCustomConfig
orHealthCheckConfig
but not both.- Parameters:
healthCheckCustomConfig
- A complex type that contains information about an optional custom health check. This parameter is required.- Returns:
this
-
name
The name of the service.- Parameters:
name
- The name of the service. This parameter is required.- Returns:
this
-
namespaceId
The ID of the namespace that was used to create the service.You must specify a value for
NamespaceId
either for the service properties or for DnsConfig . Don't specify a value in both places.- Parameters:
namespaceId
- The ID of the namespace that was used to create the service. This parameter is required.- Returns:
this
-
tags
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.
- Parameters:
tags
- The tags for the service. This parameter is required.- Returns:
this
-
type
If present, specifies that the service instances are only discoverable using theDiscoverInstances
API operation.No DNS records is registered for the service instances. The only valid value is
HTTP
.- Parameters:
type
- If present, specifies that the service instances are only discoverable using theDiscoverInstances
API operation. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnService>
- Returns:
- a newly built instance of
CfnService
.
-