1. Packages
  2. Snowflake Provider
  3. API Docs
  4. getCurrentRole
Snowflake v1.2.0 published on Monday, Apr 14, 2025 by Pulumi

snowflake.getCurrentRole

Explore with Pulumi AI

Snowflake v1.2.0 published on Monday, Apr 14, 2025 by Pulumi

!> Caution: Preview Feature This feature is considered a preview feature in the provider, regardless of the state of the resource in Snowflake. We do not guarantee its stability. It will be reworked and marked as a stable feature in future releases. Breaking changes are expected, even without bumping the major version. To use this feature, add the relevant feature name to preview_features_enabled field in the provider configuration. Please always refer to the Getting Help section in our Github repo to best determine how to get help for your questions.

Note If a field has a default value, it is shown next to the type in the schema.

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

> 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)
}
Copy
public static CompletableFuture<GetCurrentRoleResult> getCurrentRole(InvokeOptions options)
public static Output<GetCurrentRoleResult> getCurrentRole(InvokeOptions options)
Copy
fn::invoke:
  function: snowflake:index/getCurrentRole:getCurrentRole
  arguments:
    # arguments dictionary
Copy

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 v1.2.0 published on Monday, Apr 14, 2025 by Pulumi