Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi
alicloud.privatelink.getVpcEndpointServiceUsers
Explore with Pulumi AI
This data source provides the Privatelink Vpc Endpoint Service Users of the current Alibaba Cloud user.
NOTE: Available in v1.110.0+.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const example = alicloud.privatelink.getVpcEndpointServiceUsers({
serviceId: "epsrv-gw81c6vxxxxxx",
});
export const firstPrivatelinkVpcEndpointServiceUserId = example.then(example => example.users?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.privatelink.get_vpc_endpoint_service_users(service_id="epsrv-gw81c6vxxxxxx")
pulumi.export("firstPrivatelinkVpcEndpointServiceUserId", example.users[0].id)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/privatelink"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := privatelink.GetVpcEndpointServiceUsers(ctx, &privatelink.GetVpcEndpointServiceUsersArgs{
ServiceId: "epsrv-gw81c6vxxxxxx",
}, nil)
if err != nil {
return err
}
ctx.Export("firstPrivatelinkVpcEndpointServiceUserId", example.Users[0].Id)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var example = AliCloud.PrivateLink.GetVpcEndpointServiceUsers.Invoke(new()
{
ServiceId = "epsrv-gw81c6vxxxxxx",
});
return new Dictionary<string, object?>
{
["firstPrivatelinkVpcEndpointServiceUserId"] = example.Apply(getVpcEndpointServiceUsersResult => getVpcEndpointServiceUsersResult.Users[0]?.Id),
};
});
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.GetVpcEndpointServiceUsersArgs;
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.getVpcEndpointServiceUsers(GetVpcEndpointServiceUsersArgs.builder()
.serviceId("epsrv-gw81c6vxxxxxx")
.build());
ctx.export("firstPrivatelinkVpcEndpointServiceUserId", example.applyValue(getVpcEndpointServiceUsersResult -> getVpcEndpointServiceUsersResult.users()[0].id()));
}
}
variables:
example:
fn::invoke:
Function: alicloud:privatelink:getVpcEndpointServiceUsers
Arguments:
serviceId: epsrv-gw81c6vxxxxxx
outputs:
firstPrivatelinkVpcEndpointServiceUserId: ${example.users[0].id}
Using getVpcEndpointServiceUsers
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getVpcEndpointServiceUsers(args: GetVpcEndpointServiceUsersArgs, opts?: InvokeOptions): Promise<GetVpcEndpointServiceUsersResult>
function getVpcEndpointServiceUsersOutput(args: GetVpcEndpointServiceUsersOutputArgs, opts?: InvokeOptions): Output<GetVpcEndpointServiceUsersResult>
def get_vpc_endpoint_service_users(output_file: Optional[str] = None,
service_id: Optional[str] = None,
user_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetVpcEndpointServiceUsersResult
def get_vpc_endpoint_service_users_output(output_file: Optional[pulumi.Input[str]] = None,
service_id: Optional[pulumi.Input[str]] = None,
user_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetVpcEndpointServiceUsersResult]
func GetVpcEndpointServiceUsers(ctx *Context, args *GetVpcEndpointServiceUsersArgs, opts ...InvokeOption) (*GetVpcEndpointServiceUsersResult, error)
func GetVpcEndpointServiceUsersOutput(ctx *Context, args *GetVpcEndpointServiceUsersOutputArgs, opts ...InvokeOption) GetVpcEndpointServiceUsersResultOutput
> Note: This function is named GetVpcEndpointServiceUsers
in the Go SDK.
public static class GetVpcEndpointServiceUsers
{
public static Task<GetVpcEndpointServiceUsersResult> InvokeAsync(GetVpcEndpointServiceUsersArgs args, InvokeOptions? opts = null)
public static Output<GetVpcEndpointServiceUsersResult> Invoke(GetVpcEndpointServiceUsersInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetVpcEndpointServiceUsersResult> getVpcEndpointServiceUsers(GetVpcEndpointServiceUsersArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: alicloud:privatelink/getVpcEndpointServiceUsers:getVpcEndpointServiceUsers
arguments:
# arguments dictionary
The following arguments are supported:
- Service
Id string - The Id of Vpc Endpoint Service.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - User
Id string - The Id of Ram User.
- Service
Id string - The Id of Vpc Endpoint Service.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - User
Id string - The Id of Ram User.
- service
Id String - The Id of Vpc Endpoint Service.
- output
File String - File name where to save data source results (after running
pulumi preview
). - user
Id String - The Id of Ram User.
- service
Id string - The Id of Vpc Endpoint Service.
- output
File string - File name where to save data source results (after running
pulumi preview
). - user
Id string - The Id of Ram User.
- service_
id str - The Id of Vpc Endpoint Service.
- output_
file str - File name where to save data source results (after running
pulumi preview
). - user_
id str - The Id of Ram User.
- service
Id String - The Id of Vpc Endpoint Service.
- output
File String - File name where to save data source results (after running
pulumi preview
). - user
Id String - The Id of Ram User.
getVpcEndpointServiceUsers Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Service
Id string - Users
List<Pulumi.
Ali Cloud. Private Link. Outputs. Get Vpc Endpoint Service Users User> - Output
File string - User
Id string
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Service
Id string - Users
[]Get
Vpc Endpoint Service Users User - Output
File string - User
Id string
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- service
Id String - users
List<Get
Vpc Endpoint Service Users User> - output
File String - user
Id String
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- service
Id string - users
Get
Vpc Endpoint Service Users User[] - output
File string - user
Id string
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- service_
id str - users
Sequence[Get
Vpc Endpoint Service Users User] - output_
file str - user_
id str
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- service
Id String - users List<Property Map>
- output
File String - user
Id String
Supporting Types
GetVpcEndpointServiceUsersUser
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.