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.121.0 (build d7af9b9)",
date="2025-12-18T18:20:18.064Z")
@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
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forNonIpInstanceBasePropsstatic final classAn implementation forNonIpInstanceBaseProps -
Method Summary
Static MethodsMethods inherited from interface software.amazon.awscdk.services.servicediscovery.BaseInstanceProps
getCustomAttributes, getInstanceIdMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
builder
- Returns:
- a
NonIpInstanceBaseProps.BuilderofNonIpInstanceBaseProps
-