Class PublicDnsNamespace
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.servicediscovery.PublicDnsNamespace
- All Implemented Interfaces:
IResource
,INamespace
,IPublicDnsNamespace
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-25T14:21:23.829Z")
@Stability(Stable)
public class PublicDnsNamespace
extends Resource
implements IPublicDnsNamespace
Define a Public DNS Namespace.
Example:
import software.amazon.awscdk.*; import software.amazon.awscdk.*; App app = new App(); Stack stack = new Stack(app, "aws-servicediscovery-integ"); PublicDnsNamespace namespace = PublicDnsNamespace.Builder.create(stack, "Namespace") .name("foobar.com") .build(); Service service = namespace.createService("Service", DnsServiceProps.builder() .name("foo") .dnsRecordType(DnsRecordType.A) .dnsTtl(Duration.seconds(30)) .healthCheck(HealthCheckConfig.builder() .type(HealthCheckType.HTTPS) .resourcePath("/healthcheck") .failureThreshold(2) .build()) .build()); service.registerIpInstance("IpInstance", IpInstanceBaseProps.builder() .ipv4("54.239.25.192") .port(443) .build()); app.synth();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.servicediscovery.IPublicDnsNamespace
IPublicDnsNamespace.Jsii$Default, IPublicDnsNamespace.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default
-
Constructor Summary
ModifierConstructorDescriptionprotected
PublicDnsNamespace
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
PublicDnsNamespace
(software.amazon.jsii.JsiiObjectRef objRef) PublicDnsNamespace
(software.constructs.Construct scope, String id, PublicDnsNamespaceProps props) -
Method Summary
Modifier and TypeMethodDescriptioncreateService
(String id) Creates a service within the namespace.createService
(String id, DnsServiceProps props) Creates a service within the namespace.static IPublicDnsNamespace
fromPublicDnsNamespaceAttributes
(software.constructs.Construct scope, String id, PublicDnsNamespaceAttributes attrs) Namespace Arn for the namespace.ID of hosted zone created by namespace.Namespace Id for the namespace.A name for the namespace.getType()
Type of the namespace.Methods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResource
Methods inherited from class software.constructs.Construct
getNode, isConstruct, toString
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.constructs.IConstruct
getNode
Methods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getEnv, getStack
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
PublicDnsNamespace
protected PublicDnsNamespace(software.amazon.jsii.JsiiObjectRef objRef) -
PublicDnsNamespace
protected PublicDnsNamespace(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
PublicDnsNamespace
@Stability(Stable) public PublicDnsNamespace(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull PublicDnsNamespaceProps props) - Parameters:
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.
-
-
Method Details
-
fromPublicDnsNamespaceAttributes
@Stability(Stable) @NotNull public static IPublicDnsNamespace fromPublicDnsNamespaceAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull PublicDnsNamespaceAttributes attrs) - Parameters:
scope
- This parameter is required.id
- This parameter is required.attrs
- This parameter is required.
-
createService
@Stability(Stable) @NotNull public Service createService(@NotNull String id, @Nullable DnsServiceProps props) Creates a service within the namespace.- Parameters:
id
- This parameter is required.props
-
-
createService
Creates a service within the namespace.- Parameters:
id
- This parameter is required.
-
getNamespaceArn
Namespace Arn for the namespace.- Specified by:
getNamespaceArn
in interfaceINamespace
-
getNamespaceHostedZoneId
ID of hosted zone created by namespace. -
getNamespaceId
Namespace Id for the namespace.- Specified by:
getNamespaceId
in interfaceINamespace
-
getNamespaceName
A name for the namespace.- Specified by:
getNamespaceName
in interfaceINamespace
-
getPublicDnsNamespaceArn
-
getPublicDnsNamespaceId
-
getPublicDnsNamespaceName
-
getType
Type of the namespace.- Specified by:
getType
in interfaceINamespace
-