VpcEndpoint
- Implements: IVpcEndpoint
This class encapsulates and extends the ROS resource type ALIYUN::PrivateLink::VpcEndpoint, which is used to create an endpoint.
Initializers
import com.aliyun.ros.cdk.privatelink.VpcEndpoint;
VpcEndpoint.Builder.create(Construct scope, java.lang.String id, java.lang.Boolean enableResourcePropertyConstraint)
.vpcId(java.lang.String)
.vpcId(IResolvable)
// .endpointDescription(java.lang.String)
// .endpointDescription(IResolvable)
// .endpointName(java.lang.String)
// .endpointName(IResolvable)
// .endpointType(java.lang.String)
// .endpointType(IResolvable)
// .protectedEnabled(java.lang.Boolean)
// .protectedEnabled(IResolvable)
// .securityGroupId(IResolvable)
// .securityGroupId(java.util.List<java.lang.String)
// .securityGroupId(IResolvable>)
// .serviceId(java.lang.String)
// .serviceId(IResolvable)
// .serviceName(java.lang.String)
// .serviceName(IResolvable)
// .tags(java.util.List<TagsProperty>)
// .zone(IResolvable)
// .zone(java.util.List<IResolvable)
// .zone(ZoneProperty>)
// .zonePrivateIpAddressCount(java.lang.Number)
// .zonePrivateIpAddressCount(IResolvable)
.build();
| Name | Type | Description |
|---|---|---|
scope | com.aliyun.ros.cdk.core.Construct | No description. |
id | java.lang.String | No description. |
enableResourcePropertyConstraint | java.lang.Boolean | No description. |
vpcId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property vpcId: The VPC to which the endpoint belongs. |
endpointDescription | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property endpointDescription: The description of the endpoint. |
endpointName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property endpointName: The name of the endpoint. |
endpointType | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property endpointType: The type of the endpoint. |
protectedEnabled | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property protectedEnabled: Specifies whether to enable user authentication. |
securityGroupId | com.aliyun.ros.cdk.core.IResolvable OR java.util.List | Property securityGroupId: The security group associated with the endpoint network interface. |
serviceId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property serviceId: The endpoint service that is associated with the endpoint. |
serviceName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property serviceName: The name of the endpoint service that is associated with the endpoint. |
tags | java.util.List<TagsProperty> | Property tags: Tags to attach to instance. |
zone | com.aliyun.ros.cdk.core.IResolvable OR java.util.List | Property zone: The list of zones for the endpoint. |
zonePrivateIpAddressCount | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property zonePrivateIpAddressCount: The number of private IP addresses that can be used by an elastic network interface (ENI) in each zone. |
scopeRequired
- Type: com.aliyun.ros.cdk.core.Construct
idRequired
- Type: java.lang.String
enableResourcePropertyConstraintOptional
- Type: java.lang.Boolean
vpcIdRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property vpcId: The VPC to which the endpoint belongs.
endpointDescriptionOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property endpointDescription: The description of the endpoint.
The description must be 2 to 256 characters in length and cannot start with http:// or https://.
endpointNameOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property endpointName: The name of the endpoint.
The name must be 2 to 128 characters long, start with a letter or a Chinese character, and can contain digits, hyphens (-), and underscores (_).
endpointTypeOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property endpointType: The type of the endpoint.
Valid values:
- Interface: an interface endpoint. You can add Application Load Balancer (ALB), CLB, and Network Load Balancer (NLB) instances as service resources.
- Reverse: a reverse endpoint. You can add a VPC NAT Gateway as a service resource.
- GatewayLoadBalancer: a Gateway Load Balancer endpoint. You can add a Gateway Load Balancer (GWLB) as a service resource.
Services that support reverse endpoints are provided exclusively by the cloud platform and its partners. You cannot create them by default. To request access, contact your account manager.
protectedEnabledOptional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property protectedEnabled: Specifies whether to enable user authentication.
This parameter is available in Security Token Service (STS) mode. Valid values: true: yes After user authentication is enabled, only the user who creates the endpoint can modify or delete the endpoint in STS mode. false (default): no
securityGroupIdOptional
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
Property securityGroupId: The security group associated with the endpoint network interface.
The security group can control the data communication from the VPC to the endpoint network interface.
serviceIdOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property serviceId: The endpoint service that is associated with the endpoint.
One of ServiceId and ServiceName is required.
serviceNameOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property serviceName: The name of the endpoint service that is associated with the endpoint.
One of ServiceId and ServiceName is required.
tagsOptional
- Type: java.util.List<TagsProperty>
Property tags: Tags to attach to instance.
Max support 20 tags to add during create instance. Each tag with two properties Key and Value, and Key is required.
zoneOptional
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
ZoneProperty>
Property zone: The list of zones for the endpoint.
zonePrivateIpAddressCountOptional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property zonePrivateIpAddressCount: The number of private IP addresses that can be used by an elastic network interface (ENI) in each zone.
Set the value to 1.
Methods
| Name | Description |
|---|---|
toString | Returns a string representation of this construct. |
synthesize | Allows this construct to emit artifacts into the cloud assembly during synthesis. |
addCondition | No description. |
addCount | No description. |
addDependency | No description. |
addResourceDesc | No description. |
applyRemovalPolicy | No description. |
fetchCondition | No description. |
fetchDependency | No description. |
fetchResourceDesc | No description. |
getAtt | No description. |
setMetadata | No description. |
toString
public java.lang.String toString()
Returns a string representation of this construct.
synthesize
public void synthesize(ISynthesisSession session)
Allows this construct to emit artifacts into the cloud assembly during synthesis.
This method is usually implemented by framework-level constructs such as Stack and Asset as they participate in synthesizing the cloud assembly.
- Type: com.aliyun.ros.cdk.core.ISynthesisSession
The synthesis session.
addCondition
public void addCondition(RosCondition condition)
- Type: com.aliyun.ros.cdk.core.RosCondition
addCount
public void addCount(java.lang.Number OR IResolvable count)
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
addDependency
public void addDependency(Resource resource)
- Type: com.aliyun.ros.cdk.core.Resource
addResourceDesc
public void addResourceDesc(java.lang.String desc)
- Type: java.lang.String
applyRemovalPolicy
public void applyRemovalPolicy(RemovalPolicy policy)
- Type: com.aliyun.ros.cdk.core.RemovalPolicy
fetchCondition
public RosCondition fetchCondition()
fetchDependency
public java.util.List<java.lang.String> fetchDependency()
fetchResourceDesc
public java.lang.String fetchResourceDesc()
getAtt
public IResolvable getAtt(java.lang.String name)
- Type: java.lang.String
setMetadata
public void setMetadata(java.lang.String key, java.lang.Object value)
- Type: java.lang.String
- Type: java.lang.Object
Static Functions
| Name | Description |
|---|---|
isConstruct | Return whether the given object is a Construct. |
isConstruct
import com.aliyun.ros.cdk.privatelink.VpcEndpoint;
VpcEndpoint.isConstruct(java.lang.Object x)
Return whether the given object is a Construct.
- Type: java.lang.Object
Properties
| Name | Type | Description |
|---|---|---|
node | com.aliyun.ros.cdk.core.ConstructNode | The construct tree node associated with this construct. |
env | com.aliyun.ros.cdk.core.IResourceEnvironment | The environment this resource belongs to. |
ref | java.lang.String | No description. |
stack | com.aliyun.ros.cdk.core.Stack | The stack in which this resource is defined. |
resource | com.aliyun.ros.cdk.core.RosResource | No description. |
attrArn | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute Arn: The Alibaba Cloud Resource Name (ARN). |
attrBandwidth | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute Bandwidth: The bandwidth of the endpoint. |
attrEndpointDomain | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute EndpointDomain: The domain name of the endpoint. |
attrEndpointId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute EndpointId: The ID of the endpoint. |
attrEndpointName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute EndpointName: The name of the endpoint. |
attrServiceId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute ServiceId: The ID of endpoint service that is associated with the endpoint. |
attrServiceName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute ServiceName: The name of endpoint service that is associated with the endpoint. |
attrVpcId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute VpcId: The vpc ID of endpoint. |
attrZoneDomains | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute ZoneDomains: The zone domains. |
props | VpcEndpointProps | No description. |
nodeRequired
public ConstructNode getNode();
- Type: com.aliyun.ros.cdk.core.ConstructNode
The construct tree node associated with this construct.
envRequired
public IResourceEnvironment getEnv();
- Type: com.aliyun.ros.cdk.core.IResourceEnvironment
The environment this resource belongs to.
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
refRequired
public java.lang.String getRef();
- Type: java.lang.String
stackRequired
public Stack getStack();
- Type: com.aliyun.ros.cdk.core.Stack
The stack in which this resource is defined.
resourceOptional
public RosResource getResource();
- Type: com.aliyun.ros.cdk.core.RosResource
attrArnRequired
public java.lang.Object getAttrArn();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute Arn: The Alibaba Cloud Resource Name (ARN).
attrBandwidthRequired
public java.lang.Object getAttrBandwidth();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute Bandwidth: The bandwidth of the endpoint.
attrEndpointDomainRequired
public java.lang.Object getAttrEndpointDomain();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute EndpointDomain: The domain name of the endpoint.
attrEndpointIdRequired
public java.lang.Object getAttrEndpointId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute EndpointId: The ID of the endpoint.
attrEndpointNameRequired
public java.lang.Object getAttrEndpointName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute EndpointName: The name of the endpoint.
attrServiceIdRequired
public java.lang.Object getAttrServiceId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute ServiceId: The ID of endpoint service that is associated with the endpoint.
attrServiceNameRequired
public java.lang.Object getAttrServiceName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute ServiceName: The name of endpoint service that is associated with the endpoint.
attrVpcIdRequired
public java.lang.Object getAttrVpcId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute VpcId: The vpc ID of endpoint.
attrZoneDomainsRequired
public java.lang.Object getAttrZoneDomains();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute ZoneDomains: The zone domains.
propsRequired
public VpcEndpointProps getProps();
- Type: VpcEndpointProps