1. Packages
  2. Fivetran Provider
  3. API Docs
  4. getUserConnectorMemberships
fivetran 1.6.0 published on Tuesday, Mar 25, 2025 by fivetran

fivetran.getUserConnectorMemberships

Explore with Pulumi AI

fivetran logo
fivetran 1.6.0 published on Tuesday, Mar 25, 2025 by fivetran

    This data source returns a connector membership for user.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as fivetran from "@pulumi/fivetran";
    
    const userConnectorMembership = fivetran.getUserConnectorMemberships({
        userId: "user_id",
    });
    
    import pulumi
    import pulumi_fivetran as fivetran
    
    user_connector_membership = fivetran.get_user_connector_memberships(user_id="user_id")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/fivetran/fivetran"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := fivetran.GetUserConnectorMemberships(ctx, &fivetran.GetUserConnectorMembershipsArgs{
    			UserId: "user_id",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Fivetran = Pulumi.Fivetran;
    
    return await Deployment.RunAsync(() => 
    {
        var userConnectorMembership = Fivetran.GetUserConnectorMemberships.Invoke(new()
        {
            UserId = "user_id",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.fivetran.FivetranFunctions;
    import com.pulumi.fivetran.inputs.GetUserConnectorMembershipsArgs;
    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 userConnectorMembership = FivetranFunctions.getUserConnectorMemberships(GetUserConnectorMembershipsArgs.builder()
                .userId("user_id")
                .build());
    
        }
    }
    
    variables:
      userConnectorMembership:
        fn::invoke:
          function: fivetran:getUserConnectorMemberships
          arguments:
            userId: user_id
    

    Using getUserConnectorMemberships

    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 getUserConnectorMemberships(args: GetUserConnectorMembershipsArgs, opts?: InvokeOptions): Promise<GetUserConnectorMembershipsResult>
    function getUserConnectorMembershipsOutput(args: GetUserConnectorMembershipsOutputArgs, opts?: InvokeOptions): Output<GetUserConnectorMembershipsResult>
    def get_user_connector_memberships(connectors: Optional[Sequence[GetUserConnectorMembershipsConnector]] = None,
                                       user_id: Optional[str] = None,
                                       opts: Optional[InvokeOptions] = None) -> GetUserConnectorMembershipsResult
    def get_user_connector_memberships_output(connectors: Optional[pulumi.Input[Sequence[pulumi.Input[GetUserConnectorMembershipsConnectorArgs]]]] = None,
                                       user_id: Optional[pulumi.Input[str]] = None,
                                       opts: Optional[InvokeOptions] = None) -> Output[GetUserConnectorMembershipsResult]
    func GetUserConnectorMemberships(ctx *Context, args *GetUserConnectorMembershipsArgs, opts ...InvokeOption) (*GetUserConnectorMembershipsResult, error)
    func GetUserConnectorMembershipsOutput(ctx *Context, args *GetUserConnectorMembershipsOutputArgs, opts ...InvokeOption) GetUserConnectorMembershipsResultOutput

    > Note: This function is named GetUserConnectorMemberships in the Go SDK.

    public static class GetUserConnectorMemberships 
    {
        public static Task<GetUserConnectorMembershipsResult> InvokeAsync(GetUserConnectorMembershipsArgs args, InvokeOptions? opts = null)
        public static Output<GetUserConnectorMembershipsResult> Invoke(GetUserConnectorMembershipsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetUserConnectorMembershipsResult> getUserConnectorMemberships(GetUserConnectorMembershipsArgs args, InvokeOptions options)
    public static Output<GetUserConnectorMembershipsResult> getUserConnectorMemberships(GetUserConnectorMembershipsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: fivetran:index/getUserConnectorMemberships:getUserConnectorMemberships
      arguments:
        # arguments dictionary

    The following arguments are supported:

    UserId string
    The unique identifier for the user within your account.
    Connectors List<GetUserConnectorMembershipsConnector>
    UserId string
    The unique identifier for the user within your account.
    Connectors []GetUserConnectorMembershipsConnector
    userId String
    The unique identifier for the user within your account.
    connectors List<GetUserConnectorMembershipsConnector>
    userId string
    The unique identifier for the user within your account.
    connectors GetUserConnectorMembershipsConnector[]
    user_id str
    The unique identifier for the user within your account.
    connectors Sequence[GetUserConnectorMembershipsConnector]
    userId String
    The unique identifier for the user within your account.
    connectors List<Property Map>

    getUserConnectorMemberships Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    UserId string
    The unique identifier for the user within your account.
    Connectors List<GetUserConnectorMembershipsConnector>
    Id string
    The provider-assigned unique ID for this managed resource.
    UserId string
    The unique identifier for the user within your account.
    Connectors []GetUserConnectorMembershipsConnector
    id String
    The provider-assigned unique ID for this managed resource.
    userId String
    The unique identifier for the user within your account.
    connectors List<GetUserConnectorMembershipsConnector>
    id string
    The provider-assigned unique ID for this managed resource.
    userId string
    The unique identifier for the user within your account.
    connectors GetUserConnectorMembershipsConnector[]
    id str
    The provider-assigned unique ID for this managed resource.
    user_id str
    The unique identifier for the user within your account.
    connectors Sequence[GetUserConnectorMembershipsConnector]
    id String
    The provider-assigned unique ID for this managed resource.
    userId String
    The unique identifier for the user within your account.
    connectors List<Property Map>

    Supporting Types

    GetUserConnectorMembershipsConnector

    ConnectorId string
    The connector unique identifier
    CreatedAt string
    The date and time the membership was created
    Role string
    The user's role that links the user and the connector
    ConnectorId string
    The connector unique identifier
    CreatedAt string
    The date and time the membership was created
    Role string
    The user's role that links the user and the connector
    connectorId String
    The connector unique identifier
    createdAt String
    The date and time the membership was created
    role String
    The user's role that links the user and the connector
    connectorId string
    The connector unique identifier
    createdAt string
    The date and time the membership was created
    role string
    The user's role that links the user and the connector
    connector_id str
    The connector unique identifier
    created_at str
    The date and time the membership was created
    role str
    The user's role that links the user and the connector
    connectorId String
    The connector unique identifier
    createdAt String
    The date and time the membership was created
    role String
    The user's role that links the user and the connector

    Package Details

    Repository
    fivetran fivetran/terraform-provider-fivetran
    License
    Notes
    This Pulumi package is based on the fivetran Terraform Provider.
    fivetran logo
    fivetran 1.6.0 published on Tuesday, Mar 25, 2025 by fivetran