@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:42.155Z") @Stability(value=Stable) public interface IpInstanceBaseProps extends software.amazon.jsii.JsiiSerializable, BaseInstanceProps
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 | Interface and Description |
|---|---|
static class |
IpInstanceBaseProps.Builder
A builder for
IpInstanceBaseProps |
static class |
IpInstanceBaseProps.Jsii$Proxy
An implementation for
IpInstanceBaseProps |
| Modifier and Type | Method and Description |
|---|---|
static IpInstanceBaseProps.Builder |
builder() |
default String |
getIpv4()
If the service that you specify contains a template for an A record, the IPv4 address that you want AWS Cloud Map to use for the value of the A record.
|
default String |
getIpv6()
If the service that you specify contains a template for an AAAA record, the IPv6 address that you want AWS Cloud Map to use for the value of the AAAA record.
|
default Number |
getPort()
The port on the endpoint that you want AWS Cloud Map to perform health checks on.
|
getCustomAttributes, getInstanceId@Stability(value=Stable) @Nullable default String getIpv4()
Default: none
@Stability(value=Stable) @Nullable default String getIpv6()
Default: none
@Stability(value=Stable) @Nullable default Number getPort()
This value is also used for the port value in an SRV record if the service that you specify includes an SRV record. You can also specify a default port that is applied to all instances in the Service configuration.
Default: 80
@Stability(value=Stable) static IpInstanceBaseProps.Builder builder()
builder in interface BaseInstancePropsIpInstanceBaseProps.Builder of IpInstanceBasePropsCopyright © 2022. All rights reserved.