1. Packages
  2. Snowflake Provider
  3. API Docs
  4. getCurrentRole
Snowflake v0.61.1 published on Thursday, Nov 14, 2024 by Pulumi

snowflake.getCurrentRole

Explore with Pulumi AI

snowflake logo
Snowflake v0.61.1 published on Thursday, Nov 14, 2024 by Pulumi

    Using getCurrentRole

    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 getCurrentRole(opts?: InvokeOptions): Promise<GetCurrentRoleResult>
    function getCurrentRoleOutput(opts?: InvokeOptions): Output<GetCurrentRoleResult>
    def get_current_role(opts: Optional[InvokeOptions] = None) -> GetCurrentRoleResult
    def get_current_role_output(opts: Optional[InvokeOptions] = None) -> Output[GetCurrentRoleResult]
    func GetCurrentRole(ctx *Context, opts ...InvokeOption) (*GetCurrentRoleResult, error)
    func GetCurrentRoleOutput(ctx *Context, opts ...InvokeOption) GetCurrentRoleResultOutput

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

    public static class GetCurrentRole 
    {
        public static Task<GetCurrentRoleResult> InvokeAsync(InvokeOptions? opts = null)
        public static Output<GetCurrentRoleResult> Invoke(InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCurrentRoleResult> getCurrentRole(InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: snowflake:index/getCurrentRole:getCurrentRole
      arguments:
        # arguments dictionary

    getCurrentRole Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the primary role in use for the current session.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the primary role in use for the current session.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the primary role in use for the current session.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name of the primary role in use for the current session.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The name of the primary role in use for the current session.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the primary role in use for the current session.

    Package Details

    Repository
    Snowflake pulumi/pulumi-snowflake
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the snowflake Terraform Provider.
    snowflake logo
    Snowflake v0.61.1 published on Thursday, Nov 14, 2024 by Pulumi