getVpcEndpointServices

This data source provides the Privatelink Vpc Endpoint Services 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.GetVpcEndpointServicesArgs;
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.getVpcEndpointServices(GetVpcEndpointServicesArgs.builder()
.ids("example_value")
.nameRegex("the_resource_name")
.build());
ctx.export("firstPrivatelinkVpcEndpointServiceId", example.applyValue(getVpcEndpointServicesResult -> getVpcEndpointServicesResult.services()[0].id()));
}
}

Return

A collection of values returned by getVpcEndpointServices.

Parameters

argument

A collection of arguments for invoking getVpcEndpointServices.


suspend fun getVpcEndpointServices(autoAcceptConnection: Boolean? = null, ids: List<String>? = null, nameRegex: String? = null, outputFile: String? = null, serviceBusinessStatus: String? = null, status: String? = null, vpcEndpointServiceName: String? = null): GetVpcEndpointServicesResult

Return

A collection of values returned by getVpcEndpointServices.

See also

Parameters

autoAcceptConnection

Whether to automatically accept terminal node connections..

ids

A list of Vpc Endpoint Service IDs.

nameRegex

A regex string to filter results by Vpc Endpoint Service name.

outputFile

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

serviceBusinessStatus

The business status of the terminal node service..

status

The Status of Vpc Endpoint Service.

vpcEndpointServiceName

The name of Vpc Endpoint Service.


Return

A collection of values returned by getVpcEndpointServices.

See also

Parameters

argument

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