@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:42.146Z") @Stability(value=Stable) public class HttpNamespace extends Resource implements IHttpNamespace
Example:
import software.amazon.awscdk.*;
import software.amazon.awscdk.*;
App app = new App();
Stack stack = new Stack(app, "aws-servicediscovery-integ");
HttpNamespace namespace = HttpNamespace.Builder.create(stack, "MyNamespace")
.name("MyHTTPNamespace")
.build();
Service service1 = namespace.createService("NonIpService", BaseServiceProps.builder()
.description("service registering non-ip instances")
.build());
service1.registerNonIpInstance("NonIpInstance", NonIpInstanceBaseProps.builder()
.customAttributes(Map.of("arn", "arn:aws:s3:::mybucket"))
.build());
Service service2 = namespace.createService("IpService", BaseServiceProps.builder()
.description("service registering ip instances")
.healthCheck(HealthCheckConfig.builder()
.type(HealthCheckType.HTTP)
.resourcePath("/check")
.build())
.build());
service2.registerIpInstance("IpInstance", IpInstanceBaseProps.builder()
.ipv4("54.239.25.192")
.build());
app.synth();
| Modifier and Type | Class and Description |
|---|---|
static class |
HttpNamespace.Builder
A fluent builder for
HttpNamespace. |
software.amazon.jsii.JsiiObject.InitializationModeIHttpNamespace.Jsii$Default, IHttpNamespace.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
HttpNamespace(software.constructs.Construct scope,
String id,
HttpNamespaceProps props) |
protected |
HttpNamespace(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
HttpNamespace(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
Service |
createService(String id)
Creates a service within the namespace.
|
Service |
createService(String id,
BaseServiceProps props)
Creates a service within the namespace.
|
static IHttpNamespace |
fromHttpNamespaceAttributes(software.constructs.Construct scope,
String id,
HttpNamespaceAttributes attrs) |
String |
getHttpNamespaceArn() |
String |
getHttpNamespaceId() |
String |
getHttpNamespaceName() |
String |
getNamespaceArn()
Namespace Arn for the namespace.
|
String |
getNamespaceId()
Namespace Id for the namespace.
|
String |
getNamespaceName()
A name for the namespace.
|
NamespaceType |
getType()
Type of the namespace.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourcejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplyRemovalPolicy, getEnv, getStackprotected HttpNamespace(software.amazon.jsii.JsiiObjectRef objRef)
protected HttpNamespace(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public HttpNamespace(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
HttpNamespaceProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Stable) @NotNull public static IHttpNamespace fromHttpNamespaceAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull HttpNamespaceAttributes attrs)
scope - This parameter is required.id - This parameter is required.attrs - This parameter is required.@Stability(value=Stable) @NotNull public Service createService(@NotNull String id, @Nullable BaseServiceProps props)
id - This parameter is required.props - @Stability(value=Stable) @NotNull public Service createService(@NotNull String id)
id - This parameter is required.@Stability(value=Stable) @NotNull public String getHttpNamespaceArn()
@Stability(value=Stable) @NotNull public String getHttpNamespaceId()
@Stability(value=Stable) @NotNull public String getHttpNamespaceName()
@Stability(value=Stable) @NotNull public String getNamespaceArn()
getNamespaceArn in interface INamespace@Stability(value=Stable) @NotNull public String getNamespaceId()
getNamespaceId in interface INamespace@Stability(value=Stable) @NotNull public String getNamespaceName()
getNamespaceName in interface INamespace@Stability(value=Stable) @NotNull public NamespaceType getType()
getType in interface INamespaceCopyright © 2022. All rights reserved.