Class CfnInstanceConnectEndpoint.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnInstanceConnectEndpoint.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnInstanceConnectEndpoint>
- Enclosing class:
CfnInstanceConnectEndpoint
@Stability(Stable)
public static final class CfnInstanceConnectEndpoint.Builder
extends Object
implements software.amazon.jsii.Builder<CfnInstanceConnectEndpoint>
A fluent builder for
CfnInstanceConnectEndpoint
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
clientToken
(String clientToken) Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.preserveClientIp
(Boolean preserveClientIp) Indicates whether the client IP address is preserved as the source.preserveClientIp
(IResolvable preserveClientIp) Indicates whether the client IP address is preserved as the source.securityGroupIds
(List<String> securityGroupIds) One or more security groups to associate with the endpoint.The ID of the subnet in which to create the EC2 Instance Connect Endpoint.The tags to apply to the EC2 Instance Connect Endpoint during creation.
-
Method Details
-
create
@Stability(Stable) public static CfnInstanceConnectEndpoint.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnInstanceConnectEndpoint.Builder
.
-
subnetId
The ID of the subnet in which to create the EC2 Instance Connect Endpoint.- Parameters:
subnetId
- The ID of the subnet in which to create the EC2 Instance Connect Endpoint. This parameter is required.- Returns:
this
- See Also:
-
clientToken
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.- Parameters:
clientToken
- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This parameter is required.- Returns:
this
- See Also:
-
preserveClientIp
@Stability(Stable) public CfnInstanceConnectEndpoint.Builder preserveClientIp(Boolean preserveClientIp) Indicates whether the client IP address is preserved as the source. The following are the possible values.true
- Use the client IP address as the source.false
- Use the network interface IP address as the source.
Default:
false
- Parameters:
preserveClientIp
- Indicates whether the client IP address is preserved as the source. The following are the possible values. This parameter is required.- Returns:
this
- See Also:
-
preserveClientIp
@Stability(Stable) public CfnInstanceConnectEndpoint.Builder preserveClientIp(IResolvable preserveClientIp) Indicates whether the client IP address is preserved as the source. The following are the possible values.true
- Use the client IP address as the source.false
- Use the network interface IP address as the source.
Default:
false
- Parameters:
preserveClientIp
- Indicates whether the client IP address is preserved as the source. The following are the possible values. This parameter is required.- Returns:
this
- See Also:
-
securityGroupIds
@Stability(Stable) public CfnInstanceConnectEndpoint.Builder securityGroupIds(List<String> securityGroupIds) One or more security groups to associate with the endpoint.If you don't specify a security group, the default security group for your VPC will be associated with the endpoint.
- Parameters:
securityGroupIds
- One or more security groups to associate with the endpoint. This parameter is required.- Returns:
this
- See Also:
-
tags
The tags to apply to the EC2 Instance Connect Endpoint during creation.- Parameters:
tags
- The tags to apply to the EC2 Instance Connect Endpoint during creation. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnInstanceConnectEndpoint>
- Returns:
- a newly built instance of
CfnInstanceConnectEndpoint
.
-