1. Packages
  2. Snowflake
  3. API Docs
  4. UserOwnershipGrant
Snowflake v0.55.0 published on Friday, Jun 7, 2024 by Pulumi

snowflake.UserOwnershipGrant

Explore with Pulumi AI

snowflake logo
Snowflake v0.55.0 published on Friday, Jun 7, 2024 by Pulumi

    Deprecation This resource is deprecated and will be removed in a future major version release. Please use snowflake.GrantOwnership instead.

    Create UserOwnershipGrant Resource

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

    Constructor syntax

    new UserOwnershipGrant(name: string, args: UserOwnershipGrantArgs, opts?: CustomResourceOptions);
    @overload
    def UserOwnershipGrant(resource_name: str,
                           args: UserOwnershipGrantArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def UserOwnershipGrant(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           on_user_name: Optional[str] = None,
                           to_role_name: Optional[str] = None,
                           current_grants: Optional[str] = None,
                           revert_ownership_to_role_name: Optional[str] = None)
    func NewUserOwnershipGrant(ctx *Context, name string, args UserOwnershipGrantArgs, opts ...ResourceOption) (*UserOwnershipGrant, error)
    public UserOwnershipGrant(string name, UserOwnershipGrantArgs args, CustomResourceOptions? opts = null)
    public UserOwnershipGrant(String name, UserOwnershipGrantArgs args)
    public UserOwnershipGrant(String name, UserOwnershipGrantArgs args, CustomResourceOptions options)
    
    type: snowflake:UserOwnershipGrant
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args UserOwnershipGrantArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args UserOwnershipGrantArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args UserOwnershipGrantArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args UserOwnershipGrantArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args UserOwnershipGrantArgs
    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 userOwnershipGrantResource = new Snowflake.UserOwnershipGrant("userOwnershipGrantResource", new()
    {
        OnUserName = "string",
        ToRoleName = "string",
        CurrentGrants = "string",
        RevertOwnershipToRoleName = "string",
    });
    
    example, err := snowflake.NewUserOwnershipGrant(ctx, "userOwnershipGrantResource", &snowflake.UserOwnershipGrantArgs{
    	OnUserName:                pulumi.String("string"),
    	ToRoleName:                pulumi.String("string"),
    	CurrentGrants:             pulumi.String("string"),
    	RevertOwnershipToRoleName: pulumi.String("string"),
    })
    
    var userOwnershipGrantResource = new UserOwnershipGrant("userOwnershipGrantResource", UserOwnershipGrantArgs.builder()
        .onUserName("string")
        .toRoleName("string")
        .currentGrants("string")
        .revertOwnershipToRoleName("string")
        .build());
    
    user_ownership_grant_resource = snowflake.UserOwnershipGrant("userOwnershipGrantResource",
        on_user_name="string",
        to_role_name="string",
        current_grants="string",
        revert_ownership_to_role_name="string")
    
    const userOwnershipGrantResource = new snowflake.UserOwnershipGrant("userOwnershipGrantResource", {
        onUserName: "string",
        toRoleName: "string",
        currentGrants: "string",
        revertOwnershipToRoleName: "string",
    });
    
    type: snowflake:UserOwnershipGrant
    properties:
        currentGrants: string
        onUserName: string
        revertOwnershipToRoleName: string
        toRoleName: string
    

    UserOwnershipGrant Resource Properties

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

    Inputs

    The UserOwnershipGrant resource accepts the following input properties:

    OnUserName string
    The name of the user ownership is granted on.
    ToRoleName string
    CurrentGrants string
    Specifies whether to remove or transfer all existing outbound privileges on the object when ownership is transferred to a new role.
    RevertOwnershipToRoleName string
    The name of the role to revert ownership to on destroy.
    OnUserName string
    The name of the user ownership is granted on.
    ToRoleName string
    CurrentGrants string
    Specifies whether to remove or transfer all existing outbound privileges on the object when ownership is transferred to a new role.
    RevertOwnershipToRoleName string
    The name of the role to revert ownership to on destroy.
    onUserName String
    The name of the user ownership is granted on.
    toRoleName String
    currentGrants String
    Specifies whether to remove or transfer all existing outbound privileges on the object when ownership is transferred to a new role.
    revertOwnershipToRoleName String
    The name of the role to revert ownership to on destroy.
    onUserName string
    The name of the user ownership is granted on.
    toRoleName string
    currentGrants string
    Specifies whether to remove or transfer all existing outbound privileges on the object when ownership is transferred to a new role.
    revertOwnershipToRoleName string
    The name of the role to revert ownership to on destroy.
    on_user_name str
    The name of the user ownership is granted on.
    to_role_name str
    current_grants str
    Specifies whether to remove or transfer all existing outbound privileges on the object when ownership is transferred to a new role.
    revert_ownership_to_role_name str
    The name of the role to revert ownership to on destroy.
    onUserName String
    The name of the user ownership is granted on.
    toRoleName String
    currentGrants String
    Specifies whether to remove or transfer all existing outbound privileges on the object when ownership is transferred to a new role.
    revertOwnershipToRoleName String
    The name of the role to revert ownership to on destroy.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the UserOwnershipGrant 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 UserOwnershipGrant Resource

    Get an existing UserOwnershipGrant 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?: UserOwnershipGrantState, opts?: CustomResourceOptions): UserOwnershipGrant
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            current_grants: Optional[str] = None,
            on_user_name: Optional[str] = None,
            revert_ownership_to_role_name: Optional[str] = None,
            to_role_name: Optional[str] = None) -> UserOwnershipGrant
    func GetUserOwnershipGrant(ctx *Context, name string, id IDInput, state *UserOwnershipGrantState, opts ...ResourceOption) (*UserOwnershipGrant, error)
    public static UserOwnershipGrant Get(string name, Input<string> id, UserOwnershipGrantState? state, CustomResourceOptions? opts = null)
    public static UserOwnershipGrant get(String name, Output<String> id, UserOwnershipGrantState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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:
    CurrentGrants string
    Specifies whether to remove or transfer all existing outbound privileges on the object when ownership is transferred to a new role.
    OnUserName string
    The name of the user ownership is granted on.
    RevertOwnershipToRoleName string
    The name of the role to revert ownership to on destroy.
    ToRoleName string
    CurrentGrants string
    Specifies whether to remove or transfer all existing outbound privileges on the object when ownership is transferred to a new role.
    OnUserName string
    The name of the user ownership is granted on.
    RevertOwnershipToRoleName string
    The name of the role to revert ownership to on destroy.
    ToRoleName string
    currentGrants String
    Specifies whether to remove or transfer all existing outbound privileges on the object when ownership is transferred to a new role.
    onUserName String
    The name of the user ownership is granted on.
    revertOwnershipToRoleName String
    The name of the role to revert ownership to on destroy.
    toRoleName String
    currentGrants string
    Specifies whether to remove or transfer all existing outbound privileges on the object when ownership is transferred to a new role.
    onUserName string
    The name of the user ownership is granted on.
    revertOwnershipToRoleName string
    The name of the role to revert ownership to on destroy.
    toRoleName string
    current_grants str
    Specifies whether to remove or transfer all existing outbound privileges on the object when ownership is transferred to a new role.
    on_user_name str
    The name of the user ownership is granted on.
    revert_ownership_to_role_name str
    The name of the role to revert ownership to on destroy.
    to_role_name str
    currentGrants String
    Specifies whether to remove or transfer all existing outbound privileges on the object when ownership is transferred to a new role.
    onUserName String
    The name of the user ownership is granted on.
    revertOwnershipToRoleName String
    The name of the role to revert ownership to on destroy.
    toRoleName String

    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.55.0 published on Friday, Jun 7, 2024 by Pulumi