getVpcEndpoints

This data source provides the Privatelink Vpc Endpoints of the current Alibaba Cloud user.

NOTE: Available in v1.109.0+.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.privatelink.PrivatelinkFunctions;
import com.pulumi.alicloud.privatelink.inputs.GetVpcEndpointsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = PrivatelinkFunctions.getVpcEndpoints(GetVpcEndpointsArgs.builder()
.ids("example_value")
.nameRegex("the_resource_name")
.build());
ctx.export("firstPrivatelinkVpcEndpointId", example.applyValue(getVpcEndpointsResult -> getVpcEndpointsResult.endpoints()[0].id()));
}
}

Return

A collection of values returned by getVpcEndpoints.

Parameters

argument

A collection of arguments for invoking getVpcEndpoints.


suspend fun getVpcEndpoints(connectionStatus: String? = null, enableDetails: Boolean? = null, ids: List<String>? = null, nameRegex: String? = null, outputFile: String? = null, serviceName: String? = null, status: String? = null, vpcEndpointName: String? = null, vpcId: String? = null): GetVpcEndpointsResult

Return

A collection of values returned by getVpcEndpoints.

See also

Parameters

connectionStatus

The status of Connection.

enableDetails

Default to false. Set it to true can output more details about resource attributes.

ids

A list of Vpc Endpoint IDs.

nameRegex

A regex string to filter results by Vpc Endpoint name.

outputFile

File name where to save data source results (after running pulumi preview).

serviceName

The name of the terminal node service associated with the terminal node.

status

The status of Vpc Endpoint.

vpcEndpointName

The name of Vpc Endpoint.

vpcId

The private network to which the terminal node belongs.


Return

A collection of values returned by getVpcEndpoints.

See also

Parameters

argument

Builder for com.pulumi.alicloud.privatelink.kotlin.inputs.GetVpcEndpointsPlainArgs.