Class IpInstance.Builder
java.lang.Object
software.amazon.awscdk.services.servicediscovery.IpInstance.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<IpInstance>
- Enclosing class:
IpInstance
@Stability(Stable)
public static final class IpInstance.Builder
extends Object
implements software.amazon.jsii.Builder<IpInstance>
A fluent builder for
IpInstance
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static IpInstance.Builder
customAttributes
(Map<String, String> customAttributes) Custom attributes of the instance.instanceId
(String instanceId) The id of the instance resource.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.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.The port on the endpoint that you want AWS Cloud Map to perform health checks on.The Cloudmap service this resource is registered to.
-
Method Details
-
create
@Stability(Stable) public static IpInstance.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
IpInstance.Builder
.
-
customAttributes
Custom attributes of the instance.Default: none
- Parameters:
customAttributes
- Custom attributes of the instance. This parameter is required.- Returns:
this
-
instanceId
The id of the instance resource.Default: Automatically generated name
- Parameters:
instanceId
- The id of the instance resource. This parameter is required.- Returns:
this
-
ipv4
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: none
- Parameters:
ipv4
- 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. This parameter is required.- Returns:
this
-
ipv6
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: none
- Parameters:
ipv6
- 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. This parameter is required.- Returns:
this
-
port
The port on the endpoint that you want AWS Cloud Map to perform health checks on.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
- Parameters:
port
- The port on the endpoint that you want AWS Cloud Map to perform health checks on. This parameter is required.- Returns:
this
-
service
The Cloudmap service this resource is registered to.- Parameters:
service
- The Cloudmap service this resource is registered to. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<IpInstance>
- Returns:
- a newly built instance of
IpInstance
.
-