Class PublicDnsNamespace
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.core.Resource
software.amazon.awscdk.services.servicediscovery.PublicDnsNamespace
- All Implemented Interfaces:
IConstruct,IDependable,IResource,INamespace,IPublicDnsNamespace,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:45.660Z")
@Stability(Stable)
public class PublicDnsNamespace
extends Resource
implements IPublicDnsNamespace
Define a Public DNS Namespace.
Example:
import software.amazon.awscdk.core.*;
import software.amazon.awscdk.services.servicediscovery.*;
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 ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.servicediscovery.IPublicDnsNamespace
IPublicDnsNamespace.Jsii$Default, IPublicDnsNamespace.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.core.IResource
IResource.Jsii$Default -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPublicDnsNamespace(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedPublicDnsNamespace(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 IPublicDnsNamespacefromPublicDnsNamespaceAttributes(software.constructs.Construct scope, String id, PublicDnsNamespaceAttributes attrs) Namespace Arn for the namespace.Namespace Id for the namespace.A name for the namespace.getType()Type of the namespace.Methods inherited from class software.amazon.awscdk.core.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourceMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.constructs.Construct
toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awscdk.core.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.core.IResource
applyRemovalPolicy, getEnv, getStackMethods 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:
getNamespaceArnin interfaceINamespace
-
getNamespaceId
Namespace Id for the namespace.- Specified by:
getNamespaceIdin interfaceINamespace
-
getNamespaceName
A name for the namespace.- Specified by:
getNamespaceNamein interfaceINamespace
-
getPublicDnsNamespaceArn
-
getPublicDnsNamespaceId
-
getPublicDnsNamespaceName
-
getType
Type of the namespace.- Specified by:
getTypein interfaceINamespace
-