Interface NonIpInstanceBaseProps
- All Superinterfaces:
BaseInstanceProps
,software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
NonIpInstanceProps
- All Known Implementing Classes:
NonIpInstanceBaseProps.Jsii$Proxy
,NonIpInstanceProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-25T14:21:23.827Z")
@Stability(Stable)
public interface NonIpInstanceBaseProps
extends software.amazon.jsii.JsiiSerializable, BaseInstanceProps
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 forNonIpInstanceBaseProps
static final class
An implementation forNonIpInstanceBaseProps
-
Method Summary
Methods inherited from interface software.amazon.awscdk.services.servicediscovery.BaseInstanceProps
getCustomAttributes, getInstanceId
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
builder
- Returns:
- a
NonIpInstanceBaseProps.Builder
ofNonIpInstanceBaseProps
-