Welcome to Pulumi Registry, your window into the cloud. Read the announcement.

Snowflake

v0.2.1 published on Monday, Sep 27, 2021 by Pulumi

Share

Import

 $ pulumi import snowflake:index/share:Share example name

Example Usage

using Pulumi;
using Snowflake = Pulumi.Snowflake;

class MyStack : Stack
{
    public MyStack()
    {
        var test = new Snowflake.Share("test", new Snowflake.ShareArgs
        {
            Comment = "cool comment",
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-snowflake/sdk/go/snowflake"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := snowflake.NewShare(ctx, "test", &snowflake.ShareArgs{
			Comment: pulumi.String("cool comment"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
import pulumi
import pulumi_snowflake as snowflake

test = snowflake.Share("test", comment="cool comment")
import * as pulumi from "@pulumi/pulumi";
import * as snowflake from "@pulumi/snowflake";

const test = new snowflake.Share("test", {
    comment: "cool comment",
});

Create a Share Resource

new Share(name: string, args?: ShareArgs, opts?: CustomResourceOptions);
@overload
def Share(resource_name: str,
          opts: Optional[ResourceOptions] = None,
          accounts: Optional[Sequence[str]] = None,
          comment: Optional[str] = None,
          name: Optional[str] = None)
@overload
def Share(resource_name: str,
          args: Optional[ShareArgs] = None,
          opts: Optional[ResourceOptions] = None)
func NewShare(ctx *Context, name string, args *ShareArgs, opts ...ResourceOption) (*Share, error)
public Share(string name, ShareArgs? args = null, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args ShareArgs
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 ShareArgs
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 ShareArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ShareArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

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

Accounts List<string>
A list of accounts to be added to the share.
Comment string
Specifies a comment for the managed account.
Name string
Specifies the identifier for the share; must be unique for the account in which the share is created.
Accounts []string
A list of accounts to be added to the share.
Comment string
Specifies a comment for the managed account.
Name string
Specifies the identifier for the share; must be unique for the account in which the share is created.
accounts string[]
A list of accounts to be added to the share.
comment string
Specifies a comment for the managed account.
name string
Specifies the identifier for the share; must be unique for the account in which the share is created.
accounts Sequence[str]
A list of accounts to be added to the share.
comment str
Specifies a comment for the managed account.
name str
Specifies the identifier for the share; must be unique for the account in which the share is created.

Outputs

All input properties are implicitly available as output properties. Additionally, the Share 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 str
The provider-assigned unique ID for this managed resource.

Look up an Existing Share Resource

Get an existing Share 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?: ShareState, opts?: CustomResourceOptions): Share
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        accounts: Optional[Sequence[str]] = None,
        comment: Optional[str] = None,
        name: Optional[str] = None) -> Share
func GetShare(ctx *Context, name string, id IDInput, state *ShareState, opts ...ResourceOption) (*Share, error)
public static Share Get(string name, Input<string> id, ShareState? state, CustomResourceOptions? opts = null)
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.

The following state arguments are supported:

Accounts List<string>
A list of accounts to be added to the share.
Comment string
Specifies a comment for the managed account.
Name string
Specifies the identifier for the share; must be unique for the account in which the share is created.
Accounts []string
A list of accounts to be added to the share.
Comment string
Specifies a comment for the managed account.
Name string
Specifies the identifier for the share; must be unique for the account in which the share is created.
accounts string[]
A list of accounts to be added to the share.
comment string
Specifies a comment for the managed account.
name string
Specifies the identifier for the share; must be unique for the account in which the share is created.
accounts Sequence[str]
A list of accounts to be added to the share.
comment str
Specifies a comment for the managed account.
name str
Specifies the identifier for the share; must be unique for the account in which the share is created.

Package Details

Repository
https://github.com/pulumi/pulumi-snowflake
License
Apache-2.0
Notes
This Pulumi package is based on the snowflake Terraform Provider.