snowflake.UserOwnershipGrant
Explore with Pulumi AI
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:
- On
User stringName - The name of the user ownership is granted on.
- To
Role stringName - Current
Grants string - Specifies whether to remove or transfer all existing outbound privileges on the object when ownership is transferred to a new role.
- Revert
Ownership stringTo Role Name - The name of the role to revert ownership to on destroy.
- On
User stringName - The name of the user ownership is granted on.
- To
Role stringName - Current
Grants string - Specifies whether to remove or transfer all existing outbound privileges on the object when ownership is transferred to a new role.
- Revert
Ownership stringTo Role Name - The name of the role to revert ownership to on destroy.
- on
User StringName - The name of the user ownership is granted on.
- to
Role StringName - current
Grants String - Specifies whether to remove or transfer all existing outbound privileges on the object when ownership is transferred to a new role.
- revert
Ownership StringTo Role Name - The name of the role to revert ownership to on destroy.
- on
User stringName - The name of the user ownership is granted on.
- to
Role stringName - current
Grants string - Specifies whether to remove or transfer all existing outbound privileges on the object when ownership is transferred to a new role.
- revert
Ownership stringTo Role Name - The name of the role to revert ownership to on destroy.
- on_
user_ strname - The name of the user ownership is granted on.
- to_
role_ strname - 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_ strto_ role_ name - The name of the role to revert ownership to on destroy.
- on
User StringName - The name of the user ownership is granted on.
- to
Role StringName - current
Grants String - Specifies whether to remove or transfer all existing outbound privileges on the object when ownership is transferred to a new role.
- revert
Ownership StringTo Role Name - 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.
- Current
Grants string - Specifies whether to remove or transfer all existing outbound privileges on the object when ownership is transferred to a new role.
- On
User stringName - The name of the user ownership is granted on.
- Revert
Ownership stringTo Role Name - The name of the role to revert ownership to on destroy.
- To
Role stringName
- Current
Grants string - Specifies whether to remove or transfer all existing outbound privileges on the object when ownership is transferred to a new role.
- On
User stringName - The name of the user ownership is granted on.
- Revert
Ownership stringTo Role Name - The name of the role to revert ownership to on destroy.
- To
Role stringName
- current
Grants String - Specifies whether to remove or transfer all existing outbound privileges on the object when ownership is transferred to a new role.
- on
User StringName - The name of the user ownership is granted on.
- revert
Ownership StringTo Role Name - The name of the role to revert ownership to on destroy.
- to
Role StringName
- current
Grants string - Specifies whether to remove or transfer all existing outbound privileges on the object when ownership is transferred to a new role.
- on
User stringName - The name of the user ownership is granted on.
- revert
Ownership stringTo Role Name - The name of the role to revert ownership to on destroy.
- to
Role stringName
- 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_ strname - The name of the user ownership is granted on.
- revert_
ownership_ strto_ role_ name - The name of the role to revert ownership to on destroy.
- to_
role_ strname
- current
Grants String - Specifies whether to remove or transfer all existing outbound privileges on the object when ownership is transferred to a new role.
- on
User StringName - The name of the user ownership is granted on.
- revert
Ownership StringTo Role Name - The name of the role to revert ownership to on destroy.
- to
Role StringName
Package Details
- Repository
- Snowflake pulumi/pulumi-snowflake
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
snowflake
Terraform Provider.