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.*;
Object serviceAttributes;
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")
.serviceAttributes(serviceAttributes)
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.type("type")
.build();
- See Also:
-
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 or Amazon Resource Name (ARN) of the namespace that you want to use to create the service.default ObjectA complex type that contains information about attributes associated with a specific 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.- See Also:
-
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.Returns union: either
IResolvableorCfnService.DnsConfigProperty- See Also:
-
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 .
Returns union: either
IResolvableorCfnService.HealthCheckConfigProperty- See Also:
-
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.Returns union: either
IResolvableorCfnService.HealthCheckCustomConfigProperty- See Also:
-
getName
The name of the service.- See Also:
-
getNamespaceId
The ID or Amazon Resource Name (ARN) of the namespace that you want to use to create the service.For namespaces shared with your AWS account, specify the namespace ARN. For more information about shared namespaces, see Cross-account AWS Cloud Map namespace sharing in the AWS Cloud Map Developer Guide .
- See Also:
-
getServiceAttributes
A complex type that contains information about attributes associated with a specific service.- See Also:
-
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.
- See Also:
-
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.- See Also:
-
builder
- Returns:
- a
CfnServiceProps.BuilderofCfnServiceProps
-