1. Packages
  2. Snowflake Provider
  3. API Docs
  4. GrantApplicationRole
Snowflake v1.1.4 published on Wednesday, Mar 26, 2025 by Pulumi

snowflake.GrantApplicationRole

Explore with Pulumi AI

Import

format is application_role_name (string) | object_type (ACCOUNT_ROLE|APPLICATION) | grantee_name (string)

$ pulumi import snowflake:index/grantApplicationRole:GrantApplicationRole example '"my_application"."app_role_1"|ACCOUNT_ROLE|"my_role"'
Copy

Create GrantApplicationRole Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new GrantApplicationRole(name: string, args: GrantApplicationRoleArgs, opts?: CustomResourceOptions);
@overload
def GrantApplicationRole(resource_name: str,
                         args: GrantApplicationRoleArgs,
                         opts: Optional[ResourceOptions] = None)

@overload
def GrantApplicationRole(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         application_role_name: Optional[str] = None,
                         application_name: Optional[str] = None,
                         parent_account_role_name: Optional[str] = None)
func NewGrantApplicationRole(ctx *Context, name string, args GrantApplicationRoleArgs, opts ...ResourceOption) (*GrantApplicationRole, error)
public GrantApplicationRole(string name, GrantApplicationRoleArgs args, CustomResourceOptions? opts = null)
public GrantApplicationRole(String name, GrantApplicationRoleArgs args)
public GrantApplicationRole(String name, GrantApplicationRoleArgs args, CustomResourceOptions options)
type: snowflake:GrantApplicationRole
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. GrantApplicationRoleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. GrantApplicationRoleArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. GrantApplicationRoleArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. GrantApplicationRoleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. GrantApplicationRoleArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var grantApplicationRoleResource = new Snowflake.GrantApplicationRole("grantApplicationRoleResource", new()
{
    ApplicationRoleName = "string",
    ApplicationName = "string",
    ParentAccountRoleName = "string",
});
Copy
example, err := snowflake.NewGrantApplicationRole(ctx, "grantApplicationRoleResource", &snowflake.GrantApplicationRoleArgs{
	ApplicationRoleName:   pulumi.String("string"),
	ApplicationName:       pulumi.String("string"),
	ParentAccountRoleName: pulumi.String("string"),
})
Copy
var grantApplicationRoleResource = new GrantApplicationRole("grantApplicationRoleResource", GrantApplicationRoleArgs.builder()
    .applicationRoleName("string")
    .applicationName("string")
    .parentAccountRoleName("string")
    .build());
Copy
grant_application_role_resource = snowflake.GrantApplicationRole("grantApplicationRoleResource",
    application_role_name="string",
    application_name="string",
    parent_account_role_name="string")
Copy
const grantApplicationRoleResource = new snowflake.GrantApplicationRole("grantApplicationRoleResource", {
    applicationRoleName: "string",
    applicationName: "string",
    parentAccountRoleName: "string",
});
Copy
type: snowflake:GrantApplicationRole
properties:
    applicationName: string
    applicationRoleName: string
    parentAccountRoleName: string
Copy

GrantApplicationRole Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The GrantApplicationRole resource accepts the following input properties:

ApplicationRoleName
This property is required.
Changes to this property will trigger replacement.
string
Specifies the identifier for the application role to grant.
ApplicationName Changes to this property will trigger replacement. string
The fully qualified name of the application on which application role will be granted.
ParentAccountRoleName Changes to this property will trigger replacement. string
The fully qualified name of the account role on which application role will be granted. For more information about this resource, see docs.
ApplicationRoleName
This property is required.
Changes to this property will trigger replacement.
string
Specifies the identifier for the application role to grant.
ApplicationName Changes to this property will trigger replacement. string
The fully qualified name of the application on which application role will be granted.
ParentAccountRoleName Changes to this property will trigger replacement. string
The fully qualified name of the account role on which application role will be granted. For more information about this resource, see docs.
applicationRoleName
This property is required.
Changes to this property will trigger replacement.
String
Specifies the identifier for the application role to grant.
applicationName Changes to this property will trigger replacement. String
The fully qualified name of the application on which application role will be granted.
parentAccountRoleName Changes to this property will trigger replacement. String
The fully qualified name of the account role on which application role will be granted. For more information about this resource, see docs.
applicationRoleName
This property is required.
Changes to this property will trigger replacement.
string
Specifies the identifier for the application role to grant.
applicationName Changes to this property will trigger replacement. string
The fully qualified name of the application on which application role will be granted.
parentAccountRoleName Changes to this property will trigger replacement. string
The fully qualified name of the account role on which application role will be granted. For more information about this resource, see docs.
application_role_name
This property is required.
Changes to this property will trigger replacement.
str
Specifies the identifier for the application role to grant.
application_name Changes to this property will trigger replacement. str
The fully qualified name of the application on which application role will be granted.
parent_account_role_name Changes to this property will trigger replacement. str
The fully qualified name of the account role on which application role will be granted. For more information about this resource, see docs.
applicationRoleName
This property is required.
Changes to this property will trigger replacement.
String
Specifies the identifier for the application role to grant.
applicationName Changes to this property will trigger replacement. String
The fully qualified name of the application on which application role will be granted.
parentAccountRoleName Changes to this property will trigger replacement. String
The fully qualified name of the account role on which application role will be granted. For more information about this resource, see docs.

Outputs

All input properties are implicitly available as output properties. Additionally, the GrantApplicationRole resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing GrantApplicationRole Resource

Get an existing GrantApplicationRole resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: GrantApplicationRoleState, opts?: CustomResourceOptions): GrantApplicationRole
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        application_name: Optional[str] = None,
        application_role_name: Optional[str] = None,
        parent_account_role_name: Optional[str] = None) -> GrantApplicationRole
func GetGrantApplicationRole(ctx *Context, name string, id IDInput, state *GrantApplicationRoleState, opts ...ResourceOption) (*GrantApplicationRole, error)
public static GrantApplicationRole Get(string name, Input<string> id, GrantApplicationRoleState? state, CustomResourceOptions? opts = null)
public static GrantApplicationRole get(String name, Output<String> id, GrantApplicationRoleState state, CustomResourceOptions options)
resources:  _:    type: snowflake:GrantApplicationRole    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
ApplicationName Changes to this property will trigger replacement. string
The fully qualified name of the application on which application role will be granted.
ApplicationRoleName Changes to this property will trigger replacement. string
Specifies the identifier for the application role to grant.
ParentAccountRoleName Changes to this property will trigger replacement. string
The fully qualified name of the account role on which application role will be granted. For more information about this resource, see docs.
ApplicationName Changes to this property will trigger replacement. string
The fully qualified name of the application on which application role will be granted.
ApplicationRoleName Changes to this property will trigger replacement. string
Specifies the identifier for the application role to grant.
ParentAccountRoleName Changes to this property will trigger replacement. string
The fully qualified name of the account role on which application role will be granted. For more information about this resource, see docs.
applicationName Changes to this property will trigger replacement. String
The fully qualified name of the application on which application role will be granted.
applicationRoleName Changes to this property will trigger replacement. String
Specifies the identifier for the application role to grant.
parentAccountRoleName Changes to this property will trigger replacement. String
The fully qualified name of the account role on which application role will be granted. For more information about this resource, see docs.
applicationName Changes to this property will trigger replacement. string
The fully qualified name of the application on which application role will be granted.
applicationRoleName Changes to this property will trigger replacement. string
Specifies the identifier for the application role to grant.
parentAccountRoleName Changes to this property will trigger replacement. string
The fully qualified name of the account role on which application role will be granted. For more information about this resource, see docs.
application_name Changes to this property will trigger replacement. str
The fully qualified name of the application on which application role will be granted.
application_role_name Changes to this property will trigger replacement. str
Specifies the identifier for the application role to grant.
parent_account_role_name Changes to this property will trigger replacement. str
The fully qualified name of the account role on which application role will be granted. For more information about this resource, see docs.
applicationName Changes to this property will trigger replacement. String
The fully qualified name of the application on which application role will be granted.
applicationRoleName Changes to this property will trigger replacement. String
Specifies the identifier for the application role to grant.
parentAccountRoleName Changes to this property will trigger replacement. String
The fully qualified name of the account role on which application role will be granted. For more information about this resource, see docs.

Package Details

Repository
Snowflake pulumi/pulumi-snowflake
License
Apache-2.0
Notes
This Pulumi package is based on the snowflake Terraform Provider.