snowflake logo
Snowflake v0.18.1, Mar 16 23

snowflake.getCurrentRole

Using getCurrentRole

function getCurrentRole(opts?: InvokeOptions): Promise<GetCurrentRoleResult>
def get_current_role(opts: Optional[InvokeOptions] = None) -> GetCurrentRoleResult
func GetCurrentRole(ctx *Context, opts ...InvokeOption) (*GetCurrentRoleResult, error)

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

public static class GetCurrentRole 
{
    public static Task<GetCurrentRoleResult> InvokeAsync(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.