Interface CfnServiceProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnServiceProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.113.0 (build fc68b25)", date="2025-09-15T14:52:07.285Z") @Stability(Stable) public interface CfnServiceProps extends software.amazon.jsii.JsiiSerializable
Properties for defining a 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 Classes
    Modifier and Type
    Interface
    Description
    static final class 
    A builder for CfnServiceProps
    static final class 
    An implementation for CfnServiceProps
  • Method Summary

    Modifier and Type
    Method
    Description
     
    default String
    The description of the service.
    default Object
    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
    Public DNS and HTTP namespaces only. A complex type that contains settings for an optional health check.
    default Object
    A complex type that contains information about an optional custom health check.
    default String
    The name of the service.
    default String
    The ID or Amazon Resource Name (ARN) of the namespace that you want to use to create the service.
    default Object
    A complex type that contains information about attributes associated with a specific service.
    default List<CfnTag>
    The tags for the service.
    default String
    If present, specifies that the service instances are only discoverable using the DiscoverInstances API operation.

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson