1. Packages
  2. Snowflake
  3. API Docs
  4. GrantPrivilegesToShare
Snowflake v0.52.0 published on Thursday, Apr 18, 2024 by Pulumi

snowflake.GrantPrivilegesToShare

Explore with Pulumi AI

snowflake logo
Snowflake v0.52.0 published on Thursday, Apr 18, 2024 by Pulumi

    Import

    OnView

    $ pulumi import snowflake:index/grantPrivilegesToShare:GrantPrivilegesToShare <view_name>"`
    

    Create GrantPrivilegesToShare Resource

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

    Constructor syntax

    new GrantPrivilegesToShare(name: string, args: GrantPrivilegesToShareArgs, opts?: CustomResourceOptions);
    @overload
    def GrantPrivilegesToShare(resource_name: str,
                               args: GrantPrivilegesToShareArgs,
                               opts: Optional[ResourceOptions] = None)
    
    @overload
    def GrantPrivilegesToShare(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               privileges: Optional[Sequence[str]] = None,
                               to_share: Optional[str] = None,
                               on_all_tables_in_schema: Optional[str] = None,
                               on_database: Optional[str] = None,
                               on_schema: Optional[str] = None,
                               on_table: Optional[str] = None,
                               on_tag: Optional[str] = None,
                               on_view: Optional[str] = None)
    func NewGrantPrivilegesToShare(ctx *Context, name string, args GrantPrivilegesToShareArgs, opts ...ResourceOption) (*GrantPrivilegesToShare, error)
    public GrantPrivilegesToShare(string name, GrantPrivilegesToShareArgs args, CustomResourceOptions? opts = null)
    public GrantPrivilegesToShare(String name, GrantPrivilegesToShareArgs args)
    public GrantPrivilegesToShare(String name, GrantPrivilegesToShareArgs args, CustomResourceOptions options)
    
    type: snowflake:GrantPrivilegesToShare
    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 GrantPrivilegesToShareArgs
    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 GrantPrivilegesToShareArgs
    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 GrantPrivilegesToShareArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args GrantPrivilegesToShareArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args GrantPrivilegesToShareArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

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

    var grantPrivilegesToShareResource = new Snowflake.GrantPrivilegesToShare("grantPrivilegesToShareResource", new()
    {
        Privileges = new[]
        {
            "string",
        },
        ToShare = "string",
        OnAllTablesInSchema = "string",
        OnDatabase = "string",
        OnSchema = "string",
        OnTable = "string",
        OnTag = "string",
        OnView = "string",
    });
    
    example, err := snowflake.NewGrantPrivilegesToShare(ctx, "grantPrivilegesToShareResource", &snowflake.GrantPrivilegesToShareArgs{
    	Privileges: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	ToShare:             pulumi.String("string"),
    	OnAllTablesInSchema: pulumi.String("string"),
    	OnDatabase:          pulumi.String("string"),
    	OnSchema:            pulumi.String("string"),
    	OnTable:             pulumi.String("string"),
    	OnTag:               pulumi.String("string"),
    	OnView:              pulumi.String("string"),
    })
    
    var grantPrivilegesToShareResource = new GrantPrivilegesToShare("grantPrivilegesToShareResource", GrantPrivilegesToShareArgs.builder()        
        .privileges("string")
        .toShare("string")
        .onAllTablesInSchema("string")
        .onDatabase("string")
        .onSchema("string")
        .onTable("string")
        .onTag("string")
        .onView("string")
        .build());
    
    grant_privileges_to_share_resource = snowflake.GrantPrivilegesToShare("grantPrivilegesToShareResource",
        privileges=["string"],
        to_share="string",
        on_all_tables_in_schema="string",
        on_database="string",
        on_schema="string",
        on_table="string",
        on_tag="string",
        on_view="string")
    
    const grantPrivilegesToShareResource = new snowflake.GrantPrivilegesToShare("grantPrivilegesToShareResource", {
        privileges: ["string"],
        toShare: "string",
        onAllTablesInSchema: "string",
        onDatabase: "string",
        onSchema: "string",
        onTable: "string",
        onTag: "string",
        onView: "string",
    });
    
    type: snowflake:GrantPrivilegesToShare
    properties:
        onAllTablesInSchema: string
        onDatabase: string
        onSchema: string
        onTable: string
        onTag: string
        onView: string
        privileges:
            - string
        toShare: string
    

    GrantPrivilegesToShare 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 GrantPrivilegesToShare resource accepts the following input properties:

    Privileges List<string>
    The privileges to grant on the share. See available list of privileges: https://docs.snowflake.com/en/sql-reference/sql/grant-privilege-share#syntax
    ToShare string
    The fully qualified name of the share on which privileges will be granted.
    OnAllTablesInSchema string
    The fully qualified identifier for the schema for which the specified privilege will be granted for all tables.
    OnDatabase string
    The fully qualified name of the database on which privileges will be granted.
    OnSchema string
    The fully qualified name of the schema on which privileges will be granted.
    OnTable string
    The fully qualified name of the table on which privileges will be granted.
    OnTag string
    The fully qualified name of the tag on which privileges will be granted.
    OnView string
    The fully qualified name of the view on which privileges will be granted.
    Privileges []string
    The privileges to grant on the share. See available list of privileges: https://docs.snowflake.com/en/sql-reference/sql/grant-privilege-share#syntax
    ToShare string
    The fully qualified name of the share on which privileges will be granted.
    OnAllTablesInSchema string
    The fully qualified identifier for the schema for which the specified privilege will be granted for all tables.
    OnDatabase string
    The fully qualified name of the database on which privileges will be granted.
    OnSchema string
    The fully qualified name of the schema on which privileges will be granted.
    OnTable string
    The fully qualified name of the table on which privileges will be granted.
    OnTag string
    The fully qualified name of the tag on which privileges will be granted.
    OnView string
    The fully qualified name of the view on which privileges will be granted.
    privileges List<String>
    The privileges to grant on the share. See available list of privileges: https://docs.snowflake.com/en/sql-reference/sql/grant-privilege-share#syntax
    toShare String
    The fully qualified name of the share on which privileges will be granted.
    onAllTablesInSchema String
    The fully qualified identifier for the schema for which the specified privilege will be granted for all tables.
    onDatabase String
    The fully qualified name of the database on which privileges will be granted.
    onSchema String
    The fully qualified name of the schema on which privileges will be granted.
    onTable String
    The fully qualified name of the table on which privileges will be granted.
    onTag String
    The fully qualified name of the tag on which privileges will be granted.
    onView String
    The fully qualified name of the view on which privileges will be granted.
    privileges string[]
    The privileges to grant on the share. See available list of privileges: https://docs.snowflake.com/en/sql-reference/sql/grant-privilege-share#syntax
    toShare string
    The fully qualified name of the share on which privileges will be granted.
    onAllTablesInSchema string
    The fully qualified identifier for the schema for which the specified privilege will be granted for all tables.
    onDatabase string
    The fully qualified name of the database on which privileges will be granted.
    onSchema string
    The fully qualified name of the schema on which privileges will be granted.
    onTable string
    The fully qualified name of the table on which privileges will be granted.
    onTag string
    The fully qualified name of the tag on which privileges will be granted.
    onView string
    The fully qualified name of the view on which privileges will be granted.
    privileges Sequence[str]
    The privileges to grant on the share. See available list of privileges: https://docs.snowflake.com/en/sql-reference/sql/grant-privilege-share#syntax
    to_share str
    The fully qualified name of the share on which privileges will be granted.
    on_all_tables_in_schema str
    The fully qualified identifier for the schema for which the specified privilege will be granted for all tables.
    on_database str
    The fully qualified name of the database on which privileges will be granted.
    on_schema str
    The fully qualified name of the schema on which privileges will be granted.
    on_table str
    The fully qualified name of the table on which privileges will be granted.
    on_tag str
    The fully qualified name of the tag on which privileges will be granted.
    on_view str
    The fully qualified name of the view on which privileges will be granted.
    privileges List<String>
    The privileges to grant on the share. See available list of privileges: https://docs.snowflake.com/en/sql-reference/sql/grant-privilege-share#syntax
    toShare String
    The fully qualified name of the share on which privileges will be granted.
    onAllTablesInSchema String
    The fully qualified identifier for the schema for which the specified privilege will be granted for all tables.
    onDatabase String
    The fully qualified name of the database on which privileges will be granted.
    onSchema String
    The fully qualified name of the schema on which privileges will be granted.
    onTable String
    The fully qualified name of the table on which privileges will be granted.
    onTag String
    The fully qualified name of the tag on which privileges will be granted.
    onView String
    The fully qualified name of the view on which privileges will be granted.

    Outputs

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

    Get an existing GrantPrivilegesToShare 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?: GrantPrivilegesToShareState, opts?: CustomResourceOptions): GrantPrivilegesToShare
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            on_all_tables_in_schema: Optional[str] = None,
            on_database: Optional[str] = None,
            on_schema: Optional[str] = None,
            on_table: Optional[str] = None,
            on_tag: Optional[str] = None,
            on_view: Optional[str] = None,
            privileges: Optional[Sequence[str]] = None,
            to_share: Optional[str] = None) -> GrantPrivilegesToShare
    func GetGrantPrivilegesToShare(ctx *Context, name string, id IDInput, state *GrantPrivilegesToShareState, opts ...ResourceOption) (*GrantPrivilegesToShare, error)
    public static GrantPrivilegesToShare Get(string name, Input<string> id, GrantPrivilegesToShareState? state, CustomResourceOptions? opts = null)
    public static GrantPrivilegesToShare get(String name, Output<String> id, GrantPrivilegesToShareState 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:
    OnAllTablesInSchema string
    The fully qualified identifier for the schema for which the specified privilege will be granted for all tables.
    OnDatabase string
    The fully qualified name of the database on which privileges will be granted.
    OnSchema string
    The fully qualified name of the schema on which privileges will be granted.
    OnTable string
    The fully qualified name of the table on which privileges will be granted.
    OnTag string
    The fully qualified name of the tag on which privileges will be granted.
    OnView string
    The fully qualified name of the view on which privileges will be granted.
    Privileges List<string>
    The privileges to grant on the share. See available list of privileges: https://docs.snowflake.com/en/sql-reference/sql/grant-privilege-share#syntax
    ToShare string
    The fully qualified name of the share on which privileges will be granted.
    OnAllTablesInSchema string
    The fully qualified identifier for the schema for which the specified privilege will be granted for all tables.
    OnDatabase string
    The fully qualified name of the database on which privileges will be granted.
    OnSchema string
    The fully qualified name of the schema on which privileges will be granted.
    OnTable string
    The fully qualified name of the table on which privileges will be granted.
    OnTag string
    The fully qualified name of the tag on which privileges will be granted.
    OnView string
    The fully qualified name of the view on which privileges will be granted.
    Privileges []string
    The privileges to grant on the share. See available list of privileges: https://docs.snowflake.com/en/sql-reference/sql/grant-privilege-share#syntax
    ToShare string
    The fully qualified name of the share on which privileges will be granted.
    onAllTablesInSchema String
    The fully qualified identifier for the schema for which the specified privilege will be granted for all tables.
    onDatabase String
    The fully qualified name of the database on which privileges will be granted.
    onSchema String
    The fully qualified name of the schema on which privileges will be granted.
    onTable String
    The fully qualified name of the table on which privileges will be granted.
    onTag String
    The fully qualified name of the tag on which privileges will be granted.
    onView String
    The fully qualified name of the view on which privileges will be granted.
    privileges List<String>
    The privileges to grant on the share. See available list of privileges: https://docs.snowflake.com/en/sql-reference/sql/grant-privilege-share#syntax
    toShare String
    The fully qualified name of the share on which privileges will be granted.
    onAllTablesInSchema string
    The fully qualified identifier for the schema for which the specified privilege will be granted for all tables.
    onDatabase string
    The fully qualified name of the database on which privileges will be granted.
    onSchema string
    The fully qualified name of the schema on which privileges will be granted.
    onTable string
    The fully qualified name of the table on which privileges will be granted.
    onTag string
    The fully qualified name of the tag on which privileges will be granted.
    onView string
    The fully qualified name of the view on which privileges will be granted.
    privileges string[]
    The privileges to grant on the share. See available list of privileges: https://docs.snowflake.com/en/sql-reference/sql/grant-privilege-share#syntax
    toShare string
    The fully qualified name of the share on which privileges will be granted.
    on_all_tables_in_schema str
    The fully qualified identifier for the schema for which the specified privilege will be granted for all tables.
    on_database str
    The fully qualified name of the database on which privileges will be granted.
    on_schema str
    The fully qualified name of the schema on which privileges will be granted.
    on_table str
    The fully qualified name of the table on which privileges will be granted.
    on_tag str
    The fully qualified name of the tag on which privileges will be granted.
    on_view str
    The fully qualified name of the view on which privileges will be granted.
    privileges Sequence[str]
    The privileges to grant on the share. See available list of privileges: https://docs.snowflake.com/en/sql-reference/sql/grant-privilege-share#syntax
    to_share str
    The fully qualified name of the share on which privileges will be granted.
    onAllTablesInSchema String
    The fully qualified identifier for the schema for which the specified privilege will be granted for all tables.
    onDatabase String
    The fully qualified name of the database on which privileges will be granted.
    onSchema String
    The fully qualified name of the schema on which privileges will be granted.
    onTable String
    The fully qualified name of the table on which privileges will be granted.
    onTag String
    The fully qualified name of the tag on which privileges will be granted.
    onView String
    The fully qualified name of the view on which privileges will be granted.
    privileges List<String>
    The privileges to grant on the share. See available list of privileges: https://docs.snowflake.com/en/sql-reference/sql/grant-privilege-share#syntax
    toShare String
    The fully qualified name of the share on which privileges will be granted.

    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.52.0 published on Thursday, Apr 18, 2024 by Pulumi