Viewing docs for Snowflake v0.61.1 (Older version)
published on Tuesday, Mar 10, 2026 by Pulumi
published on Tuesday, Mar 10, 2026 by Pulumi
Viewing docs for Snowflake v0.61.1 (Older version)
published on Tuesday, Mar 10, 2026 by Pulumi
published on Tuesday, Mar 10, 2026 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)
public static Output<GetCurrentRoleResult> getCurrentRole(InvokeOptions options)
fn::invoke:
function: snowflake:index/getCurrentRole:getCurrentRole
arguments:
# arguments dictionarygetCurrentRole 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
snowflakeTerraform Provider.
Viewing docs for Snowflake v0.61.1 (Older version)
published on Tuesday, Mar 10, 2026 by Pulumi
published on Tuesday, Mar 10, 2026 by Pulumi
