Interface HttpNamespaceProps
- All Superinterfaces:
BaseNamespaceProps
,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
HttpNamespaceProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-25T14:21:23.820Z")
@Stability(Stable)
public interface HttpNamespaceProps
extends software.amazon.jsii.JsiiSerializable, BaseNamespaceProps
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:::amzn-s3-demo-bucket")) .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();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forHttpNamespaceProps
static final class
An implementation forHttpNamespaceProps
-
Method Summary
Methods inherited from interface software.amazon.awscdk.services.servicediscovery.BaseNamespaceProps
getDescription, getName
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
builder
- Returns:
- a
HttpNamespaceProps.Builder
ofHttpNamespaceProps
-