snowflake

package
v0.30.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 18, 2023 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Overview

A Pulumi package for creating and managing snowflake cloud resources.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account added in v0.16.0

type Account struct {
	pulumi.CustomResourceState

	// Login name of the initial administrative user of the account. A new user is created in the new account with this name and password and granted the ACCOUNTADMIN role in the account. A login name can be any string consisting of letters, numbers, and underscores. Login names are always case-insensitive.
	AdminName pulumi.StringOutput `pulumi:"adminName"`
	// Password for the initial administrative user of the account. Optional if the `ADMIN_RSA_PUBLIC_KEY` parameter is specified. For more information about passwords in Snowflake, see [Snowflake-provided Password Policy](https://docs.snowflake.com/en/sql-reference/sql/create-account.html#:~:text=Snowflake%2Dprovided%20Password%20Policy).
	AdminPassword pulumi.StringPtrOutput `pulumi:"adminPassword"`
	// Assigns a public key to the initial administrative user of the account in order to implement [key pair authentication](https://docs.snowflake.com/en/sql-reference/sql/create-account.html#:~:text=key%20pair%20authentication) for the user. Optional if the `ADMIN_PASSWORD` parameter is specified.
	AdminRsaPublicKey pulumi.StringPtrOutput `pulumi:"adminRsaPublicKey"`
	// Specifies a comment for the account.
	Comment pulumi.StringPtrOutput `pulumi:"comment"`
	// [Snowflake Edition](https://docs.snowflake.com/en/user-guide/intro-editions.html) of the account. Valid values are: STANDARD | ENTERPRISE | BUSINESS_CRITICAL
	Edition pulumi.StringOutput `pulumi:"edition"`
	// Email address of the initial administrative user of the account. This email address is used to send any notifications about the account.
	Email pulumi.StringOutput `pulumi:"email"`
	// First name of the initial administrative user of the account
	FirstName pulumi.StringPtrOutput `pulumi:"firstName"`
	// Indicates whether the ORGADMIN role is enabled in an account. If TRUE, the role is enabled.
	IsOrgAdmin pulumi.BoolOutput `pulumi:"isOrgAdmin"`
	// Last name of the initial administrative user of the account
	LastName pulumi.StringPtrOutput `pulumi:"lastName"`
	// Specifies whether the new user created to administer the account is forced to change their password upon first login into the account.
	MustChangePassword pulumi.BoolPtrOutput `pulumi:"mustChangePassword"`
	// Specifies the identifier (i.e. name) for the account; must be unique within an organization, regardless of which Snowflake Region the account is in. In addition, the identifier must start with an alphabetic character and cannot contain spaces or special characters except for underscores (_). Note that if the account name includes underscores, features that do not accept account names with underscores (e.g. Okta SSO or SCIM) can reference a version of the account name that substitutes hyphens (-) for the underscores.
	Name pulumi.StringOutput `pulumi:"name"`
	// ID of the Snowflake Region where the account is created. If no value is provided, Snowflake creates the account in the same Snowflake Region as the current account (i.e. the account in which the CREATE ACCOUNT statement is executed.)
	Region pulumi.StringPtrOutput `pulumi:"region"`
	// ID of the Snowflake Region where the account is created. If no value is provided, Snowflake creates the account in the same Snowflake Region as the current account (i.e. the account in which the CREATE ACCOUNT statement is executed.)
	RegionGroup pulumi.StringPtrOutput `pulumi:"regionGroup"`
}

The account resource allows you to create and manage Snowflake accounts.

**WARNING** This resource cannot be destroyed!!! The only way to delete accounts is to go through [Snowflake Support](https://docs.snowflake.com/en/user-guide/organizations-manage-accounts.html#deleting-an-account)

**NOTE** ORGADMIN priviliges are required for this resource

## Example Usage

```go 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.NewProvider(ctx, "orgadmin", &snowflake.ProviderArgs{
			Role: pulumi.String("ORGADMIN"),
		})
		if err != nil {
			return err
		}
		_, err = snowflake.NewAccount(ctx, "ac1", &snowflake.AccountArgs{
			AdminName:          pulumi.String("John Doe"),
			AdminPassword:      pulumi.String("Abcd1234!"),
			Email:              pulumi.String("john.doe@snowflake.com"),
			FirstName:          pulumi.String("John"),
			LastName:           pulumi.String("Doe"),
			MustChangePassword: pulumi.Bool(true),
			Edition:            pulumi.String("STANDARD"),
			Comment:            pulumi.String("Snowflake Test Account"),
			Region:             pulumi.String("AWS_US_WEST_2"),
		}, pulumi.Provider(snowflake.Orgadmin))
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

```sh

$ pulumi import snowflake:index/account:Account account <account_locator>

```

func GetAccount added in v0.16.0

func GetAccount(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *AccountState, opts ...pulumi.ResourceOption) (*Account, error)

GetAccount gets an existing Account resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewAccount added in v0.16.0

func NewAccount(ctx *pulumi.Context,
	name string, args *AccountArgs, opts ...pulumi.ResourceOption) (*Account, error)

NewAccount registers a new resource with the given unique name, arguments, and options.

func (*Account) ElementType added in v0.16.0

func (*Account) ElementType() reflect.Type

func (*Account) ToAccountOutput added in v0.16.0

func (i *Account) ToAccountOutput() AccountOutput

func (*Account) ToAccountOutputWithContext added in v0.16.0

func (i *Account) ToAccountOutputWithContext(ctx context.Context) AccountOutput

type AccountArgs added in v0.16.0

type AccountArgs struct {
	// Login name of the initial administrative user of the account. A new user is created in the new account with this name and password and granted the ACCOUNTADMIN role in the account. A login name can be any string consisting of letters, numbers, and underscores. Login names are always case-insensitive.
	AdminName pulumi.StringInput
	// Password for the initial administrative user of the account. Optional if the `ADMIN_RSA_PUBLIC_KEY` parameter is specified. For more information about passwords in Snowflake, see [Snowflake-provided Password Policy](https://docs.snowflake.com/en/sql-reference/sql/create-account.html#:~:text=Snowflake%2Dprovided%20Password%20Policy).
	AdminPassword pulumi.StringPtrInput
	// Assigns a public key to the initial administrative user of the account in order to implement [key pair authentication](https://docs.snowflake.com/en/sql-reference/sql/create-account.html#:~:text=key%20pair%20authentication) for the user. Optional if the `ADMIN_PASSWORD` parameter is specified.
	AdminRsaPublicKey pulumi.StringPtrInput
	// Specifies a comment for the account.
	Comment pulumi.StringPtrInput
	// [Snowflake Edition](https://docs.snowflake.com/en/user-guide/intro-editions.html) of the account. Valid values are: STANDARD | ENTERPRISE | BUSINESS_CRITICAL
	Edition pulumi.StringInput
	// Email address of the initial administrative user of the account. This email address is used to send any notifications about the account.
	Email pulumi.StringInput
	// First name of the initial administrative user of the account
	FirstName pulumi.StringPtrInput
	// Last name of the initial administrative user of the account
	LastName pulumi.StringPtrInput
	// Specifies whether the new user created to administer the account is forced to change their password upon first login into the account.
	MustChangePassword pulumi.BoolPtrInput
	// Specifies the identifier (i.e. name) for the account; must be unique within an organization, regardless of which Snowflake Region the account is in. In addition, the identifier must start with an alphabetic character and cannot contain spaces or special characters except for underscores (_). Note that if the account name includes underscores, features that do not accept account names with underscores (e.g. Okta SSO or SCIM) can reference a version of the account name that substitutes hyphens (-) for the underscores.
	Name pulumi.StringPtrInput
	// ID of the Snowflake Region where the account is created. If no value is provided, Snowflake creates the account in the same Snowflake Region as the current account (i.e. the account in which the CREATE ACCOUNT statement is executed.)
	Region pulumi.StringPtrInput
	// ID of the Snowflake Region where the account is created. If no value is provided, Snowflake creates the account in the same Snowflake Region as the current account (i.e. the account in which the CREATE ACCOUNT statement is executed.)
	RegionGroup pulumi.StringPtrInput
}

The set of arguments for constructing a Account resource.

func (AccountArgs) ElementType added in v0.16.0

func (AccountArgs) ElementType() reflect.Type

type AccountArray added in v0.16.0

type AccountArray []AccountInput

func (AccountArray) ElementType added in v0.16.0

func (AccountArray) ElementType() reflect.Type

func (AccountArray) ToAccountArrayOutput added in v0.16.0

func (i AccountArray) ToAccountArrayOutput() AccountArrayOutput

func (AccountArray) ToAccountArrayOutputWithContext added in v0.16.0

func (i AccountArray) ToAccountArrayOutputWithContext(ctx context.Context) AccountArrayOutput

type AccountArrayInput added in v0.16.0

type AccountArrayInput interface {
	pulumi.Input

	ToAccountArrayOutput() AccountArrayOutput
	ToAccountArrayOutputWithContext(context.Context) AccountArrayOutput
}

AccountArrayInput is an input type that accepts AccountArray and AccountArrayOutput values. You can construct a concrete instance of `AccountArrayInput` via:

AccountArray{ AccountArgs{...} }

type AccountArrayOutput added in v0.16.0

type AccountArrayOutput struct{ *pulumi.OutputState }

func (AccountArrayOutput) ElementType added in v0.16.0

func (AccountArrayOutput) ElementType() reflect.Type

func (AccountArrayOutput) Index added in v0.16.0

func (AccountArrayOutput) ToAccountArrayOutput added in v0.16.0

func (o AccountArrayOutput) ToAccountArrayOutput() AccountArrayOutput

func (AccountArrayOutput) ToAccountArrayOutputWithContext added in v0.16.0

func (o AccountArrayOutput) ToAccountArrayOutputWithContext(ctx context.Context) AccountArrayOutput

type AccountGrant

type AccountGrant struct {
	pulumi.CustomResourceState

	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrOutput `pulumi:"enableMultipleGrants"`
	// The account privilege to grant. Valid privileges are those in [globalPrivileges](https://docs.snowflake.com/en/sql-reference/sql/grant-privilege.html). To grant all privileges, use the value `ALL PRIVILEGES`.
	Privilege pulumi.StringPtrOutput `pulumi:"privilege"`
	// Grants privilege to these roles.
	Roles pulumi.StringArrayOutput `pulumi:"roles"`
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrOutput `pulumi:"withGrantOption"`
}

## Example Usage

```go 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.NewAccountGrant(ctx, "grant", &snowflake.AccountGrantArgs{
			Privilege: pulumi.String("CREATE ROLE"),
			Roles: pulumi.StringArray{
				pulumi.String("role1"),
				pulumi.String("role2"),
			},
			WithGrantOption: pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

format is privilege|with_grant_option|roles

```sh

$ pulumi import snowflake:index/accountGrant:AccountGrant example "privilege|false|role1,role2"

```

func GetAccountGrant

func GetAccountGrant(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *AccountGrantState, opts ...pulumi.ResourceOption) (*AccountGrant, error)

GetAccountGrant gets an existing AccountGrant resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewAccountGrant

func NewAccountGrant(ctx *pulumi.Context,
	name string, args *AccountGrantArgs, opts ...pulumi.ResourceOption) (*AccountGrant, error)

NewAccountGrant registers a new resource with the given unique name, arguments, and options.

func (*AccountGrant) ElementType

func (*AccountGrant) ElementType() reflect.Type

func (*AccountGrant) ToAccountGrantOutput

func (i *AccountGrant) ToAccountGrantOutput() AccountGrantOutput

func (*AccountGrant) ToAccountGrantOutputWithContext

func (i *AccountGrant) ToAccountGrantOutputWithContext(ctx context.Context) AccountGrantOutput

type AccountGrantArgs

type AccountGrantArgs struct {
	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrInput
	// The account privilege to grant. Valid privileges are those in [globalPrivileges](https://docs.snowflake.com/en/sql-reference/sql/grant-privilege.html). To grant all privileges, use the value `ALL PRIVILEGES`.
	Privilege pulumi.StringPtrInput
	// Grants privilege to these roles.
	Roles pulumi.StringArrayInput
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrInput
}

The set of arguments for constructing a AccountGrant resource.

func (AccountGrantArgs) ElementType

func (AccountGrantArgs) ElementType() reflect.Type

type AccountGrantArray

type AccountGrantArray []AccountGrantInput

func (AccountGrantArray) ElementType

func (AccountGrantArray) ElementType() reflect.Type

func (AccountGrantArray) ToAccountGrantArrayOutput

func (i AccountGrantArray) ToAccountGrantArrayOutput() AccountGrantArrayOutput

func (AccountGrantArray) ToAccountGrantArrayOutputWithContext

func (i AccountGrantArray) ToAccountGrantArrayOutputWithContext(ctx context.Context) AccountGrantArrayOutput

type AccountGrantArrayInput

type AccountGrantArrayInput interface {
	pulumi.Input

	ToAccountGrantArrayOutput() AccountGrantArrayOutput
	ToAccountGrantArrayOutputWithContext(context.Context) AccountGrantArrayOutput
}

AccountGrantArrayInput is an input type that accepts AccountGrantArray and AccountGrantArrayOutput values. You can construct a concrete instance of `AccountGrantArrayInput` via:

AccountGrantArray{ AccountGrantArgs{...} }

type AccountGrantArrayOutput

type AccountGrantArrayOutput struct{ *pulumi.OutputState }

func (AccountGrantArrayOutput) ElementType

func (AccountGrantArrayOutput) ElementType() reflect.Type

func (AccountGrantArrayOutput) Index

func (AccountGrantArrayOutput) ToAccountGrantArrayOutput

func (o AccountGrantArrayOutput) ToAccountGrantArrayOutput() AccountGrantArrayOutput

func (AccountGrantArrayOutput) ToAccountGrantArrayOutputWithContext

func (o AccountGrantArrayOutput) ToAccountGrantArrayOutputWithContext(ctx context.Context) AccountGrantArrayOutput

type AccountGrantInput

type AccountGrantInput interface {
	pulumi.Input

	ToAccountGrantOutput() AccountGrantOutput
	ToAccountGrantOutputWithContext(ctx context.Context) AccountGrantOutput
}

type AccountGrantMap

type AccountGrantMap map[string]AccountGrantInput

func (AccountGrantMap) ElementType

func (AccountGrantMap) ElementType() reflect.Type

func (AccountGrantMap) ToAccountGrantMapOutput

func (i AccountGrantMap) ToAccountGrantMapOutput() AccountGrantMapOutput

func (AccountGrantMap) ToAccountGrantMapOutputWithContext

func (i AccountGrantMap) ToAccountGrantMapOutputWithContext(ctx context.Context) AccountGrantMapOutput

type AccountGrantMapInput

type AccountGrantMapInput interface {
	pulumi.Input

	ToAccountGrantMapOutput() AccountGrantMapOutput
	ToAccountGrantMapOutputWithContext(context.Context) AccountGrantMapOutput
}

AccountGrantMapInput is an input type that accepts AccountGrantMap and AccountGrantMapOutput values. You can construct a concrete instance of `AccountGrantMapInput` via:

AccountGrantMap{ "key": AccountGrantArgs{...} }

type AccountGrantMapOutput

type AccountGrantMapOutput struct{ *pulumi.OutputState }

func (AccountGrantMapOutput) ElementType

func (AccountGrantMapOutput) ElementType() reflect.Type

func (AccountGrantMapOutput) MapIndex

func (AccountGrantMapOutput) ToAccountGrantMapOutput

func (o AccountGrantMapOutput) ToAccountGrantMapOutput() AccountGrantMapOutput

func (AccountGrantMapOutput) ToAccountGrantMapOutputWithContext

func (o AccountGrantMapOutput) ToAccountGrantMapOutputWithContext(ctx context.Context) AccountGrantMapOutput

type AccountGrantOutput

type AccountGrantOutput struct{ *pulumi.OutputState }

func (AccountGrantOutput) ElementType

func (AccountGrantOutput) ElementType() reflect.Type

func (AccountGrantOutput) EnableMultipleGrants added in v0.9.0

func (o AccountGrantOutput) EnableMultipleGrants() pulumi.BoolPtrOutput

When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke grants applied to roles and objects outside Terraform.

func (AccountGrantOutput) Privilege added in v0.9.0

The account privilege to grant. Valid privileges are those in [globalPrivileges](https://docs.snowflake.com/en/sql-reference/sql/grant-privilege.html). To grant all privileges, use the value `ALL PRIVILEGES`.

func (AccountGrantOutput) Roles added in v0.9.0

Grants privilege to these roles.

func (AccountGrantOutput) ToAccountGrantOutput

func (o AccountGrantOutput) ToAccountGrantOutput() AccountGrantOutput

func (AccountGrantOutput) ToAccountGrantOutputWithContext

func (o AccountGrantOutput) ToAccountGrantOutputWithContext(ctx context.Context) AccountGrantOutput

func (AccountGrantOutput) WithGrantOption added in v0.9.0

func (o AccountGrantOutput) WithGrantOption() pulumi.BoolPtrOutput

When this is set to true, allows the recipient role to grant the privileges to other roles.

type AccountGrantState

type AccountGrantState struct {
	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrInput
	// The account privilege to grant. Valid privileges are those in [globalPrivileges](https://docs.snowflake.com/en/sql-reference/sql/grant-privilege.html). To grant all privileges, use the value `ALL PRIVILEGES`.
	Privilege pulumi.StringPtrInput
	// Grants privilege to these roles.
	Roles pulumi.StringArrayInput
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrInput
}

func (AccountGrantState) ElementType

func (AccountGrantState) ElementType() reflect.Type

type AccountInput added in v0.16.0

type AccountInput interface {
	pulumi.Input

	ToAccountOutput() AccountOutput
	ToAccountOutputWithContext(ctx context.Context) AccountOutput
}

type AccountMap added in v0.16.0

type AccountMap map[string]AccountInput

func (AccountMap) ElementType added in v0.16.0

func (AccountMap) ElementType() reflect.Type

func (AccountMap) ToAccountMapOutput added in v0.16.0

func (i AccountMap) ToAccountMapOutput() AccountMapOutput

func (AccountMap) ToAccountMapOutputWithContext added in v0.16.0

func (i AccountMap) ToAccountMapOutputWithContext(ctx context.Context) AccountMapOutput

type AccountMapInput added in v0.16.0

type AccountMapInput interface {
	pulumi.Input

	ToAccountMapOutput() AccountMapOutput
	ToAccountMapOutputWithContext(context.Context) AccountMapOutput
}

AccountMapInput is an input type that accepts AccountMap and AccountMapOutput values. You can construct a concrete instance of `AccountMapInput` via:

AccountMap{ "key": AccountArgs{...} }

type AccountMapOutput added in v0.16.0

type AccountMapOutput struct{ *pulumi.OutputState }

func (AccountMapOutput) ElementType added in v0.16.0

func (AccountMapOutput) ElementType() reflect.Type

func (AccountMapOutput) MapIndex added in v0.16.0

func (AccountMapOutput) ToAccountMapOutput added in v0.16.0

func (o AccountMapOutput) ToAccountMapOutput() AccountMapOutput

func (AccountMapOutput) ToAccountMapOutputWithContext added in v0.16.0

func (o AccountMapOutput) ToAccountMapOutputWithContext(ctx context.Context) AccountMapOutput

type AccountOutput added in v0.16.0

type AccountOutput struct{ *pulumi.OutputState }

func (AccountOutput) AdminName added in v0.16.0

func (o AccountOutput) AdminName() pulumi.StringOutput

Login name of the initial administrative user of the account. A new user is created in the new account with this name and password and granted the ACCOUNTADMIN role in the account. A login name can be any string consisting of letters, numbers, and underscores. Login names are always case-insensitive.

func (AccountOutput) AdminPassword added in v0.16.0

func (o AccountOutput) AdminPassword() pulumi.StringPtrOutput

Password for the initial administrative user of the account. Optional if the `ADMIN_RSA_PUBLIC_KEY` parameter is specified. For more information about passwords in Snowflake, see [Snowflake-provided Password Policy](https://docs.snowflake.com/en/sql-reference/sql/create-account.html#:~:text=Snowflake%2Dprovided%20Password%20Policy).

func (AccountOutput) AdminRsaPublicKey added in v0.16.0

func (o AccountOutput) AdminRsaPublicKey() pulumi.StringPtrOutput

Assigns a public key to the initial administrative user of the account in order to implement [key pair authentication](https://docs.snowflake.com/en/sql-reference/sql/create-account.html#:~:text=key%20pair%20authentication) for the user. Optional if the `ADMIN_PASSWORD` parameter is specified.

func (AccountOutput) Comment added in v0.16.0

func (o AccountOutput) Comment() pulumi.StringPtrOutput

Specifies a comment for the account.

func (AccountOutput) Edition added in v0.16.0

func (o AccountOutput) Edition() pulumi.StringOutput

[Snowflake Edition](https://docs.snowflake.com/en/user-guide/intro-editions.html) of the account. Valid values are: STANDARD | ENTERPRISE | BUSINESS_CRITICAL

func (AccountOutput) ElementType added in v0.16.0

func (AccountOutput) ElementType() reflect.Type

func (AccountOutput) Email added in v0.16.0

func (o AccountOutput) Email() pulumi.StringOutput

Email address of the initial administrative user of the account. This email address is used to send any notifications about the account.

func (AccountOutput) FirstName added in v0.16.0

func (o AccountOutput) FirstName() pulumi.StringPtrOutput

First name of the initial administrative user of the account

func (AccountOutput) IsOrgAdmin added in v0.21.0

func (o AccountOutput) IsOrgAdmin() pulumi.BoolOutput

Indicates whether the ORGADMIN role is enabled in an account. If TRUE, the role is enabled.

func (AccountOutput) LastName added in v0.16.0

func (o AccountOutput) LastName() pulumi.StringPtrOutput

Last name of the initial administrative user of the account

func (AccountOutput) MustChangePassword added in v0.16.0

func (o AccountOutput) MustChangePassword() pulumi.BoolPtrOutput

Specifies whether the new user created to administer the account is forced to change their password upon first login into the account.

func (AccountOutput) Name added in v0.16.0

Specifies the identifier (i.e. name) for the account; must be unique within an organization, regardless of which Snowflake Region the account is in. In addition, the identifier must start with an alphabetic character and cannot contain spaces or special characters except for underscores (_). Note that if the account name includes underscores, features that do not accept account names with underscores (e.g. Okta SSO or SCIM) can reference a version of the account name that substitutes hyphens (-) for the underscores.

func (AccountOutput) Region added in v0.16.0

ID of the Snowflake Region where the account is created. If no value is provided, Snowflake creates the account in the same Snowflake Region as the current account (i.e. the account in which the CREATE ACCOUNT statement is executed.)

func (AccountOutput) RegionGroup added in v0.16.0

func (o AccountOutput) RegionGroup() pulumi.StringPtrOutput

ID of the Snowflake Region where the account is created. If no value is provided, Snowflake creates the account in the same Snowflake Region as the current account (i.e. the account in which the CREATE ACCOUNT statement is executed.)

func (AccountOutput) ToAccountOutput added in v0.16.0

func (o AccountOutput) ToAccountOutput() AccountOutput

func (AccountOutput) ToAccountOutputWithContext added in v0.16.0

func (o AccountOutput) ToAccountOutputWithContext(ctx context.Context) AccountOutput

type AccountParameter added in v0.16.0

type AccountParameter struct {
	pulumi.CustomResourceState

	// Name of account parameter. Valid values are those in [account parameters](https://docs.snowflake.com/en/sql-reference/parameters.html#account-parameters).
	Key pulumi.StringOutput `pulumi:"key"`
	// Value of account parameter, as a string. Constraints are the same as those for the parameters in Snowflake documentation.
	Value pulumi.StringOutput `pulumi:"value"`
}

## Example Usage

```go 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.NewAccountParameter(ctx, "accountParameter", &snowflake.AccountParameterArgs{
			Key:   pulumi.String("ALLOW_ID_TOKEN"),
			Value: pulumi.String("true"),
		})
		if err != nil {
			return err
		}
		_, err = snowflake.NewAccountParameter(ctx, "p2", &snowflake.AccountParameterArgs{
			Key:   pulumi.String("CLIENT_ENCRYPTION_KEY_SIZE"),
			Value: pulumi.String("256"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

```sh

$ pulumi import snowflake:index/accountParameter:AccountParameter p <parameter_name>

```

func GetAccountParameter added in v0.16.0

func GetAccountParameter(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *AccountParameterState, opts ...pulumi.ResourceOption) (*AccountParameter, error)

GetAccountParameter gets an existing AccountParameter resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewAccountParameter added in v0.16.0

func NewAccountParameter(ctx *pulumi.Context,
	name string, args *AccountParameterArgs, opts ...pulumi.ResourceOption) (*AccountParameter, error)

NewAccountParameter registers a new resource with the given unique name, arguments, and options.

func (*AccountParameter) ElementType added in v0.16.0

func (*AccountParameter) ElementType() reflect.Type

func (*AccountParameter) ToAccountParameterOutput added in v0.16.0

func (i *AccountParameter) ToAccountParameterOutput() AccountParameterOutput

func (*AccountParameter) ToAccountParameterOutputWithContext added in v0.16.0

func (i *AccountParameter) ToAccountParameterOutputWithContext(ctx context.Context) AccountParameterOutput

type AccountParameterArgs added in v0.16.0

type AccountParameterArgs struct {
	// Name of account parameter. Valid values are those in [account parameters](https://docs.snowflake.com/en/sql-reference/parameters.html#account-parameters).
	Key pulumi.StringInput
	// Value of account parameter, as a string. Constraints are the same as those for the parameters in Snowflake documentation.
	Value pulumi.StringInput
}

The set of arguments for constructing a AccountParameter resource.

func (AccountParameterArgs) ElementType added in v0.16.0

func (AccountParameterArgs) ElementType() reflect.Type

type AccountParameterArray added in v0.16.0

type AccountParameterArray []AccountParameterInput

func (AccountParameterArray) ElementType added in v0.16.0

func (AccountParameterArray) ElementType() reflect.Type

func (AccountParameterArray) ToAccountParameterArrayOutput added in v0.16.0

func (i AccountParameterArray) ToAccountParameterArrayOutput() AccountParameterArrayOutput

func (AccountParameterArray) ToAccountParameterArrayOutputWithContext added in v0.16.0

func (i AccountParameterArray) ToAccountParameterArrayOutputWithContext(ctx context.Context) AccountParameterArrayOutput

type AccountParameterArrayInput added in v0.16.0

type AccountParameterArrayInput interface {
	pulumi.Input

	ToAccountParameterArrayOutput() AccountParameterArrayOutput
	ToAccountParameterArrayOutputWithContext(context.Context) AccountParameterArrayOutput
}

AccountParameterArrayInput is an input type that accepts AccountParameterArray and AccountParameterArrayOutput values. You can construct a concrete instance of `AccountParameterArrayInput` via:

AccountParameterArray{ AccountParameterArgs{...} }

type AccountParameterArrayOutput added in v0.16.0

type AccountParameterArrayOutput struct{ *pulumi.OutputState }

func (AccountParameterArrayOutput) ElementType added in v0.16.0

func (AccountParameterArrayOutput) Index added in v0.16.0

func (AccountParameterArrayOutput) ToAccountParameterArrayOutput added in v0.16.0

func (o AccountParameterArrayOutput) ToAccountParameterArrayOutput() AccountParameterArrayOutput

func (AccountParameterArrayOutput) ToAccountParameterArrayOutputWithContext added in v0.16.0

func (o AccountParameterArrayOutput) ToAccountParameterArrayOutputWithContext(ctx context.Context) AccountParameterArrayOutput

type AccountParameterInput added in v0.16.0

type AccountParameterInput interface {
	pulumi.Input

	ToAccountParameterOutput() AccountParameterOutput
	ToAccountParameterOutputWithContext(ctx context.Context) AccountParameterOutput
}

type AccountParameterMap added in v0.16.0

type AccountParameterMap map[string]AccountParameterInput

func (AccountParameterMap) ElementType added in v0.16.0

func (AccountParameterMap) ElementType() reflect.Type

func (AccountParameterMap) ToAccountParameterMapOutput added in v0.16.0

func (i AccountParameterMap) ToAccountParameterMapOutput() AccountParameterMapOutput

func (AccountParameterMap) ToAccountParameterMapOutputWithContext added in v0.16.0

func (i AccountParameterMap) ToAccountParameterMapOutputWithContext(ctx context.Context) AccountParameterMapOutput

type AccountParameterMapInput added in v0.16.0

type AccountParameterMapInput interface {
	pulumi.Input

	ToAccountParameterMapOutput() AccountParameterMapOutput
	ToAccountParameterMapOutputWithContext(context.Context) AccountParameterMapOutput
}

AccountParameterMapInput is an input type that accepts AccountParameterMap and AccountParameterMapOutput values. You can construct a concrete instance of `AccountParameterMapInput` via:

AccountParameterMap{ "key": AccountParameterArgs{...} }

type AccountParameterMapOutput added in v0.16.0

type AccountParameterMapOutput struct{ *pulumi.OutputState }

func (AccountParameterMapOutput) ElementType added in v0.16.0

func (AccountParameterMapOutput) ElementType() reflect.Type

func (AccountParameterMapOutput) MapIndex added in v0.16.0

func (AccountParameterMapOutput) ToAccountParameterMapOutput added in v0.16.0

func (o AccountParameterMapOutput) ToAccountParameterMapOutput() AccountParameterMapOutput

func (AccountParameterMapOutput) ToAccountParameterMapOutputWithContext added in v0.16.0

func (o AccountParameterMapOutput) ToAccountParameterMapOutputWithContext(ctx context.Context) AccountParameterMapOutput

type AccountParameterOutput added in v0.16.0

type AccountParameterOutput struct{ *pulumi.OutputState }

func (AccountParameterOutput) ElementType added in v0.16.0

func (AccountParameterOutput) ElementType() reflect.Type

func (AccountParameterOutput) Key added in v0.16.0

Name of account parameter. Valid values are those in [account parameters](https://docs.snowflake.com/en/sql-reference/parameters.html#account-parameters).

func (AccountParameterOutput) ToAccountParameterOutput added in v0.16.0

func (o AccountParameterOutput) ToAccountParameterOutput() AccountParameterOutput

func (AccountParameterOutput) ToAccountParameterOutputWithContext added in v0.16.0

func (o AccountParameterOutput) ToAccountParameterOutputWithContext(ctx context.Context) AccountParameterOutput

func (AccountParameterOutput) Value added in v0.16.0

Value of account parameter, as a string. Constraints are the same as those for the parameters in Snowflake documentation.

type AccountParameterState added in v0.16.0

type AccountParameterState struct {
	// Name of account parameter. Valid values are those in [account parameters](https://docs.snowflake.com/en/sql-reference/parameters.html#account-parameters).
	Key pulumi.StringPtrInput
	// Value of account parameter, as a string. Constraints are the same as those for the parameters in Snowflake documentation.
	Value pulumi.StringPtrInput
}

func (AccountParameterState) ElementType added in v0.16.0

func (AccountParameterState) ElementType() reflect.Type

type AccountPasswordPolicyAttachment added in v0.28.0

type AccountPasswordPolicyAttachment struct {
	pulumi.CustomResourceState

	// Qualified name (`"db"."schema"."policyName"`) of the password policy to apply to the current account.
	PasswordPolicy pulumi.StringOutput `pulumi:"passwordPolicy"`
}

Specifies the password policy to use for the current account. To set the password policy of a different account, use a provider alias.

## Example Usage

```go 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.NewPasswordPolicy(ctx, "default", &snowflake.PasswordPolicyArgs{
			Database: pulumi.String("prod"),
			Schema:   pulumi.String("security"),
		})
		if err != nil {
			return err
		}
		_, err = snowflake.NewAccountPasswordPolicyAttachment(ctx, "attachment", &snowflake.AccountPasswordPolicyAttachmentArgs{
			PasswordPolicy: _default.QualifiedName,
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetAccountPasswordPolicyAttachment added in v0.28.0

func GetAccountPasswordPolicyAttachment(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *AccountPasswordPolicyAttachmentState, opts ...pulumi.ResourceOption) (*AccountPasswordPolicyAttachment, error)

GetAccountPasswordPolicyAttachment gets an existing AccountPasswordPolicyAttachment resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewAccountPasswordPolicyAttachment added in v0.28.0

func NewAccountPasswordPolicyAttachment(ctx *pulumi.Context,
	name string, args *AccountPasswordPolicyAttachmentArgs, opts ...pulumi.ResourceOption) (*AccountPasswordPolicyAttachment, error)

NewAccountPasswordPolicyAttachment registers a new resource with the given unique name, arguments, and options.

func (*AccountPasswordPolicyAttachment) ElementType added in v0.28.0

func (*AccountPasswordPolicyAttachment) ToAccountPasswordPolicyAttachmentOutput added in v0.28.0

func (i *AccountPasswordPolicyAttachment) ToAccountPasswordPolicyAttachmentOutput() AccountPasswordPolicyAttachmentOutput

func (*AccountPasswordPolicyAttachment) ToAccountPasswordPolicyAttachmentOutputWithContext added in v0.28.0

func (i *AccountPasswordPolicyAttachment) ToAccountPasswordPolicyAttachmentOutputWithContext(ctx context.Context) AccountPasswordPolicyAttachmentOutput

type AccountPasswordPolicyAttachmentArgs added in v0.28.0

type AccountPasswordPolicyAttachmentArgs struct {
	// Qualified name (`"db"."schema"."policyName"`) of the password policy to apply to the current account.
	PasswordPolicy pulumi.StringInput
}

The set of arguments for constructing a AccountPasswordPolicyAttachment resource.

func (AccountPasswordPolicyAttachmentArgs) ElementType added in v0.28.0

type AccountPasswordPolicyAttachmentArray added in v0.28.0

type AccountPasswordPolicyAttachmentArray []AccountPasswordPolicyAttachmentInput

func (AccountPasswordPolicyAttachmentArray) ElementType added in v0.28.0

func (AccountPasswordPolicyAttachmentArray) ToAccountPasswordPolicyAttachmentArrayOutput added in v0.28.0

func (i AccountPasswordPolicyAttachmentArray) ToAccountPasswordPolicyAttachmentArrayOutput() AccountPasswordPolicyAttachmentArrayOutput

func (AccountPasswordPolicyAttachmentArray) ToAccountPasswordPolicyAttachmentArrayOutputWithContext added in v0.28.0

func (i AccountPasswordPolicyAttachmentArray) ToAccountPasswordPolicyAttachmentArrayOutputWithContext(ctx context.Context) AccountPasswordPolicyAttachmentArrayOutput

type AccountPasswordPolicyAttachmentArrayInput added in v0.28.0

type AccountPasswordPolicyAttachmentArrayInput interface {
	pulumi.Input

	ToAccountPasswordPolicyAttachmentArrayOutput() AccountPasswordPolicyAttachmentArrayOutput
	ToAccountPasswordPolicyAttachmentArrayOutputWithContext(context.Context) AccountPasswordPolicyAttachmentArrayOutput
}

AccountPasswordPolicyAttachmentArrayInput is an input type that accepts AccountPasswordPolicyAttachmentArray and AccountPasswordPolicyAttachmentArrayOutput values. You can construct a concrete instance of `AccountPasswordPolicyAttachmentArrayInput` via:

AccountPasswordPolicyAttachmentArray{ AccountPasswordPolicyAttachmentArgs{...} }

type AccountPasswordPolicyAttachmentArrayOutput added in v0.28.0

type AccountPasswordPolicyAttachmentArrayOutput struct{ *pulumi.OutputState }

func (AccountPasswordPolicyAttachmentArrayOutput) ElementType added in v0.28.0

func (AccountPasswordPolicyAttachmentArrayOutput) Index added in v0.28.0

func (AccountPasswordPolicyAttachmentArrayOutput) ToAccountPasswordPolicyAttachmentArrayOutput added in v0.28.0

func (o AccountPasswordPolicyAttachmentArrayOutput) ToAccountPasswordPolicyAttachmentArrayOutput() AccountPasswordPolicyAttachmentArrayOutput

func (AccountPasswordPolicyAttachmentArrayOutput) ToAccountPasswordPolicyAttachmentArrayOutputWithContext added in v0.28.0

func (o AccountPasswordPolicyAttachmentArrayOutput) ToAccountPasswordPolicyAttachmentArrayOutputWithContext(ctx context.Context) AccountPasswordPolicyAttachmentArrayOutput

type AccountPasswordPolicyAttachmentInput added in v0.28.0

type AccountPasswordPolicyAttachmentInput interface {
	pulumi.Input

	ToAccountPasswordPolicyAttachmentOutput() AccountPasswordPolicyAttachmentOutput
	ToAccountPasswordPolicyAttachmentOutputWithContext(ctx context.Context) AccountPasswordPolicyAttachmentOutput
}

type AccountPasswordPolicyAttachmentMap added in v0.28.0

type AccountPasswordPolicyAttachmentMap map[string]AccountPasswordPolicyAttachmentInput

func (AccountPasswordPolicyAttachmentMap) ElementType added in v0.28.0

func (AccountPasswordPolicyAttachmentMap) ToAccountPasswordPolicyAttachmentMapOutput added in v0.28.0

func (i AccountPasswordPolicyAttachmentMap) ToAccountPasswordPolicyAttachmentMapOutput() AccountPasswordPolicyAttachmentMapOutput

func (AccountPasswordPolicyAttachmentMap) ToAccountPasswordPolicyAttachmentMapOutputWithContext added in v0.28.0

func (i AccountPasswordPolicyAttachmentMap) ToAccountPasswordPolicyAttachmentMapOutputWithContext(ctx context.Context) AccountPasswordPolicyAttachmentMapOutput

type AccountPasswordPolicyAttachmentMapInput added in v0.28.0

type AccountPasswordPolicyAttachmentMapInput interface {
	pulumi.Input

	ToAccountPasswordPolicyAttachmentMapOutput() AccountPasswordPolicyAttachmentMapOutput
	ToAccountPasswordPolicyAttachmentMapOutputWithContext(context.Context) AccountPasswordPolicyAttachmentMapOutput
}

AccountPasswordPolicyAttachmentMapInput is an input type that accepts AccountPasswordPolicyAttachmentMap and AccountPasswordPolicyAttachmentMapOutput values. You can construct a concrete instance of `AccountPasswordPolicyAttachmentMapInput` via:

AccountPasswordPolicyAttachmentMap{ "key": AccountPasswordPolicyAttachmentArgs{...} }

type AccountPasswordPolicyAttachmentMapOutput added in v0.28.0

type AccountPasswordPolicyAttachmentMapOutput struct{ *pulumi.OutputState }

func (AccountPasswordPolicyAttachmentMapOutput) ElementType added in v0.28.0

func (AccountPasswordPolicyAttachmentMapOutput) MapIndex added in v0.28.0

func (AccountPasswordPolicyAttachmentMapOutput) ToAccountPasswordPolicyAttachmentMapOutput added in v0.28.0

func (o AccountPasswordPolicyAttachmentMapOutput) ToAccountPasswordPolicyAttachmentMapOutput() AccountPasswordPolicyAttachmentMapOutput

func (AccountPasswordPolicyAttachmentMapOutput) ToAccountPasswordPolicyAttachmentMapOutputWithContext added in v0.28.0

func (o AccountPasswordPolicyAttachmentMapOutput) ToAccountPasswordPolicyAttachmentMapOutputWithContext(ctx context.Context) AccountPasswordPolicyAttachmentMapOutput

type AccountPasswordPolicyAttachmentOutput added in v0.28.0

type AccountPasswordPolicyAttachmentOutput struct{ *pulumi.OutputState }

func (AccountPasswordPolicyAttachmentOutput) ElementType added in v0.28.0

func (AccountPasswordPolicyAttachmentOutput) PasswordPolicy added in v0.28.0

Qualified name (`"db"."schema"."policyName"`) of the password policy to apply to the current account.

func (AccountPasswordPolicyAttachmentOutput) ToAccountPasswordPolicyAttachmentOutput added in v0.28.0

func (o AccountPasswordPolicyAttachmentOutput) ToAccountPasswordPolicyAttachmentOutput() AccountPasswordPolicyAttachmentOutput

func (AccountPasswordPolicyAttachmentOutput) ToAccountPasswordPolicyAttachmentOutputWithContext added in v0.28.0

func (o AccountPasswordPolicyAttachmentOutput) ToAccountPasswordPolicyAttachmentOutputWithContext(ctx context.Context) AccountPasswordPolicyAttachmentOutput

type AccountPasswordPolicyAttachmentState added in v0.28.0

type AccountPasswordPolicyAttachmentState struct {
	// Qualified name (`"db"."schema"."policyName"`) of the password policy to apply to the current account.
	PasswordPolicy pulumi.StringPtrInput
}

func (AccountPasswordPolicyAttachmentState) ElementType added in v0.28.0

type AccountState added in v0.16.0

type AccountState struct {
	// Login name of the initial administrative user of the account. A new user is created in the new account with this name and password and granted the ACCOUNTADMIN role in the account. A login name can be any string consisting of letters, numbers, and underscores. Login names are always case-insensitive.
	AdminName pulumi.StringPtrInput
	// Password for the initial administrative user of the account. Optional if the `ADMIN_RSA_PUBLIC_KEY` parameter is specified. For more information about passwords in Snowflake, see [Snowflake-provided Password Policy](https://docs.snowflake.com/en/sql-reference/sql/create-account.html#:~:text=Snowflake%2Dprovided%20Password%20Policy).
	AdminPassword pulumi.StringPtrInput
	// Assigns a public key to the initial administrative user of the account in order to implement [key pair authentication](https://docs.snowflake.com/en/sql-reference/sql/create-account.html#:~:text=key%20pair%20authentication) for the user. Optional if the `ADMIN_PASSWORD` parameter is specified.
	AdminRsaPublicKey pulumi.StringPtrInput
	// Specifies a comment for the account.
	Comment pulumi.StringPtrInput
	// [Snowflake Edition](https://docs.snowflake.com/en/user-guide/intro-editions.html) of the account. Valid values are: STANDARD | ENTERPRISE | BUSINESS_CRITICAL
	Edition pulumi.StringPtrInput
	// Email address of the initial administrative user of the account. This email address is used to send any notifications about the account.
	Email pulumi.StringPtrInput
	// First name of the initial administrative user of the account
	FirstName pulumi.StringPtrInput
	// Indicates whether the ORGADMIN role is enabled in an account. If TRUE, the role is enabled.
	IsOrgAdmin pulumi.BoolPtrInput
	// Last name of the initial administrative user of the account
	LastName pulumi.StringPtrInput
	// Specifies whether the new user created to administer the account is forced to change their password upon first login into the account.
	MustChangePassword pulumi.BoolPtrInput
	// Specifies the identifier (i.e. name) for the account; must be unique within an organization, regardless of which Snowflake Region the account is in. In addition, the identifier must start with an alphabetic character and cannot contain spaces or special characters except for underscores (_). Note that if the account name includes underscores, features that do not accept account names with underscores (e.g. Okta SSO or SCIM) can reference a version of the account name that substitutes hyphens (-) for the underscores.
	Name pulumi.StringPtrInput
	// ID of the Snowflake Region where the account is created. If no value is provided, Snowflake creates the account in the same Snowflake Region as the current account (i.e. the account in which the CREATE ACCOUNT statement is executed.)
	Region pulumi.StringPtrInput
	// ID of the Snowflake Region where the account is created. If no value is provided, Snowflake creates the account in the same Snowflake Region as the current account (i.e. the account in which the CREATE ACCOUNT statement is executed.)
	RegionGroup pulumi.StringPtrInput
}

func (AccountState) ElementType added in v0.16.0

func (AccountState) ElementType() reflect.Type

type Alert added in v0.23.0

type Alert struct {
	pulumi.CustomResourceState

	// The SQL statement that should be executed if the condition returns one or more rows.
	Action pulumi.StringOutput `pulumi:"action"`
	// The schedule for periodically running an alert.
	AlertSchedule AlertAlertSchedulePtrOutput `pulumi:"alertSchedule"`
	// Specifies a comment for the alert.
	Comment pulumi.StringPtrOutput `pulumi:"comment"`
	// The SQL statement that represents the condition for the alert. (SELECT, SHOW, CALL)
	Condition pulumi.StringOutput `pulumi:"condition"`
	// The database in which to create the alert.
	Database pulumi.StringOutput `pulumi:"database"`
	// Specifies if an alert should be 'started' (enabled) after creation or should remain 'suspended' (default).
	Enabled pulumi.BoolPtrOutput `pulumi:"enabled"`
	// Specifies the identifier for the alert; must be unique for the database and schema in which the alert is created.
	Name pulumi.StringOutput `pulumi:"name"`
	// The schema in which to create the alert.
	Schema pulumi.StringOutput `pulumi:"schema"`
	// The warehouse the alert will use.
	Warehouse pulumi.StringOutput `pulumi:"warehouse"`
}

## Example Usage

```go 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.NewAlert(ctx, "alert", &snowflake.AlertArgs{
			Action: pulumi.String("select 1 as c"),
			AlertSchedule: &snowflake.AlertAlertScheduleArgs{
				Interval: pulumi.Int(10),
			},
			Comment:   pulumi.String("my alert"),
			Condition: pulumi.String("select 1 as c"),
			Database:  pulumi.String("database"),
			Enabled:   pulumi.Bool(true),
			Schema:    pulumi.String("schema"),
			Warehouse: pulumi.String("warehouse"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

format is database name | schema name | alert name

```sh

$ pulumi import snowflake:index/alert:Alert example 'dbName|schemaName|alertName'

```

func GetAlert added in v0.23.0

func GetAlert(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *AlertState, opts ...pulumi.ResourceOption) (*Alert, error)

GetAlert gets an existing Alert resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewAlert added in v0.23.0

func NewAlert(ctx *pulumi.Context,
	name string, args *AlertArgs, opts ...pulumi.ResourceOption) (*Alert, error)

NewAlert registers a new resource with the given unique name, arguments, and options.

func (*Alert) ElementType added in v0.23.0

func (*Alert) ElementType() reflect.Type

func (*Alert) ToAlertOutput added in v0.23.0

func (i *Alert) ToAlertOutput() AlertOutput

func (*Alert) ToAlertOutputWithContext added in v0.23.0

func (i *Alert) ToAlertOutputWithContext(ctx context.Context) AlertOutput

type AlertAlertSchedule added in v0.23.0

type AlertAlertSchedule struct {
	// Specifies the cron expression for the alert. The cron expression must be in the following format: "minute hour day-of-month month day-of-week". The following values are supported: minute: 0-59 hour: 0-23 day-of-month: 1-31 month: 1-12 day-of-week: 0-6 (0 is Sunday)
	Cron *AlertAlertScheduleCron `pulumi:"cron"`
	// Specifies the interval in minutes for the alert schedule. The interval must be greater than 0 and less than 1440 (24 hours).
	Interval *int `pulumi:"interval"`
}

type AlertAlertScheduleArgs added in v0.23.0

type AlertAlertScheduleArgs struct {
	// Specifies the cron expression for the alert. The cron expression must be in the following format: "minute hour day-of-month month day-of-week". The following values are supported: minute: 0-59 hour: 0-23 day-of-month: 1-31 month: 1-12 day-of-week: 0-6 (0 is Sunday)
	Cron AlertAlertScheduleCronPtrInput `pulumi:"cron"`
	// Specifies the interval in minutes for the alert schedule. The interval must be greater than 0 and less than 1440 (24 hours).
	Interval pulumi.IntPtrInput `pulumi:"interval"`
}

func (AlertAlertScheduleArgs) ElementType added in v0.23.0

func (AlertAlertScheduleArgs) ElementType() reflect.Type

func (AlertAlertScheduleArgs) ToAlertAlertScheduleOutput added in v0.23.0

func (i AlertAlertScheduleArgs) ToAlertAlertScheduleOutput() AlertAlertScheduleOutput

func (AlertAlertScheduleArgs) ToAlertAlertScheduleOutputWithContext added in v0.23.0

func (i AlertAlertScheduleArgs) ToAlertAlertScheduleOutputWithContext(ctx context.Context) AlertAlertScheduleOutput

func (AlertAlertScheduleArgs) ToAlertAlertSchedulePtrOutput added in v0.23.0

func (i AlertAlertScheduleArgs) ToAlertAlertSchedulePtrOutput() AlertAlertSchedulePtrOutput

func (AlertAlertScheduleArgs) ToAlertAlertSchedulePtrOutputWithContext added in v0.23.0

func (i AlertAlertScheduleArgs) ToAlertAlertSchedulePtrOutputWithContext(ctx context.Context) AlertAlertSchedulePtrOutput

type AlertAlertScheduleCron added in v0.23.0

type AlertAlertScheduleCron struct {
	Expression string `pulumi:"expression"`
	TimeZone   string `pulumi:"timeZone"`
}

type AlertAlertScheduleCronArgs added in v0.23.0

type AlertAlertScheduleCronArgs struct {
	Expression pulumi.StringInput `pulumi:"expression"`
	TimeZone   pulumi.StringInput `pulumi:"timeZone"`
}

func (AlertAlertScheduleCronArgs) ElementType added in v0.23.0

func (AlertAlertScheduleCronArgs) ElementType() reflect.Type

func (AlertAlertScheduleCronArgs) ToAlertAlertScheduleCronOutput added in v0.23.0

func (i AlertAlertScheduleCronArgs) ToAlertAlertScheduleCronOutput() AlertAlertScheduleCronOutput

func (AlertAlertScheduleCronArgs) ToAlertAlertScheduleCronOutputWithContext added in v0.23.0

func (i AlertAlertScheduleCronArgs) ToAlertAlertScheduleCronOutputWithContext(ctx context.Context) AlertAlertScheduleCronOutput

func (AlertAlertScheduleCronArgs) ToAlertAlertScheduleCronPtrOutput added in v0.23.0

func (i AlertAlertScheduleCronArgs) ToAlertAlertScheduleCronPtrOutput() AlertAlertScheduleCronPtrOutput

func (AlertAlertScheduleCronArgs) ToAlertAlertScheduleCronPtrOutputWithContext added in v0.23.0

func (i AlertAlertScheduleCronArgs) ToAlertAlertScheduleCronPtrOutputWithContext(ctx context.Context) AlertAlertScheduleCronPtrOutput

type AlertAlertScheduleCronInput added in v0.23.0

type AlertAlertScheduleCronInput interface {
	pulumi.Input

	ToAlertAlertScheduleCronOutput() AlertAlertScheduleCronOutput
	ToAlertAlertScheduleCronOutputWithContext(context.Context) AlertAlertScheduleCronOutput
}

AlertAlertScheduleCronInput is an input type that accepts AlertAlertScheduleCronArgs and AlertAlertScheduleCronOutput values. You can construct a concrete instance of `AlertAlertScheduleCronInput` via:

AlertAlertScheduleCronArgs{...}

type AlertAlertScheduleCronOutput added in v0.23.0

type AlertAlertScheduleCronOutput struct{ *pulumi.OutputState }

func (AlertAlertScheduleCronOutput) ElementType added in v0.23.0

func (AlertAlertScheduleCronOutput) Expression added in v0.23.0

func (AlertAlertScheduleCronOutput) TimeZone added in v0.23.0

func (AlertAlertScheduleCronOutput) ToAlertAlertScheduleCronOutput added in v0.23.0

func (o AlertAlertScheduleCronOutput) ToAlertAlertScheduleCronOutput() AlertAlertScheduleCronOutput

func (AlertAlertScheduleCronOutput) ToAlertAlertScheduleCronOutputWithContext added in v0.23.0

func (o AlertAlertScheduleCronOutput) ToAlertAlertScheduleCronOutputWithContext(ctx context.Context) AlertAlertScheduleCronOutput

func (AlertAlertScheduleCronOutput) ToAlertAlertScheduleCronPtrOutput added in v0.23.0

func (o AlertAlertScheduleCronOutput) ToAlertAlertScheduleCronPtrOutput() AlertAlertScheduleCronPtrOutput

func (AlertAlertScheduleCronOutput) ToAlertAlertScheduleCronPtrOutputWithContext added in v0.23.0

func (o AlertAlertScheduleCronOutput) ToAlertAlertScheduleCronPtrOutputWithContext(ctx context.Context) AlertAlertScheduleCronPtrOutput

type AlertAlertScheduleCronPtrInput added in v0.23.0

type AlertAlertScheduleCronPtrInput interface {
	pulumi.Input

	ToAlertAlertScheduleCronPtrOutput() AlertAlertScheduleCronPtrOutput
	ToAlertAlertScheduleCronPtrOutputWithContext(context.Context) AlertAlertScheduleCronPtrOutput
}

AlertAlertScheduleCronPtrInput is an input type that accepts AlertAlertScheduleCronArgs, AlertAlertScheduleCronPtr and AlertAlertScheduleCronPtrOutput values. You can construct a concrete instance of `AlertAlertScheduleCronPtrInput` via:

        AlertAlertScheduleCronArgs{...}

or:

        nil

func AlertAlertScheduleCronPtr added in v0.23.0

func AlertAlertScheduleCronPtr(v *AlertAlertScheduleCronArgs) AlertAlertScheduleCronPtrInput

type AlertAlertScheduleCronPtrOutput added in v0.23.0

type AlertAlertScheduleCronPtrOutput struct{ *pulumi.OutputState }

func (AlertAlertScheduleCronPtrOutput) Elem added in v0.23.0

func (AlertAlertScheduleCronPtrOutput) ElementType added in v0.23.0

func (AlertAlertScheduleCronPtrOutput) Expression added in v0.23.0

func (AlertAlertScheduleCronPtrOutput) TimeZone added in v0.23.0

func (AlertAlertScheduleCronPtrOutput) ToAlertAlertScheduleCronPtrOutput added in v0.23.0

func (o AlertAlertScheduleCronPtrOutput) ToAlertAlertScheduleCronPtrOutput() AlertAlertScheduleCronPtrOutput

func (AlertAlertScheduleCronPtrOutput) ToAlertAlertScheduleCronPtrOutputWithContext added in v0.23.0

func (o AlertAlertScheduleCronPtrOutput) ToAlertAlertScheduleCronPtrOutputWithContext(ctx context.Context) AlertAlertScheduleCronPtrOutput

type AlertAlertScheduleInput added in v0.23.0

type AlertAlertScheduleInput interface {
	pulumi.Input

	ToAlertAlertScheduleOutput() AlertAlertScheduleOutput
	ToAlertAlertScheduleOutputWithContext(context.Context) AlertAlertScheduleOutput
}

AlertAlertScheduleInput is an input type that accepts AlertAlertScheduleArgs and AlertAlertScheduleOutput values. You can construct a concrete instance of `AlertAlertScheduleInput` via:

AlertAlertScheduleArgs{...}

type AlertAlertScheduleOutput added in v0.23.0

type AlertAlertScheduleOutput struct{ *pulumi.OutputState }

func (AlertAlertScheduleOutput) Cron added in v0.23.0

Specifies the cron expression for the alert. The cron expression must be in the following format: "minute hour day-of-month month day-of-week". The following values are supported: minute: 0-59 hour: 0-23 day-of-month: 1-31 month: 1-12 day-of-week: 0-6 (0 is Sunday)

func (AlertAlertScheduleOutput) ElementType added in v0.23.0

func (AlertAlertScheduleOutput) ElementType() reflect.Type

func (AlertAlertScheduleOutput) Interval added in v0.23.0

Specifies the interval in minutes for the alert schedule. The interval must be greater than 0 and less than 1440 (24 hours).

func (AlertAlertScheduleOutput) ToAlertAlertScheduleOutput added in v0.23.0

func (o AlertAlertScheduleOutput) ToAlertAlertScheduleOutput() AlertAlertScheduleOutput

func (AlertAlertScheduleOutput) ToAlertAlertScheduleOutputWithContext added in v0.23.0

func (o AlertAlertScheduleOutput) ToAlertAlertScheduleOutputWithContext(ctx context.Context) AlertAlertScheduleOutput

func (AlertAlertScheduleOutput) ToAlertAlertSchedulePtrOutput added in v0.23.0

func (o AlertAlertScheduleOutput) ToAlertAlertSchedulePtrOutput() AlertAlertSchedulePtrOutput

func (AlertAlertScheduleOutput) ToAlertAlertSchedulePtrOutputWithContext added in v0.23.0

func (o AlertAlertScheduleOutput) ToAlertAlertSchedulePtrOutputWithContext(ctx context.Context) AlertAlertSchedulePtrOutput

type AlertAlertSchedulePtrInput added in v0.23.0

type AlertAlertSchedulePtrInput interface {
	pulumi.Input

	ToAlertAlertSchedulePtrOutput() AlertAlertSchedulePtrOutput
	ToAlertAlertSchedulePtrOutputWithContext(context.Context) AlertAlertSchedulePtrOutput
}

AlertAlertSchedulePtrInput is an input type that accepts AlertAlertScheduleArgs, AlertAlertSchedulePtr and AlertAlertSchedulePtrOutput values. You can construct a concrete instance of `AlertAlertSchedulePtrInput` via:

        AlertAlertScheduleArgs{...}

or:

        nil

func AlertAlertSchedulePtr added in v0.23.0

func AlertAlertSchedulePtr(v *AlertAlertScheduleArgs) AlertAlertSchedulePtrInput

type AlertAlertSchedulePtrOutput added in v0.23.0

type AlertAlertSchedulePtrOutput struct{ *pulumi.OutputState }

func (AlertAlertSchedulePtrOutput) Cron added in v0.23.0

Specifies the cron expression for the alert. The cron expression must be in the following format: "minute hour day-of-month month day-of-week". The following values are supported: minute: 0-59 hour: 0-23 day-of-month: 1-31 month: 1-12 day-of-week: 0-6 (0 is Sunday)

func (AlertAlertSchedulePtrOutput) Elem added in v0.23.0

func (AlertAlertSchedulePtrOutput) ElementType added in v0.23.0

func (AlertAlertSchedulePtrOutput) Interval added in v0.23.0

Specifies the interval in minutes for the alert schedule. The interval must be greater than 0 and less than 1440 (24 hours).

func (AlertAlertSchedulePtrOutput) ToAlertAlertSchedulePtrOutput added in v0.23.0

func (o AlertAlertSchedulePtrOutput) ToAlertAlertSchedulePtrOutput() AlertAlertSchedulePtrOutput

func (AlertAlertSchedulePtrOutput) ToAlertAlertSchedulePtrOutputWithContext added in v0.23.0

func (o AlertAlertSchedulePtrOutput) ToAlertAlertSchedulePtrOutputWithContext(ctx context.Context) AlertAlertSchedulePtrOutput

type AlertArgs added in v0.23.0

type AlertArgs struct {
	// The SQL statement that should be executed if the condition returns one or more rows.
	Action pulumi.StringInput
	// The schedule for periodically running an alert.
	AlertSchedule AlertAlertSchedulePtrInput
	// Specifies a comment for the alert.
	Comment pulumi.StringPtrInput
	// The SQL statement that represents the condition for the alert. (SELECT, SHOW, CALL)
	Condition pulumi.StringInput
	// The database in which to create the alert.
	Database pulumi.StringInput
	// Specifies if an alert should be 'started' (enabled) after creation or should remain 'suspended' (default).
	Enabled pulumi.BoolPtrInput
	// Specifies the identifier for the alert; must be unique for the database and schema in which the alert is created.
	Name pulumi.StringPtrInput
	// The schema in which to create the alert.
	Schema pulumi.StringInput
	// The warehouse the alert will use.
	Warehouse pulumi.StringInput
}

The set of arguments for constructing a Alert resource.

func (AlertArgs) ElementType added in v0.23.0

func (AlertArgs) ElementType() reflect.Type

type AlertArray added in v0.23.0

type AlertArray []AlertInput

func (AlertArray) ElementType added in v0.23.0

func (AlertArray) ElementType() reflect.Type

func (AlertArray) ToAlertArrayOutput added in v0.23.0

func (i AlertArray) ToAlertArrayOutput() AlertArrayOutput

func (AlertArray) ToAlertArrayOutputWithContext added in v0.23.0

func (i AlertArray) ToAlertArrayOutputWithContext(ctx context.Context) AlertArrayOutput

type AlertArrayInput added in v0.23.0

type AlertArrayInput interface {
	pulumi.Input

	ToAlertArrayOutput() AlertArrayOutput
	ToAlertArrayOutputWithContext(context.Context) AlertArrayOutput
}

AlertArrayInput is an input type that accepts AlertArray and AlertArrayOutput values. You can construct a concrete instance of `AlertArrayInput` via:

AlertArray{ AlertArgs{...} }

type AlertArrayOutput added in v0.23.0

type AlertArrayOutput struct{ *pulumi.OutputState }

func (AlertArrayOutput) ElementType added in v0.23.0

func (AlertArrayOutput) ElementType() reflect.Type

func (AlertArrayOutput) Index added in v0.23.0

func (AlertArrayOutput) ToAlertArrayOutput added in v0.23.0

func (o AlertArrayOutput) ToAlertArrayOutput() AlertArrayOutput

func (AlertArrayOutput) ToAlertArrayOutputWithContext added in v0.23.0

func (o AlertArrayOutput) ToAlertArrayOutputWithContext(ctx context.Context) AlertArrayOutput

type AlertInput added in v0.23.0

type AlertInput interface {
	pulumi.Input

	ToAlertOutput() AlertOutput
	ToAlertOutputWithContext(ctx context.Context) AlertOutput
}

type AlertMap added in v0.23.0

type AlertMap map[string]AlertInput

func (AlertMap) ElementType added in v0.23.0

func (AlertMap) ElementType() reflect.Type

func (AlertMap) ToAlertMapOutput added in v0.23.0

func (i AlertMap) ToAlertMapOutput() AlertMapOutput

func (AlertMap) ToAlertMapOutputWithContext added in v0.23.0

func (i AlertMap) ToAlertMapOutputWithContext(ctx context.Context) AlertMapOutput

type AlertMapInput added in v0.23.0

type AlertMapInput interface {
	pulumi.Input

	ToAlertMapOutput() AlertMapOutput
	ToAlertMapOutputWithContext(context.Context) AlertMapOutput
}

AlertMapInput is an input type that accepts AlertMap and AlertMapOutput values. You can construct a concrete instance of `AlertMapInput` via:

AlertMap{ "key": AlertArgs{...} }

type AlertMapOutput added in v0.23.0

type AlertMapOutput struct{ *pulumi.OutputState }

func (AlertMapOutput) ElementType added in v0.23.0

func (AlertMapOutput) ElementType() reflect.Type

func (AlertMapOutput) MapIndex added in v0.23.0

func (AlertMapOutput) ToAlertMapOutput added in v0.23.0

func (o AlertMapOutput) ToAlertMapOutput() AlertMapOutput

func (AlertMapOutput) ToAlertMapOutputWithContext added in v0.23.0

func (o AlertMapOutput) ToAlertMapOutputWithContext(ctx context.Context) AlertMapOutput

type AlertOutput added in v0.23.0

type AlertOutput struct{ *pulumi.OutputState }

func (AlertOutput) Action added in v0.23.0

func (o AlertOutput) Action() pulumi.StringOutput

The SQL statement that should be executed if the condition returns one or more rows.

func (AlertOutput) AlertSchedule added in v0.23.0

func (o AlertOutput) AlertSchedule() AlertAlertSchedulePtrOutput

The schedule for periodically running an alert.

func (AlertOutput) Comment added in v0.23.0

func (o AlertOutput) Comment() pulumi.StringPtrOutput

Specifies a comment for the alert.

func (AlertOutput) Condition added in v0.23.0

func (o AlertOutput) Condition() pulumi.StringOutput

The SQL statement that represents the condition for the alert. (SELECT, SHOW, CALL)

func (AlertOutput) Database added in v0.23.0

func (o AlertOutput) Database() pulumi.StringOutput

The database in which to create the alert.

func (AlertOutput) ElementType added in v0.23.0

func (AlertOutput) ElementType() reflect.Type

func (AlertOutput) Enabled added in v0.23.0

func (o AlertOutput) Enabled() pulumi.BoolPtrOutput

Specifies if an alert should be 'started' (enabled) after creation or should remain 'suspended' (default).

func (AlertOutput) Name added in v0.23.0

func (o AlertOutput) Name() pulumi.StringOutput

Specifies the identifier for the alert; must be unique for the database and schema in which the alert is created.

func (AlertOutput) Schema added in v0.23.0

func (o AlertOutput) Schema() pulumi.StringOutput

The schema in which to create the alert.

func (AlertOutput) ToAlertOutput added in v0.23.0

func (o AlertOutput) ToAlertOutput() AlertOutput

func (AlertOutput) ToAlertOutputWithContext added in v0.23.0

func (o AlertOutput) ToAlertOutputWithContext(ctx context.Context) AlertOutput

func (AlertOutput) Warehouse added in v0.23.0

func (o AlertOutput) Warehouse() pulumi.StringOutput

The warehouse the alert will use.

type AlertState added in v0.23.0

type AlertState struct {
	// The SQL statement that should be executed if the condition returns one or more rows.
	Action pulumi.StringPtrInput
	// The schedule for periodically running an alert.
	AlertSchedule AlertAlertSchedulePtrInput
	// Specifies a comment for the alert.
	Comment pulumi.StringPtrInput
	// The SQL statement that represents the condition for the alert. (SELECT, SHOW, CALL)
	Condition pulumi.StringPtrInput
	// The database in which to create the alert.
	Database pulumi.StringPtrInput
	// Specifies if an alert should be 'started' (enabled) after creation or should remain 'suspended' (default).
	Enabled pulumi.BoolPtrInput
	// Specifies the identifier for the alert; must be unique for the database and schema in which the alert is created.
	Name pulumi.StringPtrInput
	// The schema in which to create the alert.
	Schema pulumi.StringPtrInput
	// The warehouse the alert will use.
	Warehouse pulumi.StringPtrInput
}

func (AlertState) ElementType added in v0.23.0

func (AlertState) ElementType() reflect.Type

type ApiIntegration

type ApiIntegration struct {
	pulumi.CustomResourceState

	// Explicitly limits external functions that use the integration to reference one or more HTTPS proxy service endpoints and resources within those proxies.
	ApiAllowedPrefixes pulumi.StringArrayOutput `pulumi:"apiAllowedPrefixes"`
	// The external ID that Snowflake will use when assuming the AWS role.
	ApiAwsExternalId pulumi.StringOutput `pulumi:"apiAwsExternalId"`
	// The Snowflake user that will attempt to assume the AWS role.
	ApiAwsIamUserArn pulumi.StringOutput `pulumi:"apiAwsIamUserArn"`
	// ARN of a cloud platform role.
	ApiAwsRoleArn pulumi.StringPtrOutput `pulumi:"apiAwsRoleArn"`
	// Lists the endpoints and resources in the HTTPS proxy service that are not allowed to be called from Snowflake.
	ApiBlockedPrefixes pulumi.StringArrayOutput `pulumi:"apiBlockedPrefixes"`
	// The service account used for communication with the Google API Gateway.
	ApiGcpServiceAccount pulumi.StringOutput `pulumi:"apiGcpServiceAccount"`
	// The API key (also called a “subscription key”).
	ApiKey pulumi.StringPtrOutput `pulumi:"apiKey"`
	// Specifies the HTTPS proxy service type.
	ApiProvider pulumi.StringOutput `pulumi:"apiProvider"`
	// The 'Application (client) id' of the Azure AD app for your remote service.
	AzureAdApplicationId    pulumi.StringPtrOutput `pulumi:"azureAdApplicationId"`
	AzureConsentUrl         pulumi.StringOutput    `pulumi:"azureConsentUrl"`
	AzureMultiTenantAppName pulumi.StringOutput    `pulumi:"azureMultiTenantAppName"`
	// Specifies the ID for your Office 365 tenant that all Azure API Management instances belong to.
	AzureTenantId pulumi.StringPtrOutput `pulumi:"azureTenantId"`
	Comment       pulumi.StringPtrOutput `pulumi:"comment"`
	// Date and time when the API integration was created.
	CreatedOn pulumi.StringOutput `pulumi:"createdOn"`
	// Specifies whether this API integration is enabled or disabled. If the API integration is disabled, any external function that relies on it will not work.
	Enabled pulumi.BoolPtrOutput `pulumi:"enabled"`
	// The audience claim when generating the JWT (JSON Web Token) to authenticate to the Google API Gateway.
	GoogleAudience pulumi.StringPtrOutput `pulumi:"googleAudience"`
	// Specifies the name of the API integration. This name follows the rules for Object Identifiers. The name should be unique among api integrations in your account.
	Name pulumi.StringOutput `pulumi:"name"`
}

## Example Usage

```go 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.NewApiIntegration(ctx, "aws", &snowflake.ApiIntegrationArgs{
			ApiAllowedPrefixes: pulumi.StringArray{
				pulumi.String("https://123456.execute-api.us-west-2.amazonaws.com/prod/"),
			},
			ApiAwsRoleArn: pulumi.String("arn:aws:iam::000000000001:/role/test"),
			ApiProvider:   pulumi.String("aws_api_gateway"),
			Enabled:       pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		_, err = snowflake.NewApiIntegration(ctx, "azure", &snowflake.ApiIntegrationArgs{
			ApiAllowedPrefixes: pulumi.StringArray{
				pulumi.String("https://apim-hello-world.azure-api.net/"),
			},
			ApiProvider:          pulumi.String("azure_api_management"),
			AzureAdApplicationId: pulumi.String("11111111-1111-1111-1111-111111111111"),
			AzureTenantId:        pulumi.String("00000000-0000-0000-0000-000000000000"),
			Enabled:              pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		_, err = snowflake.NewApiIntegration(ctx, "gcp", &snowflake.ApiIntegrationArgs{
			ApiAllowedPrefixes: pulumi.StringArray{
				pulumi.String("https://gateway-id-123456.uc.gateway.dev/"),
			},
			ApiProvider:    pulumi.String("google_api_gateway"),
			Enabled:        pulumi.Bool(true),
			GoogleAudience: pulumi.String("api-gateway-id-123456.apigateway.gcp-project.cloud.goog"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

```sh

$ pulumi import snowflake:index/apiIntegration:ApiIntegration example name

```

func GetApiIntegration

func GetApiIntegration(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ApiIntegrationState, opts ...pulumi.ResourceOption) (*ApiIntegration, error)

GetApiIntegration gets an existing ApiIntegration resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewApiIntegration

func NewApiIntegration(ctx *pulumi.Context,
	name string, args *ApiIntegrationArgs, opts ...pulumi.ResourceOption) (*ApiIntegration, error)

NewApiIntegration registers a new resource with the given unique name, arguments, and options.

func (*ApiIntegration) ElementType

func (*ApiIntegration) ElementType() reflect.Type

func (*ApiIntegration) ToApiIntegrationOutput

func (i *ApiIntegration) ToApiIntegrationOutput() ApiIntegrationOutput

func (*ApiIntegration) ToApiIntegrationOutputWithContext

func (i *ApiIntegration) ToApiIntegrationOutputWithContext(ctx context.Context) ApiIntegrationOutput

type ApiIntegrationArgs

type ApiIntegrationArgs struct {
	// Explicitly limits external functions that use the integration to reference one or more HTTPS proxy service endpoints and resources within those proxies.
	ApiAllowedPrefixes pulumi.StringArrayInput
	// ARN of a cloud platform role.
	ApiAwsRoleArn pulumi.StringPtrInput
	// Lists the endpoints and resources in the HTTPS proxy service that are not allowed to be called from Snowflake.
	ApiBlockedPrefixes pulumi.StringArrayInput
	// The service account used for communication with the Google API Gateway.
	ApiGcpServiceAccount pulumi.StringPtrInput
	// The API key (also called a “subscription key”).
	ApiKey pulumi.StringPtrInput
	// Specifies the HTTPS proxy service type.
	ApiProvider pulumi.StringInput
	// The 'Application (client) id' of the Azure AD app for your remote service.
	AzureAdApplicationId pulumi.StringPtrInput
	// Specifies the ID for your Office 365 tenant that all Azure API Management instances belong to.
	AzureTenantId pulumi.StringPtrInput
	Comment       pulumi.StringPtrInput
	// Specifies whether this API integration is enabled or disabled. If the API integration is disabled, any external function that relies on it will not work.
	Enabled pulumi.BoolPtrInput
	// The audience claim when generating the JWT (JSON Web Token) to authenticate to the Google API Gateway.
	GoogleAudience pulumi.StringPtrInput
	// Specifies the name of the API integration. This name follows the rules for Object Identifiers. The name should be unique among api integrations in your account.
	Name pulumi.StringPtrInput
}

The set of arguments for constructing a ApiIntegration resource.

func (ApiIntegrationArgs) ElementType

func (ApiIntegrationArgs) ElementType() reflect.Type

type ApiIntegrationArray

type ApiIntegrationArray []ApiIntegrationInput

func (ApiIntegrationArray) ElementType

func (ApiIntegrationArray) ElementType() reflect.Type

func (ApiIntegrationArray) ToApiIntegrationArrayOutput

func (i ApiIntegrationArray) ToApiIntegrationArrayOutput() ApiIntegrationArrayOutput

func (ApiIntegrationArray) ToApiIntegrationArrayOutputWithContext

func (i ApiIntegrationArray) ToApiIntegrationArrayOutputWithContext(ctx context.Context) ApiIntegrationArrayOutput

type ApiIntegrationArrayInput

type ApiIntegrationArrayInput interface {
	pulumi.Input

	ToApiIntegrationArrayOutput() ApiIntegrationArrayOutput
	ToApiIntegrationArrayOutputWithContext(context.Context) ApiIntegrationArrayOutput
}

ApiIntegrationArrayInput is an input type that accepts ApiIntegrationArray and ApiIntegrationArrayOutput values. You can construct a concrete instance of `ApiIntegrationArrayInput` via:

ApiIntegrationArray{ ApiIntegrationArgs{...} }

type ApiIntegrationArrayOutput

type ApiIntegrationArrayOutput struct{ *pulumi.OutputState }

func (ApiIntegrationArrayOutput) ElementType

func (ApiIntegrationArrayOutput) ElementType() reflect.Type

func (ApiIntegrationArrayOutput) Index

func (ApiIntegrationArrayOutput) ToApiIntegrationArrayOutput

func (o ApiIntegrationArrayOutput) ToApiIntegrationArrayOutput() ApiIntegrationArrayOutput

func (ApiIntegrationArrayOutput) ToApiIntegrationArrayOutputWithContext

func (o ApiIntegrationArrayOutput) ToApiIntegrationArrayOutputWithContext(ctx context.Context) ApiIntegrationArrayOutput

type ApiIntegrationInput

type ApiIntegrationInput interface {
	pulumi.Input

	ToApiIntegrationOutput() ApiIntegrationOutput
	ToApiIntegrationOutputWithContext(ctx context.Context) ApiIntegrationOutput
}

type ApiIntegrationMap

type ApiIntegrationMap map[string]ApiIntegrationInput

func (ApiIntegrationMap) ElementType

func (ApiIntegrationMap) ElementType() reflect.Type

func (ApiIntegrationMap) ToApiIntegrationMapOutput

func (i ApiIntegrationMap) ToApiIntegrationMapOutput() ApiIntegrationMapOutput

func (ApiIntegrationMap) ToApiIntegrationMapOutputWithContext

func (i ApiIntegrationMap) ToApiIntegrationMapOutputWithContext(ctx context.Context) ApiIntegrationMapOutput

type ApiIntegrationMapInput

type ApiIntegrationMapInput interface {
	pulumi.Input

	ToApiIntegrationMapOutput() ApiIntegrationMapOutput
	ToApiIntegrationMapOutputWithContext(context.Context) ApiIntegrationMapOutput
}

ApiIntegrationMapInput is an input type that accepts ApiIntegrationMap and ApiIntegrationMapOutput values. You can construct a concrete instance of `ApiIntegrationMapInput` via:

ApiIntegrationMap{ "key": ApiIntegrationArgs{...} }

type ApiIntegrationMapOutput

type ApiIntegrationMapOutput struct{ *pulumi.OutputState }

func (ApiIntegrationMapOutput) ElementType

func (ApiIntegrationMapOutput) ElementType() reflect.Type

func (ApiIntegrationMapOutput) MapIndex

func (ApiIntegrationMapOutput) ToApiIntegrationMapOutput

func (o ApiIntegrationMapOutput) ToApiIntegrationMapOutput() ApiIntegrationMapOutput

func (ApiIntegrationMapOutput) ToApiIntegrationMapOutputWithContext

func (o ApiIntegrationMapOutput) ToApiIntegrationMapOutputWithContext(ctx context.Context) ApiIntegrationMapOutput

type ApiIntegrationOutput

type ApiIntegrationOutput struct{ *pulumi.OutputState }

func (ApiIntegrationOutput) ApiAllowedPrefixes added in v0.9.0

func (o ApiIntegrationOutput) ApiAllowedPrefixes() pulumi.StringArrayOutput

Explicitly limits external functions that use the integration to reference one or more HTTPS proxy service endpoints and resources within those proxies.

func (ApiIntegrationOutput) ApiAwsExternalId added in v0.9.0

func (o ApiIntegrationOutput) ApiAwsExternalId() pulumi.StringOutput

The external ID that Snowflake will use when assuming the AWS role.

func (ApiIntegrationOutput) ApiAwsIamUserArn added in v0.9.0

func (o ApiIntegrationOutput) ApiAwsIamUserArn() pulumi.StringOutput

The Snowflake user that will attempt to assume the AWS role.

func (ApiIntegrationOutput) ApiAwsRoleArn added in v0.9.0

func (o ApiIntegrationOutput) ApiAwsRoleArn() pulumi.StringPtrOutput

ARN of a cloud platform role.

func (ApiIntegrationOutput) ApiBlockedPrefixes added in v0.9.0

func (o ApiIntegrationOutput) ApiBlockedPrefixes() pulumi.StringArrayOutput

Lists the endpoints and resources in the HTTPS proxy service that are not allowed to be called from Snowflake.

func (ApiIntegrationOutput) ApiGcpServiceAccount added in v0.26.0

func (o ApiIntegrationOutput) ApiGcpServiceAccount() pulumi.StringOutput

The service account used for communication with the Google API Gateway.

func (ApiIntegrationOutput) ApiKey added in v0.15.0

The API key (also called a “subscription key”).

func (ApiIntegrationOutput) ApiProvider added in v0.9.0

func (o ApiIntegrationOutput) ApiProvider() pulumi.StringOutput

Specifies the HTTPS proxy service type.

func (ApiIntegrationOutput) AzureAdApplicationId added in v0.9.0

func (o ApiIntegrationOutput) AzureAdApplicationId() pulumi.StringPtrOutput

The 'Application (client) id' of the Azure AD app for your remote service.

func (ApiIntegrationOutput) AzureConsentUrl added in v0.9.0

func (o ApiIntegrationOutput) AzureConsentUrl() pulumi.StringOutput

func (ApiIntegrationOutput) AzureMultiTenantAppName added in v0.9.0

func (o ApiIntegrationOutput) AzureMultiTenantAppName() pulumi.StringOutput

func (ApiIntegrationOutput) AzureTenantId added in v0.9.0

func (o ApiIntegrationOutput) AzureTenantId() pulumi.StringPtrOutput

Specifies the ID for your Office 365 tenant that all Azure API Management instances belong to.

func (ApiIntegrationOutput) Comment added in v0.18.0

func (ApiIntegrationOutput) CreatedOn added in v0.9.0

Date and time when the API integration was created.

func (ApiIntegrationOutput) ElementType

func (ApiIntegrationOutput) ElementType() reflect.Type

func (ApiIntegrationOutput) Enabled added in v0.9.0

Specifies whether this API integration is enabled or disabled. If the API integration is disabled, any external function that relies on it will not work.

func (ApiIntegrationOutput) GoogleAudience added in v0.18.0

func (o ApiIntegrationOutput) GoogleAudience() pulumi.StringPtrOutput

The audience claim when generating the JWT (JSON Web Token) to authenticate to the Google API Gateway.

func (ApiIntegrationOutput) Name added in v0.9.0

Specifies the name of the API integration. This name follows the rules for Object Identifiers. The name should be unique among api integrations in your account.

func (ApiIntegrationOutput) ToApiIntegrationOutput

func (o ApiIntegrationOutput) ToApiIntegrationOutput() ApiIntegrationOutput

func (ApiIntegrationOutput) ToApiIntegrationOutputWithContext

func (o ApiIntegrationOutput) ToApiIntegrationOutputWithContext(ctx context.Context) ApiIntegrationOutput

type ApiIntegrationState

type ApiIntegrationState struct {
	// Explicitly limits external functions that use the integration to reference one or more HTTPS proxy service endpoints and resources within those proxies.
	ApiAllowedPrefixes pulumi.StringArrayInput
	// The external ID that Snowflake will use when assuming the AWS role.
	ApiAwsExternalId pulumi.StringPtrInput
	// The Snowflake user that will attempt to assume the AWS role.
	ApiAwsIamUserArn pulumi.StringPtrInput
	// ARN of a cloud platform role.
	ApiAwsRoleArn pulumi.StringPtrInput
	// Lists the endpoints and resources in the HTTPS proxy service that are not allowed to be called from Snowflake.
	ApiBlockedPrefixes pulumi.StringArrayInput
	// The service account used for communication with the Google API Gateway.
	ApiGcpServiceAccount pulumi.StringPtrInput
	// The API key (also called a “subscription key”).
	ApiKey pulumi.StringPtrInput
	// Specifies the HTTPS proxy service type.
	ApiProvider pulumi.StringPtrInput
	// The 'Application (client) id' of the Azure AD app for your remote service.
	AzureAdApplicationId    pulumi.StringPtrInput
	AzureConsentUrl         pulumi.StringPtrInput
	AzureMultiTenantAppName pulumi.StringPtrInput
	// Specifies the ID for your Office 365 tenant that all Azure API Management instances belong to.
	AzureTenantId pulumi.StringPtrInput
	Comment       pulumi.StringPtrInput
	// Date and time when the API integration was created.
	CreatedOn pulumi.StringPtrInput
	// Specifies whether this API integration is enabled or disabled. If the API integration is disabled, any external function that relies on it will not work.
	Enabled pulumi.BoolPtrInput
	// The audience claim when generating the JWT (JSON Web Token) to authenticate to the Google API Gateway.
	GoogleAudience pulumi.StringPtrInput
	// Specifies the name of the API integration. This name follows the rules for Object Identifiers. The name should be unique among api integrations in your account.
	Name pulumi.StringPtrInput
}

func (ApiIntegrationState) ElementType

func (ApiIntegrationState) ElementType() reflect.Type

type Database

type Database struct {
	pulumi.CustomResourceState

	Comment pulumi.StringPtrOutput `pulumi:"comment"`
	// Number of days for which Snowflake retains historical data for performing Time Travel actions (SELECT, CLONE, UNDROP) on the object. A value of 0 effectively disables Time Travel for the specified database, schema, or table. For more information, see Understanding & Using Time Travel.
	DataRetentionTimeInDays pulumi.IntPtrOutput `pulumi:"dataRetentionTimeInDays"`
	// Specify a database to create a clone from.
	FromDatabase pulumi.StringPtrOutput `pulumi:"fromDatabase"`
	// Specify a fully-qualified path to a database to create a replica from. A fully qualified path follows the format of "\n\n"."\n\n"."\n\n". An example would be: "myorg1"."account1"."db1"
	FromReplica pulumi.StringPtrOutput `pulumi:"fromReplica"`
	// Specify a provider and a share in this map to create a database from a share.
	FromShare pulumi.StringMapOutput `pulumi:"fromShare"`
	// Specifies a database as transient. Transient databases do not have a Fail-safe period so they do not incur additional storage costs once they leave Time Travel; however, this means they are also not protected by Fail-safe in the event of a data loss.
	IsTransient pulumi.BoolPtrOutput `pulumi:"isTransient"`
	Name        pulumi.StringOutput  `pulumi:"name"`
	// When set, specifies the configurations for database replication.
	ReplicationConfiguration DatabaseReplicationConfigurationPtrOutput `pulumi:"replicationConfiguration"`
}

## Example Usage

```go 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.NewDatabase(ctx, "simple", &snowflake.DatabaseArgs{
			Comment:                 pulumi.String("test comment"),
			DataRetentionTimeInDays: pulumi.Int(3),
		})
		if err != nil {
			return err
		}
		_, err = snowflake.NewDatabase(ctx, "withReplication", &snowflake.DatabaseArgs{
			Comment: pulumi.String("test comment 2"),
			ReplicationConfiguration: &snowflake.DatabaseReplicationConfigurationArgs{
				Accounts: pulumi.StringArray{
					pulumi.String("test_account1"),
					pulumi.String("test_account_2"),
				},
				IgnoreEditionCheck: pulumi.Bool(true),
			},
		})
		if err != nil {
			return err
		}
		_, err = snowflake.NewDatabase(ctx, "fromReplica", &snowflake.DatabaseArgs{
			Comment:                 pulumi.String("test comment"),
			DataRetentionTimeInDays: pulumi.Int(3),
			FromReplica:             pulumi.String("org1\".\"account1\".\"primary_db_name"),
		})
		if err != nil {
			return err
		}
		_, err = snowflake.NewDatabase(ctx, "fromShare", &snowflake.DatabaseArgs{
			Comment: pulumi.String("test comment"),
			FromShare: pulumi.StringMap{
				"provider": pulumi.String("org1.account1"),
				"share":    pulumi.String("share1"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

```sh

$ pulumi import snowflake:index/database:Database example name

```

func GetDatabase

func GetDatabase(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *DatabaseState, opts ...pulumi.ResourceOption) (*Database, error)

GetDatabase gets an existing Database resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewDatabase

func NewDatabase(ctx *pulumi.Context,
	name string, args *DatabaseArgs, opts ...pulumi.ResourceOption) (*Database, error)

NewDatabase registers a new resource with the given unique name, arguments, and options.

func (*Database) ElementType

func (*Database) ElementType() reflect.Type

func (*Database) ToDatabaseOutput

func (i *Database) ToDatabaseOutput() DatabaseOutput

func (*Database) ToDatabaseOutputWithContext

func (i *Database) ToDatabaseOutputWithContext(ctx context.Context) DatabaseOutput

type DatabaseArgs

type DatabaseArgs struct {
	Comment pulumi.StringPtrInput
	// Number of days for which Snowflake retains historical data for performing Time Travel actions (SELECT, CLONE, UNDROP) on the object. A value of 0 effectively disables Time Travel for the specified database, schema, or table. For more information, see Understanding & Using Time Travel.
	DataRetentionTimeInDays pulumi.IntPtrInput
	// Specify a database to create a clone from.
	FromDatabase pulumi.StringPtrInput
	// Specify a fully-qualified path to a database to create a replica from. A fully qualified path follows the format of "\n\n"."\n\n"."\n\n". An example would be: "myorg1"."account1"."db1"
	FromReplica pulumi.StringPtrInput
	// Specify a provider and a share in this map to create a database from a share.
	FromShare pulumi.StringMapInput
	// Specifies a database as transient. Transient databases do not have a Fail-safe period so they do not incur additional storage costs once they leave Time Travel; however, this means they are also not protected by Fail-safe in the event of a data loss.
	IsTransient pulumi.BoolPtrInput
	Name        pulumi.StringPtrInput
	// When set, specifies the configurations for database replication.
	ReplicationConfiguration DatabaseReplicationConfigurationPtrInput
}

The set of arguments for constructing a Database resource.

func (DatabaseArgs) ElementType

func (DatabaseArgs) ElementType() reflect.Type

type DatabaseArray

type DatabaseArray []DatabaseInput

func (DatabaseArray) ElementType

func (DatabaseArray) ElementType() reflect.Type

func (DatabaseArray) ToDatabaseArrayOutput

func (i DatabaseArray) ToDatabaseArrayOutput() DatabaseArrayOutput

func (DatabaseArray) ToDatabaseArrayOutputWithContext

func (i DatabaseArray) ToDatabaseArrayOutputWithContext(ctx context.Context) DatabaseArrayOutput

type DatabaseArrayInput

type DatabaseArrayInput interface {
	pulumi.Input

	ToDatabaseArrayOutput() DatabaseArrayOutput
	ToDatabaseArrayOutputWithContext(context.Context) DatabaseArrayOutput
}

DatabaseArrayInput is an input type that accepts DatabaseArray and DatabaseArrayOutput values. You can construct a concrete instance of `DatabaseArrayInput` via:

DatabaseArray{ DatabaseArgs{...} }

type DatabaseArrayOutput

type DatabaseArrayOutput struct{ *pulumi.OutputState }

func (DatabaseArrayOutput) ElementType

func (DatabaseArrayOutput) ElementType() reflect.Type

func (DatabaseArrayOutput) Index

func (DatabaseArrayOutput) ToDatabaseArrayOutput

func (o DatabaseArrayOutput) ToDatabaseArrayOutput() DatabaseArrayOutput

func (DatabaseArrayOutput) ToDatabaseArrayOutputWithContext

func (o DatabaseArrayOutput) ToDatabaseArrayOutputWithContext(ctx context.Context) DatabaseArrayOutput

type DatabaseGrant

type DatabaseGrant struct {
	pulumi.CustomResourceState

	// The name of the database on which to grant privileges.
	DatabaseName pulumi.StringOutput `pulumi:"databaseName"`
	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrOutput `pulumi:"enableMultipleGrants"`
	// The privilege to grant on the database. To grant all privileges, use the value `ALL PRIVILEGES`.
	Privilege pulumi.StringPtrOutput `pulumi:"privilege"`
	// The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
	RevertOwnershipToRoleName pulumi.StringPtrOutput `pulumi:"revertOwnershipToRoleName"`
	// Grants privilege to these roles.
	Roles pulumi.StringArrayOutput `pulumi:"roles"`
	// Grants privilege to these shares.
	Shares pulumi.StringArrayOutput `pulumi:"shares"`
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrOutput `pulumi:"withGrantOption"`
}

## Example Usage

```go 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.NewDatabaseGrant(ctx, "grant", &snowflake.DatabaseGrantArgs{
			DatabaseName: pulumi.String("database"),
			Privilege:    pulumi.String("USAGE"),
			Roles: pulumi.StringArray{
				pulumi.String("role1"),
				pulumi.String("role2"),
			},
			Shares: pulumi.StringArray{
				pulumi.String("share1"),
				pulumi.String("share2"),
			},
			WithGrantOption: pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

format is database_name|privilege|with_grant_option|roles|shares

```sh

$ pulumi import snowflake:index/databaseGrant:DatabaseGrant example "MY_DATABASE|USAGE|false|role1,role2|share1,share2"

```

func GetDatabaseGrant

func GetDatabaseGrant(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *DatabaseGrantState, opts ...pulumi.ResourceOption) (*DatabaseGrant, error)

GetDatabaseGrant gets an existing DatabaseGrant resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewDatabaseGrant

func NewDatabaseGrant(ctx *pulumi.Context,
	name string, args *DatabaseGrantArgs, opts ...pulumi.ResourceOption) (*DatabaseGrant, error)

NewDatabaseGrant registers a new resource with the given unique name, arguments, and options.

func (*DatabaseGrant) ElementType

func (*DatabaseGrant) ElementType() reflect.Type

func (*DatabaseGrant) ToDatabaseGrantOutput

func (i *DatabaseGrant) ToDatabaseGrantOutput() DatabaseGrantOutput

func (*DatabaseGrant) ToDatabaseGrantOutputWithContext

func (i *DatabaseGrant) ToDatabaseGrantOutputWithContext(ctx context.Context) DatabaseGrantOutput

type DatabaseGrantArgs

type DatabaseGrantArgs struct {
	// The name of the database on which to grant privileges.
	DatabaseName pulumi.StringInput
	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrInput
	// The privilege to grant on the database. To grant all privileges, use the value `ALL PRIVILEGES`.
	Privilege pulumi.StringPtrInput
	// The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
	RevertOwnershipToRoleName pulumi.StringPtrInput
	// Grants privilege to these roles.
	Roles pulumi.StringArrayInput
	// Grants privilege to these shares.
	Shares pulumi.StringArrayInput
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrInput
}

The set of arguments for constructing a DatabaseGrant resource.

func (DatabaseGrantArgs) ElementType

func (DatabaseGrantArgs) ElementType() reflect.Type

type DatabaseGrantArray

type DatabaseGrantArray []DatabaseGrantInput

func (DatabaseGrantArray) ElementType

func (DatabaseGrantArray) ElementType() reflect.Type

func (DatabaseGrantArray) ToDatabaseGrantArrayOutput

func (i DatabaseGrantArray) ToDatabaseGrantArrayOutput() DatabaseGrantArrayOutput

func (DatabaseGrantArray) ToDatabaseGrantArrayOutputWithContext

func (i DatabaseGrantArray) ToDatabaseGrantArrayOutputWithContext(ctx context.Context) DatabaseGrantArrayOutput

type DatabaseGrantArrayInput

type DatabaseGrantArrayInput interface {
	pulumi.Input

	ToDatabaseGrantArrayOutput() DatabaseGrantArrayOutput
	ToDatabaseGrantArrayOutputWithContext(context.Context) DatabaseGrantArrayOutput
}

DatabaseGrantArrayInput is an input type that accepts DatabaseGrantArray and DatabaseGrantArrayOutput values. You can construct a concrete instance of `DatabaseGrantArrayInput` via:

DatabaseGrantArray{ DatabaseGrantArgs{...} }

type DatabaseGrantArrayOutput

type DatabaseGrantArrayOutput struct{ *pulumi.OutputState }

func (DatabaseGrantArrayOutput) ElementType

func (DatabaseGrantArrayOutput) ElementType() reflect.Type

func (DatabaseGrantArrayOutput) Index

func (DatabaseGrantArrayOutput) ToDatabaseGrantArrayOutput

func (o DatabaseGrantArrayOutput) ToDatabaseGrantArrayOutput() DatabaseGrantArrayOutput

func (DatabaseGrantArrayOutput) ToDatabaseGrantArrayOutputWithContext

func (o DatabaseGrantArrayOutput) ToDatabaseGrantArrayOutputWithContext(ctx context.Context) DatabaseGrantArrayOutput

type DatabaseGrantInput

type DatabaseGrantInput interface {
	pulumi.Input

	ToDatabaseGrantOutput() DatabaseGrantOutput
	ToDatabaseGrantOutputWithContext(ctx context.Context) DatabaseGrantOutput
}

type DatabaseGrantMap

type DatabaseGrantMap map[string]DatabaseGrantInput

func (DatabaseGrantMap) ElementType

func (DatabaseGrantMap) ElementType() reflect.Type

func (DatabaseGrantMap) ToDatabaseGrantMapOutput

func (i DatabaseGrantMap) ToDatabaseGrantMapOutput() DatabaseGrantMapOutput

func (DatabaseGrantMap) ToDatabaseGrantMapOutputWithContext

func (i DatabaseGrantMap) ToDatabaseGrantMapOutputWithContext(ctx context.Context) DatabaseGrantMapOutput

type DatabaseGrantMapInput

type DatabaseGrantMapInput interface {
	pulumi.Input

	ToDatabaseGrantMapOutput() DatabaseGrantMapOutput
	ToDatabaseGrantMapOutputWithContext(context.Context) DatabaseGrantMapOutput
}

DatabaseGrantMapInput is an input type that accepts DatabaseGrantMap and DatabaseGrantMapOutput values. You can construct a concrete instance of `DatabaseGrantMapInput` via:

DatabaseGrantMap{ "key": DatabaseGrantArgs{...} }

type DatabaseGrantMapOutput

type DatabaseGrantMapOutput struct{ *pulumi.OutputState }

func (DatabaseGrantMapOutput) ElementType

func (DatabaseGrantMapOutput) ElementType() reflect.Type

func (DatabaseGrantMapOutput) MapIndex

func (DatabaseGrantMapOutput) ToDatabaseGrantMapOutput

func (o DatabaseGrantMapOutput) ToDatabaseGrantMapOutput() DatabaseGrantMapOutput

func (DatabaseGrantMapOutput) ToDatabaseGrantMapOutputWithContext

func (o DatabaseGrantMapOutput) ToDatabaseGrantMapOutputWithContext(ctx context.Context) DatabaseGrantMapOutput

type DatabaseGrantOutput

type DatabaseGrantOutput struct{ *pulumi.OutputState }

func (DatabaseGrantOutput) DatabaseName added in v0.9.0

func (o DatabaseGrantOutput) DatabaseName() pulumi.StringOutput

The name of the database on which to grant privileges.

func (DatabaseGrantOutput) ElementType

func (DatabaseGrantOutput) ElementType() reflect.Type

func (DatabaseGrantOutput) EnableMultipleGrants added in v0.9.0

func (o DatabaseGrantOutput) EnableMultipleGrants() pulumi.BoolPtrOutput

When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke grants applied to roles and objects outside Terraform.

func (DatabaseGrantOutput) Privilege added in v0.9.0

The privilege to grant on the database. To grant all privileges, use the value `ALL PRIVILEGES`.

func (DatabaseGrantOutput) RevertOwnershipToRoleName added in v0.26.0

func (o DatabaseGrantOutput) RevertOwnershipToRoleName() pulumi.StringPtrOutput

The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`

func (DatabaseGrantOutput) Roles added in v0.9.0

Grants privilege to these roles.

func (DatabaseGrantOutput) Shares added in v0.9.0

Grants privilege to these shares.

func (DatabaseGrantOutput) ToDatabaseGrantOutput

func (o DatabaseGrantOutput) ToDatabaseGrantOutput() DatabaseGrantOutput

func (DatabaseGrantOutput) ToDatabaseGrantOutputWithContext

func (o DatabaseGrantOutput) ToDatabaseGrantOutputWithContext(ctx context.Context) DatabaseGrantOutput

func (DatabaseGrantOutput) WithGrantOption added in v0.9.0

func (o DatabaseGrantOutput) WithGrantOption() pulumi.BoolPtrOutput

When this is set to true, allows the recipient role to grant the privileges to other roles.

type DatabaseGrantState

type DatabaseGrantState struct {
	// The name of the database on which to grant privileges.
	DatabaseName pulumi.StringPtrInput
	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrInput
	// The privilege to grant on the database. To grant all privileges, use the value `ALL PRIVILEGES`.
	Privilege pulumi.StringPtrInput
	// The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
	RevertOwnershipToRoleName pulumi.StringPtrInput
	// Grants privilege to these roles.
	Roles pulumi.StringArrayInput
	// Grants privilege to these shares.
	Shares pulumi.StringArrayInput
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrInput
}

func (DatabaseGrantState) ElementType

func (DatabaseGrantState) ElementType() reflect.Type

type DatabaseInput

type DatabaseInput interface {
	pulumi.Input

	ToDatabaseOutput() DatabaseOutput
	ToDatabaseOutputWithContext(ctx context.Context) DatabaseOutput
}

type DatabaseMap

type DatabaseMap map[string]DatabaseInput

func (DatabaseMap) ElementType

func (DatabaseMap) ElementType() reflect.Type

func (DatabaseMap) ToDatabaseMapOutput

func (i DatabaseMap) ToDatabaseMapOutput() DatabaseMapOutput

func (DatabaseMap) ToDatabaseMapOutputWithContext

func (i DatabaseMap) ToDatabaseMapOutputWithContext(ctx context.Context) DatabaseMapOutput

type DatabaseMapInput

type DatabaseMapInput interface {
	pulumi.Input

	ToDatabaseMapOutput() DatabaseMapOutput
	ToDatabaseMapOutputWithContext(context.Context) DatabaseMapOutput
}

DatabaseMapInput is an input type that accepts DatabaseMap and DatabaseMapOutput values. You can construct a concrete instance of `DatabaseMapInput` via:

DatabaseMap{ "key": DatabaseArgs{...} }

type DatabaseMapOutput

type DatabaseMapOutput struct{ *pulumi.OutputState }

func (DatabaseMapOutput) ElementType

func (DatabaseMapOutput) ElementType() reflect.Type

func (DatabaseMapOutput) MapIndex

func (DatabaseMapOutput) ToDatabaseMapOutput

func (o DatabaseMapOutput) ToDatabaseMapOutput() DatabaseMapOutput

func (DatabaseMapOutput) ToDatabaseMapOutputWithContext

func (o DatabaseMapOutput) ToDatabaseMapOutputWithContext(ctx context.Context) DatabaseMapOutput

type DatabaseOutput

type DatabaseOutput struct{ *pulumi.OutputState }

func (DatabaseOutput) Comment added in v0.9.0

func (DatabaseOutput) DataRetentionTimeInDays added in v0.9.0

func (o DatabaseOutput) DataRetentionTimeInDays() pulumi.IntPtrOutput

Number of days for which Snowflake retains historical data for performing Time Travel actions (SELECT, CLONE, UNDROP) on the object. A value of 0 effectively disables Time Travel for the specified database, schema, or table. For more information, see Understanding & Using Time Travel.

func (DatabaseOutput) ElementType

func (DatabaseOutput) ElementType() reflect.Type

func (DatabaseOutput) FromDatabase added in v0.9.0

func (o DatabaseOutput) FromDatabase() pulumi.StringPtrOutput

Specify a database to create a clone from.

func (DatabaseOutput) FromReplica added in v0.9.0

func (o DatabaseOutput) FromReplica() pulumi.StringPtrOutput

Specify a fully-qualified path to a database to create a replica from. A fully qualified path follows the format of "\n\n"."\n\n"."\n\n". An example would be: "myorg1"."account1"."db1"

func (DatabaseOutput) FromShare added in v0.9.0

func (o DatabaseOutput) FromShare() pulumi.StringMapOutput

Specify a provider and a share in this map to create a database from a share.

func (DatabaseOutput) IsTransient added in v0.14.0

func (o DatabaseOutput) IsTransient() pulumi.BoolPtrOutput

Specifies a database as transient. Transient databases do not have a Fail-safe period so they do not incur additional storage costs once they leave Time Travel; however, this means they are also not protected by Fail-safe in the event of a data loss.

func (DatabaseOutput) Name added in v0.9.0

func (DatabaseOutput) ReplicationConfiguration added in v0.9.0

func (o DatabaseOutput) ReplicationConfiguration() DatabaseReplicationConfigurationPtrOutput

When set, specifies the configurations for database replication.

func (DatabaseOutput) ToDatabaseOutput

func (o DatabaseOutput) ToDatabaseOutput() DatabaseOutput

func (DatabaseOutput) ToDatabaseOutputWithContext

func (o DatabaseOutput) ToDatabaseOutputWithContext(ctx context.Context) DatabaseOutput

type DatabaseReplicationConfiguration added in v0.9.0

type DatabaseReplicationConfiguration struct {
	Accounts           []string `pulumi:"accounts"`
	IgnoreEditionCheck *bool    `pulumi:"ignoreEditionCheck"`
}

type DatabaseReplicationConfigurationArgs added in v0.9.0

type DatabaseReplicationConfigurationArgs struct {
	Accounts           pulumi.StringArrayInput `pulumi:"accounts"`
	IgnoreEditionCheck pulumi.BoolPtrInput     `pulumi:"ignoreEditionCheck"`
}

func (DatabaseReplicationConfigurationArgs) ElementType added in v0.9.0

func (DatabaseReplicationConfigurationArgs) ToDatabaseReplicationConfigurationOutput added in v0.9.0

func (i DatabaseReplicationConfigurationArgs) ToDatabaseReplicationConfigurationOutput() DatabaseReplicationConfigurationOutput

func (DatabaseReplicationConfigurationArgs) ToDatabaseReplicationConfigurationOutputWithContext added in v0.9.0

func (i DatabaseReplicationConfigurationArgs) ToDatabaseReplicationConfigurationOutputWithContext(ctx context.Context) DatabaseReplicationConfigurationOutput

func (DatabaseReplicationConfigurationArgs) ToDatabaseReplicationConfigurationPtrOutput added in v0.9.0

func (i DatabaseReplicationConfigurationArgs) ToDatabaseReplicationConfigurationPtrOutput() DatabaseReplicationConfigurationPtrOutput

func (DatabaseReplicationConfigurationArgs) ToDatabaseReplicationConfigurationPtrOutputWithContext added in v0.9.0

func (i DatabaseReplicationConfigurationArgs) ToDatabaseReplicationConfigurationPtrOutputWithContext(ctx context.Context) DatabaseReplicationConfigurationPtrOutput

type DatabaseReplicationConfigurationInput added in v0.9.0

type DatabaseReplicationConfigurationInput interface {
	pulumi.Input

	ToDatabaseReplicationConfigurationOutput() DatabaseReplicationConfigurationOutput
	ToDatabaseReplicationConfigurationOutputWithContext(context.Context) DatabaseReplicationConfigurationOutput
}

DatabaseReplicationConfigurationInput is an input type that accepts DatabaseReplicationConfigurationArgs and DatabaseReplicationConfigurationOutput values. You can construct a concrete instance of `DatabaseReplicationConfigurationInput` via:

DatabaseReplicationConfigurationArgs{...}

type DatabaseReplicationConfigurationOutput added in v0.9.0

type DatabaseReplicationConfigurationOutput struct{ *pulumi.OutputState }

func (DatabaseReplicationConfigurationOutput) Accounts added in v0.9.0

func (DatabaseReplicationConfigurationOutput) ElementType added in v0.9.0

func (DatabaseReplicationConfigurationOutput) IgnoreEditionCheck added in v0.9.0

func (DatabaseReplicationConfigurationOutput) ToDatabaseReplicationConfigurationOutput added in v0.9.0

func (o DatabaseReplicationConfigurationOutput) ToDatabaseReplicationConfigurationOutput() DatabaseReplicationConfigurationOutput

func (DatabaseReplicationConfigurationOutput) ToDatabaseReplicationConfigurationOutputWithContext added in v0.9.0

func (o DatabaseReplicationConfigurationOutput) ToDatabaseReplicationConfigurationOutputWithContext(ctx context.Context) DatabaseReplicationConfigurationOutput

func (DatabaseReplicationConfigurationOutput) ToDatabaseReplicationConfigurationPtrOutput added in v0.9.0

func (o DatabaseReplicationConfigurationOutput) ToDatabaseReplicationConfigurationPtrOutput() DatabaseReplicationConfigurationPtrOutput

func (DatabaseReplicationConfigurationOutput) ToDatabaseReplicationConfigurationPtrOutputWithContext added in v0.9.0

func (o DatabaseReplicationConfigurationOutput) ToDatabaseReplicationConfigurationPtrOutputWithContext(ctx context.Context) DatabaseReplicationConfigurationPtrOutput

type DatabaseReplicationConfigurationPtrInput added in v0.9.0

type DatabaseReplicationConfigurationPtrInput interface {
	pulumi.Input

	ToDatabaseReplicationConfigurationPtrOutput() DatabaseReplicationConfigurationPtrOutput
	ToDatabaseReplicationConfigurationPtrOutputWithContext(context.Context) DatabaseReplicationConfigurationPtrOutput
}

DatabaseReplicationConfigurationPtrInput is an input type that accepts DatabaseReplicationConfigurationArgs, DatabaseReplicationConfigurationPtr and DatabaseReplicationConfigurationPtrOutput values. You can construct a concrete instance of `DatabaseReplicationConfigurationPtrInput` via:

        DatabaseReplicationConfigurationArgs{...}

or:

        nil

type DatabaseReplicationConfigurationPtrOutput added in v0.9.0

type DatabaseReplicationConfigurationPtrOutput struct{ *pulumi.OutputState }

func (DatabaseReplicationConfigurationPtrOutput) Accounts added in v0.9.0

func (DatabaseReplicationConfigurationPtrOutput) Elem added in v0.9.0

func (DatabaseReplicationConfigurationPtrOutput) ElementType added in v0.9.0

func (DatabaseReplicationConfigurationPtrOutput) IgnoreEditionCheck added in v0.9.0

func (DatabaseReplicationConfigurationPtrOutput) ToDatabaseReplicationConfigurationPtrOutput added in v0.9.0

func (o DatabaseReplicationConfigurationPtrOutput) ToDatabaseReplicationConfigurationPtrOutput() DatabaseReplicationConfigurationPtrOutput

func (DatabaseReplicationConfigurationPtrOutput) ToDatabaseReplicationConfigurationPtrOutputWithContext added in v0.9.0

func (o DatabaseReplicationConfigurationPtrOutput) ToDatabaseReplicationConfigurationPtrOutputWithContext(ctx context.Context) DatabaseReplicationConfigurationPtrOutput

type DatabaseRole added in v0.23.0

type DatabaseRole struct {
	pulumi.CustomResourceState

	// Specifies a comment for the database role.
	Comment pulumi.StringPtrOutput `pulumi:"comment"`
	// The database in which to create the database role.
	Database pulumi.StringOutput `pulumi:"database"`
	// Specifies the identifier for the database role.
	Name pulumi.StringOutput `pulumi:"name"`
}

func GetDatabaseRole added in v0.23.0

func GetDatabaseRole(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *DatabaseRoleState, opts ...pulumi.ResourceOption) (*DatabaseRole, error)

GetDatabaseRole gets an existing DatabaseRole resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewDatabaseRole added in v0.23.0

func NewDatabaseRole(ctx *pulumi.Context,
	name string, args *DatabaseRoleArgs, opts ...pulumi.ResourceOption) (*DatabaseRole, error)

NewDatabaseRole registers a new resource with the given unique name, arguments, and options.

func (*DatabaseRole) ElementType added in v0.23.0

func (*DatabaseRole) ElementType() reflect.Type

func (*DatabaseRole) ToDatabaseRoleOutput added in v0.23.0

func (i *DatabaseRole) ToDatabaseRoleOutput() DatabaseRoleOutput

func (*DatabaseRole) ToDatabaseRoleOutputWithContext added in v0.23.0

func (i *DatabaseRole) ToDatabaseRoleOutputWithContext(ctx context.Context) DatabaseRoleOutput

type DatabaseRoleArgs added in v0.23.0

type DatabaseRoleArgs struct {
	// Specifies a comment for the database role.
	Comment pulumi.StringPtrInput
	// The database in which to create the database role.
	Database pulumi.StringInput
	// Specifies the identifier for the database role.
	Name pulumi.StringPtrInput
}

The set of arguments for constructing a DatabaseRole resource.

func (DatabaseRoleArgs) ElementType added in v0.23.0

func (DatabaseRoleArgs) ElementType() reflect.Type

type DatabaseRoleArray added in v0.23.0

type DatabaseRoleArray []DatabaseRoleInput

func (DatabaseRoleArray) ElementType added in v0.23.0

func (DatabaseRoleArray) ElementType() reflect.Type

func (DatabaseRoleArray) ToDatabaseRoleArrayOutput added in v0.23.0

func (i DatabaseRoleArray) ToDatabaseRoleArrayOutput() DatabaseRoleArrayOutput

func (DatabaseRoleArray) ToDatabaseRoleArrayOutputWithContext added in v0.23.0

func (i DatabaseRoleArray) ToDatabaseRoleArrayOutputWithContext(ctx context.Context) DatabaseRoleArrayOutput

type DatabaseRoleArrayInput added in v0.23.0

type DatabaseRoleArrayInput interface {
	pulumi.Input

	ToDatabaseRoleArrayOutput() DatabaseRoleArrayOutput
	ToDatabaseRoleArrayOutputWithContext(context.Context) DatabaseRoleArrayOutput
}

DatabaseRoleArrayInput is an input type that accepts DatabaseRoleArray and DatabaseRoleArrayOutput values. You can construct a concrete instance of `DatabaseRoleArrayInput` via:

DatabaseRoleArray{ DatabaseRoleArgs{...} }

type DatabaseRoleArrayOutput added in v0.23.0

type DatabaseRoleArrayOutput struct{ *pulumi.OutputState }

func (DatabaseRoleArrayOutput) ElementType added in v0.23.0

func (DatabaseRoleArrayOutput) ElementType() reflect.Type

func (DatabaseRoleArrayOutput) Index added in v0.23.0

func (DatabaseRoleArrayOutput) ToDatabaseRoleArrayOutput added in v0.23.0

func (o DatabaseRoleArrayOutput) ToDatabaseRoleArrayOutput() DatabaseRoleArrayOutput

func (DatabaseRoleArrayOutput) ToDatabaseRoleArrayOutputWithContext added in v0.23.0

func (o DatabaseRoleArrayOutput) ToDatabaseRoleArrayOutputWithContext(ctx context.Context) DatabaseRoleArrayOutput

type DatabaseRoleInput added in v0.23.0

type DatabaseRoleInput interface {
	pulumi.Input

	ToDatabaseRoleOutput() DatabaseRoleOutput
	ToDatabaseRoleOutputWithContext(ctx context.Context) DatabaseRoleOutput
}

type DatabaseRoleMap added in v0.23.0

type DatabaseRoleMap map[string]DatabaseRoleInput

func (DatabaseRoleMap) ElementType added in v0.23.0

func (DatabaseRoleMap) ElementType() reflect.Type

func (DatabaseRoleMap) ToDatabaseRoleMapOutput added in v0.23.0

func (i DatabaseRoleMap) ToDatabaseRoleMapOutput() DatabaseRoleMapOutput

func (DatabaseRoleMap) ToDatabaseRoleMapOutputWithContext added in v0.23.0

func (i DatabaseRoleMap) ToDatabaseRoleMapOutputWithContext(ctx context.Context) DatabaseRoleMapOutput

type DatabaseRoleMapInput added in v0.23.0

type DatabaseRoleMapInput interface {
	pulumi.Input

	ToDatabaseRoleMapOutput() DatabaseRoleMapOutput
	ToDatabaseRoleMapOutputWithContext(context.Context) DatabaseRoleMapOutput
}

DatabaseRoleMapInput is an input type that accepts DatabaseRoleMap and DatabaseRoleMapOutput values. You can construct a concrete instance of `DatabaseRoleMapInput` via:

DatabaseRoleMap{ "key": DatabaseRoleArgs{...} }

type DatabaseRoleMapOutput added in v0.23.0

type DatabaseRoleMapOutput struct{ *pulumi.OutputState }

func (DatabaseRoleMapOutput) ElementType added in v0.23.0

func (DatabaseRoleMapOutput) ElementType() reflect.Type

func (DatabaseRoleMapOutput) MapIndex added in v0.23.0

func (DatabaseRoleMapOutput) ToDatabaseRoleMapOutput added in v0.23.0

func (o DatabaseRoleMapOutput) ToDatabaseRoleMapOutput() DatabaseRoleMapOutput

func (DatabaseRoleMapOutput) ToDatabaseRoleMapOutputWithContext added in v0.23.0

func (o DatabaseRoleMapOutput) ToDatabaseRoleMapOutputWithContext(ctx context.Context) DatabaseRoleMapOutput

type DatabaseRoleOutput added in v0.23.0

type DatabaseRoleOutput struct{ *pulumi.OutputState }

func (DatabaseRoleOutput) Comment added in v0.23.0

Specifies a comment for the database role.

func (DatabaseRoleOutput) Database added in v0.23.0

func (o DatabaseRoleOutput) Database() pulumi.StringOutput

The database in which to create the database role.

func (DatabaseRoleOutput) ElementType added in v0.23.0

func (DatabaseRoleOutput) ElementType() reflect.Type

func (DatabaseRoleOutput) Name added in v0.23.0

Specifies the identifier for the database role.

func (DatabaseRoleOutput) ToDatabaseRoleOutput added in v0.23.0

func (o DatabaseRoleOutput) ToDatabaseRoleOutput() DatabaseRoleOutput

func (DatabaseRoleOutput) ToDatabaseRoleOutputWithContext added in v0.23.0

func (o DatabaseRoleOutput) ToDatabaseRoleOutputWithContext(ctx context.Context) DatabaseRoleOutput

type DatabaseRoleState added in v0.23.0

type DatabaseRoleState struct {
	// Specifies a comment for the database role.
	Comment pulumi.StringPtrInput
	// The database in which to create the database role.
	Database pulumi.StringPtrInput
	// Specifies the identifier for the database role.
	Name pulumi.StringPtrInput
}

func (DatabaseRoleState) ElementType added in v0.23.0

func (DatabaseRoleState) ElementType() reflect.Type

type DatabaseState

type DatabaseState struct {
	Comment pulumi.StringPtrInput
	// Number of days for which Snowflake retains historical data for performing Time Travel actions (SELECT, CLONE, UNDROP) on the object. A value of 0 effectively disables Time Travel for the specified database, schema, or table. For more information, see Understanding & Using Time Travel.
	DataRetentionTimeInDays pulumi.IntPtrInput
	// Specify a database to create a clone from.
	FromDatabase pulumi.StringPtrInput
	// Specify a fully-qualified path to a database to create a replica from. A fully qualified path follows the format of "\n\n"."\n\n"."\n\n". An example would be: "myorg1"."account1"."db1"
	FromReplica pulumi.StringPtrInput
	// Specify a provider and a share in this map to create a database from a share.
	FromShare pulumi.StringMapInput
	// Specifies a database as transient. Transient databases do not have a Fail-safe period so they do not incur additional storage costs once they leave Time Travel; however, this means they are also not protected by Fail-safe in the event of a data loss.
	IsTransient pulumi.BoolPtrInput
	Name        pulumi.StringPtrInput
	// When set, specifies the configurations for database replication.
	ReplicationConfiguration DatabaseReplicationConfigurationPtrInput
}

func (DatabaseState) ElementType

func (DatabaseState) ElementType() reflect.Type

type EmailNotificationIntegration added in v0.25.0

type EmailNotificationIntegration struct {
	pulumi.CustomResourceState

	// List of email addresses that should receive notifications.
	AllowedRecipients pulumi.StringArrayOutput `pulumi:"allowedRecipients"`
	// A comment for the email integration.
	Comment pulumi.StringPtrOutput `pulumi:"comment"`
	Enabled pulumi.BoolOutput      `pulumi:"enabled"`
	Name    pulumi.StringOutput    `pulumi:"name"`
}

## Example Usage

```go 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.NewEmailNotificationIntegration(ctx, "emailInt", &snowflake.EmailNotificationIntegrationArgs{
			AllowedRecipients: pulumi.StringArray{
				pulumi.String("john.doe@gmail.com"),
			},
			Comment: pulumi.String("A notification integration."),
			Enabled: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

```sh

$ pulumi import snowflake:index/emailNotificationIntegration:EmailNotificationIntegration example name

```

func GetEmailNotificationIntegration added in v0.25.0

func GetEmailNotificationIntegration(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *EmailNotificationIntegrationState, opts ...pulumi.ResourceOption) (*EmailNotificationIntegration, error)

GetEmailNotificationIntegration gets an existing EmailNotificationIntegration resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewEmailNotificationIntegration added in v0.25.0

func NewEmailNotificationIntegration(ctx *pulumi.Context,
	name string, args *EmailNotificationIntegrationArgs, opts ...pulumi.ResourceOption) (*EmailNotificationIntegration, error)

NewEmailNotificationIntegration registers a new resource with the given unique name, arguments, and options.

func (*EmailNotificationIntegration) ElementType added in v0.25.0

func (*EmailNotificationIntegration) ElementType() reflect.Type

func (*EmailNotificationIntegration) ToEmailNotificationIntegrationOutput added in v0.25.0

func (i *EmailNotificationIntegration) ToEmailNotificationIntegrationOutput() EmailNotificationIntegrationOutput

func (*EmailNotificationIntegration) ToEmailNotificationIntegrationOutputWithContext added in v0.25.0

func (i *EmailNotificationIntegration) ToEmailNotificationIntegrationOutputWithContext(ctx context.Context) EmailNotificationIntegrationOutput

type EmailNotificationIntegrationArgs added in v0.25.0

type EmailNotificationIntegrationArgs struct {
	// List of email addresses that should receive notifications.
	AllowedRecipients pulumi.StringArrayInput
	// A comment for the email integration.
	Comment pulumi.StringPtrInput
	Enabled pulumi.BoolInput
	Name    pulumi.StringPtrInput
}

The set of arguments for constructing a EmailNotificationIntegration resource.

func (EmailNotificationIntegrationArgs) ElementType added in v0.25.0

type EmailNotificationIntegrationArray added in v0.25.0

type EmailNotificationIntegrationArray []EmailNotificationIntegrationInput

func (EmailNotificationIntegrationArray) ElementType added in v0.25.0

func (EmailNotificationIntegrationArray) ToEmailNotificationIntegrationArrayOutput added in v0.25.0

func (i EmailNotificationIntegrationArray) ToEmailNotificationIntegrationArrayOutput() EmailNotificationIntegrationArrayOutput

func (EmailNotificationIntegrationArray) ToEmailNotificationIntegrationArrayOutputWithContext added in v0.25.0

func (i EmailNotificationIntegrationArray) ToEmailNotificationIntegrationArrayOutputWithContext(ctx context.Context) EmailNotificationIntegrationArrayOutput

type EmailNotificationIntegrationArrayInput added in v0.25.0

type EmailNotificationIntegrationArrayInput interface {
	pulumi.Input

	ToEmailNotificationIntegrationArrayOutput() EmailNotificationIntegrationArrayOutput
	ToEmailNotificationIntegrationArrayOutputWithContext(context.Context) EmailNotificationIntegrationArrayOutput
}

EmailNotificationIntegrationArrayInput is an input type that accepts EmailNotificationIntegrationArray and EmailNotificationIntegrationArrayOutput values. You can construct a concrete instance of `EmailNotificationIntegrationArrayInput` via:

EmailNotificationIntegrationArray{ EmailNotificationIntegrationArgs{...} }

type EmailNotificationIntegrationArrayOutput added in v0.25.0

type EmailNotificationIntegrationArrayOutput struct{ *pulumi.OutputState }

func (EmailNotificationIntegrationArrayOutput) ElementType added in v0.25.0

func (EmailNotificationIntegrationArrayOutput) Index added in v0.25.0

func (EmailNotificationIntegrationArrayOutput) ToEmailNotificationIntegrationArrayOutput added in v0.25.0

func (o EmailNotificationIntegrationArrayOutput) ToEmailNotificationIntegrationArrayOutput() EmailNotificationIntegrationArrayOutput

func (EmailNotificationIntegrationArrayOutput) ToEmailNotificationIntegrationArrayOutputWithContext added in v0.25.0

func (o EmailNotificationIntegrationArrayOutput) ToEmailNotificationIntegrationArrayOutputWithContext(ctx context.Context) EmailNotificationIntegrationArrayOutput

type EmailNotificationIntegrationInput added in v0.25.0

type EmailNotificationIntegrationInput interface {
	pulumi.Input

	ToEmailNotificationIntegrationOutput() EmailNotificationIntegrationOutput
	ToEmailNotificationIntegrationOutputWithContext(ctx context.Context) EmailNotificationIntegrationOutput
}

type EmailNotificationIntegrationMap added in v0.25.0

type EmailNotificationIntegrationMap map[string]EmailNotificationIntegrationInput

func (EmailNotificationIntegrationMap) ElementType added in v0.25.0

func (EmailNotificationIntegrationMap) ToEmailNotificationIntegrationMapOutput added in v0.25.0

func (i EmailNotificationIntegrationMap) ToEmailNotificationIntegrationMapOutput() EmailNotificationIntegrationMapOutput

func (EmailNotificationIntegrationMap) ToEmailNotificationIntegrationMapOutputWithContext added in v0.25.0

func (i EmailNotificationIntegrationMap) ToEmailNotificationIntegrationMapOutputWithContext(ctx context.Context) EmailNotificationIntegrationMapOutput

type EmailNotificationIntegrationMapInput added in v0.25.0

type EmailNotificationIntegrationMapInput interface {
	pulumi.Input

	ToEmailNotificationIntegrationMapOutput() EmailNotificationIntegrationMapOutput
	ToEmailNotificationIntegrationMapOutputWithContext(context.Context) EmailNotificationIntegrationMapOutput
}

EmailNotificationIntegrationMapInput is an input type that accepts EmailNotificationIntegrationMap and EmailNotificationIntegrationMapOutput values. You can construct a concrete instance of `EmailNotificationIntegrationMapInput` via:

EmailNotificationIntegrationMap{ "key": EmailNotificationIntegrationArgs{...} }

type EmailNotificationIntegrationMapOutput added in v0.25.0

type EmailNotificationIntegrationMapOutput struct{ *pulumi.OutputState }

func (EmailNotificationIntegrationMapOutput) ElementType added in v0.25.0

func (EmailNotificationIntegrationMapOutput) MapIndex added in v0.25.0

func (EmailNotificationIntegrationMapOutput) ToEmailNotificationIntegrationMapOutput added in v0.25.0

func (o EmailNotificationIntegrationMapOutput) ToEmailNotificationIntegrationMapOutput() EmailNotificationIntegrationMapOutput

func (EmailNotificationIntegrationMapOutput) ToEmailNotificationIntegrationMapOutputWithContext added in v0.25.0

func (o EmailNotificationIntegrationMapOutput) ToEmailNotificationIntegrationMapOutputWithContext(ctx context.Context) EmailNotificationIntegrationMapOutput

type EmailNotificationIntegrationOutput added in v0.25.0

type EmailNotificationIntegrationOutput struct{ *pulumi.OutputState }

func (EmailNotificationIntegrationOutput) AllowedRecipients added in v0.25.0

List of email addresses that should receive notifications.

func (EmailNotificationIntegrationOutput) Comment added in v0.25.0

A comment for the email integration.

func (EmailNotificationIntegrationOutput) ElementType added in v0.25.0

func (EmailNotificationIntegrationOutput) Enabled added in v0.25.0

func (EmailNotificationIntegrationOutput) Name added in v0.25.0

func (EmailNotificationIntegrationOutput) ToEmailNotificationIntegrationOutput added in v0.25.0

func (o EmailNotificationIntegrationOutput) ToEmailNotificationIntegrationOutput() EmailNotificationIntegrationOutput

func (EmailNotificationIntegrationOutput) ToEmailNotificationIntegrationOutputWithContext added in v0.25.0

func (o EmailNotificationIntegrationOutput) ToEmailNotificationIntegrationOutputWithContext(ctx context.Context) EmailNotificationIntegrationOutput

type EmailNotificationIntegrationState added in v0.25.0

type EmailNotificationIntegrationState struct {
	// List of email addresses that should receive notifications.
	AllowedRecipients pulumi.StringArrayInput
	// A comment for the email integration.
	Comment pulumi.StringPtrInput
	Enabled pulumi.BoolPtrInput
	Name    pulumi.StringPtrInput
}

func (EmailNotificationIntegrationState) ElementType added in v0.25.0

type ExternalFunction

type ExternalFunction struct {
	pulumi.CustomResourceState

	// The name of the API integration object that should be used to authenticate the call to the proxy service.
	ApiIntegration pulumi.StringOutput `pulumi:"apiIntegration"`
	// Specifies the arguments/inputs for the external function. These should correspond to the arguments that the remote service expects.
	Args ExternalFunctionArgArrayOutput `pulumi:"args"`
	// A description of the external function.
	Comment pulumi.StringPtrOutput `pulumi:"comment"`
	// If specified, the JSON payload is compressed when sent from Snowflake to the proxy service, and when sent back from the proxy service to Snowflake.
	Compression pulumi.StringPtrOutput `pulumi:"compression"`
	// Binds Snowflake context function results to HTTP headers.
	ContextHeaders pulumi.StringArrayOutput `pulumi:"contextHeaders"`
	// Date and time when the external function was created.
	CreatedOn pulumi.StringOutput `pulumi:"createdOn"`
	// The database in which to create the external function.
	Database pulumi.StringOutput `pulumi:"database"`
	// Allows users to specify key-value metadata that is sent with every request as HTTP headers.
	Headers ExternalFunctionHeaderArrayOutput `pulumi:"headers"`
	// This specifies the maximum number of rows in each batch sent to the proxy service.
	MaxBatchRows pulumi.IntPtrOutput `pulumi:"maxBatchRows"`
	// Specifies the identifier for the external function. The identifier can contain the schema name and database name, as well as the function name. The function's signature (name and argument data types) must be unique within the schema.
	Name pulumi.StringOutput `pulumi:"name"`
	// Specifies the behavior of the external function when called with null inputs.
	NullInputBehavior pulumi.StringPtrOutput `pulumi:"nullInputBehavior"`
	// This specifies the name of the request translator function
	RequestTranslator pulumi.StringPtrOutput `pulumi:"requestTranslator"`
	// This specifies the name of the response translator function.
	ResponseTranslator pulumi.StringPtrOutput `pulumi:"responseTranslator"`
	// Specifies the behavior of the function when returning results
	ReturnBehavior pulumi.StringOutput `pulumi:"returnBehavior"`
	// Indicates whether the function can return NULL values or must return only NON-NULL values.
	ReturnNullAllowed pulumi.BoolPtrOutput `pulumi:"returnNullAllowed"`
	// Specifies the data type returned by the external function.
	ReturnType pulumi.StringOutput `pulumi:"returnType"`
	// The schema in which to create the external function.
	Schema pulumi.StringOutput `pulumi:"schema"`
	// This is the invocation URL of the proxy service and resource through which Snowflake calls the remote service.
	UrlOfProxyAndResource pulumi.StringOutput `pulumi:"urlOfProxyAndResource"`
}

## Example Usage

```go 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.NewExternalFunction(ctx, "testExtFunc", &snowflake.ExternalFunctionArgs{
			ApiIntegration: pulumi.String("api_integration_name"),
			Args: snowflake.ExternalFunctionArgArray{
				&snowflake.ExternalFunctionArgArgs{
					Name: pulumi.String("arg1"),
					Type: pulumi.String("varchar"),
				},
				&snowflake.ExternalFunctionArgArgs{
					Name: pulumi.String("arg2"),
					Type: pulumi.String("varchar"),
				},
			},
			Database:              pulumi.String("my_test_db"),
			ReturnBehavior:        pulumi.String("IMMUTABLE"),
			ReturnType:            pulumi.String("variant"),
			Schema:                pulumi.String("my_test_schema"),
			UrlOfProxyAndResource: pulumi.String("https://123456.execute-api.us-west-2.amazonaws.com/prod/test_func"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

format is database name | schema name | external function name | <list of function arg types, separated with '-'>

```sh

$ pulumi import snowflake:index/externalFunction:ExternalFunction example 'dbName|schemaName|externalFunctionName|varchar-varchar-varchar'

```

func GetExternalFunction

func GetExternalFunction(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ExternalFunctionState, opts ...pulumi.ResourceOption) (*ExternalFunction, error)

GetExternalFunction gets an existing ExternalFunction resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewExternalFunction

func NewExternalFunction(ctx *pulumi.Context,
	name string, args *ExternalFunctionArgs, opts ...pulumi.ResourceOption) (*ExternalFunction, error)

NewExternalFunction registers a new resource with the given unique name, arguments, and options.

func (*ExternalFunction) ElementType

func (*ExternalFunction) ElementType() reflect.Type

func (*ExternalFunction) ToExternalFunctionOutput

func (i *ExternalFunction) ToExternalFunctionOutput() ExternalFunctionOutput

func (*ExternalFunction) ToExternalFunctionOutputWithContext

func (i *ExternalFunction) ToExternalFunctionOutputWithContext(ctx context.Context) ExternalFunctionOutput

type ExternalFunctionArg

type ExternalFunctionArg struct {
	// Argument name
	Name string `pulumi:"name"`
	// Argument type, e.g. VARCHAR
	Type string `pulumi:"type"`
}

type ExternalFunctionArgArgs

type ExternalFunctionArgArgs struct {
	// Argument name
	Name pulumi.StringInput `pulumi:"name"`
	// Argument type, e.g. VARCHAR
	Type pulumi.StringInput `pulumi:"type"`
}

func (ExternalFunctionArgArgs) ElementType

func (ExternalFunctionArgArgs) ElementType() reflect.Type

func (ExternalFunctionArgArgs) ToExternalFunctionArgOutput

func (i ExternalFunctionArgArgs) ToExternalFunctionArgOutput() ExternalFunctionArgOutput

func (ExternalFunctionArgArgs) ToExternalFunctionArgOutputWithContext

func (i ExternalFunctionArgArgs) ToExternalFunctionArgOutputWithContext(ctx context.Context) ExternalFunctionArgOutput

type ExternalFunctionArgArray

type ExternalFunctionArgArray []ExternalFunctionArgInput

func (ExternalFunctionArgArray) ElementType

func (ExternalFunctionArgArray) ElementType() reflect.Type

func (ExternalFunctionArgArray) ToExternalFunctionArgArrayOutput

func (i ExternalFunctionArgArray) ToExternalFunctionArgArrayOutput() ExternalFunctionArgArrayOutput

func (ExternalFunctionArgArray) ToExternalFunctionArgArrayOutputWithContext

func (i ExternalFunctionArgArray) ToExternalFunctionArgArrayOutputWithContext(ctx context.Context) ExternalFunctionArgArrayOutput

type ExternalFunctionArgArrayInput

type ExternalFunctionArgArrayInput interface {
	pulumi.Input

	ToExternalFunctionArgArrayOutput() ExternalFunctionArgArrayOutput
	ToExternalFunctionArgArrayOutputWithContext(context.Context) ExternalFunctionArgArrayOutput
}

ExternalFunctionArgArrayInput is an input type that accepts ExternalFunctionArgArray and ExternalFunctionArgArrayOutput values. You can construct a concrete instance of `ExternalFunctionArgArrayInput` via:

ExternalFunctionArgArray{ ExternalFunctionArgArgs{...} }

type ExternalFunctionArgArrayOutput

type ExternalFunctionArgArrayOutput struct{ *pulumi.OutputState }

func (ExternalFunctionArgArrayOutput) ElementType

func (ExternalFunctionArgArrayOutput) Index

func (ExternalFunctionArgArrayOutput) ToExternalFunctionArgArrayOutput

func (o ExternalFunctionArgArrayOutput) ToExternalFunctionArgArrayOutput() ExternalFunctionArgArrayOutput

func (ExternalFunctionArgArrayOutput) ToExternalFunctionArgArrayOutputWithContext

func (o ExternalFunctionArgArrayOutput) ToExternalFunctionArgArrayOutputWithContext(ctx context.Context) ExternalFunctionArgArrayOutput

type ExternalFunctionArgInput

type ExternalFunctionArgInput interface {
	pulumi.Input

	ToExternalFunctionArgOutput() ExternalFunctionArgOutput
	ToExternalFunctionArgOutputWithContext(context.Context) ExternalFunctionArgOutput
}

ExternalFunctionArgInput is an input type that accepts ExternalFunctionArgArgs and ExternalFunctionArgOutput values. You can construct a concrete instance of `ExternalFunctionArgInput` via:

ExternalFunctionArgArgs{...}

type ExternalFunctionArgOutput

type ExternalFunctionArgOutput struct{ *pulumi.OutputState }

func (ExternalFunctionArgOutput) ElementType

func (ExternalFunctionArgOutput) ElementType() reflect.Type

func (ExternalFunctionArgOutput) Name

Argument name

func (ExternalFunctionArgOutput) ToExternalFunctionArgOutput

func (o ExternalFunctionArgOutput) ToExternalFunctionArgOutput() ExternalFunctionArgOutput

func (ExternalFunctionArgOutput) ToExternalFunctionArgOutputWithContext

func (o ExternalFunctionArgOutput) ToExternalFunctionArgOutputWithContext(ctx context.Context) ExternalFunctionArgOutput

func (ExternalFunctionArgOutput) Type

Argument type, e.g. VARCHAR

type ExternalFunctionArgs

type ExternalFunctionArgs struct {
	// The name of the API integration object that should be used to authenticate the call to the proxy service.
	ApiIntegration pulumi.StringInput
	// Specifies the arguments/inputs for the external function. These should correspond to the arguments that the remote service expects.
	Args ExternalFunctionArgArrayInput
	// A description of the external function.
	Comment pulumi.StringPtrInput
	// If specified, the JSON payload is compressed when sent from Snowflake to the proxy service, and when sent back from the proxy service to Snowflake.
	Compression pulumi.StringPtrInput
	// Binds Snowflake context function results to HTTP headers.
	ContextHeaders pulumi.StringArrayInput
	// The database in which to create the external function.
	Database pulumi.StringInput
	// Allows users to specify key-value metadata that is sent with every request as HTTP headers.
	Headers ExternalFunctionHeaderArrayInput
	// This specifies the maximum number of rows in each batch sent to the proxy service.
	MaxBatchRows pulumi.IntPtrInput
	// Specifies the identifier for the external function. The identifier can contain the schema name and database name, as well as the function name. The function's signature (name and argument data types) must be unique within the schema.
	Name pulumi.StringPtrInput
	// Specifies the behavior of the external function when called with null inputs.
	NullInputBehavior pulumi.StringPtrInput
	// This specifies the name of the request translator function
	RequestTranslator pulumi.StringPtrInput
	// This specifies the name of the response translator function.
	ResponseTranslator pulumi.StringPtrInput
	// Specifies the behavior of the function when returning results
	ReturnBehavior pulumi.StringInput
	// Indicates whether the function can return NULL values or must return only NON-NULL values.
	ReturnNullAllowed pulumi.BoolPtrInput
	// Specifies the data type returned by the external function.
	ReturnType pulumi.StringInput
	// The schema in which to create the external function.
	Schema pulumi.StringInput
	// This is the invocation URL of the proxy service and resource through which Snowflake calls the remote service.
	UrlOfProxyAndResource pulumi.StringInput
}

The set of arguments for constructing a ExternalFunction resource.

func (ExternalFunctionArgs) ElementType

func (ExternalFunctionArgs) ElementType() reflect.Type

type ExternalFunctionArray

type ExternalFunctionArray []ExternalFunctionInput

func (ExternalFunctionArray) ElementType

func (ExternalFunctionArray) ElementType() reflect.Type

func (ExternalFunctionArray) ToExternalFunctionArrayOutput

func (i ExternalFunctionArray) ToExternalFunctionArrayOutput() ExternalFunctionArrayOutput

func (ExternalFunctionArray) ToExternalFunctionArrayOutputWithContext

func (i ExternalFunctionArray) ToExternalFunctionArrayOutputWithContext(ctx context.Context) ExternalFunctionArrayOutput

type ExternalFunctionArrayInput

type ExternalFunctionArrayInput interface {
	pulumi.Input

	ToExternalFunctionArrayOutput() ExternalFunctionArrayOutput
	ToExternalFunctionArrayOutputWithContext(context.Context) ExternalFunctionArrayOutput
}

ExternalFunctionArrayInput is an input type that accepts ExternalFunctionArray and ExternalFunctionArrayOutput values. You can construct a concrete instance of `ExternalFunctionArrayInput` via:

ExternalFunctionArray{ ExternalFunctionArgs{...} }

type ExternalFunctionArrayOutput

type ExternalFunctionArrayOutput struct{ *pulumi.OutputState }

func (ExternalFunctionArrayOutput) ElementType

func (ExternalFunctionArrayOutput) Index

func (ExternalFunctionArrayOutput) ToExternalFunctionArrayOutput

func (o ExternalFunctionArrayOutput) ToExternalFunctionArrayOutput() ExternalFunctionArrayOutput

func (ExternalFunctionArrayOutput) ToExternalFunctionArrayOutputWithContext

func (o ExternalFunctionArrayOutput) ToExternalFunctionArrayOutputWithContext(ctx context.Context) ExternalFunctionArrayOutput

type ExternalFunctionHeader

type ExternalFunctionHeader struct {
	// Header name
	Name string `pulumi:"name"`
	// Header value
	Value string `pulumi:"value"`
}

type ExternalFunctionHeaderArgs

type ExternalFunctionHeaderArgs struct {
	// Header name
	Name pulumi.StringInput `pulumi:"name"`
	// Header value
	Value pulumi.StringInput `pulumi:"value"`
}

func (ExternalFunctionHeaderArgs) ElementType

func (ExternalFunctionHeaderArgs) ElementType() reflect.Type

func (ExternalFunctionHeaderArgs) ToExternalFunctionHeaderOutput

func (i ExternalFunctionHeaderArgs) ToExternalFunctionHeaderOutput() ExternalFunctionHeaderOutput

func (ExternalFunctionHeaderArgs) ToExternalFunctionHeaderOutputWithContext

func (i ExternalFunctionHeaderArgs) ToExternalFunctionHeaderOutputWithContext(ctx context.Context) ExternalFunctionHeaderOutput

type ExternalFunctionHeaderArray

type ExternalFunctionHeaderArray []ExternalFunctionHeaderInput

func (ExternalFunctionHeaderArray) ElementType

func (ExternalFunctionHeaderArray) ToExternalFunctionHeaderArrayOutput

func (i ExternalFunctionHeaderArray) ToExternalFunctionHeaderArrayOutput() ExternalFunctionHeaderArrayOutput

func (ExternalFunctionHeaderArray) ToExternalFunctionHeaderArrayOutputWithContext

func (i ExternalFunctionHeaderArray) ToExternalFunctionHeaderArrayOutputWithContext(ctx context.Context) ExternalFunctionHeaderArrayOutput

type ExternalFunctionHeaderArrayInput

type ExternalFunctionHeaderArrayInput interface {
	pulumi.Input

	ToExternalFunctionHeaderArrayOutput() ExternalFunctionHeaderArrayOutput
	ToExternalFunctionHeaderArrayOutputWithContext(context.Context) ExternalFunctionHeaderArrayOutput
}

ExternalFunctionHeaderArrayInput is an input type that accepts ExternalFunctionHeaderArray and ExternalFunctionHeaderArrayOutput values. You can construct a concrete instance of `ExternalFunctionHeaderArrayInput` via:

ExternalFunctionHeaderArray{ ExternalFunctionHeaderArgs{...} }

type ExternalFunctionHeaderArrayOutput

type ExternalFunctionHeaderArrayOutput struct{ *pulumi.OutputState }

func (ExternalFunctionHeaderArrayOutput) ElementType

func (ExternalFunctionHeaderArrayOutput) Index

func (ExternalFunctionHeaderArrayOutput) ToExternalFunctionHeaderArrayOutput

func (o ExternalFunctionHeaderArrayOutput) ToExternalFunctionHeaderArrayOutput() ExternalFunctionHeaderArrayOutput

func (ExternalFunctionHeaderArrayOutput) ToExternalFunctionHeaderArrayOutputWithContext

func (o ExternalFunctionHeaderArrayOutput) ToExternalFunctionHeaderArrayOutputWithContext(ctx context.Context) ExternalFunctionHeaderArrayOutput

type ExternalFunctionHeaderInput

type ExternalFunctionHeaderInput interface {
	pulumi.Input

	ToExternalFunctionHeaderOutput() ExternalFunctionHeaderOutput
	ToExternalFunctionHeaderOutputWithContext(context.Context) ExternalFunctionHeaderOutput
}

ExternalFunctionHeaderInput is an input type that accepts ExternalFunctionHeaderArgs and ExternalFunctionHeaderOutput values. You can construct a concrete instance of `ExternalFunctionHeaderInput` via:

ExternalFunctionHeaderArgs{...}

type ExternalFunctionHeaderOutput

type ExternalFunctionHeaderOutput struct{ *pulumi.OutputState }

func (ExternalFunctionHeaderOutput) ElementType

func (ExternalFunctionHeaderOutput) Name

Header name

func (ExternalFunctionHeaderOutput) ToExternalFunctionHeaderOutput

func (o ExternalFunctionHeaderOutput) ToExternalFunctionHeaderOutput() ExternalFunctionHeaderOutput

func (ExternalFunctionHeaderOutput) ToExternalFunctionHeaderOutputWithContext

func (o ExternalFunctionHeaderOutput) ToExternalFunctionHeaderOutputWithContext(ctx context.Context) ExternalFunctionHeaderOutput

func (ExternalFunctionHeaderOutput) Value

Header value

type ExternalFunctionInput

type ExternalFunctionInput interface {
	pulumi.Input

	ToExternalFunctionOutput() ExternalFunctionOutput
	ToExternalFunctionOutputWithContext(ctx context.Context) ExternalFunctionOutput
}

type ExternalFunctionMap

type ExternalFunctionMap map[string]ExternalFunctionInput

func (ExternalFunctionMap) ElementType

func (ExternalFunctionMap) ElementType() reflect.Type

func (ExternalFunctionMap) ToExternalFunctionMapOutput

func (i ExternalFunctionMap) ToExternalFunctionMapOutput() ExternalFunctionMapOutput

func (ExternalFunctionMap) ToExternalFunctionMapOutputWithContext

func (i ExternalFunctionMap) ToExternalFunctionMapOutputWithContext(ctx context.Context) ExternalFunctionMapOutput

type ExternalFunctionMapInput

type ExternalFunctionMapInput interface {
	pulumi.Input

	ToExternalFunctionMapOutput() ExternalFunctionMapOutput
	ToExternalFunctionMapOutputWithContext(context.Context) ExternalFunctionMapOutput
}

ExternalFunctionMapInput is an input type that accepts ExternalFunctionMap and ExternalFunctionMapOutput values. You can construct a concrete instance of `ExternalFunctionMapInput` via:

ExternalFunctionMap{ "key": ExternalFunctionArgs{...} }

type ExternalFunctionMapOutput

type ExternalFunctionMapOutput struct{ *pulumi.OutputState }

func (ExternalFunctionMapOutput) ElementType

func (ExternalFunctionMapOutput) ElementType() reflect.Type

func (ExternalFunctionMapOutput) MapIndex

func (ExternalFunctionMapOutput) ToExternalFunctionMapOutput

func (o ExternalFunctionMapOutput) ToExternalFunctionMapOutput() ExternalFunctionMapOutput

func (ExternalFunctionMapOutput) ToExternalFunctionMapOutputWithContext

func (o ExternalFunctionMapOutput) ToExternalFunctionMapOutputWithContext(ctx context.Context) ExternalFunctionMapOutput

type ExternalFunctionOutput

type ExternalFunctionOutput struct{ *pulumi.OutputState }

func (ExternalFunctionOutput) ApiIntegration added in v0.9.0

func (o ExternalFunctionOutput) ApiIntegration() pulumi.StringOutput

The name of the API integration object that should be used to authenticate the call to the proxy service.

func (ExternalFunctionOutput) Args added in v0.9.0

Specifies the arguments/inputs for the external function. These should correspond to the arguments that the remote service expects.

func (ExternalFunctionOutput) Comment added in v0.9.0

A description of the external function.

func (ExternalFunctionOutput) Compression added in v0.9.0

If specified, the JSON payload is compressed when sent from Snowflake to the proxy service, and when sent back from the proxy service to Snowflake.

func (ExternalFunctionOutput) ContextHeaders added in v0.9.0

func (o ExternalFunctionOutput) ContextHeaders() pulumi.StringArrayOutput

Binds Snowflake context function results to HTTP headers.

func (ExternalFunctionOutput) CreatedOn added in v0.9.0

Date and time when the external function was created.

func (ExternalFunctionOutput) Database added in v0.9.0

The database in which to create the external function.

func (ExternalFunctionOutput) ElementType

func (ExternalFunctionOutput) ElementType() reflect.Type

func (ExternalFunctionOutput) Headers added in v0.9.0

Allows users to specify key-value metadata that is sent with every request as HTTP headers.

func (ExternalFunctionOutput) MaxBatchRows added in v0.9.0

func (o ExternalFunctionOutput) MaxBatchRows() pulumi.IntPtrOutput

This specifies the maximum number of rows in each batch sent to the proxy service.

func (ExternalFunctionOutput) Name added in v0.9.0

Specifies the identifier for the external function. The identifier can contain the schema name and database name, as well as the function name. The function's signature (name and argument data types) must be unique within the schema.

func (ExternalFunctionOutput) NullInputBehavior added in v0.9.0

func (o ExternalFunctionOutput) NullInputBehavior() pulumi.StringPtrOutput

Specifies the behavior of the external function when called with null inputs.

func (ExternalFunctionOutput) RequestTranslator added in v0.25.0

func (o ExternalFunctionOutput) RequestTranslator() pulumi.StringPtrOutput

This specifies the name of the request translator function

func (ExternalFunctionOutput) ResponseTranslator added in v0.25.0

func (o ExternalFunctionOutput) ResponseTranslator() pulumi.StringPtrOutput

This specifies the name of the response translator function.

func (ExternalFunctionOutput) ReturnBehavior added in v0.9.0

func (o ExternalFunctionOutput) ReturnBehavior() pulumi.StringOutput

Specifies the behavior of the function when returning results

func (ExternalFunctionOutput) ReturnNullAllowed added in v0.9.0

func (o ExternalFunctionOutput) ReturnNullAllowed() pulumi.BoolPtrOutput

Indicates whether the function can return NULL values or must return only NON-NULL values.

func (ExternalFunctionOutput) ReturnType added in v0.9.0

Specifies the data type returned by the external function.

func (ExternalFunctionOutput) Schema added in v0.9.0

The schema in which to create the external function.

func (ExternalFunctionOutput) ToExternalFunctionOutput

func (o ExternalFunctionOutput) ToExternalFunctionOutput() ExternalFunctionOutput

func (ExternalFunctionOutput) ToExternalFunctionOutputWithContext

func (o ExternalFunctionOutput) ToExternalFunctionOutputWithContext(ctx context.Context) ExternalFunctionOutput

func (ExternalFunctionOutput) UrlOfProxyAndResource added in v0.9.0

func (o ExternalFunctionOutput) UrlOfProxyAndResource() pulumi.StringOutput

This is the invocation URL of the proxy service and resource through which Snowflake calls the remote service.

type ExternalFunctionState

type ExternalFunctionState struct {
	// The name of the API integration object that should be used to authenticate the call to the proxy service.
	ApiIntegration pulumi.StringPtrInput
	// Specifies the arguments/inputs for the external function. These should correspond to the arguments that the remote service expects.
	Args ExternalFunctionArgArrayInput
	// A description of the external function.
	Comment pulumi.StringPtrInput
	// If specified, the JSON payload is compressed when sent from Snowflake to the proxy service, and when sent back from the proxy service to Snowflake.
	Compression pulumi.StringPtrInput
	// Binds Snowflake context function results to HTTP headers.
	ContextHeaders pulumi.StringArrayInput
	// Date and time when the external function was created.
	CreatedOn pulumi.StringPtrInput
	// The database in which to create the external function.
	Database pulumi.StringPtrInput
	// Allows users to specify key-value metadata that is sent with every request as HTTP headers.
	Headers ExternalFunctionHeaderArrayInput
	// This specifies the maximum number of rows in each batch sent to the proxy service.
	MaxBatchRows pulumi.IntPtrInput
	// Specifies the identifier for the external function. The identifier can contain the schema name and database name, as well as the function name. The function's signature (name and argument data types) must be unique within the schema.
	Name pulumi.StringPtrInput
	// Specifies the behavior of the external function when called with null inputs.
	NullInputBehavior pulumi.StringPtrInput
	// This specifies the name of the request translator function
	RequestTranslator pulumi.StringPtrInput
	// This specifies the name of the response translator function.
	ResponseTranslator pulumi.StringPtrInput
	// Specifies the behavior of the function when returning results
	ReturnBehavior pulumi.StringPtrInput
	// Indicates whether the function can return NULL values or must return only NON-NULL values.
	ReturnNullAllowed pulumi.BoolPtrInput
	// Specifies the data type returned by the external function.
	ReturnType pulumi.StringPtrInput
	// The schema in which to create the external function.
	Schema pulumi.StringPtrInput
	// This is the invocation URL of the proxy service and resource through which Snowflake calls the remote service.
	UrlOfProxyAndResource pulumi.StringPtrInput
}

func (ExternalFunctionState) ElementType

func (ExternalFunctionState) ElementType() reflect.Type

type ExternalOauthIntegration added in v0.5.0

type ExternalOauthIntegration struct {
	pulumi.CustomResourceState

	// Specifies the list of roles that the client can set as the primary role.
	AllowedRoles pulumi.StringArrayOutput `pulumi:"allowedRoles"`
	// Specifies whether the OAuth client or user can use a role that is not defined in the OAuth access token.
	AnyRoleMode pulumi.StringPtrOutput `pulumi:"anyRoleMode"`
	// Specifies additional values that can be used for the access token's audience validation on top of using the Customer's Snowflake Account URL
	AudienceUrls pulumi.StringArrayOutput `pulumi:"audienceUrls"`
	// Specifies the list of roles that a client cannot set as the primary role. Do not include ACCOUNTADMIN, ORGADMIN or SECURITYADMIN as they are already implicitly enforced and will cause in-place updates.
	BlockedRoles pulumi.StringArrayOutput `pulumi:"blockedRoles"`
	// Specifies a comment for the OAuth integration.
	Comment pulumi.StringPtrOutput `pulumi:"comment"`
	// Date and time when the External OAUTH integration was created.
	CreatedOn pulumi.StringOutput `pulumi:"createdOn"`
	// Specifies whether to initiate operation of the integration or suspend it.
	Enabled pulumi.BoolOutput `pulumi:"enabled"`
	// Specifies the URL to define the OAuth 2.0 authorization server.
	Issuer pulumi.StringOutput `pulumi:"issuer"`
	// Specifies the endpoint or a list of endpoints from which to download public keys or certificates to validate an External OAuth access token. The maximum number of URLs that can be specified in the list is 3.
	JwsKeysUrls pulumi.StringArrayOutput `pulumi:"jwsKeysUrls"`
	// Specifies the name of the External Oath integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account.
	Name pulumi.StringOutput `pulumi:"name"`
	// Specifies a Base64-encoded RSA public key, without the -----BEGIN PUBLIC KEY----- and -----END PUBLIC KEY----- headers.
	RsaPublicKey pulumi.StringPtrOutput `pulumi:"rsaPublicKey"`
	// Specifies a second RSA public key, without the -----BEGIN PUBLIC KEY----- and -----END PUBLIC KEY----- headers. Used for key rotation.
	RsaPublicKey2 pulumi.StringPtrOutput `pulumi:"rsaPublicKey2"`
	// Specifies the scope delimiter in the authorization token.
	ScopeDelimiter pulumi.StringPtrOutput `pulumi:"scopeDelimiter"`
	// Specifies the access token claim to map the access token to an account role.
	ScopeMappingAttribute pulumi.StringPtrOutput `pulumi:"scopeMappingAttribute"`
	// Indicates which Snowflake user record attribute should be used to map the access token to a Snowflake user record.
	SnowflakeUserMappingAttribute pulumi.StringOutput `pulumi:"snowflakeUserMappingAttribute"`
	// Specifies the access token claim or claims that can be used to map the access token to a Snowflake user record.
	TokenUserMappingClaims pulumi.StringArrayOutput `pulumi:"tokenUserMappingClaims"`
	// Specifies the OAuth 2.0 authorization server to be Okta, Microsoft Azure AD, Ping Identity PingFederate, or a Custom OAuth 2.0 authorization server.
	Type pulumi.StringOutput `pulumi:"type"`
}

An External OAuth security integration allows a client to use a third-party authorization server to obtain the access tokens needed to interact with Snowflake.

## Example Usage

```go 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.NewExternalOauthIntegration(ctx, "azure", &snowflake.ExternalOauthIntegrationArgs{
			AudienceUrls: pulumi.StringArray{
				pulumi.String("https://analysis.windows.net/powerbi/connector/Snowflake"),
			},
			Enabled: pulumi.Bool(true),
			Issuer:  pulumi.String("https://sts.windows.net/00000000-0000-0000-0000-000000000000"),
			JwsKeysUrls: pulumi.StringArray{
				pulumi.String("https://login.windows.net/common/discovery/keys"),
			},
			SnowflakeUserMappingAttribute: pulumi.String("LOGIN_NAME"),
			TokenUserMappingClaims: pulumi.StringArray{
				pulumi.String("upn"),
			},
			Type: pulumi.String("AZURE"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

```sh

$ pulumi import snowflake:index/externalOauthIntegration:ExternalOauthIntegration example name

```

func GetExternalOauthIntegration added in v0.5.0

func GetExternalOauthIntegration(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ExternalOauthIntegrationState, opts ...pulumi.ResourceOption) (*ExternalOauthIntegration, error)

GetExternalOauthIntegration gets an existing ExternalOauthIntegration resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewExternalOauthIntegration added in v0.5.0

func NewExternalOauthIntegration(ctx *pulumi.Context,
	name string, args *ExternalOauthIntegrationArgs, opts ...pulumi.ResourceOption) (*ExternalOauthIntegration, error)

NewExternalOauthIntegration registers a new resource with the given unique name, arguments, and options.

func (*ExternalOauthIntegration) ElementType added in v0.5.0

func (*ExternalOauthIntegration) ElementType() reflect.Type

func (*ExternalOauthIntegration) ToExternalOauthIntegrationOutput added in v0.5.0

func (i *ExternalOauthIntegration) ToExternalOauthIntegrationOutput() ExternalOauthIntegrationOutput

func (*ExternalOauthIntegration) ToExternalOauthIntegrationOutputWithContext added in v0.5.0

func (i *ExternalOauthIntegration) ToExternalOauthIntegrationOutputWithContext(ctx context.Context) ExternalOauthIntegrationOutput

type ExternalOauthIntegrationArgs added in v0.5.0

type ExternalOauthIntegrationArgs struct {
	// Specifies the list of roles that the client can set as the primary role.
	AllowedRoles pulumi.StringArrayInput
	// Specifies whether the OAuth client or user can use a role that is not defined in the OAuth access token.
	AnyRoleMode pulumi.StringPtrInput
	// Specifies additional values that can be used for the access token's audience validation on top of using the Customer's Snowflake Account URL
	AudienceUrls pulumi.StringArrayInput
	// Specifies the list of roles that a client cannot set as the primary role. Do not include ACCOUNTADMIN, ORGADMIN or SECURITYADMIN as they are already implicitly enforced and will cause in-place updates.
	BlockedRoles pulumi.StringArrayInput
	// Specifies a comment for the OAuth integration.
	Comment pulumi.StringPtrInput
	// Specifies whether to initiate operation of the integration or suspend it.
	Enabled pulumi.BoolInput
	// Specifies the URL to define the OAuth 2.0 authorization server.
	Issuer pulumi.StringInput
	// Specifies the endpoint or a list of endpoints from which to download public keys or certificates to validate an External OAuth access token. The maximum number of URLs that can be specified in the list is 3.
	JwsKeysUrls pulumi.StringArrayInput
	// Specifies the name of the External Oath integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account.
	Name pulumi.StringPtrInput
	// Specifies a Base64-encoded RSA public key, without the -----BEGIN PUBLIC KEY----- and -----END PUBLIC KEY----- headers.
	RsaPublicKey pulumi.StringPtrInput
	// Specifies a second RSA public key, without the -----BEGIN PUBLIC KEY----- and -----END PUBLIC KEY----- headers. Used for key rotation.
	RsaPublicKey2 pulumi.StringPtrInput
	// Specifies the scope delimiter in the authorization token.
	ScopeDelimiter pulumi.StringPtrInput
	// Specifies the access token claim to map the access token to an account role.
	ScopeMappingAttribute pulumi.StringPtrInput
	// Indicates which Snowflake user record attribute should be used to map the access token to a Snowflake user record.
	SnowflakeUserMappingAttribute pulumi.StringInput
	// Specifies the access token claim or claims that can be used to map the access token to a Snowflake user record.
	TokenUserMappingClaims pulumi.StringArrayInput
	// Specifies the OAuth 2.0 authorization server to be Okta, Microsoft Azure AD, Ping Identity PingFederate, or a Custom OAuth 2.0 authorization server.
	Type pulumi.StringInput
}

The set of arguments for constructing a ExternalOauthIntegration resource.

func (ExternalOauthIntegrationArgs) ElementType added in v0.5.0

type ExternalOauthIntegrationArray added in v0.5.0

type ExternalOauthIntegrationArray []ExternalOauthIntegrationInput

func (ExternalOauthIntegrationArray) ElementType added in v0.5.0

func (ExternalOauthIntegrationArray) ToExternalOauthIntegrationArrayOutput added in v0.5.0

func (i ExternalOauthIntegrationArray) ToExternalOauthIntegrationArrayOutput() ExternalOauthIntegrationArrayOutput

func (ExternalOauthIntegrationArray) ToExternalOauthIntegrationArrayOutputWithContext added in v0.5.0

func (i ExternalOauthIntegrationArray) ToExternalOauthIntegrationArrayOutputWithContext(ctx context.Context) ExternalOauthIntegrationArrayOutput

type ExternalOauthIntegrationArrayInput added in v0.5.0

type ExternalOauthIntegrationArrayInput interface {
	pulumi.Input

	ToExternalOauthIntegrationArrayOutput() ExternalOauthIntegrationArrayOutput
	ToExternalOauthIntegrationArrayOutputWithContext(context.Context) ExternalOauthIntegrationArrayOutput
}

ExternalOauthIntegrationArrayInput is an input type that accepts ExternalOauthIntegrationArray and ExternalOauthIntegrationArrayOutput values. You can construct a concrete instance of `ExternalOauthIntegrationArrayInput` via:

ExternalOauthIntegrationArray{ ExternalOauthIntegrationArgs{...} }

type ExternalOauthIntegrationArrayOutput added in v0.5.0

type ExternalOauthIntegrationArrayOutput struct{ *pulumi.OutputState }

func (ExternalOauthIntegrationArrayOutput) ElementType added in v0.5.0

func (ExternalOauthIntegrationArrayOutput) Index added in v0.5.0

func (ExternalOauthIntegrationArrayOutput) ToExternalOauthIntegrationArrayOutput added in v0.5.0

func (o ExternalOauthIntegrationArrayOutput) ToExternalOauthIntegrationArrayOutput() ExternalOauthIntegrationArrayOutput

func (ExternalOauthIntegrationArrayOutput) ToExternalOauthIntegrationArrayOutputWithContext added in v0.5.0

func (o ExternalOauthIntegrationArrayOutput) ToExternalOauthIntegrationArrayOutputWithContext(ctx context.Context) ExternalOauthIntegrationArrayOutput

type ExternalOauthIntegrationInput added in v0.5.0

type ExternalOauthIntegrationInput interface {
	pulumi.Input

	ToExternalOauthIntegrationOutput() ExternalOauthIntegrationOutput
	ToExternalOauthIntegrationOutputWithContext(ctx context.Context) ExternalOauthIntegrationOutput
}

type ExternalOauthIntegrationMap added in v0.5.0

type ExternalOauthIntegrationMap map[string]ExternalOauthIntegrationInput

func (ExternalOauthIntegrationMap) ElementType added in v0.5.0

func (ExternalOauthIntegrationMap) ToExternalOauthIntegrationMapOutput added in v0.5.0

func (i ExternalOauthIntegrationMap) ToExternalOauthIntegrationMapOutput() ExternalOauthIntegrationMapOutput

func (ExternalOauthIntegrationMap) ToExternalOauthIntegrationMapOutputWithContext added in v0.5.0

func (i ExternalOauthIntegrationMap) ToExternalOauthIntegrationMapOutputWithContext(ctx context.Context) ExternalOauthIntegrationMapOutput

type ExternalOauthIntegrationMapInput added in v0.5.0

type ExternalOauthIntegrationMapInput interface {
	pulumi.Input

	ToExternalOauthIntegrationMapOutput() ExternalOauthIntegrationMapOutput
	ToExternalOauthIntegrationMapOutputWithContext(context.Context) ExternalOauthIntegrationMapOutput
}

ExternalOauthIntegrationMapInput is an input type that accepts ExternalOauthIntegrationMap and ExternalOauthIntegrationMapOutput values. You can construct a concrete instance of `ExternalOauthIntegrationMapInput` via:

ExternalOauthIntegrationMap{ "key": ExternalOauthIntegrationArgs{...} }

type ExternalOauthIntegrationMapOutput added in v0.5.0

type ExternalOauthIntegrationMapOutput struct{ *pulumi.OutputState }

func (ExternalOauthIntegrationMapOutput) ElementType added in v0.5.0

func (ExternalOauthIntegrationMapOutput) MapIndex added in v0.5.0

func (ExternalOauthIntegrationMapOutput) ToExternalOauthIntegrationMapOutput added in v0.5.0

func (o ExternalOauthIntegrationMapOutput) ToExternalOauthIntegrationMapOutput() ExternalOauthIntegrationMapOutput

func (ExternalOauthIntegrationMapOutput) ToExternalOauthIntegrationMapOutputWithContext added in v0.5.0

func (o ExternalOauthIntegrationMapOutput) ToExternalOauthIntegrationMapOutputWithContext(ctx context.Context) ExternalOauthIntegrationMapOutput

type ExternalOauthIntegrationOutput added in v0.5.0

type ExternalOauthIntegrationOutput struct{ *pulumi.OutputState }

func (ExternalOauthIntegrationOutput) AllowedRoles added in v0.9.0

Specifies the list of roles that the client can set as the primary role.

func (ExternalOauthIntegrationOutput) AnyRoleMode added in v0.9.0

Specifies whether the OAuth client or user can use a role that is not defined in the OAuth access token.

func (ExternalOauthIntegrationOutput) AudienceUrls added in v0.9.0

Specifies additional values that can be used for the access token's audience validation on top of using the Customer's Snowflake Account URL

func (ExternalOauthIntegrationOutput) BlockedRoles added in v0.9.0

Specifies the list of roles that a client cannot set as the primary role. Do not include ACCOUNTADMIN, ORGADMIN or SECURITYADMIN as they are already implicitly enforced and will cause in-place updates.

func (ExternalOauthIntegrationOutput) Comment added in v0.9.0

Specifies a comment for the OAuth integration.

func (ExternalOauthIntegrationOutput) CreatedOn added in v0.9.0

Date and time when the External OAUTH integration was created.

func (ExternalOauthIntegrationOutput) ElementType added in v0.5.0

func (ExternalOauthIntegrationOutput) Enabled added in v0.9.0

Specifies whether to initiate operation of the integration or suspend it.

func (ExternalOauthIntegrationOutput) Issuer added in v0.9.0

Specifies the URL to define the OAuth 2.0 authorization server.

func (ExternalOauthIntegrationOutput) JwsKeysUrls added in v0.9.0

Specifies the endpoint or a list of endpoints from which to download public keys or certificates to validate an External OAuth access token. The maximum number of URLs that can be specified in the list is 3.

func (ExternalOauthIntegrationOutput) Name added in v0.9.0

Specifies the name of the External Oath integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account.

func (ExternalOauthIntegrationOutput) RsaPublicKey added in v0.9.0

Specifies a Base64-encoded RSA public key, without the -----BEGIN PUBLIC KEY----- and -----END PUBLIC KEY----- headers.

func (ExternalOauthIntegrationOutput) RsaPublicKey2 added in v0.9.0

Specifies a second RSA public key, without the -----BEGIN PUBLIC KEY----- and -----END PUBLIC KEY----- headers. Used for key rotation.

func (ExternalOauthIntegrationOutput) ScopeDelimiter added in v0.9.0

Specifies the scope delimiter in the authorization token.

func (ExternalOauthIntegrationOutput) ScopeMappingAttribute added in v0.23.0

func (o ExternalOauthIntegrationOutput) ScopeMappingAttribute() pulumi.StringPtrOutput

Specifies the access token claim to map the access token to an account role.

func (ExternalOauthIntegrationOutput) SnowflakeUserMappingAttribute added in v0.9.0

func (o ExternalOauthIntegrationOutput) SnowflakeUserMappingAttribute() pulumi.StringOutput

Indicates which Snowflake user record attribute should be used to map the access token to a Snowflake user record.

func (ExternalOauthIntegrationOutput) ToExternalOauthIntegrationOutput added in v0.5.0

func (o ExternalOauthIntegrationOutput) ToExternalOauthIntegrationOutput() ExternalOauthIntegrationOutput

func (ExternalOauthIntegrationOutput) ToExternalOauthIntegrationOutputWithContext added in v0.5.0

func (o ExternalOauthIntegrationOutput) ToExternalOauthIntegrationOutputWithContext(ctx context.Context) ExternalOauthIntegrationOutput

func (ExternalOauthIntegrationOutput) TokenUserMappingClaims added in v0.9.0

func (o ExternalOauthIntegrationOutput) TokenUserMappingClaims() pulumi.StringArrayOutput

Specifies the access token claim or claims that can be used to map the access token to a Snowflake user record.

func (ExternalOauthIntegrationOutput) Type added in v0.9.0

Specifies the OAuth 2.0 authorization server to be Okta, Microsoft Azure AD, Ping Identity PingFederate, or a Custom OAuth 2.0 authorization server.

type ExternalOauthIntegrationState added in v0.5.0

type ExternalOauthIntegrationState struct {
	// Specifies the list of roles that the client can set as the primary role.
	AllowedRoles pulumi.StringArrayInput
	// Specifies whether the OAuth client or user can use a role that is not defined in the OAuth access token.
	AnyRoleMode pulumi.StringPtrInput
	// Specifies additional values that can be used for the access token's audience validation on top of using the Customer's Snowflake Account URL
	AudienceUrls pulumi.StringArrayInput
	// Specifies the list of roles that a client cannot set as the primary role. Do not include ACCOUNTADMIN, ORGADMIN or SECURITYADMIN as they are already implicitly enforced and will cause in-place updates.
	BlockedRoles pulumi.StringArrayInput
	// Specifies a comment for the OAuth integration.
	Comment pulumi.StringPtrInput
	// Date and time when the External OAUTH integration was created.
	CreatedOn pulumi.StringPtrInput
	// Specifies whether to initiate operation of the integration or suspend it.
	Enabled pulumi.BoolPtrInput
	// Specifies the URL to define the OAuth 2.0 authorization server.
	Issuer pulumi.StringPtrInput
	// Specifies the endpoint or a list of endpoints from which to download public keys or certificates to validate an External OAuth access token. The maximum number of URLs that can be specified in the list is 3.
	JwsKeysUrls pulumi.StringArrayInput
	// Specifies the name of the External Oath integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account.
	Name pulumi.StringPtrInput
	// Specifies a Base64-encoded RSA public key, without the -----BEGIN PUBLIC KEY----- and -----END PUBLIC KEY----- headers.
	RsaPublicKey pulumi.StringPtrInput
	// Specifies a second RSA public key, without the -----BEGIN PUBLIC KEY----- and -----END PUBLIC KEY----- headers. Used for key rotation.
	RsaPublicKey2 pulumi.StringPtrInput
	// Specifies the scope delimiter in the authorization token.
	ScopeDelimiter pulumi.StringPtrInput
	// Specifies the access token claim to map the access token to an account role.
	ScopeMappingAttribute pulumi.StringPtrInput
	// Indicates which Snowflake user record attribute should be used to map the access token to a Snowflake user record.
	SnowflakeUserMappingAttribute pulumi.StringPtrInput
	// Specifies the access token claim or claims that can be used to map the access token to a Snowflake user record.
	TokenUserMappingClaims pulumi.StringArrayInput
	// Specifies the OAuth 2.0 authorization server to be Okta, Microsoft Azure AD, Ping Identity PingFederate, or a Custom OAuth 2.0 authorization server.
	Type pulumi.StringPtrInput
}

func (ExternalOauthIntegrationState) ElementType added in v0.5.0

type ExternalTable

type ExternalTable struct {
	pulumi.CustomResourceState

	// Specifies whether to automatically refresh the external table metadata once, immediately after the external table is created.
	AutoRefresh pulumi.BoolPtrOutput `pulumi:"autoRefresh"`
	// Specifies the aws sns topic for the external table.
	AwsSnsTopic pulumi.StringPtrOutput `pulumi:"awsSnsTopic"`
	// Definitions of a column to create in the external table. Minimum one required.
	Columns ExternalTableColumnArrayOutput `pulumi:"columns"`
	// Specifies a comment for the external table.
	Comment pulumi.StringPtrOutput `pulumi:"comment"`
	// Specifies to retain the access permissions from the original table when an external table is recreated using the CREATE OR REPLACE TABLE variant
	CopyGrants pulumi.BoolPtrOutput `pulumi:"copyGrants"`
	// The database in which to create the external table.
	Database pulumi.StringOutput `pulumi:"database"`
	// Specifies the file format for the external table.
	FileFormat pulumi.StringOutput `pulumi:"fileFormat"`
	// Specifies a location for the external table.
	Location pulumi.StringOutput `pulumi:"location"`
	// Specifies the identifier for the external table; must be unique for the database and schema in which the externalTable is created.
	Name pulumi.StringOutput `pulumi:"name"`
	// Name of the role that owns the external table.
	Owner pulumi.StringOutput `pulumi:"owner"`
	// Specifies any partition columns to evaluate for the external table.
	PartitionBies pulumi.StringArrayOutput `pulumi:"partitionBies"`
	// Specifies the file names and/or paths on the external stage to match.
	Pattern pulumi.StringPtrOutput `pulumi:"pattern"`
	// Specifies weather to refresh when an external table is created.
	RefreshOnCreate pulumi.BoolPtrOutput `pulumi:"refreshOnCreate"`
	// The schema in which to create the external table.
	Schema pulumi.StringOutput `pulumi:"schema"`
	// Definitions of a tag to associate with the resource.
	//
	// Deprecated: Use the 'snowflake_tag_association' resource instead.
	Tags ExternalTableTagArrayOutput `pulumi:"tags"`
}

## Example Usage

```go 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.NewExternalTable(ctx, "externalTable", &snowflake.ExternalTableArgs{
			Columns: snowflake.ExternalTableColumnArray{
				&snowflake.ExternalTableColumnArgs{
					Name: pulumi.String("id"),
					Type: pulumi.String("int"),
				},
				&snowflake.ExternalTableColumnArgs{
					Name: pulumi.String("data"),
					Type: pulumi.String("text"),
				},
			},
			Comment:    pulumi.String("External table"),
			Database:   pulumi.String("db"),
			FileFormat: pulumi.String("TYPE = CSV FIELD_DELIMITER = '|'"),
			Schema:     pulumi.String("schema"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

format is database name | schema name | external table name

```sh

$ pulumi import snowflake:index/externalTable:ExternalTable example 'dbName|schemaName|externalTableName'

```

func GetExternalTable

func GetExternalTable(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ExternalTableState, opts ...pulumi.ResourceOption) (*ExternalTable, error)

GetExternalTable gets an existing ExternalTable resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewExternalTable

func NewExternalTable(ctx *pulumi.Context,
	name string, args *ExternalTableArgs, opts ...pulumi.ResourceOption) (*ExternalTable, error)

NewExternalTable registers a new resource with the given unique name, arguments, and options.

func (*ExternalTable) ElementType

func (*ExternalTable) ElementType() reflect.Type

func (*ExternalTable) ToExternalTableOutput

func (i *ExternalTable) ToExternalTableOutput() ExternalTableOutput

func (*ExternalTable) ToExternalTableOutputWithContext

func (i *ExternalTable) ToExternalTableOutputWithContext(ctx context.Context) ExternalTableOutput

type ExternalTableArgs

type ExternalTableArgs struct {
	// Specifies whether to automatically refresh the external table metadata once, immediately after the external table is created.
	AutoRefresh pulumi.BoolPtrInput
	// Specifies the aws sns topic for the external table.
	AwsSnsTopic pulumi.StringPtrInput
	// Definitions of a column to create in the external table. Minimum one required.
	Columns ExternalTableColumnArrayInput
	// Specifies a comment for the external table.
	Comment pulumi.StringPtrInput
	// Specifies to retain the access permissions from the original table when an external table is recreated using the CREATE OR REPLACE TABLE variant
	CopyGrants pulumi.BoolPtrInput
	// The database in which to create the external table.
	Database pulumi.StringInput
	// Specifies the file format for the external table.
	FileFormat pulumi.StringInput
	// Specifies a location for the external table.
	Location pulumi.StringInput
	// Specifies the identifier for the external table; must be unique for the database and schema in which the externalTable is created.
	Name pulumi.StringPtrInput
	// Specifies any partition columns to evaluate for the external table.
	PartitionBies pulumi.StringArrayInput
	// Specifies the file names and/or paths on the external stage to match.
	Pattern pulumi.StringPtrInput
	// Specifies weather to refresh when an external table is created.
	RefreshOnCreate pulumi.BoolPtrInput
	// The schema in which to create the external table.
	Schema pulumi.StringInput
	// Definitions of a tag to associate with the resource.
	//
	// Deprecated: Use the 'snowflake_tag_association' resource instead.
	Tags ExternalTableTagArrayInput
}

The set of arguments for constructing a ExternalTable resource.

func (ExternalTableArgs) ElementType

func (ExternalTableArgs) ElementType() reflect.Type

type ExternalTableArray

type ExternalTableArray []ExternalTableInput

func (ExternalTableArray) ElementType

func (ExternalTableArray) ElementType() reflect.Type

func (ExternalTableArray) ToExternalTableArrayOutput

func (i ExternalTableArray) ToExternalTableArrayOutput() ExternalTableArrayOutput

func (ExternalTableArray) ToExternalTableArrayOutputWithContext

func (i ExternalTableArray) ToExternalTableArrayOutputWithContext(ctx context.Context) ExternalTableArrayOutput

type ExternalTableArrayInput

type ExternalTableArrayInput interface {
	pulumi.Input

	ToExternalTableArrayOutput() ExternalTableArrayOutput
	ToExternalTableArrayOutputWithContext(context.Context) ExternalTableArrayOutput
}

ExternalTableArrayInput is an input type that accepts ExternalTableArray and ExternalTableArrayOutput values. You can construct a concrete instance of `ExternalTableArrayInput` via:

ExternalTableArray{ ExternalTableArgs{...} }

type ExternalTableArrayOutput

type ExternalTableArrayOutput struct{ *pulumi.OutputState }

func (ExternalTableArrayOutput) ElementType

func (ExternalTableArrayOutput) ElementType() reflect.Type

func (ExternalTableArrayOutput) Index

func (ExternalTableArrayOutput) ToExternalTableArrayOutput

func (o ExternalTableArrayOutput) ToExternalTableArrayOutput() ExternalTableArrayOutput

func (ExternalTableArrayOutput) ToExternalTableArrayOutputWithContext

func (o ExternalTableArrayOutput) ToExternalTableArrayOutputWithContext(ctx context.Context) ExternalTableArrayOutput

type ExternalTableColumn

type ExternalTableColumn struct {
	// String that specifies the expression for the column. When queried, the column returns results derived from this expression.
	As string `pulumi:"as"`
	// Column name
	Name string `pulumi:"name"`
	// Column type, e.g. VARIANT
	Type string `pulumi:"type"`
}

type ExternalTableColumnArgs

type ExternalTableColumnArgs struct {
	// String that specifies the expression for the column. When queried, the column returns results derived from this expression.
	As pulumi.StringInput `pulumi:"as"`
	// Column name
	Name pulumi.StringInput `pulumi:"name"`
	// Column type, e.g. VARIANT
	Type pulumi.StringInput `pulumi:"type"`
}

func (ExternalTableColumnArgs) ElementType

func (ExternalTableColumnArgs) ElementType() reflect.Type

func (ExternalTableColumnArgs) ToExternalTableColumnOutput

func (i ExternalTableColumnArgs) ToExternalTableColumnOutput() ExternalTableColumnOutput

func (ExternalTableColumnArgs) ToExternalTableColumnOutputWithContext

func (i ExternalTableColumnArgs) ToExternalTableColumnOutputWithContext(ctx context.Context) ExternalTableColumnOutput

type ExternalTableColumnArray

type ExternalTableColumnArray []ExternalTableColumnInput

func (ExternalTableColumnArray) ElementType

func (ExternalTableColumnArray) ElementType() reflect.Type

func (ExternalTableColumnArray) ToExternalTableColumnArrayOutput

func (i ExternalTableColumnArray) ToExternalTableColumnArrayOutput() ExternalTableColumnArrayOutput

func (ExternalTableColumnArray) ToExternalTableColumnArrayOutputWithContext

func (i ExternalTableColumnArray) ToExternalTableColumnArrayOutputWithContext(ctx context.Context) ExternalTableColumnArrayOutput

type ExternalTableColumnArrayInput

type ExternalTableColumnArrayInput interface {
	pulumi.Input

	ToExternalTableColumnArrayOutput() ExternalTableColumnArrayOutput
	ToExternalTableColumnArrayOutputWithContext(context.Context) ExternalTableColumnArrayOutput
}

ExternalTableColumnArrayInput is an input type that accepts ExternalTableColumnArray and ExternalTableColumnArrayOutput values. You can construct a concrete instance of `ExternalTableColumnArrayInput` via:

ExternalTableColumnArray{ ExternalTableColumnArgs{...} }

type ExternalTableColumnArrayOutput

type ExternalTableColumnArrayOutput struct{ *pulumi.OutputState }

func (ExternalTableColumnArrayOutput) ElementType

func (ExternalTableColumnArrayOutput) Index

func (ExternalTableColumnArrayOutput) ToExternalTableColumnArrayOutput

func (o ExternalTableColumnArrayOutput) ToExternalTableColumnArrayOutput() ExternalTableColumnArrayOutput

func (ExternalTableColumnArrayOutput) ToExternalTableColumnArrayOutputWithContext

func (o ExternalTableColumnArrayOutput) ToExternalTableColumnArrayOutputWithContext(ctx context.Context) ExternalTableColumnArrayOutput

type ExternalTableColumnInput

type ExternalTableColumnInput interface {
	pulumi.Input

	ToExternalTableColumnOutput() ExternalTableColumnOutput
	ToExternalTableColumnOutputWithContext(context.Context) ExternalTableColumnOutput
}

ExternalTableColumnInput is an input type that accepts ExternalTableColumnArgs and ExternalTableColumnOutput values. You can construct a concrete instance of `ExternalTableColumnInput` via:

ExternalTableColumnArgs{...}

type ExternalTableColumnOutput

type ExternalTableColumnOutput struct{ *pulumi.OutputState }

func (ExternalTableColumnOutput) As

String that specifies the expression for the column. When queried, the column returns results derived from this expression.

func (ExternalTableColumnOutput) ElementType

func (ExternalTableColumnOutput) ElementType() reflect.Type

func (ExternalTableColumnOutput) Name

Column name

func (ExternalTableColumnOutput) ToExternalTableColumnOutput

func (o ExternalTableColumnOutput) ToExternalTableColumnOutput() ExternalTableColumnOutput

func (ExternalTableColumnOutput) ToExternalTableColumnOutputWithContext

func (o ExternalTableColumnOutput) ToExternalTableColumnOutputWithContext(ctx context.Context) ExternalTableColumnOutput

func (ExternalTableColumnOutput) Type

Column type, e.g. VARIANT

type ExternalTableGrant

type ExternalTableGrant struct {
	pulumi.CustomResourceState

	// The name of the database containing the current or future external tables on which to grant privileges.
	DatabaseName pulumi.StringOutput `pulumi:"databaseName"`
	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrOutput `pulumi:"enableMultipleGrants"`
	// The name of the external table on which to grant privileges immediately (only valid if onFuture is false).
	ExternalTableName pulumi.StringPtrOutput `pulumi:"externalTableName"`
	// When this is set to true and a schema*name is provided, apply this grant on all external tables in the given schema. When this is true and no schema*name is provided apply this grant on all external tables in the given database. The external*table*name and shares fields must be unset in order to use on*all. Cannot be used together with on*future.
	OnAll pulumi.BoolPtrOutput `pulumi:"onAll"`
	// When this is set to true and a schema*name is provided, apply this grant on all future external tables in the given schema. When this is true and no schema*name is provided apply this grant on all future external tables in the given database. The external*table*name and shares fields must be unset in order to use on*future. Cannot be used together with on*all.
	OnFuture pulumi.BoolPtrOutput `pulumi:"onFuture"`
	// The privilege to grant on the current or future external table. To grant all privileges, use the value `ALL PRIVILEGES`
	Privilege pulumi.StringPtrOutput `pulumi:"privilege"`
	// The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
	RevertOwnershipToRoleName pulumi.StringPtrOutput `pulumi:"revertOwnershipToRoleName"`
	// Grants privilege to these roles.
	Roles pulumi.StringArrayOutput `pulumi:"roles"`
	// The name of the schema containing the current or future external tables on which to grant privileges.
	SchemaName pulumi.StringPtrOutput `pulumi:"schemaName"`
	// Grants privilege to these shares (only valid if onFuture is false).
	Shares pulumi.StringArrayOutput `pulumi:"shares"`
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrOutput `pulumi:"withGrantOption"`
}

## Example Usage

```go 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.NewExternalTableGrant(ctx, "grant", &snowflake.ExternalTableGrantArgs{
			DatabaseName:      pulumi.String("database"),
			ExternalTableName: pulumi.String("external_table"),
			OnFuture:          pulumi.Bool(false),
			Privilege:         pulumi.String("SELECT"),
			Roles: pulumi.StringArray{
				pulumi.String("role1"),
				pulumi.String("role2"),
			},
			SchemaName: pulumi.String("schema"),
			Shares: pulumi.StringArray{
				pulumi.String("share1"),
				pulumi.String("share2"),
			},
			WithGrantOption: pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

format is database|schema|external_table|privilege|with_grant_option|on_future|roles|shares

```sh

$ pulumi import snowflake:index/externalTableGrant:ExternalTableGrant example "MY_DATABASE|MY_SCHEMA|MY_TABLE_NAME|SELECT|false|false|role1,role2|share1,share2"

```

func GetExternalTableGrant

func GetExternalTableGrant(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ExternalTableGrantState, opts ...pulumi.ResourceOption) (*ExternalTableGrant, error)

GetExternalTableGrant gets an existing ExternalTableGrant resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewExternalTableGrant

func NewExternalTableGrant(ctx *pulumi.Context,
	name string, args *ExternalTableGrantArgs, opts ...pulumi.ResourceOption) (*ExternalTableGrant, error)

NewExternalTableGrant registers a new resource with the given unique name, arguments, and options.

func (*ExternalTableGrant) ElementType

func (*ExternalTableGrant) ElementType() reflect.Type

func (*ExternalTableGrant) ToExternalTableGrantOutput

func (i *ExternalTableGrant) ToExternalTableGrantOutput() ExternalTableGrantOutput

func (*ExternalTableGrant) ToExternalTableGrantOutputWithContext

func (i *ExternalTableGrant) ToExternalTableGrantOutputWithContext(ctx context.Context) ExternalTableGrantOutput

type ExternalTableGrantArgs

type ExternalTableGrantArgs struct {
	// The name of the database containing the current or future external tables on which to grant privileges.
	DatabaseName pulumi.StringInput
	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrInput
	// The name of the external table on which to grant privileges immediately (only valid if onFuture is false).
	ExternalTableName pulumi.StringPtrInput
	// When this is set to true and a schema*name is provided, apply this grant on all external tables in the given schema. When this is true and no schema*name is provided apply this grant on all external tables in the given database. The external*table*name and shares fields must be unset in order to use on*all. Cannot be used together with on*future.
	OnAll pulumi.BoolPtrInput
	// When this is set to true and a schema*name is provided, apply this grant on all future external tables in the given schema. When this is true and no schema*name is provided apply this grant on all future external tables in the given database. The external*table*name and shares fields must be unset in order to use on*future. Cannot be used together with on*all.
	OnFuture pulumi.BoolPtrInput
	// The privilege to grant on the current or future external table. To grant all privileges, use the value `ALL PRIVILEGES`
	Privilege pulumi.StringPtrInput
	// The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
	RevertOwnershipToRoleName pulumi.StringPtrInput
	// Grants privilege to these roles.
	Roles pulumi.StringArrayInput
	// The name of the schema containing the current or future external tables on which to grant privileges.
	SchemaName pulumi.StringPtrInput
	// Grants privilege to these shares (only valid if onFuture is false).
	Shares pulumi.StringArrayInput
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrInput
}

The set of arguments for constructing a ExternalTableGrant resource.

func (ExternalTableGrantArgs) ElementType

func (ExternalTableGrantArgs) ElementType() reflect.Type

type ExternalTableGrantArray

type ExternalTableGrantArray []ExternalTableGrantInput

func (ExternalTableGrantArray) ElementType

func (ExternalTableGrantArray) ElementType() reflect.Type

func (ExternalTableGrantArray) ToExternalTableGrantArrayOutput

func (i ExternalTableGrantArray) ToExternalTableGrantArrayOutput() ExternalTableGrantArrayOutput

func (ExternalTableGrantArray) ToExternalTableGrantArrayOutputWithContext

func (i ExternalTableGrantArray) ToExternalTableGrantArrayOutputWithContext(ctx context.Context) ExternalTableGrantArrayOutput

type ExternalTableGrantArrayInput

type ExternalTableGrantArrayInput interface {
	pulumi.Input

	ToExternalTableGrantArrayOutput() ExternalTableGrantArrayOutput
	ToExternalTableGrantArrayOutputWithContext(context.Context) ExternalTableGrantArrayOutput
}

ExternalTableGrantArrayInput is an input type that accepts ExternalTableGrantArray and ExternalTableGrantArrayOutput values. You can construct a concrete instance of `ExternalTableGrantArrayInput` via:

ExternalTableGrantArray{ ExternalTableGrantArgs{...} }

type ExternalTableGrantArrayOutput

type ExternalTableGrantArrayOutput struct{ *pulumi.OutputState }

func (ExternalTableGrantArrayOutput) ElementType

func (ExternalTableGrantArrayOutput) Index

func (ExternalTableGrantArrayOutput) ToExternalTableGrantArrayOutput

func (o ExternalTableGrantArrayOutput) ToExternalTableGrantArrayOutput() ExternalTableGrantArrayOutput

func (ExternalTableGrantArrayOutput) ToExternalTableGrantArrayOutputWithContext

func (o ExternalTableGrantArrayOutput) ToExternalTableGrantArrayOutputWithContext(ctx context.Context) ExternalTableGrantArrayOutput

type ExternalTableGrantInput

type ExternalTableGrantInput interface {
	pulumi.Input

	ToExternalTableGrantOutput() ExternalTableGrantOutput
	ToExternalTableGrantOutputWithContext(ctx context.Context) ExternalTableGrantOutput
}

type ExternalTableGrantMap

type ExternalTableGrantMap map[string]ExternalTableGrantInput

func (ExternalTableGrantMap) ElementType

func (ExternalTableGrantMap) ElementType() reflect.Type

func (ExternalTableGrantMap) ToExternalTableGrantMapOutput

func (i ExternalTableGrantMap) ToExternalTableGrantMapOutput() ExternalTableGrantMapOutput

func (ExternalTableGrantMap) ToExternalTableGrantMapOutputWithContext

func (i ExternalTableGrantMap) ToExternalTableGrantMapOutputWithContext(ctx context.Context) ExternalTableGrantMapOutput

type ExternalTableGrantMapInput

type ExternalTableGrantMapInput interface {
	pulumi.Input

	ToExternalTableGrantMapOutput() ExternalTableGrantMapOutput
	ToExternalTableGrantMapOutputWithContext(context.Context) ExternalTableGrantMapOutput
}

ExternalTableGrantMapInput is an input type that accepts ExternalTableGrantMap and ExternalTableGrantMapOutput values. You can construct a concrete instance of `ExternalTableGrantMapInput` via:

ExternalTableGrantMap{ "key": ExternalTableGrantArgs{...} }

type ExternalTableGrantMapOutput

type ExternalTableGrantMapOutput struct{ *pulumi.OutputState }

func (ExternalTableGrantMapOutput) ElementType

func (ExternalTableGrantMapOutput) MapIndex

func (ExternalTableGrantMapOutput) ToExternalTableGrantMapOutput

func (o ExternalTableGrantMapOutput) ToExternalTableGrantMapOutput() ExternalTableGrantMapOutput

func (ExternalTableGrantMapOutput) ToExternalTableGrantMapOutputWithContext

func (o ExternalTableGrantMapOutput) ToExternalTableGrantMapOutputWithContext(ctx context.Context) ExternalTableGrantMapOutput

type ExternalTableGrantOutput

type ExternalTableGrantOutput struct{ *pulumi.OutputState }

func (ExternalTableGrantOutput) DatabaseName added in v0.9.0

func (o ExternalTableGrantOutput) DatabaseName() pulumi.StringOutput

The name of the database containing the current or future external tables on which to grant privileges.

func (ExternalTableGrantOutput) ElementType

func (ExternalTableGrantOutput) ElementType() reflect.Type

func (ExternalTableGrantOutput) EnableMultipleGrants added in v0.9.0

func (o ExternalTableGrantOutput) EnableMultipleGrants() pulumi.BoolPtrOutput

When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke grants applied to roles and objects outside Terraform.

func (ExternalTableGrantOutput) ExternalTableName added in v0.9.0

func (o ExternalTableGrantOutput) ExternalTableName() pulumi.StringPtrOutput

The name of the external table on which to grant privileges immediately (only valid if onFuture is false).

func (ExternalTableGrantOutput) OnAll added in v0.25.0

When this is set to true and a schema*name is provided, apply this grant on all external tables in the given schema. When this is true and no schema*name is provided apply this grant on all external tables in the given database. The external*table*name and shares fields must be unset in order to use on*all. Cannot be used together with on*future.

func (ExternalTableGrantOutput) OnFuture added in v0.9.0

When this is set to true and a schema*name is provided, apply this grant on all future external tables in the given schema. When this is true and no schema*name is provided apply this grant on all future external tables in the given database. The external*table*name and shares fields must be unset in order to use on*future. Cannot be used together with on*all.

func (ExternalTableGrantOutput) Privilege added in v0.9.0

The privilege to grant on the current or future external table. To grant all privileges, use the value `ALL PRIVILEGES`

func (ExternalTableGrantOutput) RevertOwnershipToRoleName added in v0.26.0

func (o ExternalTableGrantOutput) RevertOwnershipToRoleName() pulumi.StringPtrOutput

The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`

func (ExternalTableGrantOutput) Roles added in v0.9.0

Grants privilege to these roles.

func (ExternalTableGrantOutput) SchemaName added in v0.9.0

The name of the schema containing the current or future external tables on which to grant privileges.

func (ExternalTableGrantOutput) Shares added in v0.9.0

Grants privilege to these shares (only valid if onFuture is false).

func (ExternalTableGrantOutput) ToExternalTableGrantOutput

func (o ExternalTableGrantOutput) ToExternalTableGrantOutput() ExternalTableGrantOutput

func (ExternalTableGrantOutput) ToExternalTableGrantOutputWithContext

func (o ExternalTableGrantOutput) ToExternalTableGrantOutputWithContext(ctx context.Context) ExternalTableGrantOutput

func (ExternalTableGrantOutput) WithGrantOption added in v0.9.0

func (o ExternalTableGrantOutput) WithGrantOption() pulumi.BoolPtrOutput

When this is set to true, allows the recipient role to grant the privileges to other roles.

type ExternalTableGrantState

type ExternalTableGrantState struct {
	// The name of the database containing the current or future external tables on which to grant privileges.
	DatabaseName pulumi.StringPtrInput
	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrInput
	// The name of the external table on which to grant privileges immediately (only valid if onFuture is false).
	ExternalTableName pulumi.StringPtrInput
	// When this is set to true and a schema*name is provided, apply this grant on all external tables in the given schema. When this is true and no schema*name is provided apply this grant on all external tables in the given database. The external*table*name and shares fields must be unset in order to use on*all. Cannot be used together with on*future.
	OnAll pulumi.BoolPtrInput
	// When this is set to true and a schema*name is provided, apply this grant on all future external tables in the given schema. When this is true and no schema*name is provided apply this grant on all future external tables in the given database. The external*table*name and shares fields must be unset in order to use on*future. Cannot be used together with on*all.
	OnFuture pulumi.BoolPtrInput
	// The privilege to grant on the current or future external table. To grant all privileges, use the value `ALL PRIVILEGES`
	Privilege pulumi.StringPtrInput
	// The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
	RevertOwnershipToRoleName pulumi.StringPtrInput
	// Grants privilege to these roles.
	Roles pulumi.StringArrayInput
	// The name of the schema containing the current or future external tables on which to grant privileges.
	SchemaName pulumi.StringPtrInput
	// Grants privilege to these shares (only valid if onFuture is false).
	Shares pulumi.StringArrayInput
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrInput
}

func (ExternalTableGrantState) ElementType

func (ExternalTableGrantState) ElementType() reflect.Type

type ExternalTableInput

type ExternalTableInput interface {
	pulumi.Input

	ToExternalTableOutput() ExternalTableOutput
	ToExternalTableOutputWithContext(ctx context.Context) ExternalTableOutput
}

type ExternalTableMap

type ExternalTableMap map[string]ExternalTableInput

func (ExternalTableMap) ElementType

func (ExternalTableMap) ElementType() reflect.Type

func (ExternalTableMap) ToExternalTableMapOutput

func (i ExternalTableMap) ToExternalTableMapOutput() ExternalTableMapOutput

func (ExternalTableMap) ToExternalTableMapOutputWithContext

func (i ExternalTableMap) ToExternalTableMapOutputWithContext(ctx context.Context) ExternalTableMapOutput

type ExternalTableMapInput

type ExternalTableMapInput interface {
	pulumi.Input

	ToExternalTableMapOutput() ExternalTableMapOutput
	ToExternalTableMapOutputWithContext(context.Context) ExternalTableMapOutput
}

ExternalTableMapInput is an input type that accepts ExternalTableMap and ExternalTableMapOutput values. You can construct a concrete instance of `ExternalTableMapInput` via:

ExternalTableMap{ "key": ExternalTableArgs{...} }

type ExternalTableMapOutput

type ExternalTableMapOutput struct{ *pulumi.OutputState }

func (ExternalTableMapOutput) ElementType

func (ExternalTableMapOutput) ElementType() reflect.Type

func (ExternalTableMapOutput) MapIndex

func (ExternalTableMapOutput) ToExternalTableMapOutput

func (o ExternalTableMapOutput) ToExternalTableMapOutput() ExternalTableMapOutput

func (ExternalTableMapOutput) ToExternalTableMapOutputWithContext

func (o ExternalTableMapOutput) ToExternalTableMapOutputWithContext(ctx context.Context) ExternalTableMapOutput

type ExternalTableOutput

type ExternalTableOutput struct{ *pulumi.OutputState }

func (ExternalTableOutput) AutoRefresh added in v0.9.0

func (o ExternalTableOutput) AutoRefresh() pulumi.BoolPtrOutput

Specifies whether to automatically refresh the external table metadata once, immediately after the external table is created.

func (ExternalTableOutput) AwsSnsTopic added in v0.9.0

func (o ExternalTableOutput) AwsSnsTopic() pulumi.StringPtrOutput

Specifies the aws sns topic for the external table.

func (ExternalTableOutput) Columns added in v0.9.0

Definitions of a column to create in the external table. Minimum one required.

func (ExternalTableOutput) Comment added in v0.9.0

Specifies a comment for the external table.

func (ExternalTableOutput) CopyGrants added in v0.9.0

func (o ExternalTableOutput) CopyGrants() pulumi.BoolPtrOutput

Specifies to retain the access permissions from the original table when an external table is recreated using the CREATE OR REPLACE TABLE variant

func (ExternalTableOutput) Database added in v0.9.0

The database in which to create the external table.

func (ExternalTableOutput) ElementType

func (ExternalTableOutput) ElementType() reflect.Type

func (ExternalTableOutput) FileFormat added in v0.9.0

func (o ExternalTableOutput) FileFormat() pulumi.StringOutput

Specifies the file format for the external table.

func (ExternalTableOutput) Location added in v0.9.0

Specifies a location for the external table.

func (ExternalTableOutput) Name added in v0.9.0

Specifies the identifier for the external table; must be unique for the database and schema in which the externalTable is created.

func (ExternalTableOutput) Owner added in v0.9.0

Name of the role that owns the external table.

func (ExternalTableOutput) PartitionBies added in v0.9.0

func (o ExternalTableOutput) PartitionBies() pulumi.StringArrayOutput

Specifies any partition columns to evaluate for the external table.

func (ExternalTableOutput) Pattern added in v0.9.0

Specifies the file names and/or paths on the external stage to match.

func (ExternalTableOutput) RefreshOnCreate added in v0.9.0

func (o ExternalTableOutput) RefreshOnCreate() pulumi.BoolPtrOutput

Specifies weather to refresh when an external table is created.

func (ExternalTableOutput) Schema added in v0.9.0

The schema in which to create the external table.

func (ExternalTableOutput) Tags deprecated added in v0.9.0

Definitions of a tag to associate with the resource.

Deprecated: Use the 'snowflake_tag_association' resource instead.

func (ExternalTableOutput) ToExternalTableOutput

func (o ExternalTableOutput) ToExternalTableOutput() ExternalTableOutput

func (ExternalTableOutput) ToExternalTableOutputWithContext

func (o ExternalTableOutput) ToExternalTableOutputWithContext(ctx context.Context) ExternalTableOutput

type ExternalTableState

type ExternalTableState struct {
	// Specifies whether to automatically refresh the external table metadata once, immediately after the external table is created.
	AutoRefresh pulumi.BoolPtrInput
	// Specifies the aws sns topic for the external table.
	AwsSnsTopic pulumi.StringPtrInput
	// Definitions of a column to create in the external table. Minimum one required.
	Columns ExternalTableColumnArrayInput
	// Specifies a comment for the external table.
	Comment pulumi.StringPtrInput
	// Specifies to retain the access permissions from the original table when an external table is recreated using the CREATE OR REPLACE TABLE variant
	CopyGrants pulumi.BoolPtrInput
	// The database in which to create the external table.
	Database pulumi.StringPtrInput
	// Specifies the file format for the external table.
	FileFormat pulumi.StringPtrInput
	// Specifies a location for the external table.
	Location pulumi.StringPtrInput
	// Specifies the identifier for the external table; must be unique for the database and schema in which the externalTable is created.
	Name pulumi.StringPtrInput
	// Name of the role that owns the external table.
	Owner pulumi.StringPtrInput
	// Specifies any partition columns to evaluate for the external table.
	PartitionBies pulumi.StringArrayInput
	// Specifies the file names and/or paths on the external stage to match.
	Pattern pulumi.StringPtrInput
	// Specifies weather to refresh when an external table is created.
	RefreshOnCreate pulumi.BoolPtrInput
	// The schema in which to create the external table.
	Schema pulumi.StringPtrInput
	// Definitions of a tag to associate with the resource.
	//
	// Deprecated: Use the 'snowflake_tag_association' resource instead.
	Tags ExternalTableTagArrayInput
}

func (ExternalTableState) ElementType

func (ExternalTableState) ElementType() reflect.Type

type ExternalTableTag added in v0.3.0

type ExternalTableTag struct {
	// Name of the database that the tag was created in.
	Database *string `pulumi:"database"`
	// Tag name, e.g. department.
	Name string `pulumi:"name"`
	// Name of the schema that the tag was created in.
	Schema *string `pulumi:"schema"`
	// Tag value, e.g. marketing_info.
	Value string `pulumi:"value"`
}

type ExternalTableTagArgs added in v0.3.0

type ExternalTableTagArgs struct {
	// Name of the database that the tag was created in.
	Database pulumi.StringPtrInput `pulumi:"database"`
	// Tag name, e.g. department.
	Name pulumi.StringInput `pulumi:"name"`
	// Name of the schema that the tag was created in.
	Schema pulumi.StringPtrInput `pulumi:"schema"`
	// Tag value, e.g. marketing_info.
	Value pulumi.StringInput `pulumi:"value"`
}

func (ExternalTableTagArgs) ElementType added in v0.3.0

func (ExternalTableTagArgs) ElementType() reflect.Type

func (ExternalTableTagArgs) ToExternalTableTagOutput added in v0.3.0

func (i ExternalTableTagArgs) ToExternalTableTagOutput() ExternalTableTagOutput

func (ExternalTableTagArgs) ToExternalTableTagOutputWithContext added in v0.3.0

func (i ExternalTableTagArgs) ToExternalTableTagOutputWithContext(ctx context.Context) ExternalTableTagOutput

type ExternalTableTagArray added in v0.3.0

type ExternalTableTagArray []ExternalTableTagInput

func (ExternalTableTagArray) ElementType added in v0.3.0

func (ExternalTableTagArray) ElementType() reflect.Type

func (ExternalTableTagArray) ToExternalTableTagArrayOutput added in v0.3.0

func (i ExternalTableTagArray) ToExternalTableTagArrayOutput() ExternalTableTagArrayOutput

func (ExternalTableTagArray) ToExternalTableTagArrayOutputWithContext added in v0.3.0

func (i ExternalTableTagArray) ToExternalTableTagArrayOutputWithContext(ctx context.Context) ExternalTableTagArrayOutput

type ExternalTableTagArrayInput added in v0.3.0

type ExternalTableTagArrayInput interface {
	pulumi.Input

	ToExternalTableTagArrayOutput() ExternalTableTagArrayOutput
	ToExternalTableTagArrayOutputWithContext(context.Context) ExternalTableTagArrayOutput
}

ExternalTableTagArrayInput is an input type that accepts ExternalTableTagArray and ExternalTableTagArrayOutput values. You can construct a concrete instance of `ExternalTableTagArrayInput` via:

ExternalTableTagArray{ ExternalTableTagArgs{...} }

type ExternalTableTagArrayOutput added in v0.3.0

type ExternalTableTagArrayOutput struct{ *pulumi.OutputState }

func (ExternalTableTagArrayOutput) ElementType added in v0.3.0

func (ExternalTableTagArrayOutput) Index added in v0.3.0

func (ExternalTableTagArrayOutput) ToExternalTableTagArrayOutput added in v0.3.0

func (o ExternalTableTagArrayOutput) ToExternalTableTagArrayOutput() ExternalTableTagArrayOutput

func (ExternalTableTagArrayOutput) ToExternalTableTagArrayOutputWithContext added in v0.3.0

func (o ExternalTableTagArrayOutput) ToExternalTableTagArrayOutputWithContext(ctx context.Context) ExternalTableTagArrayOutput

type ExternalTableTagInput added in v0.3.0

type ExternalTableTagInput interface {
	pulumi.Input

	ToExternalTableTagOutput() ExternalTableTagOutput
	ToExternalTableTagOutputWithContext(context.Context) ExternalTableTagOutput
}

ExternalTableTagInput is an input type that accepts ExternalTableTagArgs and ExternalTableTagOutput values. You can construct a concrete instance of `ExternalTableTagInput` via:

ExternalTableTagArgs{...}

type ExternalTableTagOutput added in v0.3.0

type ExternalTableTagOutput struct{ *pulumi.OutputState }

func (ExternalTableTagOutput) Database added in v0.3.0

Name of the database that the tag was created in.

func (ExternalTableTagOutput) ElementType added in v0.3.0

func (ExternalTableTagOutput) ElementType() reflect.Type

func (ExternalTableTagOutput) Name added in v0.3.0

Tag name, e.g. department.

func (ExternalTableTagOutput) Schema added in v0.3.0

Name of the schema that the tag was created in.

func (ExternalTableTagOutput) ToExternalTableTagOutput added in v0.3.0

func (o ExternalTableTagOutput) ToExternalTableTagOutput() ExternalTableTagOutput

func (ExternalTableTagOutput) ToExternalTableTagOutputWithContext added in v0.3.0

func (o ExternalTableTagOutput) ToExternalTableTagOutputWithContext(ctx context.Context) ExternalTableTagOutput

func (ExternalTableTagOutput) Value added in v0.3.0

Tag value, e.g. marketing_info.

type FailoverGroup added in v0.15.0

type FailoverGroup struct {
	pulumi.CustomResourceState

	// Specifies the target account or list of target accounts to which replication and failover of specified objects from the source account is enabled. Secondary failover groups in the target accounts in this list can be promoted to serve as the primary failover group in case of failover. Expected in the form \n\n.\n\n
	AllowedAccounts pulumi.StringArrayOutput `pulumi:"allowedAccounts"`
	// Specifies the database or list of databases for which you are enabling replication and failover from the source account to the target account. The OBJECT_TYPES list must include DATABASES to set this parameter.
	AllowedDatabases pulumi.StringArrayOutput `pulumi:"allowedDatabases"`
	// Type(s) of integrations for which you are enabling replication and failover from the source account to the target account. This property requires that the OBJECT_TYPES list include INTEGRATIONS to set this parameter. The following integration types are supported: "SECURITY INTEGRATIONS", "API INTEGRATIONS"
	AllowedIntegrationTypes pulumi.StringArrayOutput `pulumi:"allowedIntegrationTypes"`
	// Specifies the share or list of shares for which you are enabling replication and failover from the source account to the target account. The OBJECT_TYPES list must include SHARES to set this parameter.
	AllowedShares pulumi.StringArrayOutput `pulumi:"allowedShares"`
	// Specifies the name of the replica to use as the source for the failover group.
	FromReplica FailoverGroupFromReplicaPtrOutput `pulumi:"fromReplica"`
	// Allows replicating objects to accounts on lower editions.
	IgnoreEditionCheck pulumi.BoolPtrOutput `pulumi:"ignoreEditionCheck"`
	// Specifies the identifier for the failover group. The identifier must start with an alphabetic character and cannot contain spaces or special characters unless the identifier string is enclosed in double quotes (e.g. "My object"). Identifiers enclosed in double quotes are also case-sensitive.
	Name pulumi.StringOutput `pulumi:"name"`
	// Type(s) of objects for which you are enabling replication and failover from the source account to the target account. The following object types are supported: "ACCOUNT PARAMETERS", "DATABASES", "INTEGRATIONS", "NETWORK POLICIES", "RESOURCE MONITORS", "ROLES", "SHARES", "USERS", "WAREHOUSES"
	ObjectTypes pulumi.StringArrayOutput `pulumi:"objectTypes"`
	// Specifies the schedule for refreshing secondary failover groups.
	ReplicationSchedule FailoverGroupReplicationSchedulePtrOutput `pulumi:"replicationSchedule"`
}

## Example Usage

```go 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 {
		db, err := snowflake.NewDatabase(ctx, "db", nil)
		if err != nil {
			return err
		}
		_, err = snowflake.NewFailoverGroup(ctx, "sourceFailoverGroup", &snowflake.FailoverGroupArgs{
			ObjectTypes: pulumi.StringArray{
				pulumi.String("WAREHOUSES"),
				pulumi.String("DATABASES"),
				pulumi.String("INTEGRATIONS"),
				pulumi.String("ROLES"),
			},
			AllowedAccounts: pulumi.StringArray{
				pulumi.String("<org_name>.<target_account_name1>"),
				pulumi.String("<org_name>.<target_account_name2>"),
			},
			AllowedDatabases: pulumi.StringArray{
				db.Name,
			},
			AllowedIntegrationTypes: pulumi.StringArray{
				pulumi.String("SECURITY INTEGRATIONS"),
			},
			ReplicationSchedule: &snowflake.FailoverGroupReplicationScheduleArgs{
				Cron: &snowflake.FailoverGroupReplicationScheduleCronArgs{
					Expression: pulumi.String("0 0 10-20 * TUE,THU"),
					TimeZone:   pulumi.String("UTC"),
				},
			},
		})
		if err != nil {
			return err
		}
		_, err = snowflake.NewProvider(ctx, "account2", nil)
		if err != nil {
			return err
		}
		_, err = snowflake.NewFailoverGroup(ctx, "targetFailoverGroup", &snowflake.FailoverGroupArgs{
			FromReplica: &snowflake.FailoverGroupFromReplicaArgs{
				OrganizationName:  pulumi.String("..."),
				SourceAccountName: pulumi.String("..."),
				Name:              pulumi.Any(snowflake_failover_group.Fg.Name),
			},
		}, pulumi.Provider(snowflake.Account2))
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

```sh

$ pulumi import snowflake:index/failoverGroup:FailoverGroup example 'fg1'

```

func GetFailoverGroup added in v0.15.0

func GetFailoverGroup(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *FailoverGroupState, opts ...pulumi.ResourceOption) (*FailoverGroup, error)

GetFailoverGroup gets an existing FailoverGroup resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewFailoverGroup added in v0.15.0

func NewFailoverGroup(ctx *pulumi.Context,
	name string, args *FailoverGroupArgs, opts ...pulumi.ResourceOption) (*FailoverGroup, error)

NewFailoverGroup registers a new resource with the given unique name, arguments, and options.

func (*FailoverGroup) ElementType added in v0.15.0

func (*FailoverGroup) ElementType() reflect.Type

func (*FailoverGroup) ToFailoverGroupOutput added in v0.15.0

func (i *FailoverGroup) ToFailoverGroupOutput() FailoverGroupOutput

func (*FailoverGroup) ToFailoverGroupOutputWithContext added in v0.15.0

func (i *FailoverGroup) ToFailoverGroupOutputWithContext(ctx context.Context) FailoverGroupOutput

type FailoverGroupArgs added in v0.15.0

type FailoverGroupArgs struct {
	// Specifies the target account or list of target accounts to which replication and failover of specified objects from the source account is enabled. Secondary failover groups in the target accounts in this list can be promoted to serve as the primary failover group in case of failover. Expected in the form \n\n.\n\n
	AllowedAccounts pulumi.StringArrayInput
	// Specifies the database or list of databases for which you are enabling replication and failover from the source account to the target account. The OBJECT_TYPES list must include DATABASES to set this parameter.
	AllowedDatabases pulumi.StringArrayInput
	// Type(s) of integrations for which you are enabling replication and failover from the source account to the target account. This property requires that the OBJECT_TYPES list include INTEGRATIONS to set this parameter. The following integration types are supported: "SECURITY INTEGRATIONS", "API INTEGRATIONS"
	AllowedIntegrationTypes pulumi.StringArrayInput
	// Specifies the share or list of shares for which you are enabling replication and failover from the source account to the target account. The OBJECT_TYPES list must include SHARES to set this parameter.
	AllowedShares pulumi.StringArrayInput
	// Specifies the name of the replica to use as the source for the failover group.
	FromReplica FailoverGroupFromReplicaPtrInput
	// Allows replicating objects to accounts on lower editions.
	IgnoreEditionCheck pulumi.BoolPtrInput
	// Specifies the identifier for the failover group. The identifier must start with an alphabetic character and cannot contain spaces or special characters unless the identifier string is enclosed in double quotes (e.g. "My object"). Identifiers enclosed in double quotes are also case-sensitive.
	Name pulumi.StringPtrInput
	// Type(s) of objects for which you are enabling replication and failover from the source account to the target account. The following object types are supported: "ACCOUNT PARAMETERS", "DATABASES", "INTEGRATIONS", "NETWORK POLICIES", "RESOURCE MONITORS", "ROLES", "SHARES", "USERS", "WAREHOUSES"
	ObjectTypes pulumi.StringArrayInput
	// Specifies the schedule for refreshing secondary failover groups.
	ReplicationSchedule FailoverGroupReplicationSchedulePtrInput
}

The set of arguments for constructing a FailoverGroup resource.

func (FailoverGroupArgs) ElementType added in v0.15.0

func (FailoverGroupArgs) ElementType() reflect.Type

type FailoverGroupArray added in v0.15.0

type FailoverGroupArray []FailoverGroupInput

func (FailoverGroupArray) ElementType added in v0.15.0

func (FailoverGroupArray) ElementType() reflect.Type

func (FailoverGroupArray) ToFailoverGroupArrayOutput added in v0.15.0

func (i FailoverGroupArray) ToFailoverGroupArrayOutput() FailoverGroupArrayOutput

func (FailoverGroupArray) ToFailoverGroupArrayOutputWithContext added in v0.15.0

func (i FailoverGroupArray) ToFailoverGroupArrayOutputWithContext(ctx context.Context) FailoverGroupArrayOutput

type FailoverGroupArrayInput added in v0.15.0

type FailoverGroupArrayInput interface {
	pulumi.Input

	ToFailoverGroupArrayOutput() FailoverGroupArrayOutput
	ToFailoverGroupArrayOutputWithContext(context.Context) FailoverGroupArrayOutput
}

FailoverGroupArrayInput is an input type that accepts FailoverGroupArray and FailoverGroupArrayOutput values. You can construct a concrete instance of `FailoverGroupArrayInput` via:

FailoverGroupArray{ FailoverGroupArgs{...} }

type FailoverGroupArrayOutput added in v0.15.0

type FailoverGroupArrayOutput struct{ *pulumi.OutputState }

func (FailoverGroupArrayOutput) ElementType added in v0.15.0

func (FailoverGroupArrayOutput) ElementType() reflect.Type

func (FailoverGroupArrayOutput) Index added in v0.15.0

func (FailoverGroupArrayOutput) ToFailoverGroupArrayOutput added in v0.15.0

func (o FailoverGroupArrayOutput) ToFailoverGroupArrayOutput() FailoverGroupArrayOutput

func (FailoverGroupArrayOutput) ToFailoverGroupArrayOutputWithContext added in v0.15.0

func (o FailoverGroupArrayOutput) ToFailoverGroupArrayOutputWithContext(ctx context.Context) FailoverGroupArrayOutput

type FailoverGroupFromReplica added in v0.15.0

type FailoverGroupFromReplica struct {
	// Identifier for the primary failover group in the source account.
	Name string `pulumi:"name"`
	// Name of your Snowflake organization.
	OrganizationName string `pulumi:"organizationName"`
	// Source account from which you are enabling replication and failover of the specified objects.
	SourceAccountName string `pulumi:"sourceAccountName"`
}

type FailoverGroupFromReplicaArgs added in v0.15.0

type FailoverGroupFromReplicaArgs struct {
	// Identifier for the primary failover group in the source account.
	Name pulumi.StringInput `pulumi:"name"`
	// Name of your Snowflake organization.
	OrganizationName pulumi.StringInput `pulumi:"organizationName"`
	// Source account from which you are enabling replication and failover of the specified objects.
	SourceAccountName pulumi.StringInput `pulumi:"sourceAccountName"`
}

func (FailoverGroupFromReplicaArgs) ElementType added in v0.15.0

func (FailoverGroupFromReplicaArgs) ToFailoverGroupFromReplicaOutput added in v0.15.0

func (i FailoverGroupFromReplicaArgs) ToFailoverGroupFromReplicaOutput() FailoverGroupFromReplicaOutput

func (FailoverGroupFromReplicaArgs) ToFailoverGroupFromReplicaOutputWithContext added in v0.15.0

func (i FailoverGroupFromReplicaArgs) ToFailoverGroupFromReplicaOutputWithContext(ctx context.Context) FailoverGroupFromReplicaOutput

func (FailoverGroupFromReplicaArgs) ToFailoverGroupFromReplicaPtrOutput added in v0.15.0

func (i FailoverGroupFromReplicaArgs) ToFailoverGroupFromReplicaPtrOutput() FailoverGroupFromReplicaPtrOutput

func (FailoverGroupFromReplicaArgs) ToFailoverGroupFromReplicaPtrOutputWithContext added in v0.15.0

func (i FailoverGroupFromReplicaArgs) ToFailoverGroupFromReplicaPtrOutputWithContext(ctx context.Context) FailoverGroupFromReplicaPtrOutput

type FailoverGroupFromReplicaInput added in v0.15.0

type FailoverGroupFromReplicaInput interface {
	pulumi.Input

	ToFailoverGroupFromReplicaOutput() FailoverGroupFromReplicaOutput
	ToFailoverGroupFromReplicaOutputWithContext(context.Context) FailoverGroupFromReplicaOutput
}

FailoverGroupFromReplicaInput is an input type that accepts FailoverGroupFromReplicaArgs and FailoverGroupFromReplicaOutput values. You can construct a concrete instance of `FailoverGroupFromReplicaInput` via:

FailoverGroupFromReplicaArgs{...}

type FailoverGroupFromReplicaOutput added in v0.15.0

type FailoverGroupFromReplicaOutput struct{ *pulumi.OutputState }

func (FailoverGroupFromReplicaOutput) ElementType added in v0.15.0

func (FailoverGroupFromReplicaOutput) Name added in v0.15.0

Identifier for the primary failover group in the source account.

func (FailoverGroupFromReplicaOutput) OrganizationName added in v0.15.0

func (o FailoverGroupFromReplicaOutput) OrganizationName() pulumi.StringOutput

Name of your Snowflake organization.

func (FailoverGroupFromReplicaOutput) SourceAccountName added in v0.15.0

func (o FailoverGroupFromReplicaOutput) SourceAccountName() pulumi.StringOutput

Source account from which you are enabling replication and failover of the specified objects.

func (FailoverGroupFromReplicaOutput) ToFailoverGroupFromReplicaOutput added in v0.15.0

func (o FailoverGroupFromReplicaOutput) ToFailoverGroupFromReplicaOutput() FailoverGroupFromReplicaOutput

func (FailoverGroupFromReplicaOutput) ToFailoverGroupFromReplicaOutputWithContext added in v0.15.0

func (o FailoverGroupFromReplicaOutput) ToFailoverGroupFromReplicaOutputWithContext(ctx context.Context) FailoverGroupFromReplicaOutput

func (FailoverGroupFromReplicaOutput) ToFailoverGroupFromReplicaPtrOutput added in v0.15.0

func (o FailoverGroupFromReplicaOutput) ToFailoverGroupFromReplicaPtrOutput() FailoverGroupFromReplicaPtrOutput

func (FailoverGroupFromReplicaOutput) ToFailoverGroupFromReplicaPtrOutputWithContext added in v0.15.0

func (o FailoverGroupFromReplicaOutput) ToFailoverGroupFromReplicaPtrOutputWithContext(ctx context.Context) FailoverGroupFromReplicaPtrOutput

type FailoverGroupFromReplicaPtrInput added in v0.15.0

type FailoverGroupFromReplicaPtrInput interface {
	pulumi.Input

	ToFailoverGroupFromReplicaPtrOutput() FailoverGroupFromReplicaPtrOutput
	ToFailoverGroupFromReplicaPtrOutputWithContext(context.Context) FailoverGroupFromReplicaPtrOutput
}

FailoverGroupFromReplicaPtrInput is an input type that accepts FailoverGroupFromReplicaArgs, FailoverGroupFromReplicaPtr and FailoverGroupFromReplicaPtrOutput values. You can construct a concrete instance of `FailoverGroupFromReplicaPtrInput` via:

        FailoverGroupFromReplicaArgs{...}

or:

        nil

func FailoverGroupFromReplicaPtr added in v0.15.0

func FailoverGroupFromReplicaPtr(v *FailoverGroupFromReplicaArgs) FailoverGroupFromReplicaPtrInput

type FailoverGroupFromReplicaPtrOutput added in v0.15.0

type FailoverGroupFromReplicaPtrOutput struct{ *pulumi.OutputState }

func (FailoverGroupFromReplicaPtrOutput) Elem added in v0.15.0

func (FailoverGroupFromReplicaPtrOutput) ElementType added in v0.15.0

func (FailoverGroupFromReplicaPtrOutput) Name added in v0.15.0

Identifier for the primary failover group in the source account.

func (FailoverGroupFromReplicaPtrOutput) OrganizationName added in v0.15.0

Name of your Snowflake organization.

func (FailoverGroupFromReplicaPtrOutput) SourceAccountName added in v0.15.0

Source account from which you are enabling replication and failover of the specified objects.

func (FailoverGroupFromReplicaPtrOutput) ToFailoverGroupFromReplicaPtrOutput added in v0.15.0

func (o FailoverGroupFromReplicaPtrOutput) ToFailoverGroupFromReplicaPtrOutput() FailoverGroupFromReplicaPtrOutput

func (FailoverGroupFromReplicaPtrOutput) ToFailoverGroupFromReplicaPtrOutputWithContext added in v0.15.0

func (o FailoverGroupFromReplicaPtrOutput) ToFailoverGroupFromReplicaPtrOutputWithContext(ctx context.Context) FailoverGroupFromReplicaPtrOutput

type FailoverGroupGrant added in v0.26.0

type FailoverGroupGrant struct {
	pulumi.CustomResourceState

	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrOutput `pulumi:"enableMultipleGrants"`
	// The name of the failover group on which to grant privileges.
	FailoverGroupName pulumi.StringPtrOutput `pulumi:"failoverGroupName"`
	// The privilege to grant on the failover group. To grant all privileges, use the value `ALL PRIVILEGES`
	Privilege pulumi.StringPtrOutput `pulumi:"privilege"`
	// The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
	RevertOwnershipToRoleName pulumi.StringPtrOutput `pulumi:"revertOwnershipToRoleName"`
	// Grants privilege to these roles.
	Roles pulumi.StringArrayOutput `pulumi:"roles"`
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrOutput `pulumi:"withGrantOption"`
}

func GetFailoverGroupGrant added in v0.26.0

func GetFailoverGroupGrant(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *FailoverGroupGrantState, opts ...pulumi.ResourceOption) (*FailoverGroupGrant, error)

GetFailoverGroupGrant gets an existing FailoverGroupGrant resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewFailoverGroupGrant added in v0.26.0

func NewFailoverGroupGrant(ctx *pulumi.Context,
	name string, args *FailoverGroupGrantArgs, opts ...pulumi.ResourceOption) (*FailoverGroupGrant, error)

NewFailoverGroupGrant registers a new resource with the given unique name, arguments, and options.

func (*FailoverGroupGrant) ElementType added in v0.26.0

func (*FailoverGroupGrant) ElementType() reflect.Type

func (*FailoverGroupGrant) ToFailoverGroupGrantOutput added in v0.26.0

func (i *FailoverGroupGrant) ToFailoverGroupGrantOutput() FailoverGroupGrantOutput

func (*FailoverGroupGrant) ToFailoverGroupGrantOutputWithContext added in v0.26.0

func (i *FailoverGroupGrant) ToFailoverGroupGrantOutputWithContext(ctx context.Context) FailoverGroupGrantOutput

type FailoverGroupGrantArgs added in v0.26.0

type FailoverGroupGrantArgs struct {
	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrInput
	// The name of the failover group on which to grant privileges.
	FailoverGroupName pulumi.StringPtrInput
	// The privilege to grant on the failover group. To grant all privileges, use the value `ALL PRIVILEGES`
	Privilege pulumi.StringPtrInput
	// The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
	RevertOwnershipToRoleName pulumi.StringPtrInput
	// Grants privilege to these roles.
	Roles pulumi.StringArrayInput
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrInput
}

The set of arguments for constructing a FailoverGroupGrant resource.

func (FailoverGroupGrantArgs) ElementType added in v0.26.0

func (FailoverGroupGrantArgs) ElementType() reflect.Type

type FailoverGroupGrantArray added in v0.26.0

type FailoverGroupGrantArray []FailoverGroupGrantInput

func (FailoverGroupGrantArray) ElementType added in v0.26.0

func (FailoverGroupGrantArray) ElementType() reflect.Type

func (FailoverGroupGrantArray) ToFailoverGroupGrantArrayOutput added in v0.26.0

func (i FailoverGroupGrantArray) ToFailoverGroupGrantArrayOutput() FailoverGroupGrantArrayOutput

func (FailoverGroupGrantArray) ToFailoverGroupGrantArrayOutputWithContext added in v0.26.0

func (i FailoverGroupGrantArray) ToFailoverGroupGrantArrayOutputWithContext(ctx context.Context) FailoverGroupGrantArrayOutput

type FailoverGroupGrantArrayInput added in v0.26.0

type FailoverGroupGrantArrayInput interface {
	pulumi.Input

	ToFailoverGroupGrantArrayOutput() FailoverGroupGrantArrayOutput
	ToFailoverGroupGrantArrayOutputWithContext(context.Context) FailoverGroupGrantArrayOutput
}

FailoverGroupGrantArrayInput is an input type that accepts FailoverGroupGrantArray and FailoverGroupGrantArrayOutput values. You can construct a concrete instance of `FailoverGroupGrantArrayInput` via:

FailoverGroupGrantArray{ FailoverGroupGrantArgs{...} }

type FailoverGroupGrantArrayOutput added in v0.26.0

type FailoverGroupGrantArrayOutput struct{ *pulumi.OutputState }

func (FailoverGroupGrantArrayOutput) ElementType added in v0.26.0

func (FailoverGroupGrantArrayOutput) Index added in v0.26.0

func (FailoverGroupGrantArrayOutput) ToFailoverGroupGrantArrayOutput added in v0.26.0

func (o FailoverGroupGrantArrayOutput) ToFailoverGroupGrantArrayOutput() FailoverGroupGrantArrayOutput

func (FailoverGroupGrantArrayOutput) ToFailoverGroupGrantArrayOutputWithContext added in v0.26.0

func (o FailoverGroupGrantArrayOutput) ToFailoverGroupGrantArrayOutputWithContext(ctx context.Context) FailoverGroupGrantArrayOutput

type FailoverGroupGrantInput added in v0.26.0

type FailoverGroupGrantInput interface {
	pulumi.Input

	ToFailoverGroupGrantOutput() FailoverGroupGrantOutput
	ToFailoverGroupGrantOutputWithContext(ctx context.Context) FailoverGroupGrantOutput
}

type FailoverGroupGrantMap added in v0.26.0

type FailoverGroupGrantMap map[string]FailoverGroupGrantInput

func (FailoverGroupGrantMap) ElementType added in v0.26.0

func (FailoverGroupGrantMap) ElementType() reflect.Type

func (FailoverGroupGrantMap) ToFailoverGroupGrantMapOutput added in v0.26.0

func (i FailoverGroupGrantMap) ToFailoverGroupGrantMapOutput() FailoverGroupGrantMapOutput

func (FailoverGroupGrantMap) ToFailoverGroupGrantMapOutputWithContext added in v0.26.0

func (i FailoverGroupGrantMap) ToFailoverGroupGrantMapOutputWithContext(ctx context.Context) FailoverGroupGrantMapOutput

type FailoverGroupGrantMapInput added in v0.26.0

type FailoverGroupGrantMapInput interface {
	pulumi.Input

	ToFailoverGroupGrantMapOutput() FailoverGroupGrantMapOutput
	ToFailoverGroupGrantMapOutputWithContext(context.Context) FailoverGroupGrantMapOutput
}

FailoverGroupGrantMapInput is an input type that accepts FailoverGroupGrantMap and FailoverGroupGrantMapOutput values. You can construct a concrete instance of `FailoverGroupGrantMapInput` via:

FailoverGroupGrantMap{ "key": FailoverGroupGrantArgs{...} }

type FailoverGroupGrantMapOutput added in v0.26.0

type FailoverGroupGrantMapOutput struct{ *pulumi.OutputState }

func (FailoverGroupGrantMapOutput) ElementType added in v0.26.0

func (FailoverGroupGrantMapOutput) MapIndex added in v0.26.0

func (FailoverGroupGrantMapOutput) ToFailoverGroupGrantMapOutput added in v0.26.0

func (o FailoverGroupGrantMapOutput) ToFailoverGroupGrantMapOutput() FailoverGroupGrantMapOutput

func (FailoverGroupGrantMapOutput) ToFailoverGroupGrantMapOutputWithContext added in v0.26.0

func (o FailoverGroupGrantMapOutput) ToFailoverGroupGrantMapOutputWithContext(ctx context.Context) FailoverGroupGrantMapOutput

type FailoverGroupGrantOutput added in v0.26.0

type FailoverGroupGrantOutput struct{ *pulumi.OutputState }

func (FailoverGroupGrantOutput) ElementType added in v0.26.0

func (FailoverGroupGrantOutput) ElementType() reflect.Type

func (FailoverGroupGrantOutput) EnableMultipleGrants added in v0.26.0

func (o FailoverGroupGrantOutput) EnableMultipleGrants() pulumi.BoolPtrOutput

When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke grants applied to roles and objects outside Terraform.

func (FailoverGroupGrantOutput) FailoverGroupName added in v0.26.0

func (o FailoverGroupGrantOutput) FailoverGroupName() pulumi.StringPtrOutput

The name of the failover group on which to grant privileges.

func (FailoverGroupGrantOutput) Privilege added in v0.26.0

The privilege to grant on the failover group. To grant all privileges, use the value `ALL PRIVILEGES`

func (FailoverGroupGrantOutput) RevertOwnershipToRoleName added in v0.26.0

func (o FailoverGroupGrantOutput) RevertOwnershipToRoleName() pulumi.StringPtrOutput

The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`

func (FailoverGroupGrantOutput) Roles added in v0.26.0

Grants privilege to these roles.

func (FailoverGroupGrantOutput) ToFailoverGroupGrantOutput added in v0.26.0

func (o FailoverGroupGrantOutput) ToFailoverGroupGrantOutput() FailoverGroupGrantOutput

func (FailoverGroupGrantOutput) ToFailoverGroupGrantOutputWithContext added in v0.26.0

func (o FailoverGroupGrantOutput) ToFailoverGroupGrantOutputWithContext(ctx context.Context) FailoverGroupGrantOutput

func (FailoverGroupGrantOutput) WithGrantOption added in v0.26.0

func (o FailoverGroupGrantOutput) WithGrantOption() pulumi.BoolPtrOutput

When this is set to true, allows the recipient role to grant the privileges to other roles.

type FailoverGroupGrantState added in v0.26.0

type FailoverGroupGrantState struct {
	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrInput
	// The name of the failover group on which to grant privileges.
	FailoverGroupName pulumi.StringPtrInput
	// The privilege to grant on the failover group. To grant all privileges, use the value `ALL PRIVILEGES`
	Privilege pulumi.StringPtrInput
	// The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
	RevertOwnershipToRoleName pulumi.StringPtrInput
	// Grants privilege to these roles.
	Roles pulumi.StringArrayInput
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrInput
}

func (FailoverGroupGrantState) ElementType added in v0.26.0

func (FailoverGroupGrantState) ElementType() reflect.Type

type FailoverGroupInput added in v0.15.0

type FailoverGroupInput interface {
	pulumi.Input

	ToFailoverGroupOutput() FailoverGroupOutput
	ToFailoverGroupOutputWithContext(ctx context.Context) FailoverGroupOutput
}

type FailoverGroupMap added in v0.15.0

type FailoverGroupMap map[string]FailoverGroupInput

func (FailoverGroupMap) ElementType added in v0.15.0

func (FailoverGroupMap) ElementType() reflect.Type

func (FailoverGroupMap) ToFailoverGroupMapOutput added in v0.15.0

func (i FailoverGroupMap) ToFailoverGroupMapOutput() FailoverGroupMapOutput

func (FailoverGroupMap) ToFailoverGroupMapOutputWithContext added in v0.15.0

func (i FailoverGroupMap) ToFailoverGroupMapOutputWithContext(ctx context.Context) FailoverGroupMapOutput

type FailoverGroupMapInput added in v0.15.0

type FailoverGroupMapInput interface {
	pulumi.Input

	ToFailoverGroupMapOutput() FailoverGroupMapOutput
	ToFailoverGroupMapOutputWithContext(context.Context) FailoverGroupMapOutput
}

FailoverGroupMapInput is an input type that accepts FailoverGroupMap and FailoverGroupMapOutput values. You can construct a concrete instance of `FailoverGroupMapInput` via:

FailoverGroupMap{ "key": FailoverGroupArgs{...} }

type FailoverGroupMapOutput added in v0.15.0

type FailoverGroupMapOutput struct{ *pulumi.OutputState }

func (FailoverGroupMapOutput) ElementType added in v0.15.0

func (FailoverGroupMapOutput) ElementType() reflect.Type

func (FailoverGroupMapOutput) MapIndex added in v0.15.0

func (FailoverGroupMapOutput) ToFailoverGroupMapOutput added in v0.15.0

func (o FailoverGroupMapOutput) ToFailoverGroupMapOutput() FailoverGroupMapOutput

func (FailoverGroupMapOutput) ToFailoverGroupMapOutputWithContext added in v0.15.0

func (o FailoverGroupMapOutput) ToFailoverGroupMapOutputWithContext(ctx context.Context) FailoverGroupMapOutput

type FailoverGroupOutput added in v0.15.0

type FailoverGroupOutput struct{ *pulumi.OutputState }

func (FailoverGroupOutput) AllowedAccounts added in v0.15.0

func (o FailoverGroupOutput) AllowedAccounts() pulumi.StringArrayOutput

Specifies the target account or list of target accounts to which replication and failover of specified objects from the source account is enabled. Secondary failover groups in the target accounts in this list can be promoted to serve as the primary failover group in case of failover. Expected in the form \n\n.\n\n

func (FailoverGroupOutput) AllowedDatabases added in v0.15.0

func (o FailoverGroupOutput) AllowedDatabases() pulumi.StringArrayOutput

Specifies the database or list of databases for which you are enabling replication and failover from the source account to the target account. The OBJECT_TYPES list must include DATABASES to set this parameter.

func (FailoverGroupOutput) AllowedIntegrationTypes added in v0.15.0

func (o FailoverGroupOutput) AllowedIntegrationTypes() pulumi.StringArrayOutput

Type(s) of integrations for which you are enabling replication and failover from the source account to the target account. This property requires that the OBJECT_TYPES list include INTEGRATIONS to set this parameter. The following integration types are supported: "SECURITY INTEGRATIONS", "API INTEGRATIONS"

func (FailoverGroupOutput) AllowedShares added in v0.15.0

func (o FailoverGroupOutput) AllowedShares() pulumi.StringArrayOutput

Specifies the share or list of shares for which you are enabling replication and failover from the source account to the target account. The OBJECT_TYPES list must include SHARES to set this parameter.

func (FailoverGroupOutput) ElementType added in v0.15.0

func (FailoverGroupOutput) ElementType() reflect.Type

func (FailoverGroupOutput) FromReplica added in v0.15.0

Specifies the name of the replica to use as the source for the failover group.

func (FailoverGroupOutput) IgnoreEditionCheck added in v0.15.0

func (o FailoverGroupOutput) IgnoreEditionCheck() pulumi.BoolPtrOutput

Allows replicating objects to accounts on lower editions.

func (FailoverGroupOutput) Name added in v0.15.0

Specifies the identifier for the failover group. The identifier must start with an alphabetic character and cannot contain spaces or special characters unless the identifier string is enclosed in double quotes (e.g. "My object"). Identifiers enclosed in double quotes are also case-sensitive.

func (FailoverGroupOutput) ObjectTypes added in v0.15.0

Type(s) of objects for which you are enabling replication and failover from the source account to the target account. The following object types are supported: "ACCOUNT PARAMETERS", "DATABASES", "INTEGRATIONS", "NETWORK POLICIES", "RESOURCE MONITORS", "ROLES", "SHARES", "USERS", "WAREHOUSES"

func (FailoverGroupOutput) ReplicationSchedule added in v0.15.0

Specifies the schedule for refreshing secondary failover groups.

func (FailoverGroupOutput) ToFailoverGroupOutput added in v0.15.0

func (o FailoverGroupOutput) ToFailoverGroupOutput() FailoverGroupOutput

func (FailoverGroupOutput) ToFailoverGroupOutputWithContext added in v0.15.0

func (o FailoverGroupOutput) ToFailoverGroupOutputWithContext(ctx context.Context) FailoverGroupOutput

type FailoverGroupReplicationSchedule added in v0.15.0

type FailoverGroupReplicationSchedule struct {
	// Specifies the cron expression for the replication schedule. The cron expression must be in the following format: "minute hour day-of-month month day-of-week". The following values are supported: minute: 0-59 hour: 0-23 day-of-month: 1-31 month: 1-12 day-of-week: 0-6 (0 is Sunday)
	Cron *FailoverGroupReplicationScheduleCron `pulumi:"cron"`
	// Specifies the interval in minutes for the replication schedule. The interval must be greater than 0 and less than 1440 (24 hours).
	Interval *int `pulumi:"interval"`
}

type FailoverGroupReplicationScheduleArgs added in v0.15.0

type FailoverGroupReplicationScheduleArgs struct {
	// Specifies the cron expression for the replication schedule. The cron expression must be in the following format: "minute hour day-of-month month day-of-week". The following values are supported: minute: 0-59 hour: 0-23 day-of-month: 1-31 month: 1-12 day-of-week: 0-6 (0 is Sunday)
	Cron FailoverGroupReplicationScheduleCronPtrInput `pulumi:"cron"`
	// Specifies the interval in minutes for the replication schedule. The interval must be greater than 0 and less than 1440 (24 hours).
	Interval pulumi.IntPtrInput `pulumi:"interval"`
}

func (FailoverGroupReplicationScheduleArgs) ElementType added in v0.15.0

func (FailoverGroupReplicationScheduleArgs) ToFailoverGroupReplicationScheduleOutput added in v0.15.0

func (i FailoverGroupReplicationScheduleArgs) ToFailoverGroupReplicationScheduleOutput() FailoverGroupReplicationScheduleOutput

func (FailoverGroupReplicationScheduleArgs) ToFailoverGroupReplicationScheduleOutputWithContext added in v0.15.0

func (i FailoverGroupReplicationScheduleArgs) ToFailoverGroupReplicationScheduleOutputWithContext(ctx context.Context) FailoverGroupReplicationScheduleOutput

func (FailoverGroupReplicationScheduleArgs) ToFailoverGroupReplicationSchedulePtrOutput added in v0.15.0

func (i FailoverGroupReplicationScheduleArgs) ToFailoverGroupReplicationSchedulePtrOutput() FailoverGroupReplicationSchedulePtrOutput

func (FailoverGroupReplicationScheduleArgs) ToFailoverGroupReplicationSchedulePtrOutputWithContext added in v0.15.0

func (i FailoverGroupReplicationScheduleArgs) ToFailoverGroupReplicationSchedulePtrOutputWithContext(ctx context.Context) FailoverGroupReplicationSchedulePtrOutput

type FailoverGroupReplicationScheduleCron added in v0.15.0

type FailoverGroupReplicationScheduleCron struct {
	Expression string `pulumi:"expression"`
	TimeZone   string `pulumi:"timeZone"`
}

type FailoverGroupReplicationScheduleCronArgs added in v0.15.0

type FailoverGroupReplicationScheduleCronArgs struct {
	Expression pulumi.StringInput `pulumi:"expression"`
	TimeZone   pulumi.StringInput `pulumi:"timeZone"`
}

func (FailoverGroupReplicationScheduleCronArgs) ElementType added in v0.15.0

func (FailoverGroupReplicationScheduleCronArgs) ToFailoverGroupReplicationScheduleCronOutput added in v0.15.0

func (i FailoverGroupReplicationScheduleCronArgs) ToFailoverGroupReplicationScheduleCronOutput() FailoverGroupReplicationScheduleCronOutput

func (FailoverGroupReplicationScheduleCronArgs) ToFailoverGroupReplicationScheduleCronOutputWithContext added in v0.15.0

func (i FailoverGroupReplicationScheduleCronArgs) ToFailoverGroupReplicationScheduleCronOutputWithContext(ctx context.Context) FailoverGroupReplicationScheduleCronOutput

func (FailoverGroupReplicationScheduleCronArgs) ToFailoverGroupReplicationScheduleCronPtrOutput added in v0.15.0

func (i FailoverGroupReplicationScheduleCronArgs) ToFailoverGroupReplicationScheduleCronPtrOutput() FailoverGroupReplicationScheduleCronPtrOutput

func (FailoverGroupReplicationScheduleCronArgs) ToFailoverGroupReplicationScheduleCronPtrOutputWithContext added in v0.15.0

func (i FailoverGroupReplicationScheduleCronArgs) ToFailoverGroupReplicationScheduleCronPtrOutputWithContext(ctx context.Context) FailoverGroupReplicationScheduleCronPtrOutput

type FailoverGroupReplicationScheduleCronInput added in v0.15.0

type FailoverGroupReplicationScheduleCronInput interface {
	pulumi.Input

	ToFailoverGroupReplicationScheduleCronOutput() FailoverGroupReplicationScheduleCronOutput
	ToFailoverGroupReplicationScheduleCronOutputWithContext(context.Context) FailoverGroupReplicationScheduleCronOutput
}

FailoverGroupReplicationScheduleCronInput is an input type that accepts FailoverGroupReplicationScheduleCronArgs and FailoverGroupReplicationScheduleCronOutput values. You can construct a concrete instance of `FailoverGroupReplicationScheduleCronInput` via:

FailoverGroupReplicationScheduleCronArgs{...}

type FailoverGroupReplicationScheduleCronOutput added in v0.15.0

type FailoverGroupReplicationScheduleCronOutput struct{ *pulumi.OutputState }

func (FailoverGroupReplicationScheduleCronOutput) ElementType added in v0.15.0

func (FailoverGroupReplicationScheduleCronOutput) Expression added in v0.15.0

func (FailoverGroupReplicationScheduleCronOutput) TimeZone added in v0.15.0

func (FailoverGroupReplicationScheduleCronOutput) ToFailoverGroupReplicationScheduleCronOutput added in v0.15.0

func (o FailoverGroupReplicationScheduleCronOutput) ToFailoverGroupReplicationScheduleCronOutput() FailoverGroupReplicationScheduleCronOutput

func (FailoverGroupReplicationScheduleCronOutput) ToFailoverGroupReplicationScheduleCronOutputWithContext added in v0.15.0

func (o FailoverGroupReplicationScheduleCronOutput) ToFailoverGroupReplicationScheduleCronOutputWithContext(ctx context.Context) FailoverGroupReplicationScheduleCronOutput

func (FailoverGroupReplicationScheduleCronOutput) ToFailoverGroupReplicationScheduleCronPtrOutput added in v0.15.0

func (o FailoverGroupReplicationScheduleCronOutput) ToFailoverGroupReplicationScheduleCronPtrOutput() FailoverGroupReplicationScheduleCronPtrOutput

func (FailoverGroupReplicationScheduleCronOutput) ToFailoverGroupReplicationScheduleCronPtrOutputWithContext added in v0.15.0

func (o FailoverGroupReplicationScheduleCronOutput) ToFailoverGroupReplicationScheduleCronPtrOutputWithContext(ctx context.Context) FailoverGroupReplicationScheduleCronPtrOutput

type FailoverGroupReplicationScheduleCronPtrInput added in v0.15.0

type FailoverGroupReplicationScheduleCronPtrInput interface {
	pulumi.Input

	ToFailoverGroupReplicationScheduleCronPtrOutput() FailoverGroupReplicationScheduleCronPtrOutput
	ToFailoverGroupReplicationScheduleCronPtrOutputWithContext(context.Context) FailoverGroupReplicationScheduleCronPtrOutput
}

FailoverGroupReplicationScheduleCronPtrInput is an input type that accepts FailoverGroupReplicationScheduleCronArgs, FailoverGroupReplicationScheduleCronPtr and FailoverGroupReplicationScheduleCronPtrOutput values. You can construct a concrete instance of `FailoverGroupReplicationScheduleCronPtrInput` via:

        FailoverGroupReplicationScheduleCronArgs{...}

or:

        nil

type FailoverGroupReplicationScheduleCronPtrOutput added in v0.15.0

type FailoverGroupReplicationScheduleCronPtrOutput struct{ *pulumi.OutputState }

func (FailoverGroupReplicationScheduleCronPtrOutput) Elem added in v0.15.0

func (FailoverGroupReplicationScheduleCronPtrOutput) ElementType added in v0.15.0

func (FailoverGroupReplicationScheduleCronPtrOutput) Expression added in v0.15.0

func (FailoverGroupReplicationScheduleCronPtrOutput) TimeZone added in v0.15.0

func (FailoverGroupReplicationScheduleCronPtrOutput) ToFailoverGroupReplicationScheduleCronPtrOutput added in v0.15.0

func (o FailoverGroupReplicationScheduleCronPtrOutput) ToFailoverGroupReplicationScheduleCronPtrOutput() FailoverGroupReplicationScheduleCronPtrOutput

func (FailoverGroupReplicationScheduleCronPtrOutput) ToFailoverGroupReplicationScheduleCronPtrOutputWithContext added in v0.15.0

func (o FailoverGroupReplicationScheduleCronPtrOutput) ToFailoverGroupReplicationScheduleCronPtrOutputWithContext(ctx context.Context) FailoverGroupReplicationScheduleCronPtrOutput

type FailoverGroupReplicationScheduleInput added in v0.15.0

type FailoverGroupReplicationScheduleInput interface {
	pulumi.Input

	ToFailoverGroupReplicationScheduleOutput() FailoverGroupReplicationScheduleOutput
	ToFailoverGroupReplicationScheduleOutputWithContext(context.Context) FailoverGroupReplicationScheduleOutput
}

FailoverGroupReplicationScheduleInput is an input type that accepts FailoverGroupReplicationScheduleArgs and FailoverGroupReplicationScheduleOutput values. You can construct a concrete instance of `FailoverGroupReplicationScheduleInput` via:

FailoverGroupReplicationScheduleArgs{...}

type FailoverGroupReplicationScheduleOutput added in v0.15.0

type FailoverGroupReplicationScheduleOutput struct{ *pulumi.OutputState }

func (FailoverGroupReplicationScheduleOutput) Cron added in v0.15.0

Specifies the cron expression for the replication schedule. The cron expression must be in the following format: "minute hour day-of-month month day-of-week". The following values are supported: minute: 0-59 hour: 0-23 day-of-month: 1-31 month: 1-12 day-of-week: 0-6 (0 is Sunday)

func (FailoverGroupReplicationScheduleOutput) ElementType added in v0.15.0

func (FailoverGroupReplicationScheduleOutput) Interval added in v0.15.0

Specifies the interval in minutes for the replication schedule. The interval must be greater than 0 and less than 1440 (24 hours).

func (FailoverGroupReplicationScheduleOutput) ToFailoverGroupReplicationScheduleOutput added in v0.15.0

func (o FailoverGroupReplicationScheduleOutput) ToFailoverGroupReplicationScheduleOutput() FailoverGroupReplicationScheduleOutput

func (FailoverGroupReplicationScheduleOutput) ToFailoverGroupReplicationScheduleOutputWithContext added in v0.15.0

func (o FailoverGroupReplicationScheduleOutput) ToFailoverGroupReplicationScheduleOutputWithContext(ctx context.Context) FailoverGroupReplicationScheduleOutput

func (FailoverGroupReplicationScheduleOutput) ToFailoverGroupReplicationSchedulePtrOutput added in v0.15.0

func (o FailoverGroupReplicationScheduleOutput) ToFailoverGroupReplicationSchedulePtrOutput() FailoverGroupReplicationSchedulePtrOutput

func (FailoverGroupReplicationScheduleOutput) ToFailoverGroupReplicationSchedulePtrOutputWithContext added in v0.15.0

func (o FailoverGroupReplicationScheduleOutput) ToFailoverGroupReplicationSchedulePtrOutputWithContext(ctx context.Context) FailoverGroupReplicationSchedulePtrOutput

type FailoverGroupReplicationSchedulePtrInput added in v0.15.0

type FailoverGroupReplicationSchedulePtrInput interface {
	pulumi.Input

	ToFailoverGroupReplicationSchedulePtrOutput() FailoverGroupReplicationSchedulePtrOutput
	ToFailoverGroupReplicationSchedulePtrOutputWithContext(context.Context) FailoverGroupReplicationSchedulePtrOutput
}

FailoverGroupReplicationSchedulePtrInput is an input type that accepts FailoverGroupReplicationScheduleArgs, FailoverGroupReplicationSchedulePtr and FailoverGroupReplicationSchedulePtrOutput values. You can construct a concrete instance of `FailoverGroupReplicationSchedulePtrInput` via:

        FailoverGroupReplicationScheduleArgs{...}

or:

        nil

type FailoverGroupReplicationSchedulePtrOutput added in v0.15.0

type FailoverGroupReplicationSchedulePtrOutput struct{ *pulumi.OutputState }

func (FailoverGroupReplicationSchedulePtrOutput) Cron added in v0.15.0

Specifies the cron expression for the replication schedule. The cron expression must be in the following format: "minute hour day-of-month month day-of-week". The following values are supported: minute: 0-59 hour: 0-23 day-of-month: 1-31 month: 1-12 day-of-week: 0-6 (0 is Sunday)

func (FailoverGroupReplicationSchedulePtrOutput) Elem added in v0.15.0

func (FailoverGroupReplicationSchedulePtrOutput) ElementType added in v0.15.0

func (FailoverGroupReplicationSchedulePtrOutput) Interval added in v0.15.0

Specifies the interval in minutes for the replication schedule. The interval must be greater than 0 and less than 1440 (24 hours).

func (FailoverGroupReplicationSchedulePtrOutput) ToFailoverGroupReplicationSchedulePtrOutput added in v0.15.0

func (o FailoverGroupReplicationSchedulePtrOutput) ToFailoverGroupReplicationSchedulePtrOutput() FailoverGroupReplicationSchedulePtrOutput

func (FailoverGroupReplicationSchedulePtrOutput) ToFailoverGroupReplicationSchedulePtrOutputWithContext added in v0.15.0

func (o FailoverGroupReplicationSchedulePtrOutput) ToFailoverGroupReplicationSchedulePtrOutputWithContext(ctx context.Context) FailoverGroupReplicationSchedulePtrOutput

type FailoverGroupState added in v0.15.0

type FailoverGroupState struct {
	// Specifies the target account or list of target accounts to which replication and failover of specified objects from the source account is enabled. Secondary failover groups in the target accounts in this list can be promoted to serve as the primary failover group in case of failover. Expected in the form \n\n.\n\n
	AllowedAccounts pulumi.StringArrayInput
	// Specifies the database or list of databases for which you are enabling replication and failover from the source account to the target account. The OBJECT_TYPES list must include DATABASES to set this parameter.
	AllowedDatabases pulumi.StringArrayInput
	// Type(s) of integrations for which you are enabling replication and failover from the source account to the target account. This property requires that the OBJECT_TYPES list include INTEGRATIONS to set this parameter. The following integration types are supported: "SECURITY INTEGRATIONS", "API INTEGRATIONS"
	AllowedIntegrationTypes pulumi.StringArrayInput
	// Specifies the share or list of shares for which you are enabling replication and failover from the source account to the target account. The OBJECT_TYPES list must include SHARES to set this parameter.
	AllowedShares pulumi.StringArrayInput
	// Specifies the name of the replica to use as the source for the failover group.
	FromReplica FailoverGroupFromReplicaPtrInput
	// Allows replicating objects to accounts on lower editions.
	IgnoreEditionCheck pulumi.BoolPtrInput
	// Specifies the identifier for the failover group. The identifier must start with an alphabetic character and cannot contain spaces or special characters unless the identifier string is enclosed in double quotes (e.g. "My object"). Identifiers enclosed in double quotes are also case-sensitive.
	Name pulumi.StringPtrInput
	// Type(s) of objects for which you are enabling replication and failover from the source account to the target account. The following object types are supported: "ACCOUNT PARAMETERS", "DATABASES", "INTEGRATIONS", "NETWORK POLICIES", "RESOURCE MONITORS", "ROLES", "SHARES", "USERS", "WAREHOUSES"
	ObjectTypes pulumi.StringArrayInput
	// Specifies the schedule for refreshing secondary failover groups.
	ReplicationSchedule FailoverGroupReplicationSchedulePtrInput
}

func (FailoverGroupState) ElementType added in v0.15.0

func (FailoverGroupState) ElementType() reflect.Type

type FileFormat

type FileFormat struct {
	pulumi.CustomResourceState

	// Boolean that specifies to allow duplicate object field names (only the last one will be preserved).
	AllowDuplicate pulumi.BoolPtrOutput `pulumi:"allowDuplicate"`
	// Boolean that specifies whether to interpret columns with no defined logical data type as UTF-8 text.
	BinaryAsText pulumi.BoolPtrOutput `pulumi:"binaryAsText"`
	// Defines the encoding format for binary input or output.
	BinaryFormat pulumi.StringOutput `pulumi:"binaryFormat"`
	// Specifies a comment for the file format.
	Comment pulumi.StringPtrOutput `pulumi:"comment"`
	// Specifies the current compression algorithm for the data file.
	Compression pulumi.StringOutput `pulumi:"compression"`
	// The database in which to create the file format.
	Database pulumi.StringOutput `pulumi:"database"`
	// Defines the format of date values in the data files (data loading) or table (data unloading).
	DateFormat pulumi.StringOutput `pulumi:"dateFormat"`
	// Boolean that specifies whether the XML parser disables automatic conversion of numeric and Boolean values from text to native representation.
	DisableAutoConvert pulumi.BoolPtrOutput `pulumi:"disableAutoConvert"`
	// Boolean that specifies whether the XML parser disables recognition of Snowflake semi-structured data tags.
	DisableSnowflakeData pulumi.BoolPtrOutput `pulumi:"disableSnowflakeData"`
	// Specifies whether to insert SQL NULL for empty fields in an input file, which are represented by two successive delimiters.
	EmptyFieldAsNull pulumi.BoolPtrOutput `pulumi:"emptyFieldAsNull"`
	// Boolean that enables parsing of octal numbers.
	EnableOctal pulumi.BoolPtrOutput `pulumi:"enableOctal"`
	// String (constant) that specifies the character set of the source data when loading data into a table.
	Encoding pulumi.StringOutput `pulumi:"encoding"`
	// Boolean that specifies whether to generate a parsing error if the number of delimited columns (i.e. fields) in an input file does not match the number of columns in the corresponding table.
	ErrorOnColumnCountMismatch pulumi.BoolPtrOutput `pulumi:"errorOnColumnCountMismatch"`
	// Single character string used as the escape character for field values.
	Escape pulumi.StringOutput `pulumi:"escape"`
	// Single character string used as the escape character for unenclosed field values only.
	EscapeUnenclosedField pulumi.StringOutput `pulumi:"escapeUnenclosedField"`
	// Specifies one or more singlebyte or multibyte characters that separate fields in an input file (data loading) or unloaded file (data unloading).
	FieldDelimiter pulumi.StringOutput `pulumi:"fieldDelimiter"`
	// Character used to enclose strings.
	FieldOptionallyEnclosedBy pulumi.StringOutput `pulumi:"fieldOptionallyEnclosedBy"`
	// Specifies the extension for files unloaded to a stage.
	FileExtension pulumi.StringPtrOutput `pulumi:"fileExtension"`
	// Specifies the format of the input files (for data loading) or output files (for data unloading).
	FormatType pulumi.StringOutput `pulumi:"formatType"`
	// Boolean that specifies whether UTF-8 encoding errors produce error conditions.
	IgnoreUtf8Errors pulumi.BoolPtrOutput `pulumi:"ignoreUtf8Errors"`
	// Specifies the identifier for the file format; must be unique for the database and schema in which the file format is created.
	Name pulumi.StringOutput `pulumi:"name"`
	// String used to convert to and from SQL NULL.
	NullIfs pulumi.StringArrayOutput `pulumi:"nullIfs"`
	// Boolean that specifies whether the XML parser preserves leading and trailing spaces in element content.
	PreserveSpace pulumi.BoolPtrOutput `pulumi:"preserveSpace"`
	// Specifies one or more singlebyte or multibyte characters that separate records in an input file (data loading) or unloaded file (data unloading).
	RecordDelimiter pulumi.StringOutput `pulumi:"recordDelimiter"`
	// Boolean that specifies whether to replace invalid UTF-8 characters with the Unicode replacement character (�).
	ReplaceInvalidCharacters pulumi.BoolPtrOutput `pulumi:"replaceInvalidCharacters"`
	// The schema in which to create the file format.
	Schema pulumi.StringOutput `pulumi:"schema"`
	// Boolean that specifies to skip any blank lines encountered in the data files.
	SkipBlankLines pulumi.BoolPtrOutput `pulumi:"skipBlankLines"`
	// Boolean that specifies whether to skip the BOM (byte order mark), if present in a data file.
	SkipByteOrderMark pulumi.BoolPtrOutput `pulumi:"skipByteOrderMark"`
	// Number of lines at the start of the file to skip.
	SkipHeader pulumi.IntPtrOutput `pulumi:"skipHeader"`
	// Boolean that instructs the JSON parser to remove object fields or array elements containing null values.
	StripNullValues pulumi.BoolPtrOutput `pulumi:"stripNullValues"`
	// Boolean that instructs the JSON parser to remove outer brackets.
	StripOuterArray pulumi.BoolPtrOutput `pulumi:"stripOuterArray"`
	// Boolean that specifies whether the XML parser strips out the outer XML element, exposing 2nd level elements as separate documents.
	StripOuterElement pulumi.BoolPtrOutput `pulumi:"stripOuterElement"`
	// Defines the format of time values in the data files (data loading) or table (data unloading).
	TimeFormat pulumi.StringOutput `pulumi:"timeFormat"`
	// Defines the format of timestamp values in the data files (data loading) or table (data unloading).
	TimestampFormat pulumi.StringOutput `pulumi:"timestampFormat"`
	// Boolean that specifies whether to remove white space from fields.
	TrimSpace pulumi.BoolPtrOutput `pulumi:"trimSpace"`
}

## Example Usage

```go 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.NewFileFormat(ctx, "exampleFileFormat", &snowflake.FileFormatArgs{
			Database:   pulumi.String("EXAMPLE_DB"),
			FormatType: pulumi.String("CSV"),
			Schema:     pulumi.String("EXAMPLE_SCHEMA"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

format is database name | schema name | file format name

```sh

$ pulumi import snowflake:index/fileFormat:FileFormat example 'dbName|schemaName|fileFormatName'

```

func GetFileFormat

func GetFileFormat(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *FileFormatState, opts ...pulumi.ResourceOption) (*FileFormat, error)

GetFileFormat gets an existing FileFormat resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewFileFormat

func NewFileFormat(ctx *pulumi.Context,
	name string, args *FileFormatArgs, opts ...pulumi.ResourceOption) (*FileFormat, error)

NewFileFormat registers a new resource with the given unique name, arguments, and options.

func (*FileFormat) ElementType

func (*FileFormat) ElementType() reflect.Type

func (*FileFormat) ToFileFormatOutput

func (i *FileFormat) ToFileFormatOutput() FileFormatOutput

func (*FileFormat) ToFileFormatOutputWithContext

func (i *FileFormat) ToFileFormatOutputWithContext(ctx context.Context) FileFormatOutput

type FileFormatArgs

type FileFormatArgs struct {
	// Boolean that specifies to allow duplicate object field names (only the last one will be preserved).
	AllowDuplicate pulumi.BoolPtrInput
	// Boolean that specifies whether to interpret columns with no defined logical data type as UTF-8 text.
	BinaryAsText pulumi.BoolPtrInput
	// Defines the encoding format for binary input or output.
	BinaryFormat pulumi.StringPtrInput
	// Specifies a comment for the file format.
	Comment pulumi.StringPtrInput
	// Specifies the current compression algorithm for the data file.
	Compression pulumi.StringPtrInput
	// The database in which to create the file format.
	Database pulumi.StringInput
	// Defines the format of date values in the data files (data loading) or table (data unloading).
	DateFormat pulumi.StringPtrInput
	// Boolean that specifies whether the XML parser disables automatic conversion of numeric and Boolean values from text to native representation.
	DisableAutoConvert pulumi.BoolPtrInput
	// Boolean that specifies whether the XML parser disables recognition of Snowflake semi-structured data tags.
	DisableSnowflakeData pulumi.BoolPtrInput
	// Specifies whether to insert SQL NULL for empty fields in an input file, which are represented by two successive delimiters.
	EmptyFieldAsNull pulumi.BoolPtrInput
	// Boolean that enables parsing of octal numbers.
	EnableOctal pulumi.BoolPtrInput
	// String (constant) that specifies the character set of the source data when loading data into a table.
	Encoding pulumi.StringPtrInput
	// Boolean that specifies whether to generate a parsing error if the number of delimited columns (i.e. fields) in an input file does not match the number of columns in the corresponding table.
	ErrorOnColumnCountMismatch pulumi.BoolPtrInput
	// Single character string used as the escape character for field values.
	Escape pulumi.StringPtrInput
	// Single character string used as the escape character for unenclosed field values only.
	EscapeUnenclosedField pulumi.StringPtrInput
	// Specifies one or more singlebyte or multibyte characters that separate fields in an input file (data loading) or unloaded file (data unloading).
	FieldDelimiter pulumi.StringPtrInput
	// Character used to enclose strings.
	FieldOptionallyEnclosedBy pulumi.StringPtrInput
	// Specifies the extension for files unloaded to a stage.
	FileExtension pulumi.StringPtrInput
	// Specifies the format of the input files (for data loading) or output files (for data unloading).
	FormatType pulumi.StringInput
	// Boolean that specifies whether UTF-8 encoding errors produce error conditions.
	IgnoreUtf8Errors pulumi.BoolPtrInput
	// Specifies the identifier for the file format; must be unique for the database and schema in which the file format is created.
	Name pulumi.StringPtrInput
	// String used to convert to and from SQL NULL.
	NullIfs pulumi.StringArrayInput
	// Boolean that specifies whether the XML parser preserves leading and trailing spaces in element content.
	PreserveSpace pulumi.BoolPtrInput
	// Specifies one or more singlebyte or multibyte characters that separate records in an input file (data loading) or unloaded file (data unloading).
	RecordDelimiter pulumi.StringPtrInput
	// Boolean that specifies whether to replace invalid UTF-8 characters with the Unicode replacement character (�).
	ReplaceInvalidCharacters pulumi.BoolPtrInput
	// The schema in which to create the file format.
	Schema pulumi.StringInput
	// Boolean that specifies to skip any blank lines encountered in the data files.
	SkipBlankLines pulumi.BoolPtrInput
	// Boolean that specifies whether to skip the BOM (byte order mark), if present in a data file.
	SkipByteOrderMark pulumi.BoolPtrInput
	// Number of lines at the start of the file to skip.
	SkipHeader pulumi.IntPtrInput
	// Boolean that instructs the JSON parser to remove object fields or array elements containing null values.
	StripNullValues pulumi.BoolPtrInput
	// Boolean that instructs the JSON parser to remove outer brackets.
	StripOuterArray pulumi.BoolPtrInput
	// Boolean that specifies whether the XML parser strips out the outer XML element, exposing 2nd level elements as separate documents.
	StripOuterElement pulumi.BoolPtrInput
	// Defines the format of time values in the data files (data loading) or table (data unloading).
	TimeFormat pulumi.StringPtrInput
	// Defines the format of timestamp values in the data files (data loading) or table (data unloading).
	TimestampFormat pulumi.StringPtrInput
	// Boolean that specifies whether to remove white space from fields.
	TrimSpace pulumi.BoolPtrInput
}

The set of arguments for constructing a FileFormat resource.

func (FileFormatArgs) ElementType

func (FileFormatArgs) ElementType() reflect.Type

type FileFormatArray

type FileFormatArray []FileFormatInput

func (FileFormatArray) ElementType

func (FileFormatArray) ElementType() reflect.Type

func (FileFormatArray) ToFileFormatArrayOutput

func (i FileFormatArray) ToFileFormatArrayOutput() FileFormatArrayOutput

func (FileFormatArray) ToFileFormatArrayOutputWithContext

func (i FileFormatArray) ToFileFormatArrayOutputWithContext(ctx context.Context) FileFormatArrayOutput

type FileFormatArrayInput

type FileFormatArrayInput interface {
	pulumi.Input

	ToFileFormatArrayOutput() FileFormatArrayOutput
	ToFileFormatArrayOutputWithContext(context.Context) FileFormatArrayOutput
}

FileFormatArrayInput is an input type that accepts FileFormatArray and FileFormatArrayOutput values. You can construct a concrete instance of `FileFormatArrayInput` via:

FileFormatArray{ FileFormatArgs{...} }

type FileFormatArrayOutput

type FileFormatArrayOutput struct{ *pulumi.OutputState }

func (FileFormatArrayOutput) ElementType

func (FileFormatArrayOutput) ElementType() reflect.Type

func (FileFormatArrayOutput) Index

func (FileFormatArrayOutput) ToFileFormatArrayOutput

func (o FileFormatArrayOutput) ToFileFormatArrayOutput() FileFormatArrayOutput

func (FileFormatArrayOutput) ToFileFormatArrayOutputWithContext

func (o FileFormatArrayOutput) ToFileFormatArrayOutputWithContext(ctx context.Context) FileFormatArrayOutput

type FileFormatGrant

type FileFormatGrant struct {
	pulumi.CustomResourceState

	// The name of the database containing the current or future file formats on which to grant privileges.
	DatabaseName pulumi.StringOutput `pulumi:"databaseName"`
	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrOutput `pulumi:"enableMultipleGrants"`
	// The name of the file format on which to grant privileges immediately (only valid if onFuture is false).
	FileFormatName pulumi.StringPtrOutput `pulumi:"fileFormatName"`
	// When this is set to true and a schema*name is provided, apply this grant on all file formats in the given schema. When this is true and no schema*name is provided apply this grant on all file formats in the given database. The file*format*name field must be unset in order to use on*all. Cannot be used together with on*future.
	OnAll pulumi.BoolPtrOutput `pulumi:"onAll"`
	// When this is set to true and a schema*name is provided, apply this grant on all future file formats in the given schema. When this is true and no schema*name is provided apply this grant on all future file formats in the given database. The file*format*name field must be unset in order to use on*future. Cannot be used together with on*all.
	OnFuture pulumi.BoolPtrOutput `pulumi:"onFuture"`
	// The privilege to grant on the current or future file format. To grant all privileges, use the value `ALL PRIVILEGES`
	Privilege pulumi.StringPtrOutput `pulumi:"privilege"`
	// The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
	RevertOwnershipToRoleName pulumi.StringPtrOutput `pulumi:"revertOwnershipToRoleName"`
	// Grants privilege to these roles.
	Roles pulumi.StringArrayOutput `pulumi:"roles"`
	// The name of the schema containing the current or future file formats on which to grant privileges.
	SchemaName pulumi.StringPtrOutput `pulumi:"schemaName"`
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrOutput `pulumi:"withGrantOption"`
}

## Example Usage

```go 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.NewFileFormatGrant(ctx, "grant", &snowflake.FileFormatGrantArgs{
			DatabaseName:   pulumi.String("database"),
			FileFormatName: pulumi.String("file_format"),
			OnFuture:       pulumi.Bool(false),
			Privilege:      pulumi.String("SELECT"),
			Roles: pulumi.StringArray{
				pulumi.String("role1"),
				pulumi.String("role2"),
			},
			SchemaName:      pulumi.String("schema"),
			WithGrantOption: pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

format is database_name|schema_name|file_format_name|privilege|with_grant_option|on_future|roles

```sh

$ pulumi import snowflake:index/fileFormatGrant:FileFormatGrant example "MY_DATABASE|MY_SCHEMA|MY_FILE_FORMAT|USAGE|false|false|role1,role2'

```

func GetFileFormatGrant

func GetFileFormatGrant(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *FileFormatGrantState, opts ...pulumi.ResourceOption) (*FileFormatGrant, error)

GetFileFormatGrant gets an existing FileFormatGrant resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewFileFormatGrant

func NewFileFormatGrant(ctx *pulumi.Context,
	name string, args *FileFormatGrantArgs, opts ...pulumi.ResourceOption) (*FileFormatGrant, error)

NewFileFormatGrant registers a new resource with the given unique name, arguments, and options.

func (*FileFormatGrant) ElementType

func (*FileFormatGrant) ElementType() reflect.Type

func (*FileFormatGrant) ToFileFormatGrantOutput

func (i *FileFormatGrant) ToFileFormatGrantOutput() FileFormatGrantOutput

func (*FileFormatGrant) ToFileFormatGrantOutputWithContext

func (i *FileFormatGrant) ToFileFormatGrantOutputWithContext(ctx context.Context) FileFormatGrantOutput

type FileFormatGrantArgs

type FileFormatGrantArgs struct {
	// The name of the database containing the current or future file formats on which to grant privileges.
	DatabaseName pulumi.StringInput
	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrInput
	// The name of the file format on which to grant privileges immediately (only valid if onFuture is false).
	FileFormatName pulumi.StringPtrInput
	// When this is set to true and a schema*name is provided, apply this grant on all file formats in the given schema. When this is true and no schema*name is provided apply this grant on all file formats in the given database. The file*format*name field must be unset in order to use on*all. Cannot be used together with on*future.
	OnAll pulumi.BoolPtrInput
	// When this is set to true and a schema*name is provided, apply this grant on all future file formats in the given schema. When this is true and no schema*name is provided apply this grant on all future file formats in the given database. The file*format*name field must be unset in order to use on*future. Cannot be used together with on*all.
	OnFuture pulumi.BoolPtrInput
	// The privilege to grant on the current or future file format. To grant all privileges, use the value `ALL PRIVILEGES`
	Privilege pulumi.StringPtrInput
	// The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
	RevertOwnershipToRoleName pulumi.StringPtrInput
	// Grants privilege to these roles.
	Roles pulumi.StringArrayInput
	// The name of the schema containing the current or future file formats on which to grant privileges.
	SchemaName pulumi.StringPtrInput
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrInput
}

The set of arguments for constructing a FileFormatGrant resource.

func (FileFormatGrantArgs) ElementType

func (FileFormatGrantArgs) ElementType() reflect.Type

type FileFormatGrantArray

type FileFormatGrantArray []FileFormatGrantInput

func (FileFormatGrantArray) ElementType

func (FileFormatGrantArray) ElementType() reflect.Type

func (FileFormatGrantArray) ToFileFormatGrantArrayOutput

func (i FileFormatGrantArray) ToFileFormatGrantArrayOutput() FileFormatGrantArrayOutput

func (FileFormatGrantArray) ToFileFormatGrantArrayOutputWithContext

func (i FileFormatGrantArray) ToFileFormatGrantArrayOutputWithContext(ctx context.Context) FileFormatGrantArrayOutput

type FileFormatGrantArrayInput

type FileFormatGrantArrayInput interface {
	pulumi.Input

	ToFileFormatGrantArrayOutput() FileFormatGrantArrayOutput
	ToFileFormatGrantArrayOutputWithContext(context.Context) FileFormatGrantArrayOutput
}

FileFormatGrantArrayInput is an input type that accepts FileFormatGrantArray and FileFormatGrantArrayOutput values. You can construct a concrete instance of `FileFormatGrantArrayInput` via:

FileFormatGrantArray{ FileFormatGrantArgs{...} }

type FileFormatGrantArrayOutput

type FileFormatGrantArrayOutput struct{ *pulumi.OutputState }

func (FileFormatGrantArrayOutput) ElementType

func (FileFormatGrantArrayOutput) ElementType() reflect.Type

func (FileFormatGrantArrayOutput) Index

func (FileFormatGrantArrayOutput) ToFileFormatGrantArrayOutput

func (o FileFormatGrantArrayOutput) ToFileFormatGrantArrayOutput() FileFormatGrantArrayOutput

func (FileFormatGrantArrayOutput) ToFileFormatGrantArrayOutputWithContext

func (o FileFormatGrantArrayOutput) ToFileFormatGrantArrayOutputWithContext(ctx context.Context) FileFormatGrantArrayOutput

type FileFormatGrantInput

type FileFormatGrantInput interface {
	pulumi.Input

	ToFileFormatGrantOutput() FileFormatGrantOutput
	ToFileFormatGrantOutputWithContext(ctx context.Context) FileFormatGrantOutput
}

type FileFormatGrantMap

type FileFormatGrantMap map[string]FileFormatGrantInput

func (FileFormatGrantMap) ElementType

func (FileFormatGrantMap) ElementType() reflect.Type

func (FileFormatGrantMap) ToFileFormatGrantMapOutput

func (i FileFormatGrantMap) ToFileFormatGrantMapOutput() FileFormatGrantMapOutput

func (FileFormatGrantMap) ToFileFormatGrantMapOutputWithContext

func (i FileFormatGrantMap) ToFileFormatGrantMapOutputWithContext(ctx context.Context) FileFormatGrantMapOutput

type FileFormatGrantMapInput

type FileFormatGrantMapInput interface {
	pulumi.Input

	ToFileFormatGrantMapOutput() FileFormatGrantMapOutput
	ToFileFormatGrantMapOutputWithContext(context.Context) FileFormatGrantMapOutput
}

FileFormatGrantMapInput is an input type that accepts FileFormatGrantMap and FileFormatGrantMapOutput values. You can construct a concrete instance of `FileFormatGrantMapInput` via:

FileFormatGrantMap{ "key": FileFormatGrantArgs{...} }

type FileFormatGrantMapOutput

type FileFormatGrantMapOutput struct{ *pulumi.OutputState }

func (FileFormatGrantMapOutput) ElementType

func (FileFormatGrantMapOutput) ElementType() reflect.Type

func (FileFormatGrantMapOutput) MapIndex

func (FileFormatGrantMapOutput) ToFileFormatGrantMapOutput

func (o FileFormatGrantMapOutput) ToFileFormatGrantMapOutput() FileFormatGrantMapOutput

func (FileFormatGrantMapOutput) ToFileFormatGrantMapOutputWithContext

func (o FileFormatGrantMapOutput) ToFileFormatGrantMapOutputWithContext(ctx context.Context) FileFormatGrantMapOutput

type FileFormatGrantOutput

type FileFormatGrantOutput struct{ *pulumi.OutputState }

func (FileFormatGrantOutput) DatabaseName added in v0.9.0

func (o FileFormatGrantOutput) DatabaseName() pulumi.StringOutput

The name of the database containing the current or future file formats on which to grant privileges.

func (FileFormatGrantOutput) ElementType

func (FileFormatGrantOutput) ElementType() reflect.Type

func (FileFormatGrantOutput) EnableMultipleGrants added in v0.9.0

func (o FileFormatGrantOutput) EnableMultipleGrants() pulumi.BoolPtrOutput

When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke grants applied to roles and objects outside Terraform.

func (FileFormatGrantOutput) FileFormatName added in v0.9.0

func (o FileFormatGrantOutput) FileFormatName() pulumi.StringPtrOutput

The name of the file format on which to grant privileges immediately (only valid if onFuture is false).

func (FileFormatGrantOutput) OnAll added in v0.25.0

When this is set to true and a schema*name is provided, apply this grant on all file formats in the given schema. When this is true and no schema*name is provided apply this grant on all file formats in the given database. The file*format*name field must be unset in order to use on*all. Cannot be used together with on*future.

func (FileFormatGrantOutput) OnFuture added in v0.9.0

When this is set to true and a schema*name is provided, apply this grant on all future file formats in the given schema. When this is true and no schema*name is provided apply this grant on all future file formats in the given database. The file*format*name field must be unset in order to use on*future. Cannot be used together with on*all.

func (FileFormatGrantOutput) Privilege added in v0.9.0

The privilege to grant on the current or future file format. To grant all privileges, use the value `ALL PRIVILEGES`

func (FileFormatGrantOutput) RevertOwnershipToRoleName added in v0.26.0

func (o FileFormatGrantOutput) RevertOwnershipToRoleName() pulumi.StringPtrOutput

The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`

func (FileFormatGrantOutput) Roles added in v0.9.0

Grants privilege to these roles.

func (FileFormatGrantOutput) SchemaName added in v0.9.0

The name of the schema containing the current or future file formats on which to grant privileges.

func (FileFormatGrantOutput) ToFileFormatGrantOutput

func (o FileFormatGrantOutput) ToFileFormatGrantOutput() FileFormatGrantOutput

func (FileFormatGrantOutput) ToFileFormatGrantOutputWithContext

func (o FileFormatGrantOutput) ToFileFormatGrantOutputWithContext(ctx context.Context) FileFormatGrantOutput

func (FileFormatGrantOutput) WithGrantOption added in v0.9.0

func (o FileFormatGrantOutput) WithGrantOption() pulumi.BoolPtrOutput

When this is set to true, allows the recipient role to grant the privileges to other roles.

type FileFormatGrantState

type FileFormatGrantState struct {
	// The name of the database containing the current or future file formats on which to grant privileges.
	DatabaseName pulumi.StringPtrInput
	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrInput
	// The name of the file format on which to grant privileges immediately (only valid if onFuture is false).
	FileFormatName pulumi.StringPtrInput
	// When this is set to true and a schema*name is provided, apply this grant on all file formats in the given schema. When this is true and no schema*name is provided apply this grant on all file formats in the given database. The file*format*name field must be unset in order to use on*all. Cannot be used together with on*future.
	OnAll pulumi.BoolPtrInput
	// When this is set to true and a schema*name is provided, apply this grant on all future file formats in the given schema. When this is true and no schema*name is provided apply this grant on all future file formats in the given database. The file*format*name field must be unset in order to use on*future. Cannot be used together with on*all.
	OnFuture pulumi.BoolPtrInput
	// The privilege to grant on the current or future file format. To grant all privileges, use the value `ALL PRIVILEGES`
	Privilege pulumi.StringPtrInput
	// The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
	RevertOwnershipToRoleName pulumi.StringPtrInput
	// Grants privilege to these roles.
	Roles pulumi.StringArrayInput
	// The name of the schema containing the current or future file formats on which to grant privileges.
	SchemaName pulumi.StringPtrInput
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrInput
}

func (FileFormatGrantState) ElementType

func (FileFormatGrantState) ElementType() reflect.Type

type FileFormatInput

type FileFormatInput interface {
	pulumi.Input

	ToFileFormatOutput() FileFormatOutput
	ToFileFormatOutputWithContext(ctx context.Context) FileFormatOutput
}

type FileFormatMap

type FileFormatMap map[string]FileFormatInput

func (FileFormatMap) ElementType

func (FileFormatMap) ElementType() reflect.Type

func (FileFormatMap) ToFileFormatMapOutput

func (i FileFormatMap) ToFileFormatMapOutput() FileFormatMapOutput

func (FileFormatMap) ToFileFormatMapOutputWithContext

func (i FileFormatMap) ToFileFormatMapOutputWithContext(ctx context.Context) FileFormatMapOutput

type FileFormatMapInput

type FileFormatMapInput interface {
	pulumi.Input

	ToFileFormatMapOutput() FileFormatMapOutput
	ToFileFormatMapOutputWithContext(context.Context) FileFormatMapOutput
}

FileFormatMapInput is an input type that accepts FileFormatMap and FileFormatMapOutput values. You can construct a concrete instance of `FileFormatMapInput` via:

FileFormatMap{ "key": FileFormatArgs{...} }

type FileFormatMapOutput

type FileFormatMapOutput struct{ *pulumi.OutputState }

func (FileFormatMapOutput) ElementType

func (FileFormatMapOutput) ElementType() reflect.Type

func (FileFormatMapOutput) MapIndex

func (FileFormatMapOutput) ToFileFormatMapOutput

func (o FileFormatMapOutput) ToFileFormatMapOutput() FileFormatMapOutput

func (FileFormatMapOutput) ToFileFormatMapOutputWithContext

func (o FileFormatMapOutput) ToFileFormatMapOutputWithContext(ctx context.Context) FileFormatMapOutput

type FileFormatOutput

type FileFormatOutput struct{ *pulumi.OutputState }

func (FileFormatOutput) AllowDuplicate added in v0.9.0

func (o FileFormatOutput) AllowDuplicate() pulumi.BoolPtrOutput

Boolean that specifies to allow duplicate object field names (only the last one will be preserved).

func (FileFormatOutput) BinaryAsText added in v0.9.0

func (o FileFormatOutput) BinaryAsText() pulumi.BoolPtrOutput

Boolean that specifies whether to interpret columns with no defined logical data type as UTF-8 text.

func (FileFormatOutput) BinaryFormat added in v0.9.0

func (o FileFormatOutput) BinaryFormat() pulumi.StringOutput

Defines the encoding format for binary input or output.

func (FileFormatOutput) Comment added in v0.9.0

Specifies a comment for the file format.

func (FileFormatOutput) Compression added in v0.9.0

func (o FileFormatOutput) Compression() pulumi.StringOutput

Specifies the current compression algorithm for the data file.

func (FileFormatOutput) Database added in v0.9.0

func (o FileFormatOutput) Database() pulumi.StringOutput

The database in which to create the file format.

func (FileFormatOutput) DateFormat added in v0.9.0

func (o FileFormatOutput) DateFormat() pulumi.StringOutput

Defines the format of date values in the data files (data loading) or table (data unloading).

func (FileFormatOutput) DisableAutoConvert added in v0.9.0

func (o FileFormatOutput) DisableAutoConvert() pulumi.BoolPtrOutput

Boolean that specifies whether the XML parser disables automatic conversion of numeric and Boolean values from text to native representation.

func (FileFormatOutput) DisableSnowflakeData added in v0.9.0

func (o FileFormatOutput) DisableSnowflakeData() pulumi.BoolPtrOutput

Boolean that specifies whether the XML parser disables recognition of Snowflake semi-structured data tags.

func (FileFormatOutput) ElementType

func (FileFormatOutput) ElementType() reflect.Type

func (FileFormatOutput) EmptyFieldAsNull added in v0.9.0

func (o FileFormatOutput) EmptyFieldAsNull() pulumi.BoolPtrOutput

Specifies whether to insert SQL NULL for empty fields in an input file, which are represented by two successive delimiters.

func (FileFormatOutput) EnableOctal added in v0.9.0

func (o FileFormatOutput) EnableOctal() pulumi.BoolPtrOutput

Boolean that enables parsing of octal numbers.

func (FileFormatOutput) Encoding added in v0.9.0

func (o FileFormatOutput) Encoding() pulumi.StringOutput

String (constant) that specifies the character set of the source data when loading data into a table.

func (FileFormatOutput) ErrorOnColumnCountMismatch added in v0.9.0

func (o FileFormatOutput) ErrorOnColumnCountMismatch() pulumi.BoolPtrOutput

Boolean that specifies whether to generate a parsing error if the number of delimited columns (i.e. fields) in an input file does not match the number of columns in the corresponding table.

func (FileFormatOutput) Escape added in v0.9.0

Single character string used as the escape character for field values.

func (FileFormatOutput) EscapeUnenclosedField added in v0.9.0

func (o FileFormatOutput) EscapeUnenclosedField() pulumi.StringOutput

Single character string used as the escape character for unenclosed field values only.

func (FileFormatOutput) FieldDelimiter added in v0.9.0

func (o FileFormatOutput) FieldDelimiter() pulumi.StringOutput

Specifies one or more singlebyte or multibyte characters that separate fields in an input file (data loading) or unloaded file (data unloading).

func (FileFormatOutput) FieldOptionallyEnclosedBy added in v0.9.0

func (o FileFormatOutput) FieldOptionallyEnclosedBy() pulumi.StringOutput

Character used to enclose strings.

func (FileFormatOutput) FileExtension added in v0.9.0

func (o FileFormatOutput) FileExtension() pulumi.StringPtrOutput

Specifies the extension for files unloaded to a stage.

func (FileFormatOutput) FormatType added in v0.9.0

func (o FileFormatOutput) FormatType() pulumi.StringOutput

Specifies the format of the input files (for data loading) or output files (for data unloading).

func (FileFormatOutput) IgnoreUtf8Errors added in v0.9.0

func (o FileFormatOutput) IgnoreUtf8Errors() pulumi.BoolPtrOutput

Boolean that specifies whether UTF-8 encoding errors produce error conditions.

func (FileFormatOutput) Name added in v0.9.0

Specifies the identifier for the file format; must be unique for the database and schema in which the file format is created.

func (FileFormatOutput) NullIfs added in v0.9.0

String used to convert to and from SQL NULL.

func (FileFormatOutput) PreserveSpace added in v0.9.0

func (o FileFormatOutput) PreserveSpace() pulumi.BoolPtrOutput

Boolean that specifies whether the XML parser preserves leading and trailing spaces in element content.

func (FileFormatOutput) RecordDelimiter added in v0.9.0

func (o FileFormatOutput) RecordDelimiter() pulumi.StringOutput

Specifies one or more singlebyte or multibyte characters that separate records in an input file (data loading) or unloaded file (data unloading).

func (FileFormatOutput) ReplaceInvalidCharacters added in v0.9.0

func (o FileFormatOutput) ReplaceInvalidCharacters() pulumi.BoolPtrOutput

Boolean that specifies whether to replace invalid UTF-8 characters with the Unicode replacement character (�).

func (FileFormatOutput) Schema added in v0.9.0

The schema in which to create the file format.

func (FileFormatOutput) SkipBlankLines added in v0.9.0

func (o FileFormatOutput) SkipBlankLines() pulumi.BoolPtrOutput

Boolean that specifies to skip any blank lines encountered in the data files.

func (FileFormatOutput) SkipByteOrderMark added in v0.9.0

func (o FileFormatOutput) SkipByteOrderMark() pulumi.BoolPtrOutput

Boolean that specifies whether to skip the BOM (byte order mark), if present in a data file.

func (FileFormatOutput) SkipHeader added in v0.9.0

func (o FileFormatOutput) SkipHeader() pulumi.IntPtrOutput

Number of lines at the start of the file to skip.

func (FileFormatOutput) StripNullValues added in v0.9.0

func (o FileFormatOutput) StripNullValues() pulumi.BoolPtrOutput

Boolean that instructs the JSON parser to remove object fields or array elements containing null values.

func (FileFormatOutput) StripOuterArray added in v0.9.0

func (o FileFormatOutput) StripOuterArray() pulumi.BoolPtrOutput

Boolean that instructs the JSON parser to remove outer brackets.

func (FileFormatOutput) StripOuterElement added in v0.9.0

func (o FileFormatOutput) StripOuterElement() pulumi.BoolPtrOutput

Boolean that specifies whether the XML parser strips out the outer XML element, exposing 2nd level elements as separate documents.

func (FileFormatOutput) TimeFormat added in v0.9.0

func (o FileFormatOutput) TimeFormat() pulumi.StringOutput

Defines the format of time values in the data files (data loading) or table (data unloading).

func (FileFormatOutput) TimestampFormat added in v0.9.0

func (o FileFormatOutput) TimestampFormat() pulumi.StringOutput

Defines the format of timestamp values in the data files (data loading) or table (data unloading).

func (FileFormatOutput) ToFileFormatOutput

func (o FileFormatOutput) ToFileFormatOutput() FileFormatOutput

func (FileFormatOutput) ToFileFormatOutputWithContext

func (o FileFormatOutput) ToFileFormatOutputWithContext(ctx context.Context) FileFormatOutput

func (FileFormatOutput) TrimSpace added in v0.9.0

func (o FileFormatOutput) TrimSpace() pulumi.BoolPtrOutput

Boolean that specifies whether to remove white space from fields.

type FileFormatState

type FileFormatState struct {
	// Boolean that specifies to allow duplicate object field names (only the last one will be preserved).
	AllowDuplicate pulumi.BoolPtrInput
	// Boolean that specifies whether to interpret columns with no defined logical data type as UTF-8 text.
	BinaryAsText pulumi.BoolPtrInput
	// Defines the encoding format for binary input or output.
	BinaryFormat pulumi.StringPtrInput
	// Specifies a comment for the file format.
	Comment pulumi.StringPtrInput
	// Specifies the current compression algorithm for the data file.
	Compression pulumi.StringPtrInput
	// The database in which to create the file format.
	Database pulumi.StringPtrInput
	// Defines the format of date values in the data files (data loading) or table (data unloading).
	DateFormat pulumi.StringPtrInput
	// Boolean that specifies whether the XML parser disables automatic conversion of numeric and Boolean values from text to native representation.
	DisableAutoConvert pulumi.BoolPtrInput
	// Boolean that specifies whether the XML parser disables recognition of Snowflake semi-structured data tags.
	DisableSnowflakeData pulumi.BoolPtrInput
	// Specifies whether to insert SQL NULL for empty fields in an input file, which are represented by two successive delimiters.
	EmptyFieldAsNull pulumi.BoolPtrInput
	// Boolean that enables parsing of octal numbers.
	EnableOctal pulumi.BoolPtrInput
	// String (constant) that specifies the character set of the source data when loading data into a table.
	Encoding pulumi.StringPtrInput
	// Boolean that specifies whether to generate a parsing error if the number of delimited columns (i.e. fields) in an input file does not match the number of columns in the corresponding table.
	ErrorOnColumnCountMismatch pulumi.BoolPtrInput
	// Single character string used as the escape character for field values.
	Escape pulumi.StringPtrInput
	// Single character string used as the escape character for unenclosed field values only.
	EscapeUnenclosedField pulumi.StringPtrInput
	// Specifies one or more singlebyte or multibyte characters that separate fields in an input file (data loading) or unloaded file (data unloading).
	FieldDelimiter pulumi.StringPtrInput
	// Character used to enclose strings.
	FieldOptionallyEnclosedBy pulumi.StringPtrInput
	// Specifies the extension for files unloaded to a stage.
	FileExtension pulumi.StringPtrInput
	// Specifies the format of the input files (for data loading) or output files (for data unloading).
	FormatType pulumi.StringPtrInput
	// Boolean that specifies whether UTF-8 encoding errors produce error conditions.
	IgnoreUtf8Errors pulumi.BoolPtrInput
	// Specifies the identifier for the file format; must be unique for the database and schema in which the file format is created.
	Name pulumi.StringPtrInput
	// String used to convert to and from SQL NULL.
	NullIfs pulumi.StringArrayInput
	// Boolean that specifies whether the XML parser preserves leading and trailing spaces in element content.
	PreserveSpace pulumi.BoolPtrInput
	// Specifies one or more singlebyte or multibyte characters that separate records in an input file (data loading) or unloaded file (data unloading).
	RecordDelimiter pulumi.StringPtrInput
	// Boolean that specifies whether to replace invalid UTF-8 characters with the Unicode replacement character (�).
	ReplaceInvalidCharacters pulumi.BoolPtrInput
	// The schema in which to create the file format.
	Schema pulumi.StringPtrInput
	// Boolean that specifies to skip any blank lines encountered in the data files.
	SkipBlankLines pulumi.BoolPtrInput
	// Boolean that specifies whether to skip the BOM (byte order mark), if present in a data file.
	SkipByteOrderMark pulumi.BoolPtrInput
	// Number of lines at the start of the file to skip.
	SkipHeader pulumi.IntPtrInput
	// Boolean that instructs the JSON parser to remove object fields or array elements containing null values.
	StripNullValues pulumi.BoolPtrInput
	// Boolean that instructs the JSON parser to remove outer brackets.
	StripOuterArray pulumi.BoolPtrInput
	// Boolean that specifies whether the XML parser strips out the outer XML element, exposing 2nd level elements as separate documents.
	StripOuterElement pulumi.BoolPtrInput
	// Defines the format of time values in the data files (data loading) or table (data unloading).
	TimeFormat pulumi.StringPtrInput
	// Defines the format of timestamp values in the data files (data loading) or table (data unloading).
	TimestampFormat pulumi.StringPtrInput
	// Boolean that specifies whether to remove white space from fields.
	TrimSpace pulumi.BoolPtrInput
}

func (FileFormatState) ElementType

func (FileFormatState) ElementType() reflect.Type

type Function added in v0.1.3

type Function struct {
	pulumi.CustomResourceState

	// List of the arguments for the function
	Arguments FunctionArgumentArrayOutput `pulumi:"arguments"`
	// Specifies a comment for the function.
	Comment pulumi.StringPtrOutput `pulumi:"comment"`
	// The database in which to create the function. Don't use the | character.
	Database pulumi.StringOutput `pulumi:"database"`
	// The handler method for Java / Python function.
	Handler pulumi.StringPtrOutput `pulumi:"handler"`
	// Imports for Java / Python functions. For Java this a list of jar files, for Python this is a list of Python files.
	Imports pulumi.StringArrayOutput `pulumi:"imports"`
	// Specifies that the function is secure.
	IsSecure pulumi.BoolPtrOutput `pulumi:"isSecure"`
	// The language of the statement
	Language pulumi.StringPtrOutput `pulumi:"language"`
	// Specifies the identifier for the function; does not have to be unique for the schema in which the function is created. Don't use the | character.
	Name pulumi.StringOutput `pulumi:"name"`
	// Specifies the behavior of the function when called with null inputs.
	NullInputBehavior pulumi.StringPtrOutput `pulumi:"nullInputBehavior"`
	// List of package imports to use for Java / Python functions. For Java, package imports should be of the form: package*name:version*number, where package*name is snowflake*domain:package. For Python use it should be: ('numpy','pandas','xgboost==1.5.0').
	Packages pulumi.StringArrayOutput `pulumi:"packages"`
	// Specifies the behavior of the function when returning results
	ReturnBehavior pulumi.StringPtrOutput `pulumi:"returnBehavior"`
	// The return type of the function
	ReturnType pulumi.StringOutput `pulumi:"returnType"`
	// Required for Python functions. Specifies Python runtime version.
	RuntimeVersion pulumi.StringPtrOutput `pulumi:"runtimeVersion"`
	// The schema in which to create the function. Don't use the | character.
	Schema pulumi.StringOutput `pulumi:"schema"`
	// Specifies the javascript / java / sql / python code used to create the function.
	Statement pulumi.StringOutput `pulumi:"statement"`
	// The target path for the Java / Python functions. For Java, it is the path of compiled jar files and for the Python it is the path of the Python files.
	TargetPath pulumi.StringPtrOutput `pulumi:"targetPath"`
}

## Import

format is database name | schema name | function name | <list of arg types, separated with '-'>

```sh

$ pulumi import snowflake:index/function:Function example 'dbName|schemaName|functionName|varchar-varchar-varchar'

```

func GetFunction added in v0.1.3

func GetFunction(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *FunctionState, opts ...pulumi.ResourceOption) (*Function, error)

GetFunction gets an existing Function resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewFunction added in v0.1.3

func NewFunction(ctx *pulumi.Context,
	name string, args *FunctionArgs, opts ...pulumi.ResourceOption) (*Function, error)

NewFunction registers a new resource with the given unique name, arguments, and options.

func (*Function) ElementType added in v0.1.3

func (*Function) ElementType() reflect.Type

func (*Function) ToFunctionOutput added in v0.1.3

func (i *Function) ToFunctionOutput() FunctionOutput

func (*Function) ToFunctionOutputWithContext added in v0.1.3

func (i *Function) ToFunctionOutputWithContext(ctx context.Context) FunctionOutput

type FunctionArgs added in v0.1.3

type FunctionArgs struct {
	// List of the arguments for the function
	Arguments FunctionArgumentArrayInput
	// Specifies a comment for the function.
	Comment pulumi.StringPtrInput
	// The database in which to create the function. Don't use the | character.
	Database pulumi.StringInput
	// The handler method for Java / Python function.
	Handler pulumi.StringPtrInput
	// Imports for Java / Python functions. For Java this a list of jar files, for Python this is a list of Python files.
	Imports pulumi.StringArrayInput
	// Specifies that the function is secure.
	IsSecure pulumi.BoolPtrInput
	// The language of the statement
	Language pulumi.StringPtrInput
	// Specifies the identifier for the function; does not have to be unique for the schema in which the function is created. Don't use the | character.
	Name pulumi.StringPtrInput
	// Specifies the behavior of the function when called with null inputs.
	NullInputBehavior pulumi.StringPtrInput
	// List of package imports to use for Java / Python functions. For Java, package imports should be of the form: package*name:version*number, where package*name is snowflake*domain:package. For Python use it should be: ('numpy','pandas','xgboost==1.5.0').
	Packages pulumi.StringArrayInput
	// Specifies the behavior of the function when returning results
	ReturnBehavior pulumi.StringPtrInput
	// The return type of the function
	ReturnType pulumi.StringInput
	// Required for Python functions. Specifies Python runtime version.
	RuntimeVersion pulumi.StringPtrInput
	// The schema in which to create the function. Don't use the | character.
	Schema pulumi.StringInput
	// Specifies the javascript / java / sql / python code used to create the function.
	Statement pulumi.StringInput
	// The target path for the Java / Python functions. For Java, it is the path of compiled jar files and for the Python it is the path of the Python files.
	TargetPath pulumi.StringPtrInput
}

The set of arguments for constructing a Function resource.

func (FunctionArgs) ElementType added in v0.1.3

func (FunctionArgs) ElementType() reflect.Type

type FunctionArgument added in v0.1.3

type FunctionArgument struct {
	// The argument name
	Name string `pulumi:"name"`
	// The argument type
	Type string `pulumi:"type"`
}

type FunctionArgumentArgs added in v0.1.3

type FunctionArgumentArgs struct {
	// The argument name
	Name pulumi.StringInput `pulumi:"name"`
	// The argument type
	Type pulumi.StringInput `pulumi:"type"`
}

func (FunctionArgumentArgs) ElementType added in v0.1.3

func (FunctionArgumentArgs) ElementType() reflect.Type

func (FunctionArgumentArgs) ToFunctionArgumentOutput added in v0.1.3

func (i FunctionArgumentArgs) ToFunctionArgumentOutput() FunctionArgumentOutput

func (FunctionArgumentArgs) ToFunctionArgumentOutputWithContext added in v0.1.3

func (i FunctionArgumentArgs) ToFunctionArgumentOutputWithContext(ctx context.Context) FunctionArgumentOutput

type FunctionArgumentArray added in v0.1.3

type FunctionArgumentArray []FunctionArgumentInput

func (FunctionArgumentArray) ElementType added in v0.1.3

func (FunctionArgumentArray) ElementType() reflect.Type

func (FunctionArgumentArray) ToFunctionArgumentArrayOutput added in v0.1.3

func (i FunctionArgumentArray) ToFunctionArgumentArrayOutput() FunctionArgumentArrayOutput

func (FunctionArgumentArray) ToFunctionArgumentArrayOutputWithContext added in v0.1.3

func (i FunctionArgumentArray) ToFunctionArgumentArrayOutputWithContext(ctx context.Context) FunctionArgumentArrayOutput

type FunctionArgumentArrayInput added in v0.1.3

type FunctionArgumentArrayInput interface {
	pulumi.Input

	ToFunctionArgumentArrayOutput() FunctionArgumentArrayOutput
	ToFunctionArgumentArrayOutputWithContext(context.Context) FunctionArgumentArrayOutput
}

FunctionArgumentArrayInput is an input type that accepts FunctionArgumentArray and FunctionArgumentArrayOutput values. You can construct a concrete instance of `FunctionArgumentArrayInput` via:

FunctionArgumentArray{ FunctionArgumentArgs{...} }

type FunctionArgumentArrayOutput added in v0.1.3

type FunctionArgumentArrayOutput struct{ *pulumi.OutputState }

func (FunctionArgumentArrayOutput) ElementType added in v0.1.3

func (FunctionArgumentArrayOutput) Index added in v0.1.3

func (FunctionArgumentArrayOutput) ToFunctionArgumentArrayOutput added in v0.1.3

func (o FunctionArgumentArrayOutput) ToFunctionArgumentArrayOutput() FunctionArgumentArrayOutput

func (FunctionArgumentArrayOutput) ToFunctionArgumentArrayOutputWithContext added in v0.1.3

func (o FunctionArgumentArrayOutput) ToFunctionArgumentArrayOutputWithContext(ctx context.Context) FunctionArgumentArrayOutput

type FunctionArgumentInput added in v0.1.3

type FunctionArgumentInput interface {
	pulumi.Input

	ToFunctionArgumentOutput() FunctionArgumentOutput
	ToFunctionArgumentOutputWithContext(context.Context) FunctionArgumentOutput
}

FunctionArgumentInput is an input type that accepts FunctionArgumentArgs and FunctionArgumentOutput values. You can construct a concrete instance of `FunctionArgumentInput` via:

FunctionArgumentArgs{...}

type FunctionArgumentOutput added in v0.1.3

type FunctionArgumentOutput struct{ *pulumi.OutputState }

func (FunctionArgumentOutput) ElementType added in v0.1.3

func (FunctionArgumentOutput) ElementType() reflect.Type

func (FunctionArgumentOutput) Name added in v0.1.3

The argument name

func (FunctionArgumentOutput) ToFunctionArgumentOutput added in v0.1.3

func (o FunctionArgumentOutput) ToFunctionArgumentOutput() FunctionArgumentOutput

func (FunctionArgumentOutput) ToFunctionArgumentOutputWithContext added in v0.1.3

func (o FunctionArgumentOutput) ToFunctionArgumentOutputWithContext(ctx context.Context) FunctionArgumentOutput

func (FunctionArgumentOutput) Type added in v0.1.3

The argument type

type FunctionArray added in v0.1.3

type FunctionArray []FunctionInput

func (FunctionArray) ElementType added in v0.1.3

func (FunctionArray) ElementType() reflect.Type

func (FunctionArray) ToFunctionArrayOutput added in v0.1.3

func (i FunctionArray) ToFunctionArrayOutput() FunctionArrayOutput

func (FunctionArray) ToFunctionArrayOutputWithContext added in v0.1.3

func (i FunctionArray) ToFunctionArrayOutputWithContext(ctx context.Context) FunctionArrayOutput

type FunctionArrayInput added in v0.1.3

type FunctionArrayInput interface {
	pulumi.Input

	ToFunctionArrayOutput() FunctionArrayOutput
	ToFunctionArrayOutputWithContext(context.Context) FunctionArrayOutput
}

FunctionArrayInput is an input type that accepts FunctionArray and FunctionArrayOutput values. You can construct a concrete instance of `FunctionArrayInput` via:

FunctionArray{ FunctionArgs{...} }

type FunctionArrayOutput added in v0.1.3

type FunctionArrayOutput struct{ *pulumi.OutputState }

func (FunctionArrayOutput) ElementType added in v0.1.3

func (FunctionArrayOutput) ElementType() reflect.Type

func (FunctionArrayOutput) Index added in v0.1.3

func (FunctionArrayOutput) ToFunctionArrayOutput added in v0.1.3

func (o FunctionArrayOutput) ToFunctionArrayOutput() FunctionArrayOutput

func (FunctionArrayOutput) ToFunctionArrayOutputWithContext added in v0.1.3

func (o FunctionArrayOutput) ToFunctionArrayOutputWithContext(ctx context.Context) FunctionArrayOutput

type FunctionGrant

type FunctionGrant struct {
	pulumi.CustomResourceState

	// List of the argument data types for the function (must be present if function has arguments and functionName is present)
	ArgumentDataTypes pulumi.StringArrayOutput `pulumi:"argumentDataTypes"`
	// The name of the database containing the current or future functions on which to grant privileges.
	DatabaseName pulumi.StringOutput `pulumi:"databaseName"`
	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrOutput `pulumi:"enableMultipleGrants"`
	// The name of the function on which to grant privileges immediately (only valid if onFuture is false).
	FunctionName pulumi.StringPtrOutput `pulumi:"functionName"`
	// When this is set to true and a schema*name is provided, apply this grant on all functions in the given schema. When this is true and no schema*name is provided apply this grant on all functions in the given database. The function*name, arguments, return*type, and shares fields must be unset in order to use on*all. Cannot be used together with on*future.
	OnAll pulumi.BoolPtrOutput `pulumi:"onAll"`
	// When this is set to true and a schema*name is provided, apply this grant on all future functions in the given schema. When this is true and no schema*name is provided apply this grant on all future functions in the given database. The function*name, arguments, return*type, and shares fields must be unset in order to use on*future. Cannot be used together with on*all.
	OnFuture pulumi.BoolPtrOutput `pulumi:"onFuture"`
	// The privilege to grant on the current or future function. Must be one of `USAGE` or `OWNERSHIP`. To grant all privileges, use the value `ALL PRIVILEGES`
	Privilege pulumi.StringPtrOutput `pulumi:"privilege"`
	// The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
	RevertOwnershipToRoleName pulumi.StringPtrOutput `pulumi:"revertOwnershipToRoleName"`
	// Grants privilege to these roles.
	Roles pulumi.StringArrayOutput `pulumi:"roles"`
	// The name of the schema containing the current or future functions on which to grant privileges.
	SchemaName pulumi.StringPtrOutput `pulumi:"schemaName"`
	// Grants privilege to these shares (only valid if onFuture is false).
	Shares pulumi.StringArrayOutput `pulumi:"shares"`
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrOutput `pulumi:"withGrantOption"`
}

## Example Usage

```go 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.NewFunctionGrant(ctx, "grant", &snowflake.FunctionGrantArgs{
			ArgumentDataTypes: pulumi.StringArray{
				pulumi.String("array"),
				pulumi.String("string"),
			},
			DatabaseName: pulumi.String("database"),
			FunctionName: pulumi.String("function"),
			OnFuture:     pulumi.Bool(false),
			Privilege:    pulumi.String("USAGE"),
			Roles: pulumi.StringArray{
				pulumi.String("role1"),
				pulumi.String("role2"),
			},
			SchemaName: pulumi.String("schema"),
			Shares: pulumi.StringArray{
				pulumi.String("share1"),
				pulumi.String("share2"),
			},
			WithGrantOption: pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

format is database_name|schema_name|function_name|argument_data_types|privilege|with_grant_option|on_future|roles|shares

```sh

$ pulumi import snowflake:index/functionGrant:FunctionGrant example "MY_DATABASE|MY_SCHEMA|MY_FUNCTION|ARG1TYPE,ARG2TYPE|USAGE|false|false|role1,role2|share1,share2"

```

func GetFunctionGrant

func GetFunctionGrant(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *FunctionGrantState, opts ...pulumi.ResourceOption) (*FunctionGrant, error)

GetFunctionGrant gets an existing FunctionGrant resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewFunctionGrant

func NewFunctionGrant(ctx *pulumi.Context,
	name string, args *FunctionGrantArgs, opts ...pulumi.ResourceOption) (*FunctionGrant, error)

NewFunctionGrant registers a new resource with the given unique name, arguments, and options.

func (*FunctionGrant) ElementType

func (*FunctionGrant) ElementType() reflect.Type

func (*FunctionGrant) ToFunctionGrantOutput

func (i *FunctionGrant) ToFunctionGrantOutput() FunctionGrantOutput

func (*FunctionGrant) ToFunctionGrantOutputWithContext

func (i *FunctionGrant) ToFunctionGrantOutputWithContext(ctx context.Context) FunctionGrantOutput

type FunctionGrantArgs

type FunctionGrantArgs struct {
	// List of the argument data types for the function (must be present if function has arguments and functionName is present)
	ArgumentDataTypes pulumi.StringArrayInput
	// The name of the database containing the current or future functions on which to grant privileges.
	DatabaseName pulumi.StringInput
	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrInput
	// The name of the function on which to grant privileges immediately (only valid if onFuture is false).
	FunctionName pulumi.StringPtrInput
	// When this is set to true and a schema*name is provided, apply this grant on all functions in the given schema. When this is true and no schema*name is provided apply this grant on all functions in the given database. The function*name, arguments, return*type, and shares fields must be unset in order to use on*all. Cannot be used together with on*future.
	OnAll pulumi.BoolPtrInput
	// When this is set to true and a schema*name is provided, apply this grant on all future functions in the given schema. When this is true and no schema*name is provided apply this grant on all future functions in the given database. The function*name, arguments, return*type, and shares fields must be unset in order to use on*future. Cannot be used together with on*all.
	OnFuture pulumi.BoolPtrInput
	// The privilege to grant on the current or future function. Must be one of `USAGE` or `OWNERSHIP`. To grant all privileges, use the value `ALL PRIVILEGES`
	Privilege pulumi.StringPtrInput
	// The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
	RevertOwnershipToRoleName pulumi.StringPtrInput
	// Grants privilege to these roles.
	Roles pulumi.StringArrayInput
	// The name of the schema containing the current or future functions on which to grant privileges.
	SchemaName pulumi.StringPtrInput
	// Grants privilege to these shares (only valid if onFuture is false).
	Shares pulumi.StringArrayInput
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrInput
}

The set of arguments for constructing a FunctionGrant resource.

func (FunctionGrantArgs) ElementType

func (FunctionGrantArgs) ElementType() reflect.Type

type FunctionGrantArray

type FunctionGrantArray []FunctionGrantInput

func (FunctionGrantArray) ElementType

func (FunctionGrantArray) ElementType() reflect.Type

func (FunctionGrantArray) ToFunctionGrantArrayOutput

func (i FunctionGrantArray) ToFunctionGrantArrayOutput() FunctionGrantArrayOutput

func (FunctionGrantArray) ToFunctionGrantArrayOutputWithContext

func (i FunctionGrantArray) ToFunctionGrantArrayOutputWithContext(ctx context.Context) FunctionGrantArrayOutput

type FunctionGrantArrayInput

type FunctionGrantArrayInput interface {
	pulumi.Input

	ToFunctionGrantArrayOutput() FunctionGrantArrayOutput
	ToFunctionGrantArrayOutputWithContext(context.Context) FunctionGrantArrayOutput
}

FunctionGrantArrayInput is an input type that accepts FunctionGrantArray and FunctionGrantArrayOutput values. You can construct a concrete instance of `FunctionGrantArrayInput` via:

FunctionGrantArray{ FunctionGrantArgs{...} }

type FunctionGrantArrayOutput

type FunctionGrantArrayOutput struct{ *pulumi.OutputState }

func (FunctionGrantArrayOutput) ElementType

func (FunctionGrantArrayOutput) ElementType() reflect.Type

func (FunctionGrantArrayOutput) Index

func (FunctionGrantArrayOutput) ToFunctionGrantArrayOutput

func (o FunctionGrantArrayOutput) ToFunctionGrantArrayOutput() FunctionGrantArrayOutput

func (FunctionGrantArrayOutput) ToFunctionGrantArrayOutputWithContext

func (o FunctionGrantArrayOutput) ToFunctionGrantArrayOutputWithContext(ctx context.Context) FunctionGrantArrayOutput

type FunctionGrantInput

type FunctionGrantInput interface {
	pulumi.Input

	ToFunctionGrantOutput() FunctionGrantOutput
	ToFunctionGrantOutputWithContext(ctx context.Context) FunctionGrantOutput
}

type FunctionGrantMap

type FunctionGrantMap map[string]FunctionGrantInput

func (FunctionGrantMap) ElementType

func (FunctionGrantMap) ElementType() reflect.Type

func (FunctionGrantMap) ToFunctionGrantMapOutput

func (i FunctionGrantMap) ToFunctionGrantMapOutput() FunctionGrantMapOutput

func (FunctionGrantMap) ToFunctionGrantMapOutputWithContext

func (i FunctionGrantMap) ToFunctionGrantMapOutputWithContext(ctx context.Context) FunctionGrantMapOutput

type FunctionGrantMapInput

type FunctionGrantMapInput interface {
	pulumi.Input

	ToFunctionGrantMapOutput() FunctionGrantMapOutput
	ToFunctionGrantMapOutputWithContext(context.Context) FunctionGrantMapOutput
}

FunctionGrantMapInput is an input type that accepts FunctionGrantMap and FunctionGrantMapOutput values. You can construct a concrete instance of `FunctionGrantMapInput` via:

FunctionGrantMap{ "key": FunctionGrantArgs{...} }

type FunctionGrantMapOutput

type FunctionGrantMapOutput struct{ *pulumi.OutputState }

func (FunctionGrantMapOutput) ElementType

func (FunctionGrantMapOutput) ElementType() reflect.Type

func (FunctionGrantMapOutput) MapIndex

func (FunctionGrantMapOutput) ToFunctionGrantMapOutput

func (o FunctionGrantMapOutput) ToFunctionGrantMapOutput() FunctionGrantMapOutput

func (FunctionGrantMapOutput) ToFunctionGrantMapOutputWithContext

func (o FunctionGrantMapOutput) ToFunctionGrantMapOutputWithContext(ctx context.Context) FunctionGrantMapOutput

type FunctionGrantOutput

type FunctionGrantOutput struct{ *pulumi.OutputState }

func (FunctionGrantOutput) ArgumentDataTypes added in v0.16.1

func (o FunctionGrantOutput) ArgumentDataTypes() pulumi.StringArrayOutput

List of the argument data types for the function (must be present if function has arguments and functionName is present)

func (FunctionGrantOutput) DatabaseName added in v0.9.0

func (o FunctionGrantOutput) DatabaseName() pulumi.StringOutput

The name of the database containing the current or future functions on which to grant privileges.

func (FunctionGrantOutput) ElementType

func (FunctionGrantOutput) ElementType() reflect.Type

func (FunctionGrantOutput) EnableMultipleGrants added in v0.9.0

func (o FunctionGrantOutput) EnableMultipleGrants() pulumi.BoolPtrOutput

When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke grants applied to roles and objects outside Terraform.

func (FunctionGrantOutput) FunctionName added in v0.9.0

func (o FunctionGrantOutput) FunctionName() pulumi.StringPtrOutput

The name of the function on which to grant privileges immediately (only valid if onFuture is false).

func (FunctionGrantOutput) OnAll added in v0.25.0

When this is set to true and a schema*name is provided, apply this grant on all functions in the given schema. When this is true and no schema*name is provided apply this grant on all functions in the given database. The function*name, arguments, return*type, and shares fields must be unset in order to use on*all. Cannot be used together with on*future.

func (FunctionGrantOutput) OnFuture added in v0.9.0

When this is set to true and a schema*name is provided, apply this grant on all future functions in the given schema. When this is true and no schema*name is provided apply this grant on all future functions in the given database. The function*name, arguments, return*type, and shares fields must be unset in order to use on*future. Cannot be used together with on*all.

func (FunctionGrantOutput) Privilege added in v0.9.0

The privilege to grant on the current or future function. Must be one of `USAGE` or `OWNERSHIP`. To grant all privileges, use the value `ALL PRIVILEGES`

func (FunctionGrantOutput) RevertOwnershipToRoleName added in v0.26.0

func (o FunctionGrantOutput) RevertOwnershipToRoleName() pulumi.StringPtrOutput

The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`

func (FunctionGrantOutput) Roles added in v0.9.0

Grants privilege to these roles.

func (FunctionGrantOutput) SchemaName added in v0.9.0

The name of the schema containing the current or future functions on which to grant privileges.

func (FunctionGrantOutput) Shares added in v0.9.0

Grants privilege to these shares (only valid if onFuture is false).

func (FunctionGrantOutput) ToFunctionGrantOutput

func (o FunctionGrantOutput) ToFunctionGrantOutput() FunctionGrantOutput

func (FunctionGrantOutput) ToFunctionGrantOutputWithContext

func (o FunctionGrantOutput) ToFunctionGrantOutputWithContext(ctx context.Context) FunctionGrantOutput

func (FunctionGrantOutput) WithGrantOption added in v0.9.0

func (o FunctionGrantOutput) WithGrantOption() pulumi.BoolPtrOutput

When this is set to true, allows the recipient role to grant the privileges to other roles.

type FunctionGrantState

type FunctionGrantState struct {
	// List of the argument data types for the function (must be present if function has arguments and functionName is present)
	ArgumentDataTypes pulumi.StringArrayInput
	// The name of the database containing the current or future functions on which to grant privileges.
	DatabaseName pulumi.StringPtrInput
	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrInput
	// The name of the function on which to grant privileges immediately (only valid if onFuture is false).
	FunctionName pulumi.StringPtrInput
	// When this is set to true and a schema*name is provided, apply this grant on all functions in the given schema. When this is true and no schema*name is provided apply this grant on all functions in the given database. The function*name, arguments, return*type, and shares fields must be unset in order to use on*all. Cannot be used together with on*future.
	OnAll pulumi.BoolPtrInput
	// When this is set to true and a schema*name is provided, apply this grant on all future functions in the given schema. When this is true and no schema*name is provided apply this grant on all future functions in the given database. The function*name, arguments, return*type, and shares fields must be unset in order to use on*future. Cannot be used together with on*all.
	OnFuture pulumi.BoolPtrInput
	// The privilege to grant on the current or future function. Must be one of `USAGE` or `OWNERSHIP`. To grant all privileges, use the value `ALL PRIVILEGES`
	Privilege pulumi.StringPtrInput
	// The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
	RevertOwnershipToRoleName pulumi.StringPtrInput
	// Grants privilege to these roles.
	Roles pulumi.StringArrayInput
	// The name of the schema containing the current or future functions on which to grant privileges.
	SchemaName pulumi.StringPtrInput
	// Grants privilege to these shares (only valid if onFuture is false).
	Shares pulumi.StringArrayInput
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrInput
}

func (FunctionGrantState) ElementType

func (FunctionGrantState) ElementType() reflect.Type

type FunctionInput added in v0.1.3

type FunctionInput interface {
	pulumi.Input

	ToFunctionOutput() FunctionOutput
	ToFunctionOutputWithContext(ctx context.Context) FunctionOutput
}

type FunctionMap added in v0.1.3

type FunctionMap map[string]FunctionInput

func (FunctionMap) ElementType added in v0.1.3

func (FunctionMap) ElementType() reflect.Type

func (FunctionMap) ToFunctionMapOutput added in v0.1.3

func (i FunctionMap) ToFunctionMapOutput() FunctionMapOutput

func (FunctionMap) ToFunctionMapOutputWithContext added in v0.1.3

func (i FunctionMap) ToFunctionMapOutputWithContext(ctx context.Context) FunctionMapOutput

type FunctionMapInput added in v0.1.3

type FunctionMapInput interface {
	pulumi.Input

	ToFunctionMapOutput() FunctionMapOutput
	ToFunctionMapOutputWithContext(context.Context) FunctionMapOutput
}

FunctionMapInput is an input type that accepts FunctionMap and FunctionMapOutput values. You can construct a concrete instance of `FunctionMapInput` via:

FunctionMap{ "key": FunctionArgs{...} }

type FunctionMapOutput added in v0.1.3

type FunctionMapOutput struct{ *pulumi.OutputState }

func (FunctionMapOutput) ElementType added in v0.1.3

func (FunctionMapOutput) ElementType() reflect.Type

func (FunctionMapOutput) MapIndex added in v0.1.3

func (FunctionMapOutput) ToFunctionMapOutput added in v0.1.3

func (o FunctionMapOutput) ToFunctionMapOutput() FunctionMapOutput

func (FunctionMapOutput) ToFunctionMapOutputWithContext added in v0.1.3

func (o FunctionMapOutput) ToFunctionMapOutputWithContext(ctx context.Context) FunctionMapOutput

type FunctionOutput added in v0.1.3

type FunctionOutput struct{ *pulumi.OutputState }

func (FunctionOutput) Arguments added in v0.9.0

List of the arguments for the function

func (FunctionOutput) Comment added in v0.9.0

Specifies a comment for the function.

func (FunctionOutput) Database added in v0.9.0

func (o FunctionOutput) Database() pulumi.StringOutput

The database in which to create the function. Don't use the | character.

func (FunctionOutput) ElementType added in v0.1.3

func (FunctionOutput) ElementType() reflect.Type

func (FunctionOutput) Handler added in v0.9.0

The handler method for Java / Python function.

func (FunctionOutput) Imports added in v0.9.0

Imports for Java / Python functions. For Java this a list of jar files, for Python this is a list of Python files.

func (FunctionOutput) IsSecure added in v0.19.0

func (o FunctionOutput) IsSecure() pulumi.BoolPtrOutput

Specifies that the function is secure.

func (FunctionOutput) Language added in v0.9.0

func (o FunctionOutput) Language() pulumi.StringPtrOutput

The language of the statement

func (FunctionOutput) Name added in v0.9.0

Specifies the identifier for the function; does not have to be unique for the schema in which the function is created. Don't use the | character.

func (FunctionOutput) NullInputBehavior added in v0.9.0

func (o FunctionOutput) NullInputBehavior() pulumi.StringPtrOutput

Specifies the behavior of the function when called with null inputs.

func (FunctionOutput) Packages added in v0.11.0

List of package imports to use for Java / Python functions. For Java, package imports should be of the form: package*name:version*number, where package*name is snowflake*domain:package. For Python use it should be: ('numpy','pandas','xgboost==1.5.0').

func (FunctionOutput) ReturnBehavior added in v0.9.0

func (o FunctionOutput) ReturnBehavior() pulumi.StringPtrOutput

Specifies the behavior of the function when returning results

func (FunctionOutput) ReturnType added in v0.9.0

func (o FunctionOutput) ReturnType() pulumi.StringOutput

The return type of the function

func (FunctionOutput) RuntimeVersion added in v0.11.0

func (o FunctionOutput) RuntimeVersion() pulumi.StringPtrOutput

Required for Python functions. Specifies Python runtime version.

func (FunctionOutput) Schema added in v0.9.0

func (o FunctionOutput) Schema() pulumi.StringOutput

The schema in which to create the function. Don't use the | character.

func (FunctionOutput) Statement added in v0.9.0

func (o FunctionOutput) Statement() pulumi.StringOutput

Specifies the javascript / java / sql / python code used to create the function.

func (FunctionOutput) TargetPath added in v0.9.0

func (o FunctionOutput) TargetPath() pulumi.StringPtrOutput

The target path for the Java / Python functions. For Java, it is the path of compiled jar files and for the Python it is the path of the Python files.

func (FunctionOutput) ToFunctionOutput added in v0.1.3

func (o FunctionOutput) ToFunctionOutput() FunctionOutput

func (FunctionOutput) ToFunctionOutputWithContext added in v0.1.3

func (o FunctionOutput) ToFunctionOutputWithContext(ctx context.Context) FunctionOutput

type FunctionState added in v0.1.3

type FunctionState struct {
	// List of the arguments for the function
	Arguments FunctionArgumentArrayInput
	// Specifies a comment for the function.
	Comment pulumi.StringPtrInput
	// The database in which to create the function. Don't use the | character.
	Database pulumi.StringPtrInput
	// The handler method for Java / Python function.
	Handler pulumi.StringPtrInput
	// Imports for Java / Python functions. For Java this a list of jar files, for Python this is a list of Python files.
	Imports pulumi.StringArrayInput
	// Specifies that the function is secure.
	IsSecure pulumi.BoolPtrInput
	// The language of the statement
	Language pulumi.StringPtrInput
	// Specifies the identifier for the function; does not have to be unique for the schema in which the function is created. Don't use the | character.
	Name pulumi.StringPtrInput
	// Specifies the behavior of the function when called with null inputs.
	NullInputBehavior pulumi.StringPtrInput
	// List of package imports to use for Java / Python functions. For Java, package imports should be of the form: package*name:version*number, where package*name is snowflake*domain:package. For Python use it should be: ('numpy','pandas','xgboost==1.5.0').
	Packages pulumi.StringArrayInput
	// Specifies the behavior of the function when returning results
	ReturnBehavior pulumi.StringPtrInput
	// The return type of the function
	ReturnType pulumi.StringPtrInput
	// Required for Python functions. Specifies Python runtime version.
	RuntimeVersion pulumi.StringPtrInput
	// The schema in which to create the function. Don't use the | character.
	Schema pulumi.StringPtrInput
	// Specifies the javascript / java / sql / python code used to create the function.
	Statement pulumi.StringPtrInput
	// The target path for the Java / Python functions. For Java, it is the path of compiled jar files and for the Python it is the path of the Python files.
	TargetPath pulumi.StringPtrInput
}

func (FunctionState) ElementType added in v0.1.3

func (FunctionState) ElementType() reflect.Type

type GetAccountsAccount added in v0.26.0

type GetAccountsAccount struct {
	AccountLocator                       string `pulumi:"accountLocator"`
	AccountLocatorUrl                    string `pulumi:"accountLocatorUrl"`
	AccountName                          string `pulumi:"accountName"`
	AccountUrl                           string `pulumi:"accountUrl"`
	Comment                              string `pulumi:"comment"`
	ConsumptionBillingEntityName         string `pulumi:"consumptionBillingEntityName"`
	CreatedOn                            string `pulumi:"createdOn"`
	Edition                              string `pulumi:"edition"`
	IsOrgAdmin                           bool   `pulumi:"isOrgAdmin"`
	ManagedAccounts                      int    `pulumi:"managedAccounts"`
	MarketplaceConsumerBillingEntityName string `pulumi:"marketplaceConsumerBillingEntityName"`
	MarketplaceProviderBillingEntityName string `pulumi:"marketplaceProviderBillingEntityName"`
	OldAccountUrl                        string `pulumi:"oldAccountUrl"`
	OrganizationName                     string `pulumi:"organizationName"`
	RegionGroup                          string `pulumi:"regionGroup"`
	SnowflakeRegion                      string `pulumi:"snowflakeRegion"`
}

type GetAccountsAccountArgs added in v0.26.0

type GetAccountsAccountArgs struct {
	AccountLocator                       pulumi.StringInput `pulumi:"accountLocator"`
	AccountLocatorUrl                    pulumi.StringInput `pulumi:"accountLocatorUrl"`
	AccountName                          pulumi.StringInput `pulumi:"accountName"`
	AccountUrl                           pulumi.StringInput `pulumi:"accountUrl"`
	Comment                              pulumi.StringInput `pulumi:"comment"`
	ConsumptionBillingEntityName         pulumi.StringInput `pulumi:"consumptionBillingEntityName"`
	CreatedOn                            pulumi.StringInput `pulumi:"createdOn"`
	Edition                              pulumi.StringInput `pulumi:"edition"`
	IsOrgAdmin                           pulumi.BoolInput   `pulumi:"isOrgAdmin"`
	ManagedAccounts                      pulumi.IntInput    `pulumi:"managedAccounts"`
	MarketplaceConsumerBillingEntityName pulumi.StringInput `pulumi:"marketplaceConsumerBillingEntityName"`
	MarketplaceProviderBillingEntityName pulumi.StringInput `pulumi:"marketplaceProviderBillingEntityName"`
	OldAccountUrl                        pulumi.StringInput `pulumi:"oldAccountUrl"`
	OrganizationName                     pulumi.StringInput `pulumi:"organizationName"`
	RegionGroup                          pulumi.StringInput `pulumi:"regionGroup"`
	SnowflakeRegion                      pulumi.StringInput `pulumi:"snowflakeRegion"`
}

func (GetAccountsAccountArgs) ElementType added in v0.26.0

func (GetAccountsAccountArgs) ElementType() reflect.Type

func (GetAccountsAccountArgs) ToGetAccountsAccountOutput added in v0.26.0

func (i GetAccountsAccountArgs) ToGetAccountsAccountOutput() GetAccountsAccountOutput

func (GetAccountsAccountArgs) ToGetAccountsAccountOutputWithContext added in v0.26.0

func (i GetAccountsAccountArgs) ToGetAccountsAccountOutputWithContext(ctx context.Context) GetAccountsAccountOutput

type GetAccountsAccountArray added in v0.26.0

type GetAccountsAccountArray []GetAccountsAccountInput

func (GetAccountsAccountArray) ElementType added in v0.26.0

func (GetAccountsAccountArray) ElementType() reflect.Type

func (GetAccountsAccountArray) ToGetAccountsAccountArrayOutput added in v0.26.0

func (i GetAccountsAccountArray) ToGetAccountsAccountArrayOutput() GetAccountsAccountArrayOutput

func (GetAccountsAccountArray) ToGetAccountsAccountArrayOutputWithContext added in v0.26.0

func (i GetAccountsAccountArray) ToGetAccountsAccountArrayOutputWithContext(ctx context.Context) GetAccountsAccountArrayOutput

type GetAccountsAccountArrayInput added in v0.26.0

type GetAccountsAccountArrayInput interface {
	pulumi.Input

	ToGetAccountsAccountArrayOutput() GetAccountsAccountArrayOutput
	ToGetAccountsAccountArrayOutputWithContext(context.Context) GetAccountsAccountArrayOutput
}

GetAccountsAccountArrayInput is an input type that accepts GetAccountsAccountArray and GetAccountsAccountArrayOutput values. You can construct a concrete instance of `GetAccountsAccountArrayInput` via:

GetAccountsAccountArray{ GetAccountsAccountArgs{...} }

type GetAccountsAccountArrayOutput added in v0.26.0

type GetAccountsAccountArrayOutput struct{ *pulumi.OutputState }

func (GetAccountsAccountArrayOutput) ElementType added in v0.26.0

func (GetAccountsAccountArrayOutput) Index added in v0.26.0

func (GetAccountsAccountArrayOutput) ToGetAccountsAccountArrayOutput added in v0.26.0

func (o GetAccountsAccountArrayOutput) ToGetAccountsAccountArrayOutput() GetAccountsAccountArrayOutput

func (GetAccountsAccountArrayOutput) ToGetAccountsAccountArrayOutputWithContext added in v0.26.0

func (o GetAccountsAccountArrayOutput) ToGetAccountsAccountArrayOutputWithContext(ctx context.Context) GetAccountsAccountArrayOutput

type GetAccountsAccountInput added in v0.26.0

type GetAccountsAccountInput interface {
	pulumi.Input

	ToGetAccountsAccountOutput() GetAccountsAccountOutput
	ToGetAccountsAccountOutputWithContext(context.Context) GetAccountsAccountOutput
}

GetAccountsAccountInput is an input type that accepts GetAccountsAccountArgs and GetAccountsAccountOutput values. You can construct a concrete instance of `GetAccountsAccountInput` via:

GetAccountsAccountArgs{...}

type GetAccountsAccountOutput added in v0.26.0

type GetAccountsAccountOutput struct{ *pulumi.OutputState }

func (GetAccountsAccountOutput) AccountLocator added in v0.26.0

func (o GetAccountsAccountOutput) AccountLocator() pulumi.StringOutput

func (GetAccountsAccountOutput) AccountLocatorUrl added in v0.26.0

func (o GetAccountsAccountOutput) AccountLocatorUrl() pulumi.StringOutput

func (GetAccountsAccountOutput) AccountName added in v0.26.0

func (GetAccountsAccountOutput) AccountUrl added in v0.26.0

func (GetAccountsAccountOutput) Comment added in v0.26.0

func (GetAccountsAccountOutput) ConsumptionBillingEntityName added in v0.26.0

func (o GetAccountsAccountOutput) ConsumptionBillingEntityName() pulumi.StringOutput

func (GetAccountsAccountOutput) CreatedOn added in v0.26.0

func (GetAccountsAccountOutput) Edition added in v0.26.0

func (GetAccountsAccountOutput) ElementType added in v0.26.0

func (GetAccountsAccountOutput) ElementType() reflect.Type

func (GetAccountsAccountOutput) IsOrgAdmin added in v0.26.0

func (GetAccountsAccountOutput) ManagedAccounts added in v0.26.0

func (o GetAccountsAccountOutput) ManagedAccounts() pulumi.IntOutput

func (GetAccountsAccountOutput) MarketplaceConsumerBillingEntityName added in v0.26.0

func (o GetAccountsAccountOutput) MarketplaceConsumerBillingEntityName() pulumi.StringOutput

func (GetAccountsAccountOutput) MarketplaceProviderBillingEntityName added in v0.26.0

func (o GetAccountsAccountOutput) MarketplaceProviderBillingEntityName() pulumi.StringOutput

func (GetAccountsAccountOutput) OldAccountUrl added in v0.26.0

func (o GetAccountsAccountOutput) OldAccountUrl() pulumi.StringOutput

func (GetAccountsAccountOutput) OrganizationName added in v0.26.0

func (o GetAccountsAccountOutput) OrganizationName() pulumi.StringOutput

func (GetAccountsAccountOutput) RegionGroup added in v0.26.0

func (GetAccountsAccountOutput) SnowflakeRegion added in v0.26.0

func (o GetAccountsAccountOutput) SnowflakeRegion() pulumi.StringOutput

func (GetAccountsAccountOutput) ToGetAccountsAccountOutput added in v0.26.0

func (o GetAccountsAccountOutput) ToGetAccountsAccountOutput() GetAccountsAccountOutput

func (GetAccountsAccountOutput) ToGetAccountsAccountOutputWithContext added in v0.26.0

func (o GetAccountsAccountOutput) ToGetAccountsAccountOutputWithContext(ctx context.Context) GetAccountsAccountOutput

type GetAccountsArgs added in v0.26.0

type GetAccountsArgs struct {
	// Specifies an account name pattern. If a pattern is specified, only accounts matching the pattern are returned.
	Pattern *string `pulumi:"pattern"`
}

A collection of arguments for invoking getAccounts.

type GetAccountsOutputArgs added in v0.26.0

type GetAccountsOutputArgs struct {
	// Specifies an account name pattern. If a pattern is specified, only accounts matching the pattern are returned.
	Pattern pulumi.StringPtrInput `pulumi:"pattern"`
}

A collection of arguments for invoking getAccounts.

func (GetAccountsOutputArgs) ElementType added in v0.26.0

func (GetAccountsOutputArgs) ElementType() reflect.Type

type GetAccountsResult added in v0.26.0

type GetAccountsResult struct {
	// List of all the accounts available in the organization.
	Accounts []GetAccountsAccount `pulumi:"accounts"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// Specifies an account name pattern. If a pattern is specified, only accounts matching the pattern are returned.
	Pattern *string `pulumi:"pattern"`
}

A collection of values returned by getAccounts.

func GetAccounts added in v0.26.0

func GetAccounts(ctx *pulumi.Context, args *GetAccountsArgs, opts ...pulumi.InvokeOption) (*GetAccountsResult, error)

type GetAccountsResultOutput added in v0.26.0

type GetAccountsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getAccounts.

func GetAccountsOutput added in v0.26.0

func GetAccountsOutput(ctx *pulumi.Context, args GetAccountsOutputArgs, opts ...pulumi.InvokeOption) GetAccountsResultOutput

func (GetAccountsResultOutput) Accounts added in v0.26.0

List of all the accounts available in the organization.

func (GetAccountsResultOutput) ElementType added in v0.26.0

func (GetAccountsResultOutput) ElementType() reflect.Type

func (GetAccountsResultOutput) Id added in v0.26.0

The provider-assigned unique ID for this managed resource.

func (GetAccountsResultOutput) Pattern added in v0.26.0

Specifies an account name pattern. If a pattern is specified, only accounts matching the pattern are returned.

func (GetAccountsResultOutput) ToGetAccountsResultOutput added in v0.26.0

func (o GetAccountsResultOutput) ToGetAccountsResultOutput() GetAccountsResultOutput

func (GetAccountsResultOutput) ToGetAccountsResultOutputWithContext added in v0.26.0

func (o GetAccountsResultOutput) ToGetAccountsResultOutputWithContext(ctx context.Context) GetAccountsResultOutput

type GetAlertsAlert added in v0.26.0

type GetAlertsAlert struct {
	Action       string `pulumi:"action"`
	Comment      string `pulumi:"comment"`
	Condition    string `pulumi:"condition"`
	DatabaseName string `pulumi:"databaseName"`
	Name         string `pulumi:"name"`
	Owner        string `pulumi:"owner"`
	SchemaName   string `pulumi:"schemaName"`
}

type GetAlertsAlertArgs added in v0.26.0

type GetAlertsAlertArgs struct {
	Action       pulumi.StringInput `pulumi:"action"`
	Comment      pulumi.StringInput `pulumi:"comment"`
	Condition    pulumi.StringInput `pulumi:"condition"`
	DatabaseName pulumi.StringInput `pulumi:"databaseName"`
	Name         pulumi.StringInput `pulumi:"name"`
	Owner        pulumi.StringInput `pulumi:"owner"`
	SchemaName   pulumi.StringInput `pulumi:"schemaName"`
}

func (GetAlertsAlertArgs) ElementType added in v0.26.0

func (GetAlertsAlertArgs) ElementType() reflect.Type

func (GetAlertsAlertArgs) ToGetAlertsAlertOutput added in v0.26.0

func (i GetAlertsAlertArgs) ToGetAlertsAlertOutput() GetAlertsAlertOutput

func (GetAlertsAlertArgs) ToGetAlertsAlertOutputWithContext added in v0.26.0

func (i GetAlertsAlertArgs) ToGetAlertsAlertOutputWithContext(ctx context.Context) GetAlertsAlertOutput

type GetAlertsAlertArray added in v0.26.0

type GetAlertsAlertArray []GetAlertsAlertInput

func (GetAlertsAlertArray) ElementType added in v0.26.0

func (GetAlertsAlertArray) ElementType() reflect.Type

func (GetAlertsAlertArray) ToGetAlertsAlertArrayOutput added in v0.26.0

func (i GetAlertsAlertArray) ToGetAlertsAlertArrayOutput() GetAlertsAlertArrayOutput

func (GetAlertsAlertArray) ToGetAlertsAlertArrayOutputWithContext added in v0.26.0

func (i GetAlertsAlertArray) ToGetAlertsAlertArrayOutputWithContext(ctx context.Context) GetAlertsAlertArrayOutput

type GetAlertsAlertArrayInput added in v0.26.0

type GetAlertsAlertArrayInput interface {
	pulumi.Input

	ToGetAlertsAlertArrayOutput() GetAlertsAlertArrayOutput
	ToGetAlertsAlertArrayOutputWithContext(context.Context) GetAlertsAlertArrayOutput
}

GetAlertsAlertArrayInput is an input type that accepts GetAlertsAlertArray and GetAlertsAlertArrayOutput values. You can construct a concrete instance of `GetAlertsAlertArrayInput` via:

GetAlertsAlertArray{ GetAlertsAlertArgs{...} }

type GetAlertsAlertArrayOutput added in v0.26.0

type GetAlertsAlertArrayOutput struct{ *pulumi.OutputState }

func (GetAlertsAlertArrayOutput) ElementType added in v0.26.0

func (GetAlertsAlertArrayOutput) ElementType() reflect.Type

func (GetAlertsAlertArrayOutput) Index added in v0.26.0

func (GetAlertsAlertArrayOutput) ToGetAlertsAlertArrayOutput added in v0.26.0

func (o GetAlertsAlertArrayOutput) ToGetAlertsAlertArrayOutput() GetAlertsAlertArrayOutput

func (GetAlertsAlertArrayOutput) ToGetAlertsAlertArrayOutputWithContext added in v0.26.0

func (o GetAlertsAlertArrayOutput) ToGetAlertsAlertArrayOutputWithContext(ctx context.Context) GetAlertsAlertArrayOutput

type GetAlertsAlertInput added in v0.26.0

type GetAlertsAlertInput interface {
	pulumi.Input

	ToGetAlertsAlertOutput() GetAlertsAlertOutput
	ToGetAlertsAlertOutputWithContext(context.Context) GetAlertsAlertOutput
}

GetAlertsAlertInput is an input type that accepts GetAlertsAlertArgs and GetAlertsAlertOutput values. You can construct a concrete instance of `GetAlertsAlertInput` via:

GetAlertsAlertArgs{...}

type GetAlertsAlertOutput added in v0.26.0

type GetAlertsAlertOutput struct{ *pulumi.OutputState }

func (GetAlertsAlertOutput) Action added in v0.26.0

func (GetAlertsAlertOutput) Comment added in v0.26.0

func (GetAlertsAlertOutput) Condition added in v0.26.0

func (GetAlertsAlertOutput) DatabaseName added in v0.26.0

func (o GetAlertsAlertOutput) DatabaseName() pulumi.StringOutput

func (GetAlertsAlertOutput) ElementType added in v0.26.0

func (GetAlertsAlertOutput) ElementType() reflect.Type

func (GetAlertsAlertOutput) Name added in v0.26.0

func (GetAlertsAlertOutput) Owner added in v0.26.0

func (GetAlertsAlertOutput) SchemaName added in v0.26.0

func (o GetAlertsAlertOutput) SchemaName() pulumi.StringOutput

func (GetAlertsAlertOutput) ToGetAlertsAlertOutput added in v0.26.0

func (o GetAlertsAlertOutput) ToGetAlertsAlertOutput() GetAlertsAlertOutput

func (GetAlertsAlertOutput) ToGetAlertsAlertOutputWithContext added in v0.26.0

func (o GetAlertsAlertOutput) ToGetAlertsAlertOutputWithContext(ctx context.Context) GetAlertsAlertOutput

type GetAlertsArgs added in v0.26.0

type GetAlertsArgs struct {
	// The database from which to return the alerts from.
	Database *string `pulumi:"database"`
	// Filters the command output by object name.
	Pattern *string `pulumi:"pattern"`
	// The schema from which to return the alerts from.
	Schema *string `pulumi:"schema"`
}

A collection of arguments for invoking getAlerts.

type GetAlertsOutputArgs added in v0.26.0

type GetAlertsOutputArgs struct {
	// The database from which to return the alerts from.
	Database pulumi.StringPtrInput `pulumi:"database"`
	// Filters the command output by object name.
	Pattern pulumi.StringPtrInput `pulumi:"pattern"`
	// The schema from which to return the alerts from.
	Schema pulumi.StringPtrInput `pulumi:"schema"`
}

A collection of arguments for invoking getAlerts.

func (GetAlertsOutputArgs) ElementType added in v0.26.0

func (GetAlertsOutputArgs) ElementType() reflect.Type

type GetAlertsResult added in v0.26.0

type GetAlertsResult struct {
	// Lists alerts for the current/specified database or schema, or across the entire account.
	Alerts []GetAlertsAlert `pulumi:"alerts"`
	// The database from which to return the alerts from.
	Database *string `pulumi:"database"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// Filters the command output by object name.
	Pattern *string `pulumi:"pattern"`
	// The schema from which to return the alerts from.
	Schema *string `pulumi:"schema"`
}

A collection of values returned by getAlerts.

func GetAlerts added in v0.26.0

func GetAlerts(ctx *pulumi.Context, args *GetAlertsArgs, opts ...pulumi.InvokeOption) (*GetAlertsResult, error)

## Example Usage

```go 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.GetAlerts(ctx, &snowflake.GetAlertsArgs{
			Database: pulumi.StringRef("MYDB"),
			Schema:   pulumi.StringRef("MYSCHEMA"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetAlertsResultOutput added in v0.26.0

type GetAlertsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getAlerts.

func GetAlertsOutput added in v0.26.0

func GetAlertsOutput(ctx *pulumi.Context, args GetAlertsOutputArgs, opts ...pulumi.InvokeOption) GetAlertsResultOutput

func (GetAlertsResultOutput) Alerts added in v0.26.0

Lists alerts for the current/specified database or schema, or across the entire account.

func (GetAlertsResultOutput) Database added in v0.26.0

The database from which to return the alerts from.

func (GetAlertsResultOutput) ElementType added in v0.26.0

func (GetAlertsResultOutput) ElementType() reflect.Type

func (GetAlertsResultOutput) Id added in v0.26.0

The provider-assigned unique ID for this managed resource.

func (GetAlertsResultOutput) Pattern added in v0.26.0

Filters the command output by object name.

func (GetAlertsResultOutput) Schema added in v0.26.0

The schema from which to return the alerts from.

func (GetAlertsResultOutput) ToGetAlertsResultOutput added in v0.26.0

func (o GetAlertsResultOutput) ToGetAlertsResultOutput() GetAlertsResultOutput

func (GetAlertsResultOutput) ToGetAlertsResultOutputWithContext added in v0.26.0

func (o GetAlertsResultOutput) ToGetAlertsResultOutputWithContext(ctx context.Context) GetAlertsResultOutput

type GetCurrentAccountResult

type GetCurrentAccountResult struct {
	// The Snowflake Account ID; as returned by CURRENT_ACCOUNT().
	Account string `pulumi:"account"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The Snowflake Region; as returned by CURRENT_REGION()
	Region string `pulumi:"region"`
	// The Snowflake URL.
	Url string `pulumi:"url"`
}

A collection of values returned by getCurrentAccount.

func GetCurrentAccount

func GetCurrentAccount(ctx *pulumi.Context, opts ...pulumi.InvokeOption) (*GetCurrentAccountResult, error)

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v4/go/aws/ssm"
"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 {
		this, err := snowflake.GetCurrentAccount(ctx, nil, nil)
		if err != nil {
			return err
		}
		_, err = ssm.NewParameter(ctx, "snowflakeAccountUrl", &ssm.ParameterArgs{
			Type:  pulumi.String("String"),
			Value: *pulumi.String(this.Url),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetCurrentRoleResult added in v0.16.0

type GetCurrentRoleResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The name of the [primary role](https://docs.snowflake.com/en/user-guide/security-access-control-overview.html#label-access-control-role-enforcement) in use for the current session.
	Name string `pulumi:"name"`
}

A collection of values returned by getCurrentRole.

func GetCurrentRole added in v0.16.0

func GetCurrentRole(ctx *pulumi.Context, opts ...pulumi.InvokeOption) (*GetCurrentRoleResult, error)

type GetDatabaseRolesArgs added in v0.25.0

type GetDatabaseRolesArgs struct {
	// The database from which to return the database roles from.
	Database *string `pulumi:"database"`
}

A collection of arguments for invoking getDatabaseRoles.

type GetDatabaseRolesDatabaseRole added in v0.25.0

type GetDatabaseRolesDatabaseRole struct {
	Comment string `pulumi:"comment"`
	Name    string `pulumi:"name"`
	Owner   string `pulumi:"owner"`
}

type GetDatabaseRolesDatabaseRoleArgs added in v0.25.0

type GetDatabaseRolesDatabaseRoleArgs struct {
	Comment pulumi.StringInput `pulumi:"comment"`
	Name    pulumi.StringInput `pulumi:"name"`
	Owner   pulumi.StringInput `pulumi:"owner"`
}

func (GetDatabaseRolesDatabaseRoleArgs) ElementType added in v0.25.0

func (GetDatabaseRolesDatabaseRoleArgs) ToGetDatabaseRolesDatabaseRoleOutput added in v0.25.0

func (i GetDatabaseRolesDatabaseRoleArgs) ToGetDatabaseRolesDatabaseRoleOutput() GetDatabaseRolesDatabaseRoleOutput

func (GetDatabaseRolesDatabaseRoleArgs) ToGetDatabaseRolesDatabaseRoleOutputWithContext added in v0.25.0

func (i GetDatabaseRolesDatabaseRoleArgs) ToGetDatabaseRolesDatabaseRoleOutputWithContext(ctx context.Context) GetDatabaseRolesDatabaseRoleOutput

type GetDatabaseRolesDatabaseRoleArray added in v0.25.0

type GetDatabaseRolesDatabaseRoleArray []GetDatabaseRolesDatabaseRoleInput

func (GetDatabaseRolesDatabaseRoleArray) ElementType added in v0.25.0

func (GetDatabaseRolesDatabaseRoleArray) ToGetDatabaseRolesDatabaseRoleArrayOutput added in v0.25.0

func (i GetDatabaseRolesDatabaseRoleArray) ToGetDatabaseRolesDatabaseRoleArrayOutput() GetDatabaseRolesDatabaseRoleArrayOutput

func (GetDatabaseRolesDatabaseRoleArray) ToGetDatabaseRolesDatabaseRoleArrayOutputWithContext added in v0.25.0

func (i GetDatabaseRolesDatabaseRoleArray) ToGetDatabaseRolesDatabaseRoleArrayOutputWithContext(ctx context.Context) GetDatabaseRolesDatabaseRoleArrayOutput

type GetDatabaseRolesDatabaseRoleArrayInput added in v0.25.0

type GetDatabaseRolesDatabaseRoleArrayInput interface {
	pulumi.Input

	ToGetDatabaseRolesDatabaseRoleArrayOutput() GetDatabaseRolesDatabaseRoleArrayOutput
	ToGetDatabaseRolesDatabaseRoleArrayOutputWithContext(context.Context) GetDatabaseRolesDatabaseRoleArrayOutput
}

GetDatabaseRolesDatabaseRoleArrayInput is an input type that accepts GetDatabaseRolesDatabaseRoleArray and GetDatabaseRolesDatabaseRoleArrayOutput values. You can construct a concrete instance of `GetDatabaseRolesDatabaseRoleArrayInput` via:

GetDatabaseRolesDatabaseRoleArray{ GetDatabaseRolesDatabaseRoleArgs{...} }

type GetDatabaseRolesDatabaseRoleArrayOutput added in v0.25.0

type GetDatabaseRolesDatabaseRoleArrayOutput struct{ *pulumi.OutputState }

func (GetDatabaseRolesDatabaseRoleArrayOutput) ElementType added in v0.25.0

func (GetDatabaseRolesDatabaseRoleArrayOutput) Index added in v0.25.0

func (GetDatabaseRolesDatabaseRoleArrayOutput) ToGetDatabaseRolesDatabaseRoleArrayOutput added in v0.25.0

func (o GetDatabaseRolesDatabaseRoleArrayOutput) ToGetDatabaseRolesDatabaseRoleArrayOutput() GetDatabaseRolesDatabaseRoleArrayOutput

func (GetDatabaseRolesDatabaseRoleArrayOutput) ToGetDatabaseRolesDatabaseRoleArrayOutputWithContext added in v0.25.0

func (o GetDatabaseRolesDatabaseRoleArrayOutput) ToGetDatabaseRolesDatabaseRoleArrayOutputWithContext(ctx context.Context) GetDatabaseRolesDatabaseRoleArrayOutput

type GetDatabaseRolesDatabaseRoleInput added in v0.25.0

type GetDatabaseRolesDatabaseRoleInput interface {
	pulumi.Input

	ToGetDatabaseRolesDatabaseRoleOutput() GetDatabaseRolesDatabaseRoleOutput
	ToGetDatabaseRolesDatabaseRoleOutputWithContext(context.Context) GetDatabaseRolesDatabaseRoleOutput
}

GetDatabaseRolesDatabaseRoleInput is an input type that accepts GetDatabaseRolesDatabaseRoleArgs and GetDatabaseRolesDatabaseRoleOutput values. You can construct a concrete instance of `GetDatabaseRolesDatabaseRoleInput` via:

GetDatabaseRolesDatabaseRoleArgs{...}

type GetDatabaseRolesDatabaseRoleOutput added in v0.25.0

type GetDatabaseRolesDatabaseRoleOutput struct{ *pulumi.OutputState }

func (GetDatabaseRolesDatabaseRoleOutput) Comment added in v0.25.0

func (GetDatabaseRolesDatabaseRoleOutput) ElementType added in v0.25.0

func (GetDatabaseRolesDatabaseRoleOutput) Name added in v0.25.0

func (GetDatabaseRolesDatabaseRoleOutput) Owner added in v0.25.0

func (GetDatabaseRolesDatabaseRoleOutput) ToGetDatabaseRolesDatabaseRoleOutput added in v0.25.0

func (o GetDatabaseRolesDatabaseRoleOutput) ToGetDatabaseRolesDatabaseRoleOutput() GetDatabaseRolesDatabaseRoleOutput

func (GetDatabaseRolesDatabaseRoleOutput) ToGetDatabaseRolesDatabaseRoleOutputWithContext added in v0.25.0

func (o GetDatabaseRolesDatabaseRoleOutput) ToGetDatabaseRolesDatabaseRoleOutputWithContext(ctx context.Context) GetDatabaseRolesDatabaseRoleOutput

type GetDatabaseRolesOutputArgs added in v0.25.0

type GetDatabaseRolesOutputArgs struct {
	// The database from which to return the database roles from.
	Database pulumi.StringPtrInput `pulumi:"database"`
}

A collection of arguments for invoking getDatabaseRoles.

func (GetDatabaseRolesOutputArgs) ElementType added in v0.25.0

func (GetDatabaseRolesOutputArgs) ElementType() reflect.Type

type GetDatabaseRolesResult added in v0.25.0

type GetDatabaseRolesResult struct {
	// The database from which to return the database roles from.
	Database *string `pulumi:"database"`
	// Lists all the database roles in a specified database.
	DatabaseRoles []GetDatabaseRolesDatabaseRole `pulumi:"databaseRoles"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
}

A collection of values returned by getDatabaseRoles.

func GetDatabaseRoles added in v0.25.0

func GetDatabaseRoles(ctx *pulumi.Context, args *GetDatabaseRolesArgs, opts ...pulumi.InvokeOption) (*GetDatabaseRolesResult, error)

type GetDatabaseRolesResultOutput added in v0.25.0

type GetDatabaseRolesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getDatabaseRoles.

func GetDatabaseRolesOutput added in v0.25.0

func (GetDatabaseRolesResultOutput) Database added in v0.25.0

The database from which to return the database roles from.

func (GetDatabaseRolesResultOutput) DatabaseRoles added in v0.25.0

Lists all the database roles in a specified database.

func (GetDatabaseRolesResultOutput) ElementType added in v0.25.0

func (GetDatabaseRolesResultOutput) Id added in v0.25.0

The provider-assigned unique ID for this managed resource.

func (GetDatabaseRolesResultOutput) ToGetDatabaseRolesResultOutput added in v0.25.0

func (o GetDatabaseRolesResultOutput) ToGetDatabaseRolesResultOutput() GetDatabaseRolesResultOutput

func (GetDatabaseRolesResultOutput) ToGetDatabaseRolesResultOutputWithContext added in v0.25.0

func (o GetDatabaseRolesResultOutput) ToGetDatabaseRolesResultOutputWithContext(ctx context.Context) GetDatabaseRolesResultOutput

type GetDatabasesArgs added in v0.27.0

type GetDatabasesArgs struct {
	// Optionally includes dropped databases that have not yet been purged The output also includes an additional `droppedOn` column
	History *bool `pulumi:"history"`
	// Optionally filters the databases by a pattern
	Pattern *string `pulumi:"pattern"`
	// Optionally filters the databases by a pattern
	StartsWith *string `pulumi:"startsWith"`
	// Optionally returns only the columns `createdOn` and `name` in the results
	Terse *bool `pulumi:"terse"`
}

A collection of arguments for invoking getDatabases.

type GetDatabasesDatabase added in v0.5.0

type GetDatabasesDatabase struct {
	Comment                   string                                         `pulumi:"comment"`
	CreatedOn                 string                                         `pulumi:"createdOn"`
	IsCurrent                 bool                                           `pulumi:"isCurrent"`
	IsDefault                 bool                                           `pulumi:"isDefault"`
	Name                      string                                         `pulumi:"name"`
	Options                   string                                         `pulumi:"options"`
	Origin                    string                                         `pulumi:"origin"`
	Owner                     string                                         `pulumi:"owner"`
	ReplicationConfigurations []GetDatabasesDatabaseReplicationConfiguration `pulumi:"replicationConfigurations"`
	RetentionTime             int                                            `pulumi:"retentionTime"`
}

type GetDatabasesDatabaseArgs added in v0.5.0

type GetDatabasesDatabaseArgs struct {
	Comment                   pulumi.StringInput                                     `pulumi:"comment"`
	CreatedOn                 pulumi.StringInput                                     `pulumi:"createdOn"`
	IsCurrent                 pulumi.BoolInput                                       `pulumi:"isCurrent"`
	IsDefault                 pulumi.BoolInput                                       `pulumi:"isDefault"`
	Name                      pulumi.StringInput                                     `pulumi:"name"`
	Options                   pulumi.StringInput                                     `pulumi:"options"`
	Origin                    pulumi.StringInput                                     `pulumi:"origin"`
	Owner                     pulumi.StringInput                                     `pulumi:"owner"`
	ReplicationConfigurations GetDatabasesDatabaseReplicationConfigurationArrayInput `pulumi:"replicationConfigurations"`
	RetentionTime             pulumi.IntInput                                        `pulumi:"retentionTime"`
}

func (GetDatabasesDatabaseArgs) ElementType added in v0.5.0

func (GetDatabasesDatabaseArgs) ElementType() reflect.Type

func (GetDatabasesDatabaseArgs) ToGetDatabasesDatabaseOutput added in v0.5.0

func (i GetDatabasesDatabaseArgs) ToGetDatabasesDatabaseOutput() GetDatabasesDatabaseOutput

func (GetDatabasesDatabaseArgs) ToGetDatabasesDatabaseOutputWithContext added in v0.5.0

func (i GetDatabasesDatabaseArgs) ToGetDatabasesDatabaseOutputWithContext(ctx context.Context) GetDatabasesDatabaseOutput

type GetDatabasesDatabaseArray added in v0.5.0

type GetDatabasesDatabaseArray []GetDatabasesDatabaseInput

func (GetDatabasesDatabaseArray) ElementType added in v0.5.0

func (GetDatabasesDatabaseArray) ElementType() reflect.Type

func (GetDatabasesDatabaseArray) ToGetDatabasesDatabaseArrayOutput added in v0.5.0

func (i GetDatabasesDatabaseArray) ToGetDatabasesDatabaseArrayOutput() GetDatabasesDatabaseArrayOutput

func (GetDatabasesDatabaseArray) ToGetDatabasesDatabaseArrayOutputWithContext added in v0.5.0

func (i GetDatabasesDatabaseArray) ToGetDatabasesDatabaseArrayOutputWithContext(ctx context.Context) GetDatabasesDatabaseArrayOutput

type GetDatabasesDatabaseArrayInput added in v0.5.0

type GetDatabasesDatabaseArrayInput interface {
	pulumi.Input

	ToGetDatabasesDatabaseArrayOutput() GetDatabasesDatabaseArrayOutput
	ToGetDatabasesDatabaseArrayOutputWithContext(context.Context) GetDatabasesDatabaseArrayOutput
}

GetDatabasesDatabaseArrayInput is an input type that accepts GetDatabasesDatabaseArray and GetDatabasesDatabaseArrayOutput values. You can construct a concrete instance of `GetDatabasesDatabaseArrayInput` via:

GetDatabasesDatabaseArray{ GetDatabasesDatabaseArgs{...} }

type GetDatabasesDatabaseArrayOutput added in v0.5.0

type GetDatabasesDatabaseArrayOutput struct{ *pulumi.OutputState }

func (GetDatabasesDatabaseArrayOutput) ElementType added in v0.5.0

func (GetDatabasesDatabaseArrayOutput) Index added in v0.5.0

func (GetDatabasesDatabaseArrayOutput) ToGetDatabasesDatabaseArrayOutput added in v0.5.0

func (o GetDatabasesDatabaseArrayOutput) ToGetDatabasesDatabaseArrayOutput() GetDatabasesDatabaseArrayOutput

func (GetDatabasesDatabaseArrayOutput) ToGetDatabasesDatabaseArrayOutputWithContext added in v0.5.0

func (o GetDatabasesDatabaseArrayOutput) ToGetDatabasesDatabaseArrayOutputWithContext(ctx context.Context) GetDatabasesDatabaseArrayOutput

type GetDatabasesDatabaseInput added in v0.5.0

type GetDatabasesDatabaseInput interface {
	pulumi.Input

	ToGetDatabasesDatabaseOutput() GetDatabasesDatabaseOutput
	ToGetDatabasesDatabaseOutputWithContext(context.Context) GetDatabasesDatabaseOutput
}

GetDatabasesDatabaseInput is an input type that accepts GetDatabasesDatabaseArgs and GetDatabasesDatabaseOutput values. You can construct a concrete instance of `GetDatabasesDatabaseInput` via:

GetDatabasesDatabaseArgs{...}

type GetDatabasesDatabaseOutput added in v0.5.0

type GetDatabasesDatabaseOutput struct{ *pulumi.OutputState }

func (GetDatabasesDatabaseOutput) Comment added in v0.5.0

func (GetDatabasesDatabaseOutput) CreatedOn added in v0.5.0

func (GetDatabasesDatabaseOutput) ElementType added in v0.5.0

func (GetDatabasesDatabaseOutput) ElementType() reflect.Type

func (GetDatabasesDatabaseOutput) IsCurrent added in v0.5.0

func (GetDatabasesDatabaseOutput) IsDefault added in v0.5.0

func (GetDatabasesDatabaseOutput) Name added in v0.5.0

func (GetDatabasesDatabaseOutput) Options added in v0.5.0

func (GetDatabasesDatabaseOutput) Origin added in v0.5.0

func (GetDatabasesDatabaseOutput) Owner added in v0.5.0

func (GetDatabasesDatabaseOutput) ReplicationConfigurations added in v0.9.0

func (GetDatabasesDatabaseOutput) RetentionTime added in v0.5.0

func (o GetDatabasesDatabaseOutput) RetentionTime() pulumi.IntOutput

func (GetDatabasesDatabaseOutput) ToGetDatabasesDatabaseOutput added in v0.5.0

func (o GetDatabasesDatabaseOutput) ToGetDatabasesDatabaseOutput() GetDatabasesDatabaseOutput

func (GetDatabasesDatabaseOutput) ToGetDatabasesDatabaseOutputWithContext added in v0.5.0

func (o GetDatabasesDatabaseOutput) ToGetDatabasesDatabaseOutputWithContext(ctx context.Context) GetDatabasesDatabaseOutput

type GetDatabasesDatabaseReplicationConfiguration added in v0.9.0

type GetDatabasesDatabaseReplicationConfiguration struct {
	Accounts           []string `pulumi:"accounts"`
	IgnoreEditionCheck bool     `pulumi:"ignoreEditionCheck"`
}

type GetDatabasesDatabaseReplicationConfigurationArgs added in v0.9.0

type GetDatabasesDatabaseReplicationConfigurationArgs struct {
	Accounts           pulumi.StringArrayInput `pulumi:"accounts"`
	IgnoreEditionCheck pulumi.BoolInput        `pulumi:"ignoreEditionCheck"`
}

func (GetDatabasesDatabaseReplicationConfigurationArgs) ElementType added in v0.9.0

func (GetDatabasesDatabaseReplicationConfigurationArgs) ToGetDatabasesDatabaseReplicationConfigurationOutput added in v0.9.0

func (i GetDatabasesDatabaseReplicationConfigurationArgs) ToGetDatabasesDatabaseReplicationConfigurationOutput() GetDatabasesDatabaseReplicationConfigurationOutput

func (GetDatabasesDatabaseReplicationConfigurationArgs) ToGetDatabasesDatabaseReplicationConfigurationOutputWithContext added in v0.9.0

func (i GetDatabasesDatabaseReplicationConfigurationArgs) ToGetDatabasesDatabaseReplicationConfigurationOutputWithContext(ctx context.Context) GetDatabasesDatabaseReplicationConfigurationOutput

type GetDatabasesDatabaseReplicationConfigurationArray added in v0.9.0

type GetDatabasesDatabaseReplicationConfigurationArray []GetDatabasesDatabaseReplicationConfigurationInput

func (GetDatabasesDatabaseReplicationConfigurationArray) ElementType added in v0.9.0

func (GetDatabasesDatabaseReplicationConfigurationArray) ToGetDatabasesDatabaseReplicationConfigurationArrayOutput added in v0.9.0

func (i GetDatabasesDatabaseReplicationConfigurationArray) ToGetDatabasesDatabaseReplicationConfigurationArrayOutput() GetDatabasesDatabaseReplicationConfigurationArrayOutput

func (GetDatabasesDatabaseReplicationConfigurationArray) ToGetDatabasesDatabaseReplicationConfigurationArrayOutputWithContext added in v0.9.0

func (i GetDatabasesDatabaseReplicationConfigurationArray) ToGetDatabasesDatabaseReplicationConfigurationArrayOutputWithContext(ctx context.Context) GetDatabasesDatabaseReplicationConfigurationArrayOutput

type GetDatabasesDatabaseReplicationConfigurationArrayInput added in v0.9.0

type GetDatabasesDatabaseReplicationConfigurationArrayInput interface {
	pulumi.Input

	ToGetDatabasesDatabaseReplicationConfigurationArrayOutput() GetDatabasesDatabaseReplicationConfigurationArrayOutput
	ToGetDatabasesDatabaseReplicationConfigurationArrayOutputWithContext(context.Context) GetDatabasesDatabaseReplicationConfigurationArrayOutput
}

GetDatabasesDatabaseReplicationConfigurationArrayInput is an input type that accepts GetDatabasesDatabaseReplicationConfigurationArray and GetDatabasesDatabaseReplicationConfigurationArrayOutput values. You can construct a concrete instance of `GetDatabasesDatabaseReplicationConfigurationArrayInput` via:

GetDatabasesDatabaseReplicationConfigurationArray{ GetDatabasesDatabaseReplicationConfigurationArgs{...} }

type GetDatabasesDatabaseReplicationConfigurationArrayOutput added in v0.9.0

type GetDatabasesDatabaseReplicationConfigurationArrayOutput struct{ *pulumi.OutputState }

func (GetDatabasesDatabaseReplicationConfigurationArrayOutput) ElementType added in v0.9.0

func (GetDatabasesDatabaseReplicationConfigurationArrayOutput) Index added in v0.9.0

func (GetDatabasesDatabaseReplicationConfigurationArrayOutput) ToGetDatabasesDatabaseReplicationConfigurationArrayOutput added in v0.9.0

func (GetDatabasesDatabaseReplicationConfigurationArrayOutput) ToGetDatabasesDatabaseReplicationConfigurationArrayOutputWithContext added in v0.9.0

func (o GetDatabasesDatabaseReplicationConfigurationArrayOutput) ToGetDatabasesDatabaseReplicationConfigurationArrayOutputWithContext(ctx context.Context) GetDatabasesDatabaseReplicationConfigurationArrayOutput

type GetDatabasesDatabaseReplicationConfigurationInput added in v0.9.0

type GetDatabasesDatabaseReplicationConfigurationInput interface {
	pulumi.Input

	ToGetDatabasesDatabaseReplicationConfigurationOutput() GetDatabasesDatabaseReplicationConfigurationOutput
	ToGetDatabasesDatabaseReplicationConfigurationOutputWithContext(context.Context) GetDatabasesDatabaseReplicationConfigurationOutput
}

GetDatabasesDatabaseReplicationConfigurationInput is an input type that accepts GetDatabasesDatabaseReplicationConfigurationArgs and GetDatabasesDatabaseReplicationConfigurationOutput values. You can construct a concrete instance of `GetDatabasesDatabaseReplicationConfigurationInput` via:

GetDatabasesDatabaseReplicationConfigurationArgs{...}

type GetDatabasesDatabaseReplicationConfigurationOutput added in v0.9.0

type GetDatabasesDatabaseReplicationConfigurationOutput struct{ *pulumi.OutputState }

func (GetDatabasesDatabaseReplicationConfigurationOutput) Accounts added in v0.9.0

func (GetDatabasesDatabaseReplicationConfigurationOutput) ElementType added in v0.9.0

func (GetDatabasesDatabaseReplicationConfigurationOutput) IgnoreEditionCheck added in v0.9.0

func (GetDatabasesDatabaseReplicationConfigurationOutput) ToGetDatabasesDatabaseReplicationConfigurationOutput added in v0.9.0

func (o GetDatabasesDatabaseReplicationConfigurationOutput) ToGetDatabasesDatabaseReplicationConfigurationOutput() GetDatabasesDatabaseReplicationConfigurationOutput

func (GetDatabasesDatabaseReplicationConfigurationOutput) ToGetDatabasesDatabaseReplicationConfigurationOutputWithContext added in v0.9.0

func (o GetDatabasesDatabaseReplicationConfigurationOutput) ToGetDatabasesDatabaseReplicationConfigurationOutputWithContext(ctx context.Context) GetDatabasesDatabaseReplicationConfigurationOutput

type GetDatabasesOutputArgs added in v0.27.0

type GetDatabasesOutputArgs struct {
	// Optionally includes dropped databases that have not yet been purged The output also includes an additional `droppedOn` column
	History pulumi.BoolPtrInput `pulumi:"history"`
	// Optionally filters the databases by a pattern
	Pattern pulumi.StringPtrInput `pulumi:"pattern"`
	// Optionally filters the databases by a pattern
	StartsWith pulumi.StringPtrInput `pulumi:"startsWith"`
	// Optionally returns only the columns `createdOn` and `name` in the results
	Terse pulumi.BoolPtrInput `pulumi:"terse"`
}

A collection of arguments for invoking getDatabases.

func (GetDatabasesOutputArgs) ElementType added in v0.27.0

func (GetDatabasesOutputArgs) ElementType() reflect.Type

type GetDatabasesResult added in v0.5.0

type GetDatabasesResult struct {
	// Snowflake databases
	Databases []GetDatabasesDatabase `pulumi:"databases"`
	// Optionally includes dropped databases that have not yet been purged The output also includes an additional `droppedOn` column
	History *bool `pulumi:"history"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// Optionally filters the databases by a pattern
	Pattern *string `pulumi:"pattern"`
	// Optionally filters the databases by a pattern
	StartsWith *string `pulumi:"startsWith"`
	// Optionally returns only the columns `createdOn` and `name` in the results
	Terse *bool `pulumi:"terse"`
}

A collection of values returned by getDatabases.

func GetDatabases added in v0.5.0

func GetDatabases(ctx *pulumi.Context, args *GetDatabasesArgs, opts ...pulumi.InvokeOption) (*GetDatabasesResult, error)

## Example Usage

```go 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.GetDatabases(ctx, nil, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetDatabasesResultOutput added in v0.27.0

type GetDatabasesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getDatabases.

func GetDatabasesOutput added in v0.27.0

func GetDatabasesOutput(ctx *pulumi.Context, args GetDatabasesOutputArgs, opts ...pulumi.InvokeOption) GetDatabasesResultOutput

func (GetDatabasesResultOutput) Databases added in v0.27.0

Snowflake databases

func (GetDatabasesResultOutput) ElementType added in v0.27.0

func (GetDatabasesResultOutput) ElementType() reflect.Type

func (GetDatabasesResultOutput) History added in v0.27.0

Optionally includes dropped databases that have not yet been purged The output also includes an additional `droppedOn` column

func (GetDatabasesResultOutput) Id added in v0.27.0

The provider-assigned unique ID for this managed resource.

func (GetDatabasesResultOutput) Pattern added in v0.27.0

Optionally filters the databases by a pattern

func (GetDatabasesResultOutput) StartsWith added in v0.27.0

Optionally filters the databases by a pattern

func (GetDatabasesResultOutput) Terse added in v0.27.0

Optionally returns only the columns `createdOn` and `name` in the results

func (GetDatabasesResultOutput) ToGetDatabasesResultOutput added in v0.27.0

func (o GetDatabasesResultOutput) ToGetDatabasesResultOutput() GetDatabasesResultOutput

func (GetDatabasesResultOutput) ToGetDatabasesResultOutputWithContext added in v0.27.0

func (o GetDatabasesResultOutput) ToGetDatabasesResultOutputWithContext(ctx context.Context) GetDatabasesResultOutput

type GetExternalFunctionsArgs added in v0.1.3

type GetExternalFunctionsArgs struct {
	// The database from which to return the schemas from.
	Database string `pulumi:"database"`
	// The schema from which to return the external functions from.
	Schema string `pulumi:"schema"`
}

A collection of arguments for invoking getExternalFunctions.

type GetExternalFunctionsExternalFunction added in v0.1.3

type GetExternalFunctionsExternalFunction struct {
	Comment string `pulumi:"comment"`
	// The database from which to return the schemas from.
	Database string `pulumi:"database"`
	Language string `pulumi:"language"`
	Name     string `pulumi:"name"`
	// The schema from which to return the external functions from.
	Schema string `pulumi:"schema"`
}

type GetExternalFunctionsExternalFunctionArgs added in v0.1.3

type GetExternalFunctionsExternalFunctionArgs struct {
	Comment pulumi.StringInput `pulumi:"comment"`
	// The database from which to return the schemas from.
	Database pulumi.StringInput `pulumi:"database"`
	Language pulumi.StringInput `pulumi:"language"`
	Name     pulumi.StringInput `pulumi:"name"`
	// The schema from which to return the external functions from.
	Schema pulumi.StringInput `pulumi:"schema"`
}

func (GetExternalFunctionsExternalFunctionArgs) ElementType added in v0.1.3

func (GetExternalFunctionsExternalFunctionArgs) ToGetExternalFunctionsExternalFunctionOutput added in v0.1.3

func (i GetExternalFunctionsExternalFunctionArgs) ToGetExternalFunctionsExternalFunctionOutput() GetExternalFunctionsExternalFunctionOutput

func (GetExternalFunctionsExternalFunctionArgs) ToGetExternalFunctionsExternalFunctionOutputWithContext added in v0.1.3

func (i GetExternalFunctionsExternalFunctionArgs) ToGetExternalFunctionsExternalFunctionOutputWithContext(ctx context.Context) GetExternalFunctionsExternalFunctionOutput

type GetExternalFunctionsExternalFunctionArray added in v0.1.3

type GetExternalFunctionsExternalFunctionArray []GetExternalFunctionsExternalFunctionInput

func (GetExternalFunctionsExternalFunctionArray) ElementType added in v0.1.3

func (GetExternalFunctionsExternalFunctionArray) ToGetExternalFunctionsExternalFunctionArrayOutput added in v0.1.3

func (i GetExternalFunctionsExternalFunctionArray) ToGetExternalFunctionsExternalFunctionArrayOutput() GetExternalFunctionsExternalFunctionArrayOutput

func (GetExternalFunctionsExternalFunctionArray) ToGetExternalFunctionsExternalFunctionArrayOutputWithContext added in v0.1.3

func (i GetExternalFunctionsExternalFunctionArray) ToGetExternalFunctionsExternalFunctionArrayOutputWithContext(ctx context.Context) GetExternalFunctionsExternalFunctionArrayOutput

type GetExternalFunctionsExternalFunctionArrayInput added in v0.1.3

type GetExternalFunctionsExternalFunctionArrayInput interface {
	pulumi.Input

	ToGetExternalFunctionsExternalFunctionArrayOutput() GetExternalFunctionsExternalFunctionArrayOutput
	ToGetExternalFunctionsExternalFunctionArrayOutputWithContext(context.Context) GetExternalFunctionsExternalFunctionArrayOutput
}

GetExternalFunctionsExternalFunctionArrayInput is an input type that accepts GetExternalFunctionsExternalFunctionArray and GetExternalFunctionsExternalFunctionArrayOutput values. You can construct a concrete instance of `GetExternalFunctionsExternalFunctionArrayInput` via:

GetExternalFunctionsExternalFunctionArray{ GetExternalFunctionsExternalFunctionArgs{...} }

type GetExternalFunctionsExternalFunctionArrayOutput added in v0.1.3

type GetExternalFunctionsExternalFunctionArrayOutput struct{ *pulumi.OutputState }

func (GetExternalFunctionsExternalFunctionArrayOutput) ElementType added in v0.1.3

func (GetExternalFunctionsExternalFunctionArrayOutput) Index added in v0.1.3

func (GetExternalFunctionsExternalFunctionArrayOutput) ToGetExternalFunctionsExternalFunctionArrayOutput added in v0.1.3

func (o GetExternalFunctionsExternalFunctionArrayOutput) ToGetExternalFunctionsExternalFunctionArrayOutput() GetExternalFunctionsExternalFunctionArrayOutput

func (GetExternalFunctionsExternalFunctionArrayOutput) ToGetExternalFunctionsExternalFunctionArrayOutputWithContext added in v0.1.3

func (o GetExternalFunctionsExternalFunctionArrayOutput) ToGetExternalFunctionsExternalFunctionArrayOutputWithContext(ctx context.Context) GetExternalFunctionsExternalFunctionArrayOutput

type GetExternalFunctionsExternalFunctionInput added in v0.1.3

type GetExternalFunctionsExternalFunctionInput interface {
	pulumi.Input

	ToGetExternalFunctionsExternalFunctionOutput() GetExternalFunctionsExternalFunctionOutput
	ToGetExternalFunctionsExternalFunctionOutputWithContext(context.Context) GetExternalFunctionsExternalFunctionOutput
}

GetExternalFunctionsExternalFunctionInput is an input type that accepts GetExternalFunctionsExternalFunctionArgs and GetExternalFunctionsExternalFunctionOutput values. You can construct a concrete instance of `GetExternalFunctionsExternalFunctionInput` via:

GetExternalFunctionsExternalFunctionArgs{...}

type GetExternalFunctionsExternalFunctionOutput added in v0.1.3

type GetExternalFunctionsExternalFunctionOutput struct{ *pulumi.OutputState }

func (GetExternalFunctionsExternalFunctionOutput) Comment added in v0.1.3

func (GetExternalFunctionsExternalFunctionOutput) Database added in v0.1.3

The database from which to return the schemas from.

func (GetExternalFunctionsExternalFunctionOutput) ElementType added in v0.1.3

func (GetExternalFunctionsExternalFunctionOutput) Language added in v0.1.3

func (GetExternalFunctionsExternalFunctionOutput) Name added in v0.1.3

func (GetExternalFunctionsExternalFunctionOutput) Schema added in v0.1.3

The schema from which to return the external functions from.

func (GetExternalFunctionsExternalFunctionOutput) ToGetExternalFunctionsExternalFunctionOutput added in v0.1.3

func (o GetExternalFunctionsExternalFunctionOutput) ToGetExternalFunctionsExternalFunctionOutput() GetExternalFunctionsExternalFunctionOutput

func (GetExternalFunctionsExternalFunctionOutput) ToGetExternalFunctionsExternalFunctionOutputWithContext added in v0.1.3

func (o GetExternalFunctionsExternalFunctionOutput) ToGetExternalFunctionsExternalFunctionOutputWithContext(ctx context.Context) GetExternalFunctionsExternalFunctionOutput

type GetExternalFunctionsOutputArgs added in v0.2.0

type GetExternalFunctionsOutputArgs struct {
	// The database from which to return the schemas from.
	Database pulumi.StringInput `pulumi:"database"`
	// The schema from which to return the external functions from.
	Schema pulumi.StringInput `pulumi:"schema"`
}

A collection of arguments for invoking getExternalFunctions.

func (GetExternalFunctionsOutputArgs) ElementType added in v0.2.0

type GetExternalFunctionsResult added in v0.1.3

type GetExternalFunctionsResult struct {
	// The database from which to return the schemas from.
	Database string `pulumi:"database"`
	// The external functions in the schema
	ExternalFunctions []GetExternalFunctionsExternalFunction `pulumi:"externalFunctions"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The schema from which to return the external functions from.
	Schema string `pulumi:"schema"`
}

A collection of values returned by getExternalFunctions.

func GetExternalFunctions added in v0.1.3

func GetExternalFunctions(ctx *pulumi.Context, args *GetExternalFunctionsArgs, opts ...pulumi.InvokeOption) (*GetExternalFunctionsResult, error)

## Example Usage

```go 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.GetExternalFunctions(ctx, &snowflake.GetExternalFunctionsArgs{
			Database: "MYDB",
			Schema:   "MYSCHEMA",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetExternalFunctionsResultOutput added in v0.2.0

type GetExternalFunctionsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getExternalFunctions.

func GetExternalFunctionsOutput added in v0.2.0

func (GetExternalFunctionsResultOutput) Database added in v0.2.0

The database from which to return the schemas from.

func (GetExternalFunctionsResultOutput) ElementType added in v0.2.0

func (GetExternalFunctionsResultOutput) ExternalFunctions added in v0.2.0

The external functions in the schema

func (GetExternalFunctionsResultOutput) Id added in v0.2.0

The provider-assigned unique ID for this managed resource.

func (GetExternalFunctionsResultOutput) Schema added in v0.2.0

The schema from which to return the external functions from.

func (GetExternalFunctionsResultOutput) ToGetExternalFunctionsResultOutput added in v0.2.0

func (o GetExternalFunctionsResultOutput) ToGetExternalFunctionsResultOutput() GetExternalFunctionsResultOutput

func (GetExternalFunctionsResultOutput) ToGetExternalFunctionsResultOutputWithContext added in v0.2.0

func (o GetExternalFunctionsResultOutput) ToGetExternalFunctionsResultOutputWithContext(ctx context.Context) GetExternalFunctionsResultOutput

type GetExternalTablesArgs added in v0.1.3

type GetExternalTablesArgs struct {
	// The database from which to return the schemas from.
	Database string `pulumi:"database"`
	// The schema from which to return the external tables from.
	Schema string `pulumi:"schema"`
}

A collection of arguments for invoking getExternalTables.

type GetExternalTablesExternalTable added in v0.1.3

type GetExternalTablesExternalTable struct {
	Comment string `pulumi:"comment"`
	// The database from which to return the schemas from.
	Database string `pulumi:"database"`
	Name     string `pulumi:"name"`
	// The schema from which to return the external tables from.
	Schema string `pulumi:"schema"`
}

type GetExternalTablesExternalTableArgs added in v0.1.3

type GetExternalTablesExternalTableArgs struct {
	Comment pulumi.StringInput `pulumi:"comment"`
	// The database from which to return the schemas from.
	Database pulumi.StringInput `pulumi:"database"`
	Name     pulumi.StringInput `pulumi:"name"`
	// The schema from which to return the external tables from.
	Schema pulumi.StringInput `pulumi:"schema"`
}

func (GetExternalTablesExternalTableArgs) ElementType added in v0.1.3

func (GetExternalTablesExternalTableArgs) ToGetExternalTablesExternalTableOutput added in v0.1.3

func (i GetExternalTablesExternalTableArgs) ToGetExternalTablesExternalTableOutput() GetExternalTablesExternalTableOutput

func (GetExternalTablesExternalTableArgs) ToGetExternalTablesExternalTableOutputWithContext added in v0.1.3

func (i GetExternalTablesExternalTableArgs) ToGetExternalTablesExternalTableOutputWithContext(ctx context.Context) GetExternalTablesExternalTableOutput

type GetExternalTablesExternalTableArray added in v0.1.3

type GetExternalTablesExternalTableArray []GetExternalTablesExternalTableInput

func (GetExternalTablesExternalTableArray) ElementType added in v0.1.3

func (GetExternalTablesExternalTableArray) ToGetExternalTablesExternalTableArrayOutput added in v0.1.3

func (i GetExternalTablesExternalTableArray) ToGetExternalTablesExternalTableArrayOutput() GetExternalTablesExternalTableArrayOutput

func (GetExternalTablesExternalTableArray) ToGetExternalTablesExternalTableArrayOutputWithContext added in v0.1.3

func (i GetExternalTablesExternalTableArray) ToGetExternalTablesExternalTableArrayOutputWithContext(ctx context.Context) GetExternalTablesExternalTableArrayOutput

type GetExternalTablesExternalTableArrayInput added in v0.1.3

type GetExternalTablesExternalTableArrayInput interface {
	pulumi.Input

	ToGetExternalTablesExternalTableArrayOutput() GetExternalTablesExternalTableArrayOutput
	ToGetExternalTablesExternalTableArrayOutputWithContext(context.Context) GetExternalTablesExternalTableArrayOutput
}

GetExternalTablesExternalTableArrayInput is an input type that accepts GetExternalTablesExternalTableArray and GetExternalTablesExternalTableArrayOutput values. You can construct a concrete instance of `GetExternalTablesExternalTableArrayInput` via:

GetExternalTablesExternalTableArray{ GetExternalTablesExternalTableArgs{...} }

type GetExternalTablesExternalTableArrayOutput added in v0.1.3

type GetExternalTablesExternalTableArrayOutput struct{ *pulumi.OutputState }

func (GetExternalTablesExternalTableArrayOutput) ElementType added in v0.1.3

func (GetExternalTablesExternalTableArrayOutput) Index added in v0.1.3

func (GetExternalTablesExternalTableArrayOutput) ToGetExternalTablesExternalTableArrayOutput added in v0.1.3

func (o GetExternalTablesExternalTableArrayOutput) ToGetExternalTablesExternalTableArrayOutput() GetExternalTablesExternalTableArrayOutput

func (GetExternalTablesExternalTableArrayOutput) ToGetExternalTablesExternalTableArrayOutputWithContext added in v0.1.3

func (o GetExternalTablesExternalTableArrayOutput) ToGetExternalTablesExternalTableArrayOutputWithContext(ctx context.Context) GetExternalTablesExternalTableArrayOutput

type GetExternalTablesExternalTableInput added in v0.1.3

type GetExternalTablesExternalTableInput interface {
	pulumi.Input

	ToGetExternalTablesExternalTableOutput() GetExternalTablesExternalTableOutput
	ToGetExternalTablesExternalTableOutputWithContext(context.Context) GetExternalTablesExternalTableOutput
}

GetExternalTablesExternalTableInput is an input type that accepts GetExternalTablesExternalTableArgs and GetExternalTablesExternalTableOutput values. You can construct a concrete instance of `GetExternalTablesExternalTableInput` via:

GetExternalTablesExternalTableArgs{...}

type GetExternalTablesExternalTableOutput added in v0.1.3

type GetExternalTablesExternalTableOutput struct{ *pulumi.OutputState }

func (GetExternalTablesExternalTableOutput) Comment added in v0.1.3

func (GetExternalTablesExternalTableOutput) Database added in v0.1.3

The database from which to return the schemas from.

func (GetExternalTablesExternalTableOutput) ElementType added in v0.1.3

func (GetExternalTablesExternalTableOutput) Name added in v0.1.3

func (GetExternalTablesExternalTableOutput) Schema added in v0.1.3

The schema from which to return the external tables from.

func (GetExternalTablesExternalTableOutput) ToGetExternalTablesExternalTableOutput added in v0.1.3

func (o GetExternalTablesExternalTableOutput) ToGetExternalTablesExternalTableOutput() GetExternalTablesExternalTableOutput

func (GetExternalTablesExternalTableOutput) ToGetExternalTablesExternalTableOutputWithContext added in v0.1.3

func (o GetExternalTablesExternalTableOutput) ToGetExternalTablesExternalTableOutputWithContext(ctx context.Context) GetExternalTablesExternalTableOutput

type GetExternalTablesOutputArgs added in v0.2.0

type GetExternalTablesOutputArgs struct {
	// The database from which to return the schemas from.
	Database pulumi.StringInput `pulumi:"database"`
	// The schema from which to return the external tables from.
	Schema pulumi.StringInput `pulumi:"schema"`
}

A collection of arguments for invoking getExternalTables.

func (GetExternalTablesOutputArgs) ElementType added in v0.2.0

type GetExternalTablesResult added in v0.1.3

type GetExternalTablesResult struct {
	// The database from which to return the schemas from.
	Database string `pulumi:"database"`
	// The external tables in the schema
	ExternalTables []GetExternalTablesExternalTable `pulumi:"externalTables"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The schema from which to return the external tables from.
	Schema string `pulumi:"schema"`
}

A collection of values returned by getExternalTables.

func GetExternalTables added in v0.1.3

func GetExternalTables(ctx *pulumi.Context, args *GetExternalTablesArgs, opts ...pulumi.InvokeOption) (*GetExternalTablesResult, error)

## Example Usage

```go 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.GetExternalTables(ctx, &snowflake.GetExternalTablesArgs{
			Database: "MYDB",
			Schema:   "MYSCHEMA",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetExternalTablesResultOutput added in v0.2.0

type GetExternalTablesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getExternalTables.

func GetExternalTablesOutput added in v0.2.0

func (GetExternalTablesResultOutput) Database added in v0.2.0

The database from which to return the schemas from.

func (GetExternalTablesResultOutput) ElementType added in v0.2.0

func (GetExternalTablesResultOutput) ExternalTables added in v0.2.0

The external tables in the schema

func (GetExternalTablesResultOutput) Id added in v0.2.0

The provider-assigned unique ID for this managed resource.

func (GetExternalTablesResultOutput) Schema added in v0.2.0

The schema from which to return the external tables from.

func (GetExternalTablesResultOutput) ToGetExternalTablesResultOutput added in v0.2.0

func (o GetExternalTablesResultOutput) ToGetExternalTablesResultOutput() GetExternalTablesResultOutput

func (GetExternalTablesResultOutput) ToGetExternalTablesResultOutputWithContext added in v0.2.0

func (o GetExternalTablesResultOutput) ToGetExternalTablesResultOutputWithContext(ctx context.Context) GetExternalTablesResultOutput

type GetFailoverGroupsArgs added in v0.26.0

type GetFailoverGroupsArgs struct {
	// Specifies the identifier for the account
	InAccount *string `pulumi:"inAccount"`
}

A collection of arguments for invoking getFailoverGroups.

type GetFailoverGroupsFailoverGroup added in v0.26.0

type GetFailoverGroupsFailoverGroup struct {
	AccountLocator          string        `pulumi:"accountLocator"`
	AccountName             string        `pulumi:"accountName"`
	AllowedAccounts         []interface{} `pulumi:"allowedAccounts"`
	AllowedIntegrationTypes []interface{} `pulumi:"allowedIntegrationTypes"`
	Comment                 string        `pulumi:"comment"`
	CreatedOn               string        `pulumi:"createdOn"`
	IsPrimary               bool          `pulumi:"isPrimary"`
	NextScheduledRefresh    string        `pulumi:"nextScheduledRefresh"`
	ObjectTypes             []interface{} `pulumi:"objectTypes"`
	OrganizationName        string        `pulumi:"organizationName"`
	Owner                   string        `pulumi:"owner"`
	Primary                 string        `pulumi:"primary"`
	RegionGroup             string        `pulumi:"regionGroup"`
	ReplicationSchedule     string        `pulumi:"replicationSchedule"`
	SecondaryState          string        `pulumi:"secondaryState"`
	SnowflakeRegion         string        `pulumi:"snowflakeRegion"`
	Type                    string        `pulumi:"type"`
}

type GetFailoverGroupsFailoverGroupArgs added in v0.26.0

type GetFailoverGroupsFailoverGroupArgs struct {
	AccountLocator          pulumi.StringInput `pulumi:"accountLocator"`
	AccountName             pulumi.StringInput `pulumi:"accountName"`
	AllowedAccounts         pulumi.ArrayInput  `pulumi:"allowedAccounts"`
	AllowedIntegrationTypes pulumi.ArrayInput  `pulumi:"allowedIntegrationTypes"`
	Comment                 pulumi.StringInput `pulumi:"comment"`
	CreatedOn               pulumi.StringInput `pulumi:"createdOn"`
	IsPrimary               pulumi.BoolInput   `pulumi:"isPrimary"`
	NextScheduledRefresh    pulumi.StringInput `pulumi:"nextScheduledRefresh"`
	ObjectTypes             pulumi.ArrayInput  `pulumi:"objectTypes"`
	OrganizationName        pulumi.StringInput `pulumi:"organizationName"`
	Owner                   pulumi.StringInput `pulumi:"owner"`
	Primary                 pulumi.StringInput `pulumi:"primary"`
	RegionGroup             pulumi.StringInput `pulumi:"regionGroup"`
	ReplicationSchedule     pulumi.StringInput `pulumi:"replicationSchedule"`
	SecondaryState          pulumi.StringInput `pulumi:"secondaryState"`
	SnowflakeRegion         pulumi.StringInput `pulumi:"snowflakeRegion"`
	Type                    pulumi.StringInput `pulumi:"type"`
}

func (GetFailoverGroupsFailoverGroupArgs) ElementType added in v0.26.0

func (GetFailoverGroupsFailoverGroupArgs) ToGetFailoverGroupsFailoverGroupOutput added in v0.26.0

func (i GetFailoverGroupsFailoverGroupArgs) ToGetFailoverGroupsFailoverGroupOutput() GetFailoverGroupsFailoverGroupOutput

func (GetFailoverGroupsFailoverGroupArgs) ToGetFailoverGroupsFailoverGroupOutputWithContext added in v0.26.0

func (i GetFailoverGroupsFailoverGroupArgs) ToGetFailoverGroupsFailoverGroupOutputWithContext(ctx context.Context) GetFailoverGroupsFailoverGroupOutput

type GetFailoverGroupsFailoverGroupArray added in v0.26.0

type GetFailoverGroupsFailoverGroupArray []GetFailoverGroupsFailoverGroupInput

func (GetFailoverGroupsFailoverGroupArray) ElementType added in v0.26.0

func (GetFailoverGroupsFailoverGroupArray) ToGetFailoverGroupsFailoverGroupArrayOutput added in v0.26.0

func (i GetFailoverGroupsFailoverGroupArray) ToGetFailoverGroupsFailoverGroupArrayOutput() GetFailoverGroupsFailoverGroupArrayOutput

func (GetFailoverGroupsFailoverGroupArray) ToGetFailoverGroupsFailoverGroupArrayOutputWithContext added in v0.26.0

func (i GetFailoverGroupsFailoverGroupArray) ToGetFailoverGroupsFailoverGroupArrayOutputWithContext(ctx context.Context) GetFailoverGroupsFailoverGroupArrayOutput

type GetFailoverGroupsFailoverGroupArrayInput added in v0.26.0

type GetFailoverGroupsFailoverGroupArrayInput interface {
	pulumi.Input

	ToGetFailoverGroupsFailoverGroupArrayOutput() GetFailoverGroupsFailoverGroupArrayOutput
	ToGetFailoverGroupsFailoverGroupArrayOutputWithContext(context.Context) GetFailoverGroupsFailoverGroupArrayOutput
}

GetFailoverGroupsFailoverGroupArrayInput is an input type that accepts GetFailoverGroupsFailoverGroupArray and GetFailoverGroupsFailoverGroupArrayOutput values. You can construct a concrete instance of `GetFailoverGroupsFailoverGroupArrayInput` via:

GetFailoverGroupsFailoverGroupArray{ GetFailoverGroupsFailoverGroupArgs{...} }

type GetFailoverGroupsFailoverGroupArrayOutput added in v0.26.0

type GetFailoverGroupsFailoverGroupArrayOutput struct{ *pulumi.OutputState }

func (GetFailoverGroupsFailoverGroupArrayOutput) ElementType added in v0.26.0

func (GetFailoverGroupsFailoverGroupArrayOutput) Index added in v0.26.0

func (GetFailoverGroupsFailoverGroupArrayOutput) ToGetFailoverGroupsFailoverGroupArrayOutput added in v0.26.0

func (o GetFailoverGroupsFailoverGroupArrayOutput) ToGetFailoverGroupsFailoverGroupArrayOutput() GetFailoverGroupsFailoverGroupArrayOutput

func (GetFailoverGroupsFailoverGroupArrayOutput) ToGetFailoverGroupsFailoverGroupArrayOutputWithContext added in v0.26.0

func (o GetFailoverGroupsFailoverGroupArrayOutput) ToGetFailoverGroupsFailoverGroupArrayOutputWithContext(ctx context.Context) GetFailoverGroupsFailoverGroupArrayOutput

type GetFailoverGroupsFailoverGroupInput added in v0.26.0

type GetFailoverGroupsFailoverGroupInput interface {
	pulumi.Input

	ToGetFailoverGroupsFailoverGroupOutput() GetFailoverGroupsFailoverGroupOutput
	ToGetFailoverGroupsFailoverGroupOutputWithContext(context.Context) GetFailoverGroupsFailoverGroupOutput
}

GetFailoverGroupsFailoverGroupInput is an input type that accepts GetFailoverGroupsFailoverGroupArgs and GetFailoverGroupsFailoverGroupOutput values. You can construct a concrete instance of `GetFailoverGroupsFailoverGroupInput` via:

GetFailoverGroupsFailoverGroupArgs{...}

type GetFailoverGroupsFailoverGroupOutput added in v0.26.0

type GetFailoverGroupsFailoverGroupOutput struct{ *pulumi.OutputState }

func (GetFailoverGroupsFailoverGroupOutput) AccountLocator added in v0.26.0

func (GetFailoverGroupsFailoverGroupOutput) AccountName added in v0.26.0

func (GetFailoverGroupsFailoverGroupOutput) AllowedAccounts added in v0.26.0

func (GetFailoverGroupsFailoverGroupOutput) AllowedIntegrationTypes added in v0.26.0

func (o GetFailoverGroupsFailoverGroupOutput) AllowedIntegrationTypes() pulumi.ArrayOutput

func (GetFailoverGroupsFailoverGroupOutput) Comment added in v0.26.0

func (GetFailoverGroupsFailoverGroupOutput) CreatedOn added in v0.26.0

func (GetFailoverGroupsFailoverGroupOutput) ElementType added in v0.26.0

func (GetFailoverGroupsFailoverGroupOutput) IsPrimary added in v0.26.0

func (GetFailoverGroupsFailoverGroupOutput) NextScheduledRefresh added in v0.26.0

func (o GetFailoverGroupsFailoverGroupOutput) NextScheduledRefresh() pulumi.StringOutput

func (GetFailoverGroupsFailoverGroupOutput) ObjectTypes added in v0.26.0

func (GetFailoverGroupsFailoverGroupOutput) OrganizationName added in v0.26.0

func (GetFailoverGroupsFailoverGroupOutput) Owner added in v0.26.0

func (GetFailoverGroupsFailoverGroupOutput) Primary added in v0.26.0

func (GetFailoverGroupsFailoverGroupOutput) RegionGroup added in v0.26.0

func (GetFailoverGroupsFailoverGroupOutput) ReplicationSchedule added in v0.26.0

func (GetFailoverGroupsFailoverGroupOutput) SecondaryState added in v0.26.0

func (GetFailoverGroupsFailoverGroupOutput) SnowflakeRegion added in v0.26.0

func (GetFailoverGroupsFailoverGroupOutput) ToGetFailoverGroupsFailoverGroupOutput added in v0.26.0

func (o GetFailoverGroupsFailoverGroupOutput) ToGetFailoverGroupsFailoverGroupOutput() GetFailoverGroupsFailoverGroupOutput

func (GetFailoverGroupsFailoverGroupOutput) ToGetFailoverGroupsFailoverGroupOutputWithContext added in v0.26.0

func (o GetFailoverGroupsFailoverGroupOutput) ToGetFailoverGroupsFailoverGroupOutputWithContext(ctx context.Context) GetFailoverGroupsFailoverGroupOutput

func (GetFailoverGroupsFailoverGroupOutput) Type added in v0.26.0

type GetFailoverGroupsOutputArgs added in v0.26.0

type GetFailoverGroupsOutputArgs struct {
	// Specifies the identifier for the account
	InAccount pulumi.StringPtrInput `pulumi:"inAccount"`
}

A collection of arguments for invoking getFailoverGroups.

func (GetFailoverGroupsOutputArgs) ElementType added in v0.26.0

type GetFailoverGroupsResult added in v0.26.0

type GetFailoverGroupsResult struct {
	// List of all the failover groups available in the system.
	FailoverGroups []GetFailoverGroupsFailoverGroup `pulumi:"failoverGroups"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// Specifies the identifier for the account
	InAccount *string `pulumi:"inAccount"`
}

A collection of values returned by getFailoverGroups.

func GetFailoverGroups added in v0.26.0

func GetFailoverGroups(ctx *pulumi.Context, args *GetFailoverGroupsArgs, opts ...pulumi.InvokeOption) (*GetFailoverGroupsResult, error)

type GetFailoverGroupsResultOutput added in v0.26.0

type GetFailoverGroupsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getFailoverGroups.

func GetFailoverGroupsOutput added in v0.26.0

func (GetFailoverGroupsResultOutput) ElementType added in v0.26.0

func (GetFailoverGroupsResultOutput) FailoverGroups added in v0.26.0

List of all the failover groups available in the system.

func (GetFailoverGroupsResultOutput) Id added in v0.26.0

The provider-assigned unique ID for this managed resource.

func (GetFailoverGroupsResultOutput) InAccount added in v0.26.0

Specifies the identifier for the account

func (GetFailoverGroupsResultOutput) ToGetFailoverGroupsResultOutput added in v0.26.0

func (o GetFailoverGroupsResultOutput) ToGetFailoverGroupsResultOutput() GetFailoverGroupsResultOutput

func (GetFailoverGroupsResultOutput) ToGetFailoverGroupsResultOutputWithContext added in v0.26.0

func (o GetFailoverGroupsResultOutput) ToGetFailoverGroupsResultOutputWithContext(ctx context.Context) GetFailoverGroupsResultOutput

type GetFileFormatsArgs added in v0.1.3

type GetFileFormatsArgs struct {
	// The database from which to return the schemas from.
	Database string `pulumi:"database"`
	// The schema from which to return the file formats from.
	Schema string `pulumi:"schema"`
}

A collection of arguments for invoking getFileFormats.

type GetFileFormatsFileFormat added in v0.1.3

type GetFileFormatsFileFormat struct {
	Comment string `pulumi:"comment"`
	// The database from which to return the schemas from.
	Database   string `pulumi:"database"`
	FormatType string `pulumi:"formatType"`
	Name       string `pulumi:"name"`
	// The schema from which to return the file formats from.
	Schema string `pulumi:"schema"`
}

type GetFileFormatsFileFormatArgs added in v0.1.3

type GetFileFormatsFileFormatArgs struct {
	Comment pulumi.StringInput `pulumi:"comment"`
	// The database from which to return the schemas from.
	Database   pulumi.StringInput `pulumi:"database"`
	FormatType pulumi.StringInput `pulumi:"formatType"`
	Name       pulumi.StringInput `pulumi:"name"`
	// The schema from which to return the file formats from.
	Schema pulumi.StringInput `pulumi:"schema"`
}

func (GetFileFormatsFileFormatArgs) ElementType added in v0.1.3

func (GetFileFormatsFileFormatArgs) ToGetFileFormatsFileFormatOutput added in v0.1.3

func (i GetFileFormatsFileFormatArgs) ToGetFileFormatsFileFormatOutput() GetFileFormatsFileFormatOutput

func (GetFileFormatsFileFormatArgs) ToGetFileFormatsFileFormatOutputWithContext added in v0.1.3

func (i GetFileFormatsFileFormatArgs) ToGetFileFormatsFileFormatOutputWithContext(ctx context.Context) GetFileFormatsFileFormatOutput

type GetFileFormatsFileFormatArray added in v0.1.3

type GetFileFormatsFileFormatArray []GetFileFormatsFileFormatInput

func (GetFileFormatsFileFormatArray) ElementType added in v0.1.3

func (GetFileFormatsFileFormatArray) ToGetFileFormatsFileFormatArrayOutput added in v0.1.3

func (i GetFileFormatsFileFormatArray) ToGetFileFormatsFileFormatArrayOutput() GetFileFormatsFileFormatArrayOutput

func (GetFileFormatsFileFormatArray) ToGetFileFormatsFileFormatArrayOutputWithContext added in v0.1.3

func (i GetFileFormatsFileFormatArray) ToGetFileFormatsFileFormatArrayOutputWithContext(ctx context.Context) GetFileFormatsFileFormatArrayOutput

type GetFileFormatsFileFormatArrayInput added in v0.1.3

type GetFileFormatsFileFormatArrayInput interface {
	pulumi.Input

	ToGetFileFormatsFileFormatArrayOutput() GetFileFormatsFileFormatArrayOutput
	ToGetFileFormatsFileFormatArrayOutputWithContext(context.Context) GetFileFormatsFileFormatArrayOutput
}

GetFileFormatsFileFormatArrayInput is an input type that accepts GetFileFormatsFileFormatArray and GetFileFormatsFileFormatArrayOutput values. You can construct a concrete instance of `GetFileFormatsFileFormatArrayInput` via:

GetFileFormatsFileFormatArray{ GetFileFormatsFileFormatArgs{...} }

type GetFileFormatsFileFormatArrayOutput added in v0.1.3

type GetFileFormatsFileFormatArrayOutput struct{ *pulumi.OutputState }

func (GetFileFormatsFileFormatArrayOutput) ElementType added in v0.1.3

func (GetFileFormatsFileFormatArrayOutput) Index added in v0.1.3

func (GetFileFormatsFileFormatArrayOutput) ToGetFileFormatsFileFormatArrayOutput added in v0.1.3

func (o GetFileFormatsFileFormatArrayOutput) ToGetFileFormatsFileFormatArrayOutput() GetFileFormatsFileFormatArrayOutput

func (GetFileFormatsFileFormatArrayOutput) ToGetFileFormatsFileFormatArrayOutputWithContext added in v0.1.3

func (o GetFileFormatsFileFormatArrayOutput) ToGetFileFormatsFileFormatArrayOutputWithContext(ctx context.Context) GetFileFormatsFileFormatArrayOutput

type GetFileFormatsFileFormatInput added in v0.1.3

type GetFileFormatsFileFormatInput interface {
	pulumi.Input

	ToGetFileFormatsFileFormatOutput() GetFileFormatsFileFormatOutput
	ToGetFileFormatsFileFormatOutputWithContext(context.Context) GetFileFormatsFileFormatOutput
}

GetFileFormatsFileFormatInput is an input type that accepts GetFileFormatsFileFormatArgs and GetFileFormatsFileFormatOutput values. You can construct a concrete instance of `GetFileFormatsFileFormatInput` via:

GetFileFormatsFileFormatArgs{...}

type GetFileFormatsFileFormatOutput added in v0.1.3

type GetFileFormatsFileFormatOutput struct{ *pulumi.OutputState }

func (GetFileFormatsFileFormatOutput) Comment added in v0.1.3

func (GetFileFormatsFileFormatOutput) Database added in v0.1.3

The database from which to return the schemas from.

func (GetFileFormatsFileFormatOutput) ElementType added in v0.1.3

func (GetFileFormatsFileFormatOutput) FormatType added in v0.1.3

func (GetFileFormatsFileFormatOutput) Name added in v0.1.3

func (GetFileFormatsFileFormatOutput) Schema added in v0.1.3

The schema from which to return the file formats from.

func (GetFileFormatsFileFormatOutput) ToGetFileFormatsFileFormatOutput added in v0.1.3

func (o GetFileFormatsFileFormatOutput) ToGetFileFormatsFileFormatOutput() GetFileFormatsFileFormatOutput

func (GetFileFormatsFileFormatOutput) ToGetFileFormatsFileFormatOutputWithContext added in v0.1.3

func (o GetFileFormatsFileFormatOutput) ToGetFileFormatsFileFormatOutputWithContext(ctx context.Context) GetFileFormatsFileFormatOutput

type GetFileFormatsOutputArgs added in v0.2.0

type GetFileFormatsOutputArgs struct {
	// The database from which to return the schemas from.
	Database pulumi.StringInput `pulumi:"database"`
	// The schema from which to return the file formats from.
	Schema pulumi.StringInput `pulumi:"schema"`
}

A collection of arguments for invoking getFileFormats.

func (GetFileFormatsOutputArgs) ElementType added in v0.2.0

func (GetFileFormatsOutputArgs) ElementType() reflect.Type

type GetFileFormatsResult added in v0.1.3

type GetFileFormatsResult struct {
	// The database from which to return the schemas from.
	Database string `pulumi:"database"`
	// The file formats in the schema
	FileFormats []GetFileFormatsFileFormat `pulumi:"fileFormats"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The schema from which to return the file formats from.
	Schema string `pulumi:"schema"`
}

A collection of values returned by getFileFormats.

func GetFileFormats added in v0.1.3

func GetFileFormats(ctx *pulumi.Context, args *GetFileFormatsArgs, opts ...pulumi.InvokeOption) (*GetFileFormatsResult, error)

## Example Usage

```go 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.GetFileFormats(ctx, &snowflake.GetFileFormatsArgs{
			Database: "MYDB",
			Schema:   "MYSCHEMA",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetFileFormatsResultOutput added in v0.2.0

type GetFileFormatsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getFileFormats.

func GetFileFormatsOutput added in v0.2.0

func GetFileFormatsOutput(ctx *pulumi.Context, args GetFileFormatsOutputArgs, opts ...pulumi.InvokeOption) GetFileFormatsResultOutput

func (GetFileFormatsResultOutput) Database added in v0.2.0

The database from which to return the schemas from.

func (GetFileFormatsResultOutput) ElementType added in v0.2.0

func (GetFileFormatsResultOutput) ElementType() reflect.Type

func (GetFileFormatsResultOutput) FileFormats added in v0.2.0

The file formats in the schema

func (GetFileFormatsResultOutput) Id added in v0.2.0

The provider-assigned unique ID for this managed resource.

func (GetFileFormatsResultOutput) Schema added in v0.2.0

The schema from which to return the file formats from.

func (GetFileFormatsResultOutput) ToGetFileFormatsResultOutput added in v0.2.0

func (o GetFileFormatsResultOutput) ToGetFileFormatsResultOutput() GetFileFormatsResultOutput

func (GetFileFormatsResultOutput) ToGetFileFormatsResultOutputWithContext added in v0.2.0

func (o GetFileFormatsResultOutput) ToGetFileFormatsResultOutputWithContext(ctx context.Context) GetFileFormatsResultOutput

type GetFunctionsArgs added in v0.1.3

type GetFunctionsArgs struct {
	// The database from which to return the schemas from.
	Database string `pulumi:"database"`
	// The schema from which to return the functions from.
	Schema string `pulumi:"schema"`
}

A collection of arguments for invoking getFunctions.

type GetFunctionsFunction added in v0.1.3

type GetFunctionsFunction struct {
	ArgumentTypes []string `pulumi:"argumentTypes"`
	Comment       string   `pulumi:"comment"`
	// The database from which to return the schemas from.
	Database   string `pulumi:"database"`
	Name       string `pulumi:"name"`
	ReturnType string `pulumi:"returnType"`
	// The schema from which to return the functions from.
	Schema string `pulumi:"schema"`
}

type GetFunctionsFunctionArgs added in v0.1.3

type GetFunctionsFunctionArgs struct {
	ArgumentTypes pulumi.StringArrayInput `pulumi:"argumentTypes"`
	Comment       pulumi.StringInput      `pulumi:"comment"`
	// The database from which to return the schemas from.
	Database   pulumi.StringInput `pulumi:"database"`
	Name       pulumi.StringInput `pulumi:"name"`
	ReturnType pulumi.StringInput `pulumi:"returnType"`
	// The schema from which to return the functions from.
	Schema pulumi.StringInput `pulumi:"schema"`
}

func (GetFunctionsFunctionArgs) ElementType added in v0.1.3

func (GetFunctionsFunctionArgs) ElementType() reflect.Type

func (GetFunctionsFunctionArgs) ToGetFunctionsFunctionOutput added in v0.1.3

func (i GetFunctionsFunctionArgs) ToGetFunctionsFunctionOutput() GetFunctionsFunctionOutput

func (GetFunctionsFunctionArgs) ToGetFunctionsFunctionOutputWithContext added in v0.1.3

func (i GetFunctionsFunctionArgs) ToGetFunctionsFunctionOutputWithContext(ctx context.Context) GetFunctionsFunctionOutput

type GetFunctionsFunctionArray added in v0.1.3

type GetFunctionsFunctionArray []GetFunctionsFunctionInput

func (GetFunctionsFunctionArray) ElementType added in v0.1.3

func (GetFunctionsFunctionArray) ElementType() reflect.Type

func (GetFunctionsFunctionArray) ToGetFunctionsFunctionArrayOutput added in v0.1.3

func (i GetFunctionsFunctionArray) ToGetFunctionsFunctionArrayOutput() GetFunctionsFunctionArrayOutput

func (GetFunctionsFunctionArray) ToGetFunctionsFunctionArrayOutputWithContext added in v0.1.3

func (i GetFunctionsFunctionArray) ToGetFunctionsFunctionArrayOutputWithContext(ctx context.Context) GetFunctionsFunctionArrayOutput

type GetFunctionsFunctionArrayInput added in v0.1.3

type GetFunctionsFunctionArrayInput interface {
	pulumi.Input

	ToGetFunctionsFunctionArrayOutput() GetFunctionsFunctionArrayOutput
	ToGetFunctionsFunctionArrayOutputWithContext(context.Context) GetFunctionsFunctionArrayOutput
}

GetFunctionsFunctionArrayInput is an input type that accepts GetFunctionsFunctionArray and GetFunctionsFunctionArrayOutput values. You can construct a concrete instance of `GetFunctionsFunctionArrayInput` via:

GetFunctionsFunctionArray{ GetFunctionsFunctionArgs{...} }

type GetFunctionsFunctionArrayOutput added in v0.1.3

type GetFunctionsFunctionArrayOutput struct{ *pulumi.OutputState }

func (GetFunctionsFunctionArrayOutput) ElementType added in v0.1.3

func (GetFunctionsFunctionArrayOutput) Index added in v0.1.3

func (GetFunctionsFunctionArrayOutput) ToGetFunctionsFunctionArrayOutput added in v0.1.3

func (o GetFunctionsFunctionArrayOutput) ToGetFunctionsFunctionArrayOutput() GetFunctionsFunctionArrayOutput

func (GetFunctionsFunctionArrayOutput) ToGetFunctionsFunctionArrayOutputWithContext added in v0.1.3

func (o GetFunctionsFunctionArrayOutput) ToGetFunctionsFunctionArrayOutputWithContext(ctx context.Context) GetFunctionsFunctionArrayOutput

type GetFunctionsFunctionInput added in v0.1.3

type GetFunctionsFunctionInput interface {
	pulumi.Input

	ToGetFunctionsFunctionOutput() GetFunctionsFunctionOutput
	ToGetFunctionsFunctionOutputWithContext(context.Context) GetFunctionsFunctionOutput
}

GetFunctionsFunctionInput is an input type that accepts GetFunctionsFunctionArgs and GetFunctionsFunctionOutput values. You can construct a concrete instance of `GetFunctionsFunctionInput` via:

GetFunctionsFunctionArgs{...}

type GetFunctionsFunctionOutput added in v0.1.3

type GetFunctionsFunctionOutput struct{ *pulumi.OutputState }

func (GetFunctionsFunctionOutput) ArgumentTypes added in v0.1.3

func (GetFunctionsFunctionOutput) Comment added in v0.1.3

func (GetFunctionsFunctionOutput) Database added in v0.1.3

The database from which to return the schemas from.

func (GetFunctionsFunctionOutput) ElementType added in v0.1.3

func (GetFunctionsFunctionOutput) ElementType() reflect.Type

func (GetFunctionsFunctionOutput) Name added in v0.1.3

func (GetFunctionsFunctionOutput) ReturnType added in v0.1.3

func (GetFunctionsFunctionOutput) Schema added in v0.1.3

The schema from which to return the functions from.

func (GetFunctionsFunctionOutput) ToGetFunctionsFunctionOutput added in v0.1.3

func (o GetFunctionsFunctionOutput) ToGetFunctionsFunctionOutput() GetFunctionsFunctionOutput

func (GetFunctionsFunctionOutput) ToGetFunctionsFunctionOutputWithContext added in v0.1.3

func (o GetFunctionsFunctionOutput) ToGetFunctionsFunctionOutputWithContext(ctx context.Context) GetFunctionsFunctionOutput

type GetFunctionsOutputArgs added in v0.2.0

type GetFunctionsOutputArgs struct {
	// The database from which to return the schemas from.
	Database pulumi.StringInput `pulumi:"database"`
	// The schema from which to return the functions from.
	Schema pulumi.StringInput `pulumi:"schema"`
}

A collection of arguments for invoking getFunctions.

func (GetFunctionsOutputArgs) ElementType added in v0.2.0

func (GetFunctionsOutputArgs) ElementType() reflect.Type

type GetFunctionsResult added in v0.1.3

type GetFunctionsResult struct {
	// The database from which to return the schemas from.
	Database string `pulumi:"database"`
	// The functions in the schema
	Functions []GetFunctionsFunction `pulumi:"functions"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The schema from which to return the functions from.
	Schema string `pulumi:"schema"`
}

A collection of values returned by getFunctions.

func GetFunctions added in v0.1.3

func GetFunctions(ctx *pulumi.Context, args *GetFunctionsArgs, opts ...pulumi.InvokeOption) (*GetFunctionsResult, error)

## Example Usage

```go 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.GetFunctions(ctx, &snowflake.GetFunctionsArgs{
			Database: "MYDB",
			Schema:   "MYSCHEMA",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetFunctionsResultOutput added in v0.2.0

type GetFunctionsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getFunctions.

func GetFunctionsOutput added in v0.2.0

func GetFunctionsOutput(ctx *pulumi.Context, args GetFunctionsOutputArgs, opts ...pulumi.InvokeOption) GetFunctionsResultOutput

func (GetFunctionsResultOutput) Database added in v0.2.0

The database from which to return the schemas from.

func (GetFunctionsResultOutput) ElementType added in v0.2.0

func (GetFunctionsResultOutput) ElementType() reflect.Type

func (GetFunctionsResultOutput) Functions added in v0.2.0

The functions in the schema

func (GetFunctionsResultOutput) Id added in v0.2.0

The provider-assigned unique ID for this managed resource.

func (GetFunctionsResultOutput) Schema added in v0.2.0

The schema from which to return the functions from.

func (GetFunctionsResultOutput) ToGetFunctionsResultOutput added in v0.2.0

func (o GetFunctionsResultOutput) ToGetFunctionsResultOutput() GetFunctionsResultOutput

func (GetFunctionsResultOutput) ToGetFunctionsResultOutputWithContext added in v0.2.0

func (o GetFunctionsResultOutput) ToGetFunctionsResultOutputWithContext(ctx context.Context) GetFunctionsResultOutput

type GetGrantsArgs added in v0.15.0

type GetGrantsArgs struct {
	// Lists all privileges on new (i.e. future) objects
	FutureGrantsIn *GetGrantsFutureGrantsIn `pulumi:"futureGrantsIn"`
	// Lists all privileges granted to the object on new (i.e. future) objects
	FutureGrantsTo *GetGrantsFutureGrantsTo `pulumi:"futureGrantsTo"`
	// Lists all objects to which the given object has been granted
	GrantsOf *GetGrantsGrantsOf `pulumi:"grantsOf"`
	// Lists all privileges that have been granted on an object or account
	GrantsOn *GetGrantsGrantsOn `pulumi:"grantsOn"`
	// Lists all privileges granted to the object
	GrantsTo *GetGrantsGrantsTo `pulumi:"grantsTo"`
}

A collection of arguments for invoking getGrants.

type GetGrantsFutureGrantsIn added in v0.15.0

type GetGrantsFutureGrantsIn struct {
	// Lists all privileges on new (i.e. future) objects of a specified type in the database granted to a role.
	Database *string `pulumi:"database"`
	// Lists all privileges on new (i.e. future) objects of a specified type in the schema granted to a role.
	Schema *GetGrantsFutureGrantsInSchema `pulumi:"schema"`
}

type GetGrantsFutureGrantsInArgs added in v0.15.0

type GetGrantsFutureGrantsInArgs struct {
	// Lists all privileges on new (i.e. future) objects of a specified type in the database granted to a role.
	Database pulumi.StringPtrInput `pulumi:"database"`
	// Lists all privileges on new (i.e. future) objects of a specified type in the schema granted to a role.
	Schema GetGrantsFutureGrantsInSchemaPtrInput `pulumi:"schema"`
}

func (GetGrantsFutureGrantsInArgs) ElementType added in v0.15.0

func (GetGrantsFutureGrantsInArgs) ToGetGrantsFutureGrantsInOutput added in v0.15.0

func (i GetGrantsFutureGrantsInArgs) ToGetGrantsFutureGrantsInOutput() GetGrantsFutureGrantsInOutput

func (GetGrantsFutureGrantsInArgs) ToGetGrantsFutureGrantsInOutputWithContext added in v0.15.0

func (i GetGrantsFutureGrantsInArgs) ToGetGrantsFutureGrantsInOutputWithContext(ctx context.Context) GetGrantsFutureGrantsInOutput

func (GetGrantsFutureGrantsInArgs) ToGetGrantsFutureGrantsInPtrOutput added in v0.15.0

func (i GetGrantsFutureGrantsInArgs) ToGetGrantsFutureGrantsInPtrOutput() GetGrantsFutureGrantsInPtrOutput

func (GetGrantsFutureGrantsInArgs) ToGetGrantsFutureGrantsInPtrOutputWithContext added in v0.15.0

func (i GetGrantsFutureGrantsInArgs) ToGetGrantsFutureGrantsInPtrOutputWithContext(ctx context.Context) GetGrantsFutureGrantsInPtrOutput

type GetGrantsFutureGrantsInInput added in v0.15.0

type GetGrantsFutureGrantsInInput interface {
	pulumi.Input

	ToGetGrantsFutureGrantsInOutput() GetGrantsFutureGrantsInOutput
	ToGetGrantsFutureGrantsInOutputWithContext(context.Context) GetGrantsFutureGrantsInOutput
}

GetGrantsFutureGrantsInInput is an input type that accepts GetGrantsFutureGrantsInArgs and GetGrantsFutureGrantsInOutput values. You can construct a concrete instance of `GetGrantsFutureGrantsInInput` via:

GetGrantsFutureGrantsInArgs{...}

type GetGrantsFutureGrantsInOutput added in v0.15.0

type GetGrantsFutureGrantsInOutput struct{ *pulumi.OutputState }

func (GetGrantsFutureGrantsInOutput) Database added in v0.15.0

Lists all privileges on new (i.e. future) objects of a specified type in the database granted to a role.

func (GetGrantsFutureGrantsInOutput) ElementType added in v0.15.0

func (GetGrantsFutureGrantsInOutput) Schema added in v0.15.0

Lists all privileges on new (i.e. future) objects of a specified type in the schema granted to a role.

func (GetGrantsFutureGrantsInOutput) ToGetGrantsFutureGrantsInOutput added in v0.15.0

func (o GetGrantsFutureGrantsInOutput) ToGetGrantsFutureGrantsInOutput() GetGrantsFutureGrantsInOutput

func (GetGrantsFutureGrantsInOutput) ToGetGrantsFutureGrantsInOutputWithContext added in v0.15.0

func (o GetGrantsFutureGrantsInOutput) ToGetGrantsFutureGrantsInOutputWithContext(ctx context.Context) GetGrantsFutureGrantsInOutput

func (GetGrantsFutureGrantsInOutput) ToGetGrantsFutureGrantsInPtrOutput added in v0.15.0

func (o GetGrantsFutureGrantsInOutput) ToGetGrantsFutureGrantsInPtrOutput() GetGrantsFutureGrantsInPtrOutput

func (GetGrantsFutureGrantsInOutput) ToGetGrantsFutureGrantsInPtrOutputWithContext added in v0.15.0

func (o GetGrantsFutureGrantsInOutput) ToGetGrantsFutureGrantsInPtrOutputWithContext(ctx context.Context) GetGrantsFutureGrantsInPtrOutput

type GetGrantsFutureGrantsInPtrInput added in v0.15.0

type GetGrantsFutureGrantsInPtrInput interface {
	pulumi.Input

	ToGetGrantsFutureGrantsInPtrOutput() GetGrantsFutureGrantsInPtrOutput
	ToGetGrantsFutureGrantsInPtrOutputWithContext(context.Context) GetGrantsFutureGrantsInPtrOutput
}

GetGrantsFutureGrantsInPtrInput is an input type that accepts GetGrantsFutureGrantsInArgs, GetGrantsFutureGrantsInPtr and GetGrantsFutureGrantsInPtrOutput values. You can construct a concrete instance of `GetGrantsFutureGrantsInPtrInput` via:

        GetGrantsFutureGrantsInArgs{...}

or:

        nil

func GetGrantsFutureGrantsInPtr added in v0.15.0

func GetGrantsFutureGrantsInPtr(v *GetGrantsFutureGrantsInArgs) GetGrantsFutureGrantsInPtrInput

type GetGrantsFutureGrantsInPtrOutput added in v0.15.0

type GetGrantsFutureGrantsInPtrOutput struct{ *pulumi.OutputState }

func (GetGrantsFutureGrantsInPtrOutput) Database added in v0.15.0

Lists all privileges on new (i.e. future) objects of a specified type in the database granted to a role.

func (GetGrantsFutureGrantsInPtrOutput) Elem added in v0.15.0

func (GetGrantsFutureGrantsInPtrOutput) ElementType added in v0.15.0

func (GetGrantsFutureGrantsInPtrOutput) Schema added in v0.15.0

Lists all privileges on new (i.e. future) objects of a specified type in the schema granted to a role.

func (GetGrantsFutureGrantsInPtrOutput) ToGetGrantsFutureGrantsInPtrOutput added in v0.15.0

func (o GetGrantsFutureGrantsInPtrOutput) ToGetGrantsFutureGrantsInPtrOutput() GetGrantsFutureGrantsInPtrOutput

func (GetGrantsFutureGrantsInPtrOutput) ToGetGrantsFutureGrantsInPtrOutputWithContext added in v0.15.0

func (o GetGrantsFutureGrantsInPtrOutput) ToGetGrantsFutureGrantsInPtrOutputWithContext(ctx context.Context) GetGrantsFutureGrantsInPtrOutput

type GetGrantsFutureGrantsInSchema added in v0.15.0

type GetGrantsFutureGrantsInSchema struct {
	DatabaseName *string `pulumi:"databaseName"`
	SchemaName   string  `pulumi:"schemaName"`
}

type GetGrantsFutureGrantsInSchemaArgs added in v0.15.0

type GetGrantsFutureGrantsInSchemaArgs struct {
	DatabaseName pulumi.StringPtrInput `pulumi:"databaseName"`
	SchemaName   pulumi.StringInput    `pulumi:"schemaName"`
}

func (GetGrantsFutureGrantsInSchemaArgs) ElementType added in v0.15.0

func (GetGrantsFutureGrantsInSchemaArgs) ToGetGrantsFutureGrantsInSchemaOutput added in v0.15.0

func (i GetGrantsFutureGrantsInSchemaArgs) ToGetGrantsFutureGrantsInSchemaOutput() GetGrantsFutureGrantsInSchemaOutput

func (GetGrantsFutureGrantsInSchemaArgs) ToGetGrantsFutureGrantsInSchemaOutputWithContext added in v0.15.0

func (i GetGrantsFutureGrantsInSchemaArgs) ToGetGrantsFutureGrantsInSchemaOutputWithContext(ctx context.Context) GetGrantsFutureGrantsInSchemaOutput

func (GetGrantsFutureGrantsInSchemaArgs) ToGetGrantsFutureGrantsInSchemaPtrOutput added in v0.15.0

func (i GetGrantsFutureGrantsInSchemaArgs) ToGetGrantsFutureGrantsInSchemaPtrOutput() GetGrantsFutureGrantsInSchemaPtrOutput

func (GetGrantsFutureGrantsInSchemaArgs) ToGetGrantsFutureGrantsInSchemaPtrOutputWithContext added in v0.15.0

func (i GetGrantsFutureGrantsInSchemaArgs) ToGetGrantsFutureGrantsInSchemaPtrOutputWithContext(ctx context.Context) GetGrantsFutureGrantsInSchemaPtrOutput

type GetGrantsFutureGrantsInSchemaInput added in v0.15.0

type GetGrantsFutureGrantsInSchemaInput interface {
	pulumi.Input

	ToGetGrantsFutureGrantsInSchemaOutput() GetGrantsFutureGrantsInSchemaOutput
	ToGetGrantsFutureGrantsInSchemaOutputWithContext(context.Context) GetGrantsFutureGrantsInSchemaOutput
}

GetGrantsFutureGrantsInSchemaInput is an input type that accepts GetGrantsFutureGrantsInSchemaArgs and GetGrantsFutureGrantsInSchemaOutput values. You can construct a concrete instance of `GetGrantsFutureGrantsInSchemaInput` via:

GetGrantsFutureGrantsInSchemaArgs{...}

type GetGrantsFutureGrantsInSchemaOutput added in v0.15.0

type GetGrantsFutureGrantsInSchemaOutput struct{ *pulumi.OutputState }

func (GetGrantsFutureGrantsInSchemaOutput) DatabaseName added in v0.15.0

func (GetGrantsFutureGrantsInSchemaOutput) ElementType added in v0.15.0

func (GetGrantsFutureGrantsInSchemaOutput) SchemaName added in v0.15.0

func (GetGrantsFutureGrantsInSchemaOutput) ToGetGrantsFutureGrantsInSchemaOutput added in v0.15.0

func (o GetGrantsFutureGrantsInSchemaOutput) ToGetGrantsFutureGrantsInSchemaOutput() GetGrantsFutureGrantsInSchemaOutput

func (GetGrantsFutureGrantsInSchemaOutput) ToGetGrantsFutureGrantsInSchemaOutputWithContext added in v0.15.0

func (o GetGrantsFutureGrantsInSchemaOutput) ToGetGrantsFutureGrantsInSchemaOutputWithContext(ctx context.Context) GetGrantsFutureGrantsInSchemaOutput

func (GetGrantsFutureGrantsInSchemaOutput) ToGetGrantsFutureGrantsInSchemaPtrOutput added in v0.15.0

func (o GetGrantsFutureGrantsInSchemaOutput) ToGetGrantsFutureGrantsInSchemaPtrOutput() GetGrantsFutureGrantsInSchemaPtrOutput

func (GetGrantsFutureGrantsInSchemaOutput) ToGetGrantsFutureGrantsInSchemaPtrOutputWithContext added in v0.15.0

func (o GetGrantsFutureGrantsInSchemaOutput) ToGetGrantsFutureGrantsInSchemaPtrOutputWithContext(ctx context.Context) GetGrantsFutureGrantsInSchemaPtrOutput

type GetGrantsFutureGrantsInSchemaPtrInput added in v0.15.0

type GetGrantsFutureGrantsInSchemaPtrInput interface {
	pulumi.Input

	ToGetGrantsFutureGrantsInSchemaPtrOutput() GetGrantsFutureGrantsInSchemaPtrOutput
	ToGetGrantsFutureGrantsInSchemaPtrOutputWithContext(context.Context) GetGrantsFutureGrantsInSchemaPtrOutput
}

GetGrantsFutureGrantsInSchemaPtrInput is an input type that accepts GetGrantsFutureGrantsInSchemaArgs, GetGrantsFutureGrantsInSchemaPtr and GetGrantsFutureGrantsInSchemaPtrOutput values. You can construct a concrete instance of `GetGrantsFutureGrantsInSchemaPtrInput` via:

        GetGrantsFutureGrantsInSchemaArgs{...}

or:

        nil

type GetGrantsFutureGrantsInSchemaPtrOutput added in v0.15.0

type GetGrantsFutureGrantsInSchemaPtrOutput struct{ *pulumi.OutputState }

func (GetGrantsFutureGrantsInSchemaPtrOutput) DatabaseName added in v0.15.0

func (GetGrantsFutureGrantsInSchemaPtrOutput) Elem added in v0.15.0

func (GetGrantsFutureGrantsInSchemaPtrOutput) ElementType added in v0.15.0

func (GetGrantsFutureGrantsInSchemaPtrOutput) SchemaName added in v0.15.0

func (GetGrantsFutureGrantsInSchemaPtrOutput) ToGetGrantsFutureGrantsInSchemaPtrOutput added in v0.15.0

func (o GetGrantsFutureGrantsInSchemaPtrOutput) ToGetGrantsFutureGrantsInSchemaPtrOutput() GetGrantsFutureGrantsInSchemaPtrOutput

func (GetGrantsFutureGrantsInSchemaPtrOutput) ToGetGrantsFutureGrantsInSchemaPtrOutputWithContext added in v0.15.0

func (o GetGrantsFutureGrantsInSchemaPtrOutput) ToGetGrantsFutureGrantsInSchemaPtrOutputWithContext(ctx context.Context) GetGrantsFutureGrantsInSchemaPtrOutput

type GetGrantsFutureGrantsTo added in v0.15.0

type GetGrantsFutureGrantsTo struct {
	// Lists all privileges on new (i.e. future) objects of a specified type in a database or schema granted to the role.
	Role string `pulumi:"role"`
}

type GetGrantsFutureGrantsToArgs added in v0.15.0

type GetGrantsFutureGrantsToArgs struct {
	// Lists all privileges on new (i.e. future) objects of a specified type in a database or schema granted to the role.
	Role pulumi.StringInput `pulumi:"role"`
}

func (GetGrantsFutureGrantsToArgs) ElementType added in v0.15.0

func (GetGrantsFutureGrantsToArgs) ToGetGrantsFutureGrantsToOutput added in v0.15.0

func (i GetGrantsFutureGrantsToArgs) ToGetGrantsFutureGrantsToOutput() GetGrantsFutureGrantsToOutput

func (GetGrantsFutureGrantsToArgs) ToGetGrantsFutureGrantsToOutputWithContext added in v0.15.0

func (i GetGrantsFutureGrantsToArgs) ToGetGrantsFutureGrantsToOutputWithContext(ctx context.Context) GetGrantsFutureGrantsToOutput

func (GetGrantsFutureGrantsToArgs) ToGetGrantsFutureGrantsToPtrOutput added in v0.15.0

func (i GetGrantsFutureGrantsToArgs) ToGetGrantsFutureGrantsToPtrOutput() GetGrantsFutureGrantsToPtrOutput

func (GetGrantsFutureGrantsToArgs) ToGetGrantsFutureGrantsToPtrOutputWithContext added in v0.15.0

func (i GetGrantsFutureGrantsToArgs) ToGetGrantsFutureGrantsToPtrOutputWithContext(ctx context.Context) GetGrantsFutureGrantsToPtrOutput

type GetGrantsFutureGrantsToInput added in v0.15.0

type GetGrantsFutureGrantsToInput interface {
	pulumi.Input

	ToGetGrantsFutureGrantsToOutput() GetGrantsFutureGrantsToOutput
	ToGetGrantsFutureGrantsToOutputWithContext(context.Context) GetGrantsFutureGrantsToOutput
}

GetGrantsFutureGrantsToInput is an input type that accepts GetGrantsFutureGrantsToArgs and GetGrantsFutureGrantsToOutput values. You can construct a concrete instance of `GetGrantsFutureGrantsToInput` via:

GetGrantsFutureGrantsToArgs{...}

type GetGrantsFutureGrantsToOutput added in v0.15.0

type GetGrantsFutureGrantsToOutput struct{ *pulumi.OutputState }

func (GetGrantsFutureGrantsToOutput) ElementType added in v0.15.0

func (GetGrantsFutureGrantsToOutput) Role added in v0.15.0

Lists all privileges on new (i.e. future) objects of a specified type in a database or schema granted to the role.

func (GetGrantsFutureGrantsToOutput) ToGetGrantsFutureGrantsToOutput added in v0.15.0

func (o GetGrantsFutureGrantsToOutput) ToGetGrantsFutureGrantsToOutput() GetGrantsFutureGrantsToOutput

func (GetGrantsFutureGrantsToOutput) ToGetGrantsFutureGrantsToOutputWithContext added in v0.15.0

func (o GetGrantsFutureGrantsToOutput) ToGetGrantsFutureGrantsToOutputWithContext(ctx context.Context) GetGrantsFutureGrantsToOutput

func (GetGrantsFutureGrantsToOutput) ToGetGrantsFutureGrantsToPtrOutput added in v0.15.0

func (o GetGrantsFutureGrantsToOutput) ToGetGrantsFutureGrantsToPtrOutput() GetGrantsFutureGrantsToPtrOutput

func (GetGrantsFutureGrantsToOutput) ToGetGrantsFutureGrantsToPtrOutputWithContext added in v0.15.0

func (o GetGrantsFutureGrantsToOutput) ToGetGrantsFutureGrantsToPtrOutputWithContext(ctx context.Context) GetGrantsFutureGrantsToPtrOutput

type GetGrantsFutureGrantsToPtrInput added in v0.15.0

type GetGrantsFutureGrantsToPtrInput interface {
	pulumi.Input

	ToGetGrantsFutureGrantsToPtrOutput() GetGrantsFutureGrantsToPtrOutput
	ToGetGrantsFutureGrantsToPtrOutputWithContext(context.Context) GetGrantsFutureGrantsToPtrOutput
}

GetGrantsFutureGrantsToPtrInput is an input type that accepts GetGrantsFutureGrantsToArgs, GetGrantsFutureGrantsToPtr and GetGrantsFutureGrantsToPtrOutput values. You can construct a concrete instance of `GetGrantsFutureGrantsToPtrInput` via:

        GetGrantsFutureGrantsToArgs{...}

or:

        nil

func GetGrantsFutureGrantsToPtr added in v0.15.0

func GetGrantsFutureGrantsToPtr(v *GetGrantsFutureGrantsToArgs) GetGrantsFutureGrantsToPtrInput

type GetGrantsFutureGrantsToPtrOutput added in v0.15.0

type GetGrantsFutureGrantsToPtrOutput struct{ *pulumi.OutputState }

func (GetGrantsFutureGrantsToPtrOutput) Elem added in v0.15.0

func (GetGrantsFutureGrantsToPtrOutput) ElementType added in v0.15.0

func (GetGrantsFutureGrantsToPtrOutput) Role added in v0.15.0

Lists all privileges on new (i.e. future) objects of a specified type in a database or schema granted to the role.

func (GetGrantsFutureGrantsToPtrOutput) ToGetGrantsFutureGrantsToPtrOutput added in v0.15.0

func (o GetGrantsFutureGrantsToPtrOutput) ToGetGrantsFutureGrantsToPtrOutput() GetGrantsFutureGrantsToPtrOutput

func (GetGrantsFutureGrantsToPtrOutput) ToGetGrantsFutureGrantsToPtrOutputWithContext added in v0.15.0

func (o GetGrantsFutureGrantsToPtrOutput) ToGetGrantsFutureGrantsToPtrOutputWithContext(ctx context.Context) GetGrantsFutureGrantsToPtrOutput

type GetGrantsGrant added in v0.15.0

type GetGrantsGrant struct {
	CreatedOn   string `pulumi:"createdOn"`
	GrantOption bool   `pulumi:"grantOption"`
	GrantedBy   string `pulumi:"grantedBy"`
	GrantedOn   string `pulumi:"grantedOn"`
	GrantedTo   string `pulumi:"grantedTo"`
	GranteeName string `pulumi:"granteeName"`
	Name        string `pulumi:"name"`
	Privilege   string `pulumi:"privilege"`
}

type GetGrantsGrantArgs added in v0.15.0

type GetGrantsGrantArgs struct {
	CreatedOn   pulumi.StringInput `pulumi:"createdOn"`
	GrantOption pulumi.BoolInput   `pulumi:"grantOption"`
	GrantedBy   pulumi.StringInput `pulumi:"grantedBy"`
	GrantedOn   pulumi.StringInput `pulumi:"grantedOn"`
	GrantedTo   pulumi.StringInput `pulumi:"grantedTo"`
	GranteeName pulumi.StringInput `pulumi:"granteeName"`
	Name        pulumi.StringInput `pulumi:"name"`
	Privilege   pulumi.StringInput `pulumi:"privilege"`
}

func (GetGrantsGrantArgs) ElementType added in v0.15.0

func (GetGrantsGrantArgs) ElementType() reflect.Type

func (GetGrantsGrantArgs) ToGetGrantsGrantOutput added in v0.15.0

func (i GetGrantsGrantArgs) ToGetGrantsGrantOutput() GetGrantsGrantOutput

func (GetGrantsGrantArgs) ToGetGrantsGrantOutputWithContext added in v0.15.0

func (i GetGrantsGrantArgs) ToGetGrantsGrantOutputWithContext(ctx context.Context) GetGrantsGrantOutput

type GetGrantsGrantArray added in v0.15.0

type GetGrantsGrantArray []GetGrantsGrantInput

func (GetGrantsGrantArray) ElementType added in v0.15.0

func (GetGrantsGrantArray) ElementType() reflect.Type

func (GetGrantsGrantArray) ToGetGrantsGrantArrayOutput added in v0.15.0

func (i GetGrantsGrantArray) ToGetGrantsGrantArrayOutput() GetGrantsGrantArrayOutput

func (GetGrantsGrantArray) ToGetGrantsGrantArrayOutputWithContext added in v0.15.0

func (i GetGrantsGrantArray) ToGetGrantsGrantArrayOutputWithContext(ctx context.Context) GetGrantsGrantArrayOutput

type GetGrantsGrantArrayInput added in v0.15.0

type GetGrantsGrantArrayInput interface {
	pulumi.Input

	ToGetGrantsGrantArrayOutput() GetGrantsGrantArrayOutput
	ToGetGrantsGrantArrayOutputWithContext(context.Context) GetGrantsGrantArrayOutput
}

GetGrantsGrantArrayInput is an input type that accepts GetGrantsGrantArray and GetGrantsGrantArrayOutput values. You can construct a concrete instance of `GetGrantsGrantArrayInput` via:

GetGrantsGrantArray{ GetGrantsGrantArgs{...} }

type GetGrantsGrantArrayOutput added in v0.15.0

type GetGrantsGrantArrayOutput struct{ *pulumi.OutputState }

func (GetGrantsGrantArrayOutput) ElementType added in v0.15.0

func (GetGrantsGrantArrayOutput) ElementType() reflect.Type

func (GetGrantsGrantArrayOutput) Index added in v0.15.0

func (GetGrantsGrantArrayOutput) ToGetGrantsGrantArrayOutput added in v0.15.0

func (o GetGrantsGrantArrayOutput) ToGetGrantsGrantArrayOutput() GetGrantsGrantArrayOutput

func (GetGrantsGrantArrayOutput) ToGetGrantsGrantArrayOutputWithContext added in v0.15.0

func (o GetGrantsGrantArrayOutput) ToGetGrantsGrantArrayOutputWithContext(ctx context.Context) GetGrantsGrantArrayOutput

type GetGrantsGrantInput added in v0.15.0

type GetGrantsGrantInput interface {
	pulumi.Input

	ToGetGrantsGrantOutput() GetGrantsGrantOutput
	ToGetGrantsGrantOutputWithContext(context.Context) GetGrantsGrantOutput
}

GetGrantsGrantInput is an input type that accepts GetGrantsGrantArgs and GetGrantsGrantOutput values. You can construct a concrete instance of `GetGrantsGrantInput` via:

GetGrantsGrantArgs{...}

type GetGrantsGrantOutput added in v0.15.0

type GetGrantsGrantOutput struct{ *pulumi.OutputState }

func (GetGrantsGrantOutput) CreatedOn added in v0.15.0

func (GetGrantsGrantOutput) ElementType added in v0.15.0

func (GetGrantsGrantOutput) ElementType() reflect.Type

func (GetGrantsGrantOutput) GrantOption added in v0.15.0

func (o GetGrantsGrantOutput) GrantOption() pulumi.BoolOutput

func (GetGrantsGrantOutput) GrantedBy added in v0.15.0

func (GetGrantsGrantOutput) GrantedOn added in v0.15.0

func (GetGrantsGrantOutput) GrantedTo added in v0.15.0

func (GetGrantsGrantOutput) GranteeName added in v0.15.0

func (o GetGrantsGrantOutput) GranteeName() pulumi.StringOutput

func (GetGrantsGrantOutput) Name added in v0.15.0

func (GetGrantsGrantOutput) Privilege added in v0.15.0

func (GetGrantsGrantOutput) ToGetGrantsGrantOutput added in v0.15.0

func (o GetGrantsGrantOutput) ToGetGrantsGrantOutput() GetGrantsGrantOutput

func (GetGrantsGrantOutput) ToGetGrantsGrantOutputWithContext added in v0.15.0

func (o GetGrantsGrantOutput) ToGetGrantsGrantOutputWithContext(ctx context.Context) GetGrantsGrantOutput

type GetGrantsGrantsOf added in v0.15.0

type GetGrantsGrantsOf struct {
	// Lists all users and roles to which the role has been granted
	Role *string `pulumi:"role"`
	// Lists all the accounts for the share and indicates the accounts that are using the share.
	Share *string `pulumi:"share"`
}

type GetGrantsGrantsOfArgs added in v0.15.0

type GetGrantsGrantsOfArgs struct {
	// Lists all users and roles to which the role has been granted
	Role pulumi.StringPtrInput `pulumi:"role"`
	// Lists all the accounts for the share and indicates the accounts that are using the share.
	Share pulumi.StringPtrInput `pulumi:"share"`
}

func (GetGrantsGrantsOfArgs) ElementType added in v0.15.0

func (GetGrantsGrantsOfArgs) ElementType() reflect.Type

func (GetGrantsGrantsOfArgs) ToGetGrantsGrantsOfOutput added in v0.15.0

func (i GetGrantsGrantsOfArgs) ToGetGrantsGrantsOfOutput() GetGrantsGrantsOfOutput

func (GetGrantsGrantsOfArgs) ToGetGrantsGrantsOfOutputWithContext added in v0.15.0

func (i GetGrantsGrantsOfArgs) ToGetGrantsGrantsOfOutputWithContext(ctx context.Context) GetGrantsGrantsOfOutput

func (GetGrantsGrantsOfArgs) ToGetGrantsGrantsOfPtrOutput added in v0.15.0

func (i GetGrantsGrantsOfArgs) ToGetGrantsGrantsOfPtrOutput() GetGrantsGrantsOfPtrOutput

func (GetGrantsGrantsOfArgs) ToGetGrantsGrantsOfPtrOutputWithContext added in v0.15.0

func (i GetGrantsGrantsOfArgs) ToGetGrantsGrantsOfPtrOutputWithContext(ctx context.Context) GetGrantsGrantsOfPtrOutput

type GetGrantsGrantsOfInput added in v0.15.0

type GetGrantsGrantsOfInput interface {
	pulumi.Input

	ToGetGrantsGrantsOfOutput() GetGrantsGrantsOfOutput
	ToGetGrantsGrantsOfOutputWithContext(context.Context) GetGrantsGrantsOfOutput
}

GetGrantsGrantsOfInput is an input type that accepts GetGrantsGrantsOfArgs and GetGrantsGrantsOfOutput values. You can construct a concrete instance of `GetGrantsGrantsOfInput` via:

GetGrantsGrantsOfArgs{...}

type GetGrantsGrantsOfOutput added in v0.15.0

type GetGrantsGrantsOfOutput struct{ *pulumi.OutputState }

func (GetGrantsGrantsOfOutput) ElementType added in v0.15.0

func (GetGrantsGrantsOfOutput) ElementType() reflect.Type

func (GetGrantsGrantsOfOutput) Role added in v0.15.0

Lists all users and roles to which the role has been granted

func (GetGrantsGrantsOfOutput) Share added in v0.15.0

Lists all the accounts for the share and indicates the accounts that are using the share.

func (GetGrantsGrantsOfOutput) ToGetGrantsGrantsOfOutput added in v0.15.0

func (o GetGrantsGrantsOfOutput) ToGetGrantsGrantsOfOutput() GetGrantsGrantsOfOutput

func (GetGrantsGrantsOfOutput) ToGetGrantsGrantsOfOutputWithContext added in v0.15.0

func (o GetGrantsGrantsOfOutput) ToGetGrantsGrantsOfOutputWithContext(ctx context.Context) GetGrantsGrantsOfOutput

func (GetGrantsGrantsOfOutput) ToGetGrantsGrantsOfPtrOutput added in v0.15.0

func (o GetGrantsGrantsOfOutput) ToGetGrantsGrantsOfPtrOutput() GetGrantsGrantsOfPtrOutput

func (GetGrantsGrantsOfOutput) ToGetGrantsGrantsOfPtrOutputWithContext added in v0.15.0

func (o GetGrantsGrantsOfOutput) ToGetGrantsGrantsOfPtrOutputWithContext(ctx context.Context) GetGrantsGrantsOfPtrOutput

type GetGrantsGrantsOfPtrInput added in v0.15.0

type GetGrantsGrantsOfPtrInput interface {
	pulumi.Input

	ToGetGrantsGrantsOfPtrOutput() GetGrantsGrantsOfPtrOutput
	ToGetGrantsGrantsOfPtrOutputWithContext(context.Context) GetGrantsGrantsOfPtrOutput
}

GetGrantsGrantsOfPtrInput is an input type that accepts GetGrantsGrantsOfArgs, GetGrantsGrantsOfPtr and GetGrantsGrantsOfPtrOutput values. You can construct a concrete instance of `GetGrantsGrantsOfPtrInput` via:

        GetGrantsGrantsOfArgs{...}

or:

        nil

func GetGrantsGrantsOfPtr added in v0.15.0

func GetGrantsGrantsOfPtr(v *GetGrantsGrantsOfArgs) GetGrantsGrantsOfPtrInput

type GetGrantsGrantsOfPtrOutput added in v0.15.0

type GetGrantsGrantsOfPtrOutput struct{ *pulumi.OutputState }

func (GetGrantsGrantsOfPtrOutput) Elem added in v0.15.0

func (GetGrantsGrantsOfPtrOutput) ElementType added in v0.15.0

func (GetGrantsGrantsOfPtrOutput) ElementType() reflect.Type

func (GetGrantsGrantsOfPtrOutput) Role added in v0.15.0

Lists all users and roles to which the role has been granted

func (GetGrantsGrantsOfPtrOutput) Share added in v0.15.0

Lists all the accounts for the share and indicates the accounts that are using the share.

func (GetGrantsGrantsOfPtrOutput) ToGetGrantsGrantsOfPtrOutput added in v0.15.0

func (o GetGrantsGrantsOfPtrOutput) ToGetGrantsGrantsOfPtrOutput() GetGrantsGrantsOfPtrOutput

func (GetGrantsGrantsOfPtrOutput) ToGetGrantsGrantsOfPtrOutputWithContext added in v0.15.0

func (o GetGrantsGrantsOfPtrOutput) ToGetGrantsGrantsOfPtrOutputWithContext(ctx context.Context) GetGrantsGrantsOfPtrOutput

type GetGrantsGrantsOn added in v0.15.0

type GetGrantsGrantsOn struct {
	// Object hierarchy to list privileges on. The only valid value is: ACCOUNT. Setting this attribute lists all the account-level (i.e. global) privileges that have been granted to roles.
	Account *bool `pulumi:"account"`
	// Name of object to list privileges on
	ObjectName *string `pulumi:"objectName"`
	// Type of object to list privileges on.
	ObjectType *string `pulumi:"objectType"`
}

type GetGrantsGrantsOnArgs added in v0.15.0

type GetGrantsGrantsOnArgs struct {
	// Object hierarchy to list privileges on. The only valid value is: ACCOUNT. Setting this attribute lists all the account-level (i.e. global) privileges that have been granted to roles.
	Account pulumi.BoolPtrInput `pulumi:"account"`
	// Name of object to list privileges on
	ObjectName pulumi.StringPtrInput `pulumi:"objectName"`
	// Type of object to list privileges on.
	ObjectType pulumi.StringPtrInput `pulumi:"objectType"`
}

func (GetGrantsGrantsOnArgs) ElementType added in v0.15.0

func (GetGrantsGrantsOnArgs) ElementType() reflect.Type

func (GetGrantsGrantsOnArgs) ToGetGrantsGrantsOnOutput added in v0.15.0

func (i GetGrantsGrantsOnArgs) ToGetGrantsGrantsOnOutput() GetGrantsGrantsOnOutput

func (GetGrantsGrantsOnArgs) ToGetGrantsGrantsOnOutputWithContext added in v0.15.0

func (i GetGrantsGrantsOnArgs) ToGetGrantsGrantsOnOutputWithContext(ctx context.Context) GetGrantsGrantsOnOutput

func (GetGrantsGrantsOnArgs) ToGetGrantsGrantsOnPtrOutput added in v0.15.0

func (i GetGrantsGrantsOnArgs) ToGetGrantsGrantsOnPtrOutput() GetGrantsGrantsOnPtrOutput

func (GetGrantsGrantsOnArgs) ToGetGrantsGrantsOnPtrOutputWithContext added in v0.15.0

func (i GetGrantsGrantsOnArgs) ToGetGrantsGrantsOnPtrOutputWithContext(ctx context.Context) GetGrantsGrantsOnPtrOutput

type GetGrantsGrantsOnInput added in v0.15.0

type GetGrantsGrantsOnInput interface {
	pulumi.Input

	ToGetGrantsGrantsOnOutput() GetGrantsGrantsOnOutput
	ToGetGrantsGrantsOnOutputWithContext(context.Context) GetGrantsGrantsOnOutput
}

GetGrantsGrantsOnInput is an input type that accepts GetGrantsGrantsOnArgs and GetGrantsGrantsOnOutput values. You can construct a concrete instance of `GetGrantsGrantsOnInput` via:

GetGrantsGrantsOnArgs{...}

type GetGrantsGrantsOnOutput added in v0.15.0

type GetGrantsGrantsOnOutput struct{ *pulumi.OutputState }

func (GetGrantsGrantsOnOutput) Account added in v0.15.0

Object hierarchy to list privileges on. The only valid value is: ACCOUNT. Setting this attribute lists all the account-level (i.e. global) privileges that have been granted to roles.

func (GetGrantsGrantsOnOutput) ElementType added in v0.15.0

func (GetGrantsGrantsOnOutput) ElementType() reflect.Type

func (GetGrantsGrantsOnOutput) ObjectName added in v0.15.0

Name of object to list privileges on

func (GetGrantsGrantsOnOutput) ObjectType added in v0.15.0

Type of object to list privileges on.

func (GetGrantsGrantsOnOutput) ToGetGrantsGrantsOnOutput added in v0.15.0

func (o GetGrantsGrantsOnOutput) ToGetGrantsGrantsOnOutput() GetGrantsGrantsOnOutput

func (GetGrantsGrantsOnOutput) ToGetGrantsGrantsOnOutputWithContext added in v0.15.0

func (o GetGrantsGrantsOnOutput) ToGetGrantsGrantsOnOutputWithContext(ctx context.Context) GetGrantsGrantsOnOutput

func (GetGrantsGrantsOnOutput) ToGetGrantsGrantsOnPtrOutput added in v0.15.0

func (o GetGrantsGrantsOnOutput) ToGetGrantsGrantsOnPtrOutput() GetGrantsGrantsOnPtrOutput

func (GetGrantsGrantsOnOutput) ToGetGrantsGrantsOnPtrOutputWithContext added in v0.15.0

func (o GetGrantsGrantsOnOutput) ToGetGrantsGrantsOnPtrOutputWithContext(ctx context.Context) GetGrantsGrantsOnPtrOutput

type GetGrantsGrantsOnPtrInput added in v0.15.0

type GetGrantsGrantsOnPtrInput interface {
	pulumi.Input

	ToGetGrantsGrantsOnPtrOutput() GetGrantsGrantsOnPtrOutput
	ToGetGrantsGrantsOnPtrOutputWithContext(context.Context) GetGrantsGrantsOnPtrOutput
}

GetGrantsGrantsOnPtrInput is an input type that accepts GetGrantsGrantsOnArgs, GetGrantsGrantsOnPtr and GetGrantsGrantsOnPtrOutput values. You can construct a concrete instance of `GetGrantsGrantsOnPtrInput` via:

        GetGrantsGrantsOnArgs{...}

or:

        nil

func GetGrantsGrantsOnPtr added in v0.15.0

func GetGrantsGrantsOnPtr(v *GetGrantsGrantsOnArgs) GetGrantsGrantsOnPtrInput

type GetGrantsGrantsOnPtrOutput added in v0.15.0

type GetGrantsGrantsOnPtrOutput struct{ *pulumi.OutputState }

func (GetGrantsGrantsOnPtrOutput) Account added in v0.15.0

Object hierarchy to list privileges on. The only valid value is: ACCOUNT. Setting this attribute lists all the account-level (i.e. global) privileges that have been granted to roles.

func (GetGrantsGrantsOnPtrOutput) Elem added in v0.15.0

func (GetGrantsGrantsOnPtrOutput) ElementType added in v0.15.0

func (GetGrantsGrantsOnPtrOutput) ElementType() reflect.Type

func (GetGrantsGrantsOnPtrOutput) ObjectName added in v0.15.0

Name of object to list privileges on

func (GetGrantsGrantsOnPtrOutput) ObjectType added in v0.15.0

Type of object to list privileges on.

func (GetGrantsGrantsOnPtrOutput) ToGetGrantsGrantsOnPtrOutput added in v0.15.0

func (o GetGrantsGrantsOnPtrOutput) ToGetGrantsGrantsOnPtrOutput() GetGrantsGrantsOnPtrOutput

func (GetGrantsGrantsOnPtrOutput) ToGetGrantsGrantsOnPtrOutputWithContext added in v0.15.0

func (o GetGrantsGrantsOnPtrOutput) ToGetGrantsGrantsOnPtrOutputWithContext(ctx context.Context) GetGrantsGrantsOnPtrOutput

type GetGrantsGrantsTo added in v0.15.0

type GetGrantsGrantsTo struct {
	// Lists all privileges and roles granted to the role
	Role *string `pulumi:"role"`
	// Lists all the privileges granted to the share
	Share *string `pulumi:"share"`
	// Lists all the roles granted to the user. Note that the PUBLIC role, which is automatically available to every user, is not listed
	User *string `pulumi:"user"`
}

type GetGrantsGrantsToArgs added in v0.15.0

type GetGrantsGrantsToArgs struct {
	// Lists all privileges and roles granted to the role
	Role pulumi.StringPtrInput `pulumi:"role"`
	// Lists all the privileges granted to the share
	Share pulumi.StringPtrInput `pulumi:"share"`
	// Lists all the roles granted to the user. Note that the PUBLIC role, which is automatically available to every user, is not listed
	User pulumi.StringPtrInput `pulumi:"user"`
}

func (GetGrantsGrantsToArgs) ElementType added in v0.15.0

func (GetGrantsGrantsToArgs) ElementType() reflect.Type

func (GetGrantsGrantsToArgs) ToGetGrantsGrantsToOutput added in v0.15.0

func (i GetGrantsGrantsToArgs) ToGetGrantsGrantsToOutput() GetGrantsGrantsToOutput

func (GetGrantsGrantsToArgs) ToGetGrantsGrantsToOutputWithContext added in v0.15.0

func (i GetGrantsGrantsToArgs) ToGetGrantsGrantsToOutputWithContext(ctx context.Context) GetGrantsGrantsToOutput

func (GetGrantsGrantsToArgs) ToGetGrantsGrantsToPtrOutput added in v0.15.0

func (i GetGrantsGrantsToArgs) ToGetGrantsGrantsToPtrOutput() GetGrantsGrantsToPtrOutput

func (GetGrantsGrantsToArgs) ToGetGrantsGrantsToPtrOutputWithContext added in v0.15.0

func (i GetGrantsGrantsToArgs) ToGetGrantsGrantsToPtrOutputWithContext(ctx context.Context) GetGrantsGrantsToPtrOutput

type GetGrantsGrantsToInput added in v0.15.0

type GetGrantsGrantsToInput interface {
	pulumi.Input

	ToGetGrantsGrantsToOutput() GetGrantsGrantsToOutput
	ToGetGrantsGrantsToOutputWithContext(context.Context) GetGrantsGrantsToOutput
}

GetGrantsGrantsToInput is an input type that accepts GetGrantsGrantsToArgs and GetGrantsGrantsToOutput values. You can construct a concrete instance of `GetGrantsGrantsToInput` via:

GetGrantsGrantsToArgs{...}

type GetGrantsGrantsToOutput added in v0.15.0

type GetGrantsGrantsToOutput struct{ *pulumi.OutputState }

func (GetGrantsGrantsToOutput) ElementType added in v0.15.0

func (GetGrantsGrantsToOutput) ElementType() reflect.Type

func (GetGrantsGrantsToOutput) Role added in v0.15.0

Lists all privileges and roles granted to the role

func (GetGrantsGrantsToOutput) Share added in v0.15.0

Lists all the privileges granted to the share

func (GetGrantsGrantsToOutput) ToGetGrantsGrantsToOutput added in v0.15.0

func (o GetGrantsGrantsToOutput) ToGetGrantsGrantsToOutput() GetGrantsGrantsToOutput

func (GetGrantsGrantsToOutput) ToGetGrantsGrantsToOutputWithContext added in v0.15.0

func (o GetGrantsGrantsToOutput) ToGetGrantsGrantsToOutputWithContext(ctx context.Context) GetGrantsGrantsToOutput

func (GetGrantsGrantsToOutput) ToGetGrantsGrantsToPtrOutput added in v0.15.0

func (o GetGrantsGrantsToOutput) ToGetGrantsGrantsToPtrOutput() GetGrantsGrantsToPtrOutput

func (GetGrantsGrantsToOutput) ToGetGrantsGrantsToPtrOutputWithContext added in v0.15.0

func (o GetGrantsGrantsToOutput) ToGetGrantsGrantsToPtrOutputWithContext(ctx context.Context) GetGrantsGrantsToPtrOutput

func (GetGrantsGrantsToOutput) User added in v0.15.0

Lists all the roles granted to the user. Note that the PUBLIC role, which is automatically available to every user, is not listed

type GetGrantsGrantsToPtrInput added in v0.15.0

type GetGrantsGrantsToPtrInput interface {
	pulumi.Input

	ToGetGrantsGrantsToPtrOutput() GetGrantsGrantsToPtrOutput
	ToGetGrantsGrantsToPtrOutputWithContext(context.Context) GetGrantsGrantsToPtrOutput
}

GetGrantsGrantsToPtrInput is an input type that accepts GetGrantsGrantsToArgs, GetGrantsGrantsToPtr and GetGrantsGrantsToPtrOutput values. You can construct a concrete instance of `GetGrantsGrantsToPtrInput` via:

        GetGrantsGrantsToArgs{...}

or:

        nil

func GetGrantsGrantsToPtr added in v0.15.0

func GetGrantsGrantsToPtr(v *GetGrantsGrantsToArgs) GetGrantsGrantsToPtrInput

type GetGrantsGrantsToPtrOutput added in v0.15.0

type GetGrantsGrantsToPtrOutput struct{ *pulumi.OutputState }

func (GetGrantsGrantsToPtrOutput) Elem added in v0.15.0

func (GetGrantsGrantsToPtrOutput) ElementType added in v0.15.0

func (GetGrantsGrantsToPtrOutput) ElementType() reflect.Type

func (GetGrantsGrantsToPtrOutput) Role added in v0.15.0

Lists all privileges and roles granted to the role

func (GetGrantsGrantsToPtrOutput) Share added in v0.15.0

Lists all the privileges granted to the share

func (GetGrantsGrantsToPtrOutput) ToGetGrantsGrantsToPtrOutput added in v0.15.0

func (o GetGrantsGrantsToPtrOutput) ToGetGrantsGrantsToPtrOutput() GetGrantsGrantsToPtrOutput

func (GetGrantsGrantsToPtrOutput) ToGetGrantsGrantsToPtrOutputWithContext added in v0.15.0

func (o GetGrantsGrantsToPtrOutput) ToGetGrantsGrantsToPtrOutputWithContext(ctx context.Context) GetGrantsGrantsToPtrOutput

func (GetGrantsGrantsToPtrOutput) User added in v0.15.0

Lists all the roles granted to the user. Note that the PUBLIC role, which is automatically available to every user, is not listed

type GetGrantsOutputArgs added in v0.15.0

type GetGrantsOutputArgs struct {
	// Lists all privileges on new (i.e. future) objects
	FutureGrantsIn GetGrantsFutureGrantsInPtrInput `pulumi:"futureGrantsIn"`
	// Lists all privileges granted to the object on new (i.e. future) objects
	FutureGrantsTo GetGrantsFutureGrantsToPtrInput `pulumi:"futureGrantsTo"`
	// Lists all objects to which the given object has been granted
	GrantsOf GetGrantsGrantsOfPtrInput `pulumi:"grantsOf"`
	// Lists all privileges that have been granted on an object or account
	GrantsOn GetGrantsGrantsOnPtrInput `pulumi:"grantsOn"`
	// Lists all privileges granted to the object
	GrantsTo GetGrantsGrantsToPtrInput `pulumi:"grantsTo"`
}

A collection of arguments for invoking getGrants.

func (GetGrantsOutputArgs) ElementType added in v0.15.0

func (GetGrantsOutputArgs) ElementType() reflect.Type

type GetGrantsResult added in v0.15.0

type GetGrantsResult struct {
	// Lists all privileges on new (i.e. future) objects
	FutureGrantsIn *GetGrantsFutureGrantsIn `pulumi:"futureGrantsIn"`
	// Lists all privileges granted to the object on new (i.e. future) objects
	FutureGrantsTo *GetGrantsFutureGrantsTo `pulumi:"futureGrantsTo"`
	// The list of grants
	Grants []GetGrantsGrant `pulumi:"grants"`
	// Lists all objects to which the given object has been granted
	GrantsOf *GetGrantsGrantsOf `pulumi:"grantsOf"`
	// Lists all privileges that have been granted on an object or account
	GrantsOn *GetGrantsGrantsOn `pulumi:"grantsOn"`
	// Lists all privileges granted to the object
	GrantsTo *GetGrantsGrantsTo `pulumi:"grantsTo"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
}

A collection of values returned by getGrants.

func GetGrants added in v0.15.0

func GetGrants(ctx *pulumi.Context, args *GetGrantsArgs, opts ...pulumi.InvokeOption) (*GetGrantsResult, error)

## Example Usage

```go 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.GetGrants(ctx, &snowflake.GetGrantsArgs{
			GrantsOn: snowflake.GetGrantsGrantsOn{
				Account: pulumi.BoolRef(true),
			},
		}, nil)
		if err != nil {
			return err
		}
		_, err = snowflake.GetGrants(ctx, &snowflake.GetGrantsArgs{
			GrantsOn: snowflake.GetGrantsGrantsOn{
				ObjectName: pulumi.StringRef("\"tst\""),
				ObjectType: pulumi.StringRef("DATABASE"),
			},
		}, nil)
		if err != nil {
			return err
		}
		_, err = snowflake.GetGrants(ctx, &snowflake.GetGrantsArgs{
			GrantsTo: snowflake.GetGrantsGrantsTo{
				Role: pulumi.StringRef("ACCOUNTADMIN"),
			},
		}, nil)
		if err != nil {
			return err
		}
		_, err = snowflake.GetGrants(ctx, &snowflake.GetGrantsArgs{
			GrantsOf: snowflake.GetGrantsGrantsOf{
				Role: pulumi.StringRef("ACCOUNTADMIN"),
			},
		}, nil)
		if err != nil {
			return err
		}
		_, err = snowflake.GetGrants(ctx, &snowflake.GetGrantsArgs{
			FutureGrantsIn: snowflake.GetGrantsFutureGrantsIn{
				Database: pulumi.StringRef("\"tst\""),
			},
		}, nil)
		if err != nil {
			return err
		}
		_, err = snowflake.GetGrants(ctx, &snowflake.GetGrantsArgs{
			FutureGrantsIn: snowflake.GetGrantsFutureGrantsIn{
				Schema: snowflake.GetGrantsFutureGrantsInSchema{
					DatabaseName: pulumi.StringRef("\"mydatabase\""),
					SchemaName:   "\"myschema\"",
				},
			},
		}, nil)
		if err != nil {
			return err
		}
		_, err = snowflake.GetGrants(ctx, &snowflake.GetGrantsArgs{
			FutureGrantsTo: snowflake.GetGrantsFutureGrantsTo{
				Role: "ACCOUNTADMIN",
			},
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetGrantsResultOutput added in v0.15.0

type GetGrantsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getGrants.

func GetGrantsOutput added in v0.15.0

func GetGrantsOutput(ctx *pulumi.Context, args GetGrantsOutputArgs, opts ...pulumi.InvokeOption) GetGrantsResultOutput

func (GetGrantsResultOutput) ElementType added in v0.15.0

func (GetGrantsResultOutput) ElementType() reflect.Type

func (GetGrantsResultOutput) FutureGrantsIn added in v0.15.0

Lists all privileges on new (i.e. future) objects

func (GetGrantsResultOutput) FutureGrantsTo added in v0.15.0

Lists all privileges granted to the object on new (i.e. future) objects

func (GetGrantsResultOutput) Grants added in v0.15.0

The list of grants

func (GetGrantsResultOutput) GrantsOf added in v0.15.0

Lists all objects to which the given object has been granted

func (GetGrantsResultOutput) GrantsOn added in v0.15.0

Lists all privileges that have been granted on an object or account

func (GetGrantsResultOutput) GrantsTo added in v0.15.0

Lists all privileges granted to the object

func (GetGrantsResultOutput) Id added in v0.15.0

The provider-assigned unique ID for this managed resource.

func (GetGrantsResultOutput) ToGetGrantsResultOutput added in v0.15.0

func (o GetGrantsResultOutput) ToGetGrantsResultOutput() GetGrantsResultOutput

func (GetGrantsResultOutput) ToGetGrantsResultOutputWithContext added in v0.15.0

func (o GetGrantsResultOutput) ToGetGrantsResultOutputWithContext(ctx context.Context) GetGrantsResultOutput

type GetMaskingPoliciesArgs added in v0.1.3

type GetMaskingPoliciesArgs struct {
	// The database from which to return the schemas from.
	Database string `pulumi:"database"`
	// The schema from which to return the maskingPolicies from.
	Schema string `pulumi:"schema"`
}

A collection of arguments for invoking getMaskingPolicies.

type GetMaskingPoliciesMaskingPolicy added in v0.1.3

type GetMaskingPoliciesMaskingPolicy struct {
	Comment string `pulumi:"comment"`
	// The database from which to return the schemas from.
	Database string `pulumi:"database"`
	Kind     string `pulumi:"kind"`
	Name     string `pulumi:"name"`
	// The schema from which to return the maskingPolicies from.
	Schema string `pulumi:"schema"`
}

type GetMaskingPoliciesMaskingPolicyArgs added in v0.1.3

type GetMaskingPoliciesMaskingPolicyArgs struct {
	Comment pulumi.StringInput `pulumi:"comment"`
	// The database from which to return the schemas from.
	Database pulumi.StringInput `pulumi:"database"`
	Kind     pulumi.StringInput `pulumi:"kind"`
	Name     pulumi.StringInput `pulumi:"name"`
	// The schema from which to return the maskingPolicies from.
	Schema pulumi.StringInput `pulumi:"schema"`
}

func (GetMaskingPoliciesMaskingPolicyArgs) ElementType added in v0.1.3

func (GetMaskingPoliciesMaskingPolicyArgs) ToGetMaskingPoliciesMaskingPolicyOutput added in v0.1.3

func (i GetMaskingPoliciesMaskingPolicyArgs) ToGetMaskingPoliciesMaskingPolicyOutput() GetMaskingPoliciesMaskingPolicyOutput

func (GetMaskingPoliciesMaskingPolicyArgs) ToGetMaskingPoliciesMaskingPolicyOutputWithContext added in v0.1.3

func (i GetMaskingPoliciesMaskingPolicyArgs) ToGetMaskingPoliciesMaskingPolicyOutputWithContext(ctx context.Context) GetMaskingPoliciesMaskingPolicyOutput

type GetMaskingPoliciesMaskingPolicyArray added in v0.1.3

type GetMaskingPoliciesMaskingPolicyArray []GetMaskingPoliciesMaskingPolicyInput

func (GetMaskingPoliciesMaskingPolicyArray) ElementType added in v0.1.3

func (GetMaskingPoliciesMaskingPolicyArray) ToGetMaskingPoliciesMaskingPolicyArrayOutput added in v0.1.3

func (i GetMaskingPoliciesMaskingPolicyArray) ToGetMaskingPoliciesMaskingPolicyArrayOutput() GetMaskingPoliciesMaskingPolicyArrayOutput

func (GetMaskingPoliciesMaskingPolicyArray) ToGetMaskingPoliciesMaskingPolicyArrayOutputWithContext added in v0.1.3

func (i GetMaskingPoliciesMaskingPolicyArray) ToGetMaskingPoliciesMaskingPolicyArrayOutputWithContext(ctx context.Context) GetMaskingPoliciesMaskingPolicyArrayOutput

type GetMaskingPoliciesMaskingPolicyArrayInput added in v0.1.3

type GetMaskingPoliciesMaskingPolicyArrayInput interface {
	pulumi.Input

	ToGetMaskingPoliciesMaskingPolicyArrayOutput() GetMaskingPoliciesMaskingPolicyArrayOutput
	ToGetMaskingPoliciesMaskingPolicyArrayOutputWithContext(context.Context) GetMaskingPoliciesMaskingPolicyArrayOutput
}

GetMaskingPoliciesMaskingPolicyArrayInput is an input type that accepts GetMaskingPoliciesMaskingPolicyArray and GetMaskingPoliciesMaskingPolicyArrayOutput values. You can construct a concrete instance of `GetMaskingPoliciesMaskingPolicyArrayInput` via:

GetMaskingPoliciesMaskingPolicyArray{ GetMaskingPoliciesMaskingPolicyArgs{...} }

type GetMaskingPoliciesMaskingPolicyArrayOutput added in v0.1.3

type GetMaskingPoliciesMaskingPolicyArrayOutput struct{ *pulumi.OutputState }

func (GetMaskingPoliciesMaskingPolicyArrayOutput) ElementType added in v0.1.3

func (GetMaskingPoliciesMaskingPolicyArrayOutput) Index added in v0.1.3

func (GetMaskingPoliciesMaskingPolicyArrayOutput) ToGetMaskingPoliciesMaskingPolicyArrayOutput added in v0.1.3

func (o GetMaskingPoliciesMaskingPolicyArrayOutput) ToGetMaskingPoliciesMaskingPolicyArrayOutput() GetMaskingPoliciesMaskingPolicyArrayOutput

func (GetMaskingPoliciesMaskingPolicyArrayOutput) ToGetMaskingPoliciesMaskingPolicyArrayOutputWithContext added in v0.1.3

func (o GetMaskingPoliciesMaskingPolicyArrayOutput) ToGetMaskingPoliciesMaskingPolicyArrayOutputWithContext(ctx context.Context) GetMaskingPoliciesMaskingPolicyArrayOutput

type GetMaskingPoliciesMaskingPolicyInput added in v0.1.3

type GetMaskingPoliciesMaskingPolicyInput interface {
	pulumi.Input

	ToGetMaskingPoliciesMaskingPolicyOutput() GetMaskingPoliciesMaskingPolicyOutput
	ToGetMaskingPoliciesMaskingPolicyOutputWithContext(context.Context) GetMaskingPoliciesMaskingPolicyOutput
}

GetMaskingPoliciesMaskingPolicyInput is an input type that accepts GetMaskingPoliciesMaskingPolicyArgs and GetMaskingPoliciesMaskingPolicyOutput values. You can construct a concrete instance of `GetMaskingPoliciesMaskingPolicyInput` via:

GetMaskingPoliciesMaskingPolicyArgs{...}

type GetMaskingPoliciesMaskingPolicyOutput added in v0.1.3

type GetMaskingPoliciesMaskingPolicyOutput struct{ *pulumi.OutputState }

func (GetMaskingPoliciesMaskingPolicyOutput) Comment added in v0.1.3

func (GetMaskingPoliciesMaskingPolicyOutput) Database added in v0.1.3

The database from which to return the schemas from.

func (GetMaskingPoliciesMaskingPolicyOutput) ElementType added in v0.1.3

func (GetMaskingPoliciesMaskingPolicyOutput) Kind added in v0.1.3

func (GetMaskingPoliciesMaskingPolicyOutput) Name added in v0.1.3

func (GetMaskingPoliciesMaskingPolicyOutput) Schema added in v0.1.3

The schema from which to return the maskingPolicies from.

func (GetMaskingPoliciesMaskingPolicyOutput) ToGetMaskingPoliciesMaskingPolicyOutput added in v0.1.3

func (o GetMaskingPoliciesMaskingPolicyOutput) ToGetMaskingPoliciesMaskingPolicyOutput() GetMaskingPoliciesMaskingPolicyOutput

func (GetMaskingPoliciesMaskingPolicyOutput) ToGetMaskingPoliciesMaskingPolicyOutputWithContext added in v0.1.3

func (o GetMaskingPoliciesMaskingPolicyOutput) ToGetMaskingPoliciesMaskingPolicyOutputWithContext(ctx context.Context) GetMaskingPoliciesMaskingPolicyOutput

type GetMaskingPoliciesOutputArgs added in v0.2.0

type GetMaskingPoliciesOutputArgs struct {
	// The database from which to return the schemas from.
	Database pulumi.StringInput `pulumi:"database"`
	// The schema from which to return the maskingPolicies from.
	Schema pulumi.StringInput `pulumi:"schema"`
}

A collection of arguments for invoking getMaskingPolicies.

func (GetMaskingPoliciesOutputArgs) ElementType added in v0.2.0

type GetMaskingPoliciesResult added in v0.1.3

type GetMaskingPoliciesResult struct {
	// The database from which to return the schemas from.
	Database string `pulumi:"database"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The maskingPolicies in the schema
	MaskingPolicies []GetMaskingPoliciesMaskingPolicy `pulumi:"maskingPolicies"`
	// The schema from which to return the maskingPolicies from.
	Schema string `pulumi:"schema"`
}

A collection of values returned by getMaskingPolicies.

func GetMaskingPolicies added in v0.1.3

func GetMaskingPolicies(ctx *pulumi.Context, args *GetMaskingPoliciesArgs, opts ...pulumi.InvokeOption) (*GetMaskingPoliciesResult, error)

## Example Usage

```go 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.GetMaskingPolicies(ctx, &snowflake.GetMaskingPoliciesArgs{
			Database: "MYDB",
			Schema:   "MYSCHEMA",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetMaskingPoliciesResultOutput added in v0.2.0

type GetMaskingPoliciesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getMaskingPolicies.

func GetMaskingPoliciesOutput added in v0.2.0

func (GetMaskingPoliciesResultOutput) Database added in v0.2.0

The database from which to return the schemas from.

func (GetMaskingPoliciesResultOutput) ElementType added in v0.2.0

func (GetMaskingPoliciesResultOutput) Id added in v0.2.0

The provider-assigned unique ID for this managed resource.

func (GetMaskingPoliciesResultOutput) MaskingPolicies added in v0.2.0

The maskingPolicies in the schema

func (GetMaskingPoliciesResultOutput) Schema added in v0.2.0

The schema from which to return the maskingPolicies from.

func (GetMaskingPoliciesResultOutput) ToGetMaskingPoliciesResultOutput added in v0.2.0

func (o GetMaskingPoliciesResultOutput) ToGetMaskingPoliciesResultOutput() GetMaskingPoliciesResultOutput

func (GetMaskingPoliciesResultOutput) ToGetMaskingPoliciesResultOutputWithContext added in v0.2.0

func (o GetMaskingPoliciesResultOutput) ToGetMaskingPoliciesResultOutputWithContext(ctx context.Context) GetMaskingPoliciesResultOutput

type GetMaterializedViewsArgs added in v0.1.2

type GetMaterializedViewsArgs struct {
	// The database from which to return the schemas from.
	Database string `pulumi:"database"`
	// The schema from which to return the views from.
	Schema string `pulumi:"schema"`
}

A collection of arguments for invoking getMaterializedViews.

type GetMaterializedViewsMaterializedView added in v0.1.2

type GetMaterializedViewsMaterializedView struct {
	Comment string `pulumi:"comment"`
	// The database from which to return the schemas from.
	Database string `pulumi:"database"`
	Name     string `pulumi:"name"`
	// The schema from which to return the views from.
	Schema string `pulumi:"schema"`
}

type GetMaterializedViewsMaterializedViewArgs added in v0.1.2

type GetMaterializedViewsMaterializedViewArgs struct {
	Comment pulumi.StringInput `pulumi:"comment"`
	// The database from which to return the schemas from.
	Database pulumi.StringInput `pulumi:"database"`
	Name     pulumi.StringInput `pulumi:"name"`
	// The schema from which to return the views from.
	Schema pulumi.StringInput `pulumi:"schema"`
}

func (GetMaterializedViewsMaterializedViewArgs) ElementType added in v0.1.2

func (GetMaterializedViewsMaterializedViewArgs) ToGetMaterializedViewsMaterializedViewOutput added in v0.1.2

func (i GetMaterializedViewsMaterializedViewArgs) ToGetMaterializedViewsMaterializedViewOutput() GetMaterializedViewsMaterializedViewOutput

func (GetMaterializedViewsMaterializedViewArgs) ToGetMaterializedViewsMaterializedViewOutputWithContext added in v0.1.2

func (i GetMaterializedViewsMaterializedViewArgs) ToGetMaterializedViewsMaterializedViewOutputWithContext(ctx context.Context) GetMaterializedViewsMaterializedViewOutput

type GetMaterializedViewsMaterializedViewArray added in v0.1.2

type GetMaterializedViewsMaterializedViewArray []GetMaterializedViewsMaterializedViewInput

func (GetMaterializedViewsMaterializedViewArray) ElementType added in v0.1.2

func (GetMaterializedViewsMaterializedViewArray) ToGetMaterializedViewsMaterializedViewArrayOutput added in v0.1.2

func (i GetMaterializedViewsMaterializedViewArray) ToGetMaterializedViewsMaterializedViewArrayOutput() GetMaterializedViewsMaterializedViewArrayOutput

func (GetMaterializedViewsMaterializedViewArray) ToGetMaterializedViewsMaterializedViewArrayOutputWithContext added in v0.1.2

func (i GetMaterializedViewsMaterializedViewArray) ToGetMaterializedViewsMaterializedViewArrayOutputWithContext(ctx context.Context) GetMaterializedViewsMaterializedViewArrayOutput

type GetMaterializedViewsMaterializedViewArrayInput added in v0.1.2

type GetMaterializedViewsMaterializedViewArrayInput interface {
	pulumi.Input

	ToGetMaterializedViewsMaterializedViewArrayOutput() GetMaterializedViewsMaterializedViewArrayOutput
	ToGetMaterializedViewsMaterializedViewArrayOutputWithContext(context.Context) GetMaterializedViewsMaterializedViewArrayOutput
}

GetMaterializedViewsMaterializedViewArrayInput is an input type that accepts GetMaterializedViewsMaterializedViewArray and GetMaterializedViewsMaterializedViewArrayOutput values. You can construct a concrete instance of `GetMaterializedViewsMaterializedViewArrayInput` via:

GetMaterializedViewsMaterializedViewArray{ GetMaterializedViewsMaterializedViewArgs{...} }

type GetMaterializedViewsMaterializedViewArrayOutput added in v0.1.2

type GetMaterializedViewsMaterializedViewArrayOutput struct{ *pulumi.OutputState }

func (GetMaterializedViewsMaterializedViewArrayOutput) ElementType added in v0.1.2

func (GetMaterializedViewsMaterializedViewArrayOutput) Index added in v0.1.2

func (GetMaterializedViewsMaterializedViewArrayOutput) ToGetMaterializedViewsMaterializedViewArrayOutput added in v0.1.2

func (o GetMaterializedViewsMaterializedViewArrayOutput) ToGetMaterializedViewsMaterializedViewArrayOutput() GetMaterializedViewsMaterializedViewArrayOutput

func (GetMaterializedViewsMaterializedViewArrayOutput) ToGetMaterializedViewsMaterializedViewArrayOutputWithContext added in v0.1.2

func (o GetMaterializedViewsMaterializedViewArrayOutput) ToGetMaterializedViewsMaterializedViewArrayOutputWithContext(ctx context.Context) GetMaterializedViewsMaterializedViewArrayOutput

type GetMaterializedViewsMaterializedViewInput added in v0.1.2

type GetMaterializedViewsMaterializedViewInput interface {
	pulumi.Input

	ToGetMaterializedViewsMaterializedViewOutput() GetMaterializedViewsMaterializedViewOutput
	ToGetMaterializedViewsMaterializedViewOutputWithContext(context.Context) GetMaterializedViewsMaterializedViewOutput
}

GetMaterializedViewsMaterializedViewInput is an input type that accepts GetMaterializedViewsMaterializedViewArgs and GetMaterializedViewsMaterializedViewOutput values. You can construct a concrete instance of `GetMaterializedViewsMaterializedViewInput` via:

GetMaterializedViewsMaterializedViewArgs{...}

type GetMaterializedViewsMaterializedViewOutput added in v0.1.2

type GetMaterializedViewsMaterializedViewOutput struct{ *pulumi.OutputState }

func (GetMaterializedViewsMaterializedViewOutput) Comment added in v0.1.2

func (GetMaterializedViewsMaterializedViewOutput) Database added in v0.1.2

The database from which to return the schemas from.

func (GetMaterializedViewsMaterializedViewOutput) ElementType added in v0.1.2

func (GetMaterializedViewsMaterializedViewOutput) Name added in v0.1.2

func (GetMaterializedViewsMaterializedViewOutput) Schema added in v0.1.2

The schema from which to return the views from.

func (GetMaterializedViewsMaterializedViewOutput) ToGetMaterializedViewsMaterializedViewOutput added in v0.1.2

func (o GetMaterializedViewsMaterializedViewOutput) ToGetMaterializedViewsMaterializedViewOutput() GetMaterializedViewsMaterializedViewOutput

func (GetMaterializedViewsMaterializedViewOutput) ToGetMaterializedViewsMaterializedViewOutputWithContext added in v0.1.2

func (o GetMaterializedViewsMaterializedViewOutput) ToGetMaterializedViewsMaterializedViewOutputWithContext(ctx context.Context) GetMaterializedViewsMaterializedViewOutput

type GetMaterializedViewsOutputArgs added in v0.2.0

type GetMaterializedViewsOutputArgs struct {
	// The database from which to return the schemas from.
	Database pulumi.StringInput `pulumi:"database"`
	// The schema from which to return the views from.
	Schema pulumi.StringInput `pulumi:"schema"`
}

A collection of arguments for invoking getMaterializedViews.

func (GetMaterializedViewsOutputArgs) ElementType added in v0.2.0

type GetMaterializedViewsResult added in v0.1.2

type GetMaterializedViewsResult struct {
	// The database from which to return the schemas from.
	Database string `pulumi:"database"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The views in the schema
	MaterializedViews []GetMaterializedViewsMaterializedView `pulumi:"materializedViews"`
	// The schema from which to return the views from.
	Schema string `pulumi:"schema"`
}

A collection of values returned by getMaterializedViews.

func GetMaterializedViews added in v0.1.2

func GetMaterializedViews(ctx *pulumi.Context, args *GetMaterializedViewsArgs, opts ...pulumi.InvokeOption) (*GetMaterializedViewsResult, error)

## Example Usage

```go 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.GetMaterializedViews(ctx, &snowflake.GetMaterializedViewsArgs{
			Database: "MYDB",
			Schema:   "MYSCHEMA",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetMaterializedViewsResultOutput added in v0.2.0

type GetMaterializedViewsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getMaterializedViews.

func GetMaterializedViewsOutput added in v0.2.0

func (GetMaterializedViewsResultOutput) Database added in v0.2.0

The database from which to return the schemas from.

func (GetMaterializedViewsResultOutput) ElementType added in v0.2.0

func (GetMaterializedViewsResultOutput) Id added in v0.2.0

The provider-assigned unique ID for this managed resource.

func (GetMaterializedViewsResultOutput) MaterializedViews added in v0.2.0

The views in the schema

func (GetMaterializedViewsResultOutput) Schema added in v0.2.0

The schema from which to return the views from.

func (GetMaterializedViewsResultOutput) ToGetMaterializedViewsResultOutput added in v0.2.0

func (o GetMaterializedViewsResultOutput) ToGetMaterializedViewsResultOutput() GetMaterializedViewsResultOutput

func (GetMaterializedViewsResultOutput) ToGetMaterializedViewsResultOutputWithContext added in v0.2.0

func (o GetMaterializedViewsResultOutput) ToGetMaterializedViewsResultOutputWithContext(ctx context.Context) GetMaterializedViewsResultOutput

type GetParametersArgs added in v0.16.0

type GetParametersArgs struct {
	// If parameter*type is set to "OBJECT" then object*name is the name of the object to display object parameters for.
	ObjectName *string `pulumi:"objectName"`
	// If parameter*type is set to "OBJECT" then object*type is the type of object to display object parameters for. Valid values are any object supported by the IN clause of the [SHOW PARAMETERS](https://docs.snowflake.com/en/sql-reference/sql/show-parameters.html#parameters) statement, including: WAREHOUSE | DATABASE | SCHEMA | TASK | TABLE
	ObjectType *string `pulumi:"objectType"`
	// The type of parameter to filter by. Valid values are: "ACCOUNT", "SESSION", "OBJECT".
	ParameterType *string `pulumi:"parameterType"`
	// Allows limiting the list of parameters by name using LIKE clause. Refer to [Limiting the List of Parameters by Name](https://docs.snowflake.com/en/sql-reference/parameters.html#limiting-the-list-of-parameters-by-name)
	Pattern *string `pulumi:"pattern"`
	// If parameterType is set to "SESSION" then user is the name of the user to display session parameters for.
	User *string `pulumi:"user"`
}

A collection of arguments for invoking getParameters.

type GetParametersOutputArgs added in v0.16.0

type GetParametersOutputArgs struct {
	// If parameter*type is set to "OBJECT" then object*name is the name of the object to display object parameters for.
	ObjectName pulumi.StringPtrInput `pulumi:"objectName"`
	// If parameter*type is set to "OBJECT" then object*type is the type of object to display object parameters for. Valid values are any object supported by the IN clause of the [SHOW PARAMETERS](https://docs.snowflake.com/en/sql-reference/sql/show-parameters.html#parameters) statement, including: WAREHOUSE | DATABASE | SCHEMA | TASK | TABLE
	ObjectType pulumi.StringPtrInput `pulumi:"objectType"`
	// The type of parameter to filter by. Valid values are: "ACCOUNT", "SESSION", "OBJECT".
	ParameterType pulumi.StringPtrInput `pulumi:"parameterType"`
	// Allows limiting the list of parameters by name using LIKE clause. Refer to [Limiting the List of Parameters by Name](https://docs.snowflake.com/en/sql-reference/parameters.html#limiting-the-list-of-parameters-by-name)
	Pattern pulumi.StringPtrInput `pulumi:"pattern"`
	// If parameterType is set to "SESSION" then user is the name of the user to display session parameters for.
	User pulumi.StringPtrInput `pulumi:"user"`
}

A collection of arguments for invoking getParameters.

func (GetParametersOutputArgs) ElementType added in v0.16.0

func (GetParametersOutputArgs) ElementType() reflect.Type

type GetParametersParameter added in v0.16.0

type GetParametersParameter struct {
	Default     string `pulumi:"default"`
	Description string `pulumi:"description"`
	Key         string `pulumi:"key"`
	Level       string `pulumi:"level"`
	Type        string `pulumi:"type"`
	Value       string `pulumi:"value"`
}

type GetParametersParameterArgs added in v0.16.0

type GetParametersParameterArgs struct {
	Default     pulumi.StringInput `pulumi:"default"`
	Description pulumi.StringInput `pulumi:"description"`
	Key         pulumi.StringInput `pulumi:"key"`
	Level       pulumi.StringInput `pulumi:"level"`
	Type        pulumi.StringInput `pulumi:"type"`
	Value       pulumi.StringInput `pulumi:"value"`
}

func (GetParametersParameterArgs) ElementType added in v0.16.0

func (GetParametersParameterArgs) ElementType() reflect.Type

func (GetParametersParameterArgs) ToGetParametersParameterOutput added in v0.16.0

func (i GetParametersParameterArgs) ToGetParametersParameterOutput() GetParametersParameterOutput

func (GetParametersParameterArgs) ToGetParametersParameterOutputWithContext added in v0.16.0

func (i GetParametersParameterArgs) ToGetParametersParameterOutputWithContext(ctx context.Context) GetParametersParameterOutput

type GetParametersParameterArray added in v0.16.0

type GetParametersParameterArray []GetParametersParameterInput

func (GetParametersParameterArray) ElementType added in v0.16.0

func (GetParametersParameterArray) ToGetParametersParameterArrayOutput added in v0.16.0

func (i GetParametersParameterArray) ToGetParametersParameterArrayOutput() GetParametersParameterArrayOutput

func (GetParametersParameterArray) ToGetParametersParameterArrayOutputWithContext added in v0.16.0

func (i GetParametersParameterArray) ToGetParametersParameterArrayOutputWithContext(ctx context.Context) GetParametersParameterArrayOutput

type GetParametersParameterArrayInput added in v0.16.0

type GetParametersParameterArrayInput interface {
	pulumi.Input

	ToGetParametersParameterArrayOutput() GetParametersParameterArrayOutput
	ToGetParametersParameterArrayOutputWithContext(context.Context) GetParametersParameterArrayOutput
}

GetParametersParameterArrayInput is an input type that accepts GetParametersParameterArray and GetParametersParameterArrayOutput values. You can construct a concrete instance of `GetParametersParameterArrayInput` via:

GetParametersParameterArray{ GetParametersParameterArgs{...} }

type GetParametersParameterArrayOutput added in v0.16.0

type GetParametersParameterArrayOutput struct{ *pulumi.OutputState }

func (GetParametersParameterArrayOutput) ElementType added in v0.16.0

func (GetParametersParameterArrayOutput) Index added in v0.16.0

func (GetParametersParameterArrayOutput) ToGetParametersParameterArrayOutput added in v0.16.0

func (o GetParametersParameterArrayOutput) ToGetParametersParameterArrayOutput() GetParametersParameterArrayOutput

func (GetParametersParameterArrayOutput) ToGetParametersParameterArrayOutputWithContext added in v0.16.0

func (o GetParametersParameterArrayOutput) ToGetParametersParameterArrayOutputWithContext(ctx context.Context) GetParametersParameterArrayOutput

type GetParametersParameterInput added in v0.16.0

type GetParametersParameterInput interface {
	pulumi.Input

	ToGetParametersParameterOutput() GetParametersParameterOutput
	ToGetParametersParameterOutputWithContext(context.Context) GetParametersParameterOutput
}

GetParametersParameterInput is an input type that accepts GetParametersParameterArgs and GetParametersParameterOutput values. You can construct a concrete instance of `GetParametersParameterInput` via:

GetParametersParameterArgs{...}

type GetParametersParameterOutput added in v0.16.0

type GetParametersParameterOutput struct{ *pulumi.OutputState }

func (GetParametersParameterOutput) Default added in v0.16.0

func (GetParametersParameterOutput) Description added in v0.16.0

func (GetParametersParameterOutput) ElementType added in v0.16.0

func (GetParametersParameterOutput) Key added in v0.16.0

func (GetParametersParameterOutput) Level added in v0.16.0

func (GetParametersParameterOutput) ToGetParametersParameterOutput added in v0.16.0

func (o GetParametersParameterOutput) ToGetParametersParameterOutput() GetParametersParameterOutput

func (GetParametersParameterOutput) ToGetParametersParameterOutputWithContext added in v0.16.0

func (o GetParametersParameterOutput) ToGetParametersParameterOutputWithContext(ctx context.Context) GetParametersParameterOutput

func (GetParametersParameterOutput) Type added in v0.16.0

func (GetParametersParameterOutput) Value added in v0.16.0

type GetParametersResult added in v0.16.0

type GetParametersResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// If parameter*type is set to "OBJECT" then object*name is the name of the object to display object parameters for.
	ObjectName *string `pulumi:"objectName"`
	// If parameter*type is set to "OBJECT" then object*type is the type of object to display object parameters for. Valid values are any object supported by the IN clause of the [SHOW PARAMETERS](https://docs.snowflake.com/en/sql-reference/sql/show-parameters.html#parameters) statement, including: WAREHOUSE | DATABASE | SCHEMA | TASK | TABLE
	ObjectType *string `pulumi:"objectType"`
	// The type of parameter to filter by. Valid values are: "ACCOUNT", "SESSION", "OBJECT".
	ParameterType *string `pulumi:"parameterType"`
	// The pipes in the schema
	Parameters []GetParametersParameter `pulumi:"parameters"`
	// Allows limiting the list of parameters by name using LIKE clause. Refer to [Limiting the List of Parameters by Name](https://docs.snowflake.com/en/sql-reference/parameters.html#limiting-the-list-of-parameters-by-name)
	Pattern *string `pulumi:"pattern"`
	// If parameterType is set to "SESSION" then user is the name of the user to display session parameters for.
	User *string `pulumi:"user"`
}

A collection of values returned by getParameters.

func GetParameters added in v0.16.0

func GetParameters(ctx *pulumi.Context, args *GetParametersArgs, opts ...pulumi.InvokeOption) (*GetParametersResult, error)

## Example Usage

```go 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 {
		database, err := snowflake.NewDatabase(ctx, "database", nil)
		if err != nil {
			return err
		}
		_ = snowflake.GetParametersOutput(ctx, snowflake.GetParametersOutputArgs{
			ParameterType: pulumi.String("OBJECT"),
			ObjectType:    pulumi.String("DATABASE"),
			ObjectName:    database.Name,
		}, nil)
		_, err = snowflake.GetParameters(ctx, &snowflake.GetParametersArgs{
			ParameterType: pulumi.StringRef("ACCOUNT"),
			Pattern:       pulumi.StringRef("%TIMESTAMP%"),
		}, nil)
		if err != nil {
			return err
		}
		_, err = snowflake.GetParameters(ctx, &snowflake.GetParametersArgs{
			ParameterType: pulumi.StringRef("SESSION"),
			Pattern:       pulumi.StringRef("ROWS_PER_RESULTSET"),
			User:          pulumi.StringRef("TEST_USER"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetParametersResultOutput added in v0.16.0

type GetParametersResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getParameters.

func GetParametersOutput added in v0.16.0

func GetParametersOutput(ctx *pulumi.Context, args GetParametersOutputArgs, opts ...pulumi.InvokeOption) GetParametersResultOutput

func (GetParametersResultOutput) ElementType added in v0.16.0

func (GetParametersResultOutput) ElementType() reflect.Type

func (GetParametersResultOutput) Id added in v0.16.0

The provider-assigned unique ID for this managed resource.

func (GetParametersResultOutput) ObjectName added in v0.16.0

If parameter*type is set to "OBJECT" then object*name is the name of the object to display object parameters for.

func (GetParametersResultOutput) ObjectType added in v0.16.0

If parameter*type is set to "OBJECT" then object*type is the type of object to display object parameters for. Valid values are any object supported by the IN clause of the [SHOW PARAMETERS](https://docs.snowflake.com/en/sql-reference/sql/show-parameters.html#parameters) statement, including: WAREHOUSE | DATABASE | SCHEMA | TASK | TABLE

func (GetParametersResultOutput) ParameterType added in v0.16.0

The type of parameter to filter by. Valid values are: "ACCOUNT", "SESSION", "OBJECT".

func (GetParametersResultOutput) Parameters added in v0.16.0

The pipes in the schema

func (GetParametersResultOutput) Pattern added in v0.16.0

Allows limiting the list of parameters by name using LIKE clause. Refer to [Limiting the List of Parameters by Name](https://docs.snowflake.com/en/sql-reference/parameters.html#limiting-the-list-of-parameters-by-name)

func (GetParametersResultOutput) ToGetParametersResultOutput added in v0.16.0

func (o GetParametersResultOutput) ToGetParametersResultOutput() GetParametersResultOutput

func (GetParametersResultOutput) ToGetParametersResultOutputWithContext added in v0.16.0

func (o GetParametersResultOutput) ToGetParametersResultOutputWithContext(ctx context.Context) GetParametersResultOutput

func (GetParametersResultOutput) User added in v0.21.0

If parameterType is set to "SESSION" then user is the name of the user to display session parameters for.

type GetPipesArgs added in v0.1.3

type GetPipesArgs struct {
	// The database from which to return the schemas from.
	Database string `pulumi:"database"`
	// The schema from which to return the pipes from.
	Schema string `pulumi:"schema"`
}

A collection of arguments for invoking getPipes.

type GetPipesOutputArgs added in v0.2.0

type GetPipesOutputArgs struct {
	// The database from which to return the schemas from.
	Database pulumi.StringInput `pulumi:"database"`
	// The schema from which to return the pipes from.
	Schema pulumi.StringInput `pulumi:"schema"`
}

A collection of arguments for invoking getPipes.

func (GetPipesOutputArgs) ElementType added in v0.2.0

func (GetPipesOutputArgs) ElementType() reflect.Type

type GetPipesPipe added in v0.1.3

type GetPipesPipe struct {
	Comment string `pulumi:"comment"`
	// The database from which to return the schemas from.
	Database    string `pulumi:"database"`
	Integration string `pulumi:"integration"`
	Name        string `pulumi:"name"`
	// The schema from which to return the pipes from.
	Schema string `pulumi:"schema"`
}

type GetPipesPipeArgs added in v0.1.3

type GetPipesPipeArgs struct {
	Comment pulumi.StringInput `pulumi:"comment"`
	// The database from which to return the schemas from.
	Database    pulumi.StringInput `pulumi:"database"`
	Integration pulumi.StringInput `pulumi:"integration"`
	Name        pulumi.StringInput `pulumi:"name"`
	// The schema from which to return the pipes from.
	Schema pulumi.StringInput `pulumi:"schema"`
}

func (GetPipesPipeArgs) ElementType added in v0.1.3

func (GetPipesPipeArgs) ElementType() reflect.Type

func (GetPipesPipeArgs) ToGetPipesPipeOutput added in v0.1.3

func (i GetPipesPipeArgs) ToGetPipesPipeOutput() GetPipesPipeOutput

func (GetPipesPipeArgs) ToGetPipesPipeOutputWithContext added in v0.1.3

func (i GetPipesPipeArgs) ToGetPipesPipeOutputWithContext(ctx context.Context) GetPipesPipeOutput

type GetPipesPipeArray added in v0.1.3

type GetPipesPipeArray []GetPipesPipeInput

func (GetPipesPipeArray) ElementType added in v0.1.3

func (GetPipesPipeArray) ElementType() reflect.Type

func (GetPipesPipeArray) ToGetPipesPipeArrayOutput added in v0.1.3

func (i GetPipesPipeArray) ToGetPipesPipeArrayOutput() GetPipesPipeArrayOutput

func (GetPipesPipeArray) ToGetPipesPipeArrayOutputWithContext added in v0.1.3

func (i GetPipesPipeArray) ToGetPipesPipeArrayOutputWithContext(ctx context.Context) GetPipesPipeArrayOutput

type GetPipesPipeArrayInput added in v0.1.3

type GetPipesPipeArrayInput interface {
	pulumi.Input

	ToGetPipesPipeArrayOutput() GetPipesPipeArrayOutput
	ToGetPipesPipeArrayOutputWithContext(context.Context) GetPipesPipeArrayOutput
}

GetPipesPipeArrayInput is an input type that accepts GetPipesPipeArray and GetPipesPipeArrayOutput values. You can construct a concrete instance of `GetPipesPipeArrayInput` via:

GetPipesPipeArray{ GetPipesPipeArgs{...} }

type GetPipesPipeArrayOutput added in v0.1.3

type GetPipesPipeArrayOutput struct{ *pulumi.OutputState }

func (GetPipesPipeArrayOutput) ElementType added in v0.1.3

func (GetPipesPipeArrayOutput) ElementType() reflect.Type

func (GetPipesPipeArrayOutput) Index added in v0.1.3

func (GetPipesPipeArrayOutput) ToGetPipesPipeArrayOutput added in v0.1.3

func (o GetPipesPipeArrayOutput) ToGetPipesPipeArrayOutput() GetPipesPipeArrayOutput

func (GetPipesPipeArrayOutput) ToGetPipesPipeArrayOutputWithContext added in v0.1.3

func (o GetPipesPipeArrayOutput) ToGetPipesPipeArrayOutputWithContext(ctx context.Context) GetPipesPipeArrayOutput

type GetPipesPipeInput added in v0.1.3

type GetPipesPipeInput interface {
	pulumi.Input

	ToGetPipesPipeOutput() GetPipesPipeOutput
	ToGetPipesPipeOutputWithContext(context.Context) GetPipesPipeOutput
}

GetPipesPipeInput is an input type that accepts GetPipesPipeArgs and GetPipesPipeOutput values. You can construct a concrete instance of `GetPipesPipeInput` via:

GetPipesPipeArgs{...}

type GetPipesPipeOutput added in v0.1.3

type GetPipesPipeOutput struct{ *pulumi.OutputState }

func (GetPipesPipeOutput) Comment added in v0.1.3

func (GetPipesPipeOutput) Database added in v0.1.3

func (o GetPipesPipeOutput) Database() pulumi.StringOutput

The database from which to return the schemas from.

func (GetPipesPipeOutput) ElementType added in v0.1.3

func (GetPipesPipeOutput) ElementType() reflect.Type

func (GetPipesPipeOutput) Integration added in v0.1.3

func (o GetPipesPipeOutput) Integration() pulumi.StringOutput

func (GetPipesPipeOutput) Name added in v0.1.3

func (GetPipesPipeOutput) Schema added in v0.1.3

The schema from which to return the pipes from.

func (GetPipesPipeOutput) ToGetPipesPipeOutput added in v0.1.3

func (o GetPipesPipeOutput) ToGetPipesPipeOutput() GetPipesPipeOutput

func (GetPipesPipeOutput) ToGetPipesPipeOutputWithContext added in v0.1.3

func (o GetPipesPipeOutput) ToGetPipesPipeOutputWithContext(ctx context.Context) GetPipesPipeOutput

type GetPipesResult added in v0.1.3

type GetPipesResult struct {
	// The database from which to return the schemas from.
	Database string `pulumi:"database"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The pipes in the schema
	Pipes []GetPipesPipe `pulumi:"pipes"`
	// The schema from which to return the pipes from.
	Schema string `pulumi:"schema"`
}

A collection of values returned by getPipes.

func GetPipes added in v0.1.3

func GetPipes(ctx *pulumi.Context, args *GetPipesArgs, opts ...pulumi.InvokeOption) (*GetPipesResult, error)

## Example Usage

```go 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.GetPipes(ctx, &snowflake.GetPipesArgs{
			Database: "MYDB",
			Schema:   "MYSCHEMA",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetPipesResultOutput added in v0.2.0

type GetPipesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getPipes.

func GetPipesOutput added in v0.2.0

func GetPipesOutput(ctx *pulumi.Context, args GetPipesOutputArgs, opts ...pulumi.InvokeOption) GetPipesResultOutput

func (GetPipesResultOutput) Database added in v0.2.0

The database from which to return the schemas from.

func (GetPipesResultOutput) ElementType added in v0.2.0

func (GetPipesResultOutput) ElementType() reflect.Type

func (GetPipesResultOutput) Id added in v0.2.0

The provider-assigned unique ID for this managed resource.

func (GetPipesResultOutput) Pipes added in v0.2.0

The pipes in the schema

func (GetPipesResultOutput) Schema added in v0.2.0

The schema from which to return the pipes from.

func (GetPipesResultOutput) ToGetPipesResultOutput added in v0.2.0

func (o GetPipesResultOutput) ToGetPipesResultOutput() GetPipesResultOutput

func (GetPipesResultOutput) ToGetPipesResultOutputWithContext added in v0.2.0

func (o GetPipesResultOutput) ToGetPipesResultOutputWithContext(ctx context.Context) GetPipesResultOutput

type GetProceduresArgs added in v0.1.3

type GetProceduresArgs struct {
	// The database from which to return the schemas from.
	Database string `pulumi:"database"`
	// The schema from which to return the procedures from.
	Schema string `pulumi:"schema"`
}

A collection of arguments for invoking getProcedures.

type GetProceduresOutputArgs added in v0.2.0

type GetProceduresOutputArgs struct {
	// The database from which to return the schemas from.
	Database pulumi.StringInput `pulumi:"database"`
	// The schema from which to return the procedures from.
	Schema pulumi.StringInput `pulumi:"schema"`
}

A collection of arguments for invoking getProcedures.

func (GetProceduresOutputArgs) ElementType added in v0.2.0

func (GetProceduresOutputArgs) ElementType() reflect.Type

type GetProceduresProcedure added in v0.1.3

type GetProceduresProcedure struct {
	ArgumentTypes []string `pulumi:"argumentTypes"`
	Comment       string   `pulumi:"comment"`
	// The database from which to return the schemas from.
	Database   string `pulumi:"database"`
	Name       string `pulumi:"name"`
	ReturnType string `pulumi:"returnType"`
	// The schema from which to return the procedures from.
	Schema string `pulumi:"schema"`
}

type GetProceduresProcedureArgs added in v0.1.3

type GetProceduresProcedureArgs struct {
	ArgumentTypes pulumi.StringArrayInput `pulumi:"argumentTypes"`
	Comment       pulumi.StringInput      `pulumi:"comment"`
	// The database from which to return the schemas from.
	Database   pulumi.StringInput `pulumi:"database"`
	Name       pulumi.StringInput `pulumi:"name"`
	ReturnType pulumi.StringInput `pulumi:"returnType"`
	// The schema from which to return the procedures from.
	Schema pulumi.StringInput `pulumi:"schema"`
}

func (GetProceduresProcedureArgs) ElementType added in v0.1.3

func (GetProceduresProcedureArgs) ElementType() reflect.Type

func (GetProceduresProcedureArgs) ToGetProceduresProcedureOutput added in v0.1.3

func (i GetProceduresProcedureArgs) ToGetProceduresProcedureOutput() GetProceduresProcedureOutput

func (GetProceduresProcedureArgs) ToGetProceduresProcedureOutputWithContext added in v0.1.3

func (i GetProceduresProcedureArgs) ToGetProceduresProcedureOutputWithContext(ctx context.Context) GetProceduresProcedureOutput

type GetProceduresProcedureArray added in v0.1.3

type GetProceduresProcedureArray []GetProceduresProcedureInput

func (GetProceduresProcedureArray) ElementType added in v0.1.3

func (GetProceduresProcedureArray) ToGetProceduresProcedureArrayOutput added in v0.1.3

func (i GetProceduresProcedureArray) ToGetProceduresProcedureArrayOutput() GetProceduresProcedureArrayOutput

func (GetProceduresProcedureArray) ToGetProceduresProcedureArrayOutputWithContext added in v0.1.3

func (i GetProceduresProcedureArray) ToGetProceduresProcedureArrayOutputWithContext(ctx context.Context) GetProceduresProcedureArrayOutput

type GetProceduresProcedureArrayInput added in v0.1.3

type GetProceduresProcedureArrayInput interface {
	pulumi.Input

	ToGetProceduresProcedureArrayOutput() GetProceduresProcedureArrayOutput
	ToGetProceduresProcedureArrayOutputWithContext(context.Context) GetProceduresProcedureArrayOutput
}

GetProceduresProcedureArrayInput is an input type that accepts GetProceduresProcedureArray and GetProceduresProcedureArrayOutput values. You can construct a concrete instance of `GetProceduresProcedureArrayInput` via:

GetProceduresProcedureArray{ GetProceduresProcedureArgs{...} }

type GetProceduresProcedureArrayOutput added in v0.1.3

type GetProceduresProcedureArrayOutput struct{ *pulumi.OutputState }

func (GetProceduresProcedureArrayOutput) ElementType added in v0.1.3

func (GetProceduresProcedureArrayOutput) Index added in v0.1.3

func (GetProceduresProcedureArrayOutput) ToGetProceduresProcedureArrayOutput added in v0.1.3

func (o GetProceduresProcedureArrayOutput) ToGetProceduresProcedureArrayOutput() GetProceduresProcedureArrayOutput

func (GetProceduresProcedureArrayOutput) ToGetProceduresProcedureArrayOutputWithContext added in v0.1.3

func (o GetProceduresProcedureArrayOutput) ToGetProceduresProcedureArrayOutputWithContext(ctx context.Context) GetProceduresProcedureArrayOutput

type GetProceduresProcedureInput added in v0.1.3

type GetProceduresProcedureInput interface {
	pulumi.Input

	ToGetProceduresProcedureOutput() GetProceduresProcedureOutput
	ToGetProceduresProcedureOutputWithContext(context.Context) GetProceduresProcedureOutput
}

GetProceduresProcedureInput is an input type that accepts GetProceduresProcedureArgs and GetProceduresProcedureOutput values. You can construct a concrete instance of `GetProceduresProcedureInput` via:

GetProceduresProcedureArgs{...}

type GetProceduresProcedureOutput added in v0.1.3

type GetProceduresProcedureOutput struct{ *pulumi.OutputState }

func (GetProceduresProcedureOutput) ArgumentTypes added in v0.1.3

func (GetProceduresProcedureOutput) Comment added in v0.1.3

func (GetProceduresProcedureOutput) Database added in v0.1.3

The database from which to return the schemas from.

func (GetProceduresProcedureOutput) ElementType added in v0.1.3

func (GetProceduresProcedureOutput) Name added in v0.1.3

func (GetProceduresProcedureOutput) ReturnType added in v0.1.3

func (GetProceduresProcedureOutput) Schema added in v0.1.3

The schema from which to return the procedures from.

func (GetProceduresProcedureOutput) ToGetProceduresProcedureOutput added in v0.1.3

func (o GetProceduresProcedureOutput) ToGetProceduresProcedureOutput() GetProceduresProcedureOutput

func (GetProceduresProcedureOutput) ToGetProceduresProcedureOutputWithContext added in v0.1.3

func (o GetProceduresProcedureOutput) ToGetProceduresProcedureOutputWithContext(ctx context.Context) GetProceduresProcedureOutput

type GetProceduresResult added in v0.1.3

type GetProceduresResult struct {
	// The database from which to return the schemas from.
	Database string `pulumi:"database"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The procedures in the schema
	Procedures []GetProceduresProcedure `pulumi:"procedures"`
	// The schema from which to return the procedures from.
	Schema string `pulumi:"schema"`
}

A collection of values returned by getProcedures.

func GetProcedures added in v0.1.3

func GetProcedures(ctx *pulumi.Context, args *GetProceduresArgs, opts ...pulumi.InvokeOption) (*GetProceduresResult, error)

## Example Usage

```go 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.GetProcedures(ctx, &snowflake.GetProceduresArgs{
			Database: "MYDB",
			Schema:   "MYSCHEMA",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetProceduresResultOutput added in v0.2.0

type GetProceduresResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getProcedures.

func GetProceduresOutput added in v0.2.0

func GetProceduresOutput(ctx *pulumi.Context, args GetProceduresOutputArgs, opts ...pulumi.InvokeOption) GetProceduresResultOutput

func (GetProceduresResultOutput) Database added in v0.2.0

The database from which to return the schemas from.

func (GetProceduresResultOutput) ElementType added in v0.2.0

func (GetProceduresResultOutput) ElementType() reflect.Type

func (GetProceduresResultOutput) Id added in v0.2.0

The provider-assigned unique ID for this managed resource.

func (GetProceduresResultOutput) Procedures added in v0.2.0

The procedures in the schema

func (GetProceduresResultOutput) Schema added in v0.2.0

The schema from which to return the procedures from.

func (GetProceduresResultOutput) ToGetProceduresResultOutput added in v0.2.0

func (o GetProceduresResultOutput) ToGetProceduresResultOutput() GetProceduresResultOutput

func (GetProceduresResultOutput) ToGetProceduresResultOutputWithContext added in v0.2.0

func (o GetProceduresResultOutput) ToGetProceduresResultOutputWithContext(ctx context.Context) GetProceduresResultOutput

type GetResourceMonitorsResourceMonitor added in v0.1.3

type GetResourceMonitorsResourceMonitor struct {
	Comment     string `pulumi:"comment"`
	CreditQuota string `pulumi:"creditQuota"`
	Frequency   string `pulumi:"frequency"`
	Name        string `pulumi:"name"`
}

type GetResourceMonitorsResourceMonitorArgs added in v0.1.3

type GetResourceMonitorsResourceMonitorArgs struct {
	Comment     pulumi.StringInput `pulumi:"comment"`
	CreditQuota pulumi.StringInput `pulumi:"creditQuota"`
	Frequency   pulumi.StringInput `pulumi:"frequency"`
	Name        pulumi.StringInput `pulumi:"name"`
}

func (GetResourceMonitorsResourceMonitorArgs) ElementType added in v0.1.3

func (GetResourceMonitorsResourceMonitorArgs) ToGetResourceMonitorsResourceMonitorOutput added in v0.1.3

func (i GetResourceMonitorsResourceMonitorArgs) ToGetResourceMonitorsResourceMonitorOutput() GetResourceMonitorsResourceMonitorOutput

func (GetResourceMonitorsResourceMonitorArgs) ToGetResourceMonitorsResourceMonitorOutputWithContext added in v0.1.3

func (i GetResourceMonitorsResourceMonitorArgs) ToGetResourceMonitorsResourceMonitorOutputWithContext(ctx context.Context) GetResourceMonitorsResourceMonitorOutput

type GetResourceMonitorsResourceMonitorArray added in v0.1.3

type GetResourceMonitorsResourceMonitorArray []GetResourceMonitorsResourceMonitorInput

func (GetResourceMonitorsResourceMonitorArray) ElementType added in v0.1.3

func (GetResourceMonitorsResourceMonitorArray) ToGetResourceMonitorsResourceMonitorArrayOutput added in v0.1.3

func (i GetResourceMonitorsResourceMonitorArray) ToGetResourceMonitorsResourceMonitorArrayOutput() GetResourceMonitorsResourceMonitorArrayOutput

func (GetResourceMonitorsResourceMonitorArray) ToGetResourceMonitorsResourceMonitorArrayOutputWithContext added in v0.1.3

func (i GetResourceMonitorsResourceMonitorArray) ToGetResourceMonitorsResourceMonitorArrayOutputWithContext(ctx context.Context) GetResourceMonitorsResourceMonitorArrayOutput

type GetResourceMonitorsResourceMonitorArrayInput added in v0.1.3

type GetResourceMonitorsResourceMonitorArrayInput interface {
	pulumi.Input

	ToGetResourceMonitorsResourceMonitorArrayOutput() GetResourceMonitorsResourceMonitorArrayOutput
	ToGetResourceMonitorsResourceMonitorArrayOutputWithContext(context.Context) GetResourceMonitorsResourceMonitorArrayOutput
}

GetResourceMonitorsResourceMonitorArrayInput is an input type that accepts GetResourceMonitorsResourceMonitorArray and GetResourceMonitorsResourceMonitorArrayOutput values. You can construct a concrete instance of `GetResourceMonitorsResourceMonitorArrayInput` via:

GetResourceMonitorsResourceMonitorArray{ GetResourceMonitorsResourceMonitorArgs{...} }

type GetResourceMonitorsResourceMonitorArrayOutput added in v0.1.3

type GetResourceMonitorsResourceMonitorArrayOutput struct{ *pulumi.OutputState }

func (GetResourceMonitorsResourceMonitorArrayOutput) ElementType added in v0.1.3

func (GetResourceMonitorsResourceMonitorArrayOutput) Index added in v0.1.3

func (GetResourceMonitorsResourceMonitorArrayOutput) ToGetResourceMonitorsResourceMonitorArrayOutput added in v0.1.3

func (o GetResourceMonitorsResourceMonitorArrayOutput) ToGetResourceMonitorsResourceMonitorArrayOutput() GetResourceMonitorsResourceMonitorArrayOutput

func (GetResourceMonitorsResourceMonitorArrayOutput) ToGetResourceMonitorsResourceMonitorArrayOutputWithContext added in v0.1.3

func (o GetResourceMonitorsResourceMonitorArrayOutput) ToGetResourceMonitorsResourceMonitorArrayOutputWithContext(ctx context.Context) GetResourceMonitorsResourceMonitorArrayOutput

type GetResourceMonitorsResourceMonitorInput added in v0.1.3

type GetResourceMonitorsResourceMonitorInput interface {
	pulumi.Input

	ToGetResourceMonitorsResourceMonitorOutput() GetResourceMonitorsResourceMonitorOutput
	ToGetResourceMonitorsResourceMonitorOutputWithContext(context.Context) GetResourceMonitorsResourceMonitorOutput
}

GetResourceMonitorsResourceMonitorInput is an input type that accepts GetResourceMonitorsResourceMonitorArgs and GetResourceMonitorsResourceMonitorOutput values. You can construct a concrete instance of `GetResourceMonitorsResourceMonitorInput` via:

GetResourceMonitorsResourceMonitorArgs{...}

type GetResourceMonitorsResourceMonitorOutput added in v0.1.3

type GetResourceMonitorsResourceMonitorOutput struct{ *pulumi.OutputState }

func (GetResourceMonitorsResourceMonitorOutput) Comment added in v0.1.3

func (GetResourceMonitorsResourceMonitorOutput) CreditQuota added in v0.1.3

func (GetResourceMonitorsResourceMonitorOutput) ElementType added in v0.1.3

func (GetResourceMonitorsResourceMonitorOutput) Frequency added in v0.1.3

func (GetResourceMonitorsResourceMonitorOutput) Name added in v0.1.3

func (GetResourceMonitorsResourceMonitorOutput) ToGetResourceMonitorsResourceMonitorOutput added in v0.1.3

func (o GetResourceMonitorsResourceMonitorOutput) ToGetResourceMonitorsResourceMonitorOutput() GetResourceMonitorsResourceMonitorOutput

func (GetResourceMonitorsResourceMonitorOutput) ToGetResourceMonitorsResourceMonitorOutputWithContext added in v0.1.3

func (o GetResourceMonitorsResourceMonitorOutput) ToGetResourceMonitorsResourceMonitorOutputWithContext(ctx context.Context) GetResourceMonitorsResourceMonitorOutput

type GetResourceMonitorsResult added in v0.1.3

type GetResourceMonitorsResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The resource monitors in the database
	ResourceMonitors []GetResourceMonitorsResourceMonitor `pulumi:"resourceMonitors"`
}

A collection of values returned by getResourceMonitors.

func GetResourceMonitors added in v0.1.3

func GetResourceMonitors(ctx *pulumi.Context, opts ...pulumi.InvokeOption) (*GetResourceMonitorsResult, error)

## Example Usage

```go 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.GetResourceMonitors(ctx, nil, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetRolesArgs added in v0.15.0

type GetRolesArgs struct {
	// Filters the command output by object name.
	Pattern *string `pulumi:"pattern"`
}

A collection of arguments for invoking getRoles.

type GetRolesOutputArgs added in v0.15.0

type GetRolesOutputArgs struct {
	// Filters the command output by object name.
	Pattern pulumi.StringPtrInput `pulumi:"pattern"`
}

A collection of arguments for invoking getRoles.

func (GetRolesOutputArgs) ElementType added in v0.15.0

func (GetRolesOutputArgs) ElementType() reflect.Type

type GetRolesResult added in v0.15.0

type GetRolesResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// Filters the command output by object name.
	Pattern *string `pulumi:"pattern"`
	// List of all the roles which you can view across your entire account, including the system-defined roles and any custom roles that exist.
	Roles []GetRolesRole `pulumi:"roles"`
}

A collection of values returned by getRoles.

func GetRoles added in v0.15.0

func GetRoles(ctx *pulumi.Context, args *GetRolesArgs, opts ...pulumi.InvokeOption) (*GetRolesResult, error)

type GetRolesResultOutput added in v0.15.0

type GetRolesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getRoles.

func GetRolesOutput added in v0.15.0

func GetRolesOutput(ctx *pulumi.Context, args GetRolesOutputArgs, opts ...pulumi.InvokeOption) GetRolesResultOutput

func (GetRolesResultOutput) ElementType added in v0.15.0

func (GetRolesResultOutput) ElementType() reflect.Type

func (GetRolesResultOutput) Id added in v0.15.0

The provider-assigned unique ID for this managed resource.

func (GetRolesResultOutput) Pattern added in v0.15.0

Filters the command output by object name.

func (GetRolesResultOutput) Roles added in v0.15.0

List of all the roles which you can view across your entire account, including the system-defined roles and any custom roles that exist.

func (GetRolesResultOutput) ToGetRolesResultOutput added in v0.15.0

func (o GetRolesResultOutput) ToGetRolesResultOutput() GetRolesResultOutput

func (GetRolesResultOutput) ToGetRolesResultOutputWithContext added in v0.15.0

func (o GetRolesResultOutput) ToGetRolesResultOutputWithContext(ctx context.Context) GetRolesResultOutput

type GetRolesRole added in v0.15.0

type GetRolesRole struct {
	Comment string `pulumi:"comment"`
	Name    string `pulumi:"name"`
	Owner   string `pulumi:"owner"`
}

type GetRolesRoleArgs added in v0.15.0

type GetRolesRoleArgs struct {
	Comment pulumi.StringInput `pulumi:"comment"`
	Name    pulumi.StringInput `pulumi:"name"`
	Owner   pulumi.StringInput `pulumi:"owner"`
}

func (GetRolesRoleArgs) ElementType added in v0.15.0

func (GetRolesRoleArgs) ElementType() reflect.Type

func (GetRolesRoleArgs) ToGetRolesRoleOutput added in v0.15.0

func (i GetRolesRoleArgs) ToGetRolesRoleOutput() GetRolesRoleOutput

func (GetRolesRoleArgs) ToGetRolesRoleOutputWithContext added in v0.15.0

func (i GetRolesRoleArgs) ToGetRolesRoleOutputWithContext(ctx context.Context) GetRolesRoleOutput

type GetRolesRoleArray added in v0.15.0

type GetRolesRoleArray []GetRolesRoleInput

func (GetRolesRoleArray) ElementType added in v0.15.0

func (GetRolesRoleArray) ElementType() reflect.Type

func (GetRolesRoleArray) ToGetRolesRoleArrayOutput added in v0.15.0

func (i GetRolesRoleArray) ToGetRolesRoleArrayOutput() GetRolesRoleArrayOutput

func (GetRolesRoleArray) ToGetRolesRoleArrayOutputWithContext added in v0.15.0

func (i GetRolesRoleArray) ToGetRolesRoleArrayOutputWithContext(ctx context.Context) GetRolesRoleArrayOutput

type GetRolesRoleArrayInput added in v0.15.0

type GetRolesRoleArrayInput interface {
	pulumi.Input

	ToGetRolesRoleArrayOutput() GetRolesRoleArrayOutput
	ToGetRolesRoleArrayOutputWithContext(context.Context) GetRolesRoleArrayOutput
}

GetRolesRoleArrayInput is an input type that accepts GetRolesRoleArray and GetRolesRoleArrayOutput values. You can construct a concrete instance of `GetRolesRoleArrayInput` via:

GetRolesRoleArray{ GetRolesRoleArgs{...} }

type GetRolesRoleArrayOutput added in v0.15.0

type GetRolesRoleArrayOutput struct{ *pulumi.OutputState }

func (GetRolesRoleArrayOutput) ElementType added in v0.15.0

func (GetRolesRoleArrayOutput) ElementType() reflect.Type

func (GetRolesRoleArrayOutput) Index added in v0.15.0

func (GetRolesRoleArrayOutput) ToGetRolesRoleArrayOutput added in v0.15.0

func (o GetRolesRoleArrayOutput) ToGetRolesRoleArrayOutput() GetRolesRoleArrayOutput

func (GetRolesRoleArrayOutput) ToGetRolesRoleArrayOutputWithContext added in v0.15.0

func (o GetRolesRoleArrayOutput) ToGetRolesRoleArrayOutputWithContext(ctx context.Context) GetRolesRoleArrayOutput

type GetRolesRoleInput added in v0.15.0

type GetRolesRoleInput interface {
	pulumi.Input

	ToGetRolesRoleOutput() GetRolesRoleOutput
	ToGetRolesRoleOutputWithContext(context.Context) GetRolesRoleOutput
}

GetRolesRoleInput is an input type that accepts GetRolesRoleArgs and GetRolesRoleOutput values. You can construct a concrete instance of `GetRolesRoleInput` via:

GetRolesRoleArgs{...}

type GetRolesRoleOutput added in v0.15.0

type GetRolesRoleOutput struct{ *pulumi.OutputState }

func (GetRolesRoleOutput) Comment added in v0.15.0

func (GetRolesRoleOutput) ElementType added in v0.15.0

func (GetRolesRoleOutput) ElementType() reflect.Type

func (GetRolesRoleOutput) Name added in v0.15.0

func (GetRolesRoleOutput) Owner added in v0.15.0

func (GetRolesRoleOutput) ToGetRolesRoleOutput added in v0.15.0

func (o GetRolesRoleOutput) ToGetRolesRoleOutput() GetRolesRoleOutput

func (GetRolesRoleOutput) ToGetRolesRoleOutputWithContext added in v0.15.0

func (o GetRolesRoleOutput) ToGetRolesRoleOutputWithContext(ctx context.Context) GetRolesRoleOutput

type GetRowAccessPoliciesArgs added in v0.1.3

type GetRowAccessPoliciesArgs struct {
	// The database from which to return the schemas from.
	Database string `pulumi:"database"`
	// The schema from which to return the row access policyfrom.
	Schema string `pulumi:"schema"`
}

A collection of arguments for invoking getRowAccessPolicies.

type GetRowAccessPoliciesOutputArgs added in v0.2.0

type GetRowAccessPoliciesOutputArgs struct {
	// The database from which to return the schemas from.
	Database pulumi.StringInput `pulumi:"database"`
	// The schema from which to return the row access policyfrom.
	Schema pulumi.StringInput `pulumi:"schema"`
}

A collection of arguments for invoking getRowAccessPolicies.

func (GetRowAccessPoliciesOutputArgs) ElementType added in v0.2.0

type GetRowAccessPoliciesResult added in v0.1.3

type GetRowAccessPoliciesResult struct {
	// The database from which to return the schemas from.
	Database string `pulumi:"database"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The row access policy in the schema
	RowAccessPolicies []GetRowAccessPoliciesRowAccessPolicy `pulumi:"rowAccessPolicies"`
	// The schema from which to return the row access policyfrom.
	Schema string `pulumi:"schema"`
}

A collection of values returned by getRowAccessPolicies.

func GetRowAccessPolicies added in v0.1.3

func GetRowAccessPolicies(ctx *pulumi.Context, args *GetRowAccessPoliciesArgs, opts ...pulumi.InvokeOption) (*GetRowAccessPoliciesResult, error)

## Example Usage

```go 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.GetRowAccessPolicies(ctx, &snowflake.GetRowAccessPoliciesArgs{
			Database: "MYDB",
			Schema:   "MYSCHEMA",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetRowAccessPoliciesResultOutput added in v0.2.0

type GetRowAccessPoliciesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getRowAccessPolicies.

func GetRowAccessPoliciesOutput added in v0.2.0

func (GetRowAccessPoliciesResultOutput) Database added in v0.2.0

The database from which to return the schemas from.

func (GetRowAccessPoliciesResultOutput) ElementType added in v0.2.0

func (GetRowAccessPoliciesResultOutput) Id added in v0.2.0

The provider-assigned unique ID for this managed resource.

func (GetRowAccessPoliciesResultOutput) RowAccessPolicies added in v0.2.0

The row access policy in the schema

func (GetRowAccessPoliciesResultOutput) Schema added in v0.2.0

The schema from which to return the row access policyfrom.

func (GetRowAccessPoliciesResultOutput) ToGetRowAccessPoliciesResultOutput added in v0.2.0

func (o GetRowAccessPoliciesResultOutput) ToGetRowAccessPoliciesResultOutput() GetRowAccessPoliciesResultOutput

func (GetRowAccessPoliciesResultOutput) ToGetRowAccessPoliciesResultOutputWithContext added in v0.2.0

func (o GetRowAccessPoliciesResultOutput) ToGetRowAccessPoliciesResultOutputWithContext(ctx context.Context) GetRowAccessPoliciesResultOutput

type GetRowAccessPoliciesRowAccessPolicy added in v0.1.3

type GetRowAccessPoliciesRowAccessPolicy struct {
	Comment string `pulumi:"comment"`
	// The database from which to return the schemas from.
	Database string `pulumi:"database"`
	Name     string `pulumi:"name"`
	// The schema from which to return the row access policyfrom.
	Schema string `pulumi:"schema"`
}

type GetRowAccessPoliciesRowAccessPolicyArgs added in v0.1.3

type GetRowAccessPoliciesRowAccessPolicyArgs struct {
	Comment pulumi.StringInput `pulumi:"comment"`
	// The database from which to return the schemas from.
	Database pulumi.StringInput `pulumi:"database"`
	Name     pulumi.StringInput `pulumi:"name"`
	// The schema from which to return the row access policyfrom.
	Schema pulumi.StringInput `pulumi:"schema"`
}

func (GetRowAccessPoliciesRowAccessPolicyArgs) ElementType added in v0.1.3

func (GetRowAccessPoliciesRowAccessPolicyArgs) ToGetRowAccessPoliciesRowAccessPolicyOutput added in v0.1.3

func (i GetRowAccessPoliciesRowAccessPolicyArgs) ToGetRowAccessPoliciesRowAccessPolicyOutput() GetRowAccessPoliciesRowAccessPolicyOutput

func (GetRowAccessPoliciesRowAccessPolicyArgs) ToGetRowAccessPoliciesRowAccessPolicyOutputWithContext added in v0.1.3

func (i GetRowAccessPoliciesRowAccessPolicyArgs) ToGetRowAccessPoliciesRowAccessPolicyOutputWithContext(ctx context.Context) GetRowAccessPoliciesRowAccessPolicyOutput

type GetRowAccessPoliciesRowAccessPolicyArray added in v0.1.3

type GetRowAccessPoliciesRowAccessPolicyArray []GetRowAccessPoliciesRowAccessPolicyInput

func (GetRowAccessPoliciesRowAccessPolicyArray) ElementType added in v0.1.3

func (GetRowAccessPoliciesRowAccessPolicyArray) ToGetRowAccessPoliciesRowAccessPolicyArrayOutput added in v0.1.3

func (i GetRowAccessPoliciesRowAccessPolicyArray) ToGetRowAccessPoliciesRowAccessPolicyArrayOutput() GetRowAccessPoliciesRowAccessPolicyArrayOutput

func (GetRowAccessPoliciesRowAccessPolicyArray) ToGetRowAccessPoliciesRowAccessPolicyArrayOutputWithContext added in v0.1.3

func (i GetRowAccessPoliciesRowAccessPolicyArray) ToGetRowAccessPoliciesRowAccessPolicyArrayOutputWithContext(ctx context.Context) GetRowAccessPoliciesRowAccessPolicyArrayOutput

type GetRowAccessPoliciesRowAccessPolicyArrayInput added in v0.1.3

type GetRowAccessPoliciesRowAccessPolicyArrayInput interface {
	pulumi.Input

	ToGetRowAccessPoliciesRowAccessPolicyArrayOutput() GetRowAccessPoliciesRowAccessPolicyArrayOutput
	ToGetRowAccessPoliciesRowAccessPolicyArrayOutputWithContext(context.Context) GetRowAccessPoliciesRowAccessPolicyArrayOutput
}

GetRowAccessPoliciesRowAccessPolicyArrayInput is an input type that accepts GetRowAccessPoliciesRowAccessPolicyArray and GetRowAccessPoliciesRowAccessPolicyArrayOutput values. You can construct a concrete instance of `GetRowAccessPoliciesRowAccessPolicyArrayInput` via:

GetRowAccessPoliciesRowAccessPolicyArray{ GetRowAccessPoliciesRowAccessPolicyArgs{...} }

type GetRowAccessPoliciesRowAccessPolicyArrayOutput added in v0.1.3

type GetRowAccessPoliciesRowAccessPolicyArrayOutput struct{ *pulumi.OutputState }

func (GetRowAccessPoliciesRowAccessPolicyArrayOutput) ElementType added in v0.1.3

func (GetRowAccessPoliciesRowAccessPolicyArrayOutput) Index added in v0.1.3

func (GetRowAccessPoliciesRowAccessPolicyArrayOutput) ToGetRowAccessPoliciesRowAccessPolicyArrayOutput added in v0.1.3

func (o GetRowAccessPoliciesRowAccessPolicyArrayOutput) ToGetRowAccessPoliciesRowAccessPolicyArrayOutput() GetRowAccessPoliciesRowAccessPolicyArrayOutput

func (GetRowAccessPoliciesRowAccessPolicyArrayOutput) ToGetRowAccessPoliciesRowAccessPolicyArrayOutputWithContext added in v0.1.3

func (o GetRowAccessPoliciesRowAccessPolicyArrayOutput) ToGetRowAccessPoliciesRowAccessPolicyArrayOutputWithContext(ctx context.Context) GetRowAccessPoliciesRowAccessPolicyArrayOutput

type GetRowAccessPoliciesRowAccessPolicyInput added in v0.1.3

type GetRowAccessPoliciesRowAccessPolicyInput interface {
	pulumi.Input

	ToGetRowAccessPoliciesRowAccessPolicyOutput() GetRowAccessPoliciesRowAccessPolicyOutput
	ToGetRowAccessPoliciesRowAccessPolicyOutputWithContext(context.Context) GetRowAccessPoliciesRowAccessPolicyOutput
}

GetRowAccessPoliciesRowAccessPolicyInput is an input type that accepts GetRowAccessPoliciesRowAccessPolicyArgs and GetRowAccessPoliciesRowAccessPolicyOutput values. You can construct a concrete instance of `GetRowAccessPoliciesRowAccessPolicyInput` via:

GetRowAccessPoliciesRowAccessPolicyArgs{...}

type GetRowAccessPoliciesRowAccessPolicyOutput added in v0.1.3

type GetRowAccessPoliciesRowAccessPolicyOutput struct{ *pulumi.OutputState }

func (GetRowAccessPoliciesRowAccessPolicyOutput) Comment added in v0.1.3

func (GetRowAccessPoliciesRowAccessPolicyOutput) Database added in v0.1.3

The database from which to return the schemas from.

func (GetRowAccessPoliciesRowAccessPolicyOutput) ElementType added in v0.1.3

func (GetRowAccessPoliciesRowAccessPolicyOutput) Name added in v0.1.3

func (GetRowAccessPoliciesRowAccessPolicyOutput) Schema added in v0.1.3

The schema from which to return the row access policyfrom.

func (GetRowAccessPoliciesRowAccessPolicyOutput) ToGetRowAccessPoliciesRowAccessPolicyOutput added in v0.1.3

func (o GetRowAccessPoliciesRowAccessPolicyOutput) ToGetRowAccessPoliciesRowAccessPolicyOutput() GetRowAccessPoliciesRowAccessPolicyOutput

func (GetRowAccessPoliciesRowAccessPolicyOutput) ToGetRowAccessPoliciesRowAccessPolicyOutputWithContext added in v0.1.3

func (o GetRowAccessPoliciesRowAccessPolicyOutput) ToGetRowAccessPoliciesRowAccessPolicyOutputWithContext(ctx context.Context) GetRowAccessPoliciesRowAccessPolicyOutput

type GetSchemasArgs added in v0.1.2

type GetSchemasArgs struct {
	// The database from which to return the schemas from.
	Database string `pulumi:"database"`
}

A collection of arguments for invoking getSchemas.

type GetSchemasOutputArgs added in v0.2.0

type GetSchemasOutputArgs struct {
	// The database from which to return the schemas from.
	Database pulumi.StringInput `pulumi:"database"`
}

A collection of arguments for invoking getSchemas.

func (GetSchemasOutputArgs) ElementType added in v0.2.0

func (GetSchemasOutputArgs) ElementType() reflect.Type

type GetSchemasResult added in v0.1.2

type GetSchemasResult struct {
	// The database from which to return the schemas from.
	Database string `pulumi:"database"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The schemas in the database
	Schemas []GetSchemasSchema `pulumi:"schemas"`
}

A collection of values returned by getSchemas.

func GetSchemas added in v0.1.2

func GetSchemas(ctx *pulumi.Context, args *GetSchemasArgs, opts ...pulumi.InvokeOption) (*GetSchemasResult, error)

## Example Usage

```go 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.GetSchemas(ctx, &snowflake.GetSchemasArgs{
			Database: "MYDB",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetSchemasResultOutput added in v0.2.0

type GetSchemasResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getSchemas.

func GetSchemasOutput added in v0.2.0

func GetSchemasOutput(ctx *pulumi.Context, args GetSchemasOutputArgs, opts ...pulumi.InvokeOption) GetSchemasResultOutput

func (GetSchemasResultOutput) Database added in v0.2.0

The database from which to return the schemas from.

func (GetSchemasResultOutput) ElementType added in v0.2.0

func (GetSchemasResultOutput) ElementType() reflect.Type

func (GetSchemasResultOutput) Id added in v0.2.0

The provider-assigned unique ID for this managed resource.

func (GetSchemasResultOutput) Schemas added in v0.2.0

The schemas in the database

func (GetSchemasResultOutput) ToGetSchemasResultOutput added in v0.2.0

func (o GetSchemasResultOutput) ToGetSchemasResultOutput() GetSchemasResultOutput

func (GetSchemasResultOutput) ToGetSchemasResultOutputWithContext added in v0.2.0

func (o GetSchemasResultOutput) ToGetSchemasResultOutputWithContext(ctx context.Context) GetSchemasResultOutput

type GetSchemasSchema added in v0.1.2

type GetSchemasSchema struct {
	Comment string `pulumi:"comment"`
	// The database from which to return the schemas from.
	Database string `pulumi:"database"`
	Name     string `pulumi:"name"`
}

type GetSchemasSchemaArgs added in v0.1.2

type GetSchemasSchemaArgs struct {
	Comment pulumi.StringInput `pulumi:"comment"`
	// The database from which to return the schemas from.
	Database pulumi.StringInput `pulumi:"database"`
	Name     pulumi.StringInput `pulumi:"name"`
}

func (GetSchemasSchemaArgs) ElementType added in v0.1.2

func (GetSchemasSchemaArgs) ElementType() reflect.Type

func (GetSchemasSchemaArgs) ToGetSchemasSchemaOutput added in v0.1.2

func (i GetSchemasSchemaArgs) ToGetSchemasSchemaOutput() GetSchemasSchemaOutput

func (GetSchemasSchemaArgs) ToGetSchemasSchemaOutputWithContext added in v0.1.2

func (i GetSchemasSchemaArgs) ToGetSchemasSchemaOutputWithContext(ctx context.Context) GetSchemasSchemaOutput

type GetSchemasSchemaArray added in v0.1.2

type GetSchemasSchemaArray []GetSchemasSchemaInput

func (GetSchemasSchemaArray) ElementType added in v0.1.2

func (GetSchemasSchemaArray) ElementType() reflect.Type

func (GetSchemasSchemaArray) ToGetSchemasSchemaArrayOutput added in v0.1.2

func (i GetSchemasSchemaArray) ToGetSchemasSchemaArrayOutput() GetSchemasSchemaArrayOutput

func (GetSchemasSchemaArray) ToGetSchemasSchemaArrayOutputWithContext added in v0.1.2

func (i GetSchemasSchemaArray) ToGetSchemasSchemaArrayOutputWithContext(ctx context.Context) GetSchemasSchemaArrayOutput

type GetSchemasSchemaArrayInput added in v0.1.2

type GetSchemasSchemaArrayInput interface {
	pulumi.Input

	ToGetSchemasSchemaArrayOutput() GetSchemasSchemaArrayOutput
	ToGetSchemasSchemaArrayOutputWithContext(context.Context) GetSchemasSchemaArrayOutput
}

GetSchemasSchemaArrayInput is an input type that accepts GetSchemasSchemaArray and GetSchemasSchemaArrayOutput values. You can construct a concrete instance of `GetSchemasSchemaArrayInput` via:

GetSchemasSchemaArray{ GetSchemasSchemaArgs{...} }

type GetSchemasSchemaArrayOutput added in v0.1.2

type GetSchemasSchemaArrayOutput struct{ *pulumi.OutputState }

func (GetSchemasSchemaArrayOutput) ElementType added in v0.1.2

func (GetSchemasSchemaArrayOutput) Index added in v0.1.2

func (GetSchemasSchemaArrayOutput) ToGetSchemasSchemaArrayOutput added in v0.1.2

func (o GetSchemasSchemaArrayOutput) ToGetSchemasSchemaArrayOutput() GetSchemasSchemaArrayOutput

func (GetSchemasSchemaArrayOutput) ToGetSchemasSchemaArrayOutputWithContext added in v0.1.2

func (o GetSchemasSchemaArrayOutput) ToGetSchemasSchemaArrayOutputWithContext(ctx context.Context) GetSchemasSchemaArrayOutput

type GetSchemasSchemaInput added in v0.1.2

type GetSchemasSchemaInput interface {
	pulumi.Input

	ToGetSchemasSchemaOutput() GetSchemasSchemaOutput
	ToGetSchemasSchemaOutputWithContext(context.Context) GetSchemasSchemaOutput
}

GetSchemasSchemaInput is an input type that accepts GetSchemasSchemaArgs and GetSchemasSchemaOutput values. You can construct a concrete instance of `GetSchemasSchemaInput` via:

GetSchemasSchemaArgs{...}

type GetSchemasSchemaOutput added in v0.1.2

type GetSchemasSchemaOutput struct{ *pulumi.OutputState }

func (GetSchemasSchemaOutput) Comment added in v0.1.2

func (GetSchemasSchemaOutput) Database added in v0.1.2

The database from which to return the schemas from.

func (GetSchemasSchemaOutput) ElementType added in v0.1.2

func (GetSchemasSchemaOutput) ElementType() reflect.Type

func (GetSchemasSchemaOutput) Name added in v0.1.2

func (GetSchemasSchemaOutput) ToGetSchemasSchemaOutput added in v0.1.2

func (o GetSchemasSchemaOutput) ToGetSchemasSchemaOutput() GetSchemasSchemaOutput

func (GetSchemasSchemaOutput) ToGetSchemasSchemaOutputWithContext added in v0.1.2

func (o GetSchemasSchemaOutput) ToGetSchemasSchemaOutputWithContext(ctx context.Context) GetSchemasSchemaOutput

type GetSequencesArgs added in v0.1.3

type GetSequencesArgs struct {
	// The database from which to return the schemas from.
	Database string `pulumi:"database"`
	// The schema from which to return the sequences from.
	Schema string `pulumi:"schema"`
}

A collection of arguments for invoking getSequences.

type GetSequencesOutputArgs added in v0.2.0

type GetSequencesOutputArgs struct {
	// The database from which to return the schemas from.
	Database pulumi.StringInput `pulumi:"database"`
	// The schema from which to return the sequences from.
	Schema pulumi.StringInput `pulumi:"schema"`
}

A collection of arguments for invoking getSequences.

func (GetSequencesOutputArgs) ElementType added in v0.2.0

func (GetSequencesOutputArgs) ElementType() reflect.Type

type GetSequencesResult added in v0.1.3

type GetSequencesResult struct {
	// The database from which to return the schemas from.
	Database string `pulumi:"database"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The schema from which to return the sequences from.
	Schema string `pulumi:"schema"`
	// The sequences in the schema
	Sequences []GetSequencesSequence `pulumi:"sequences"`
}

A collection of values returned by getSequences.

func GetSequences added in v0.1.3

func GetSequences(ctx *pulumi.Context, args *GetSequencesArgs, opts ...pulumi.InvokeOption) (*GetSequencesResult, error)

## Example Usage

```go 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.GetSequences(ctx, &snowflake.GetSequencesArgs{
			Database: "MYDB",
			Schema:   "MYSCHEMA",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetSequencesResultOutput added in v0.2.0

type GetSequencesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getSequences.

func GetSequencesOutput added in v0.2.0

func GetSequencesOutput(ctx *pulumi.Context, args GetSequencesOutputArgs, opts ...pulumi.InvokeOption) GetSequencesResultOutput

func (GetSequencesResultOutput) Database added in v0.2.0

The database from which to return the schemas from.

func (GetSequencesResultOutput) ElementType added in v0.2.0

func (GetSequencesResultOutput) ElementType() reflect.Type

func (GetSequencesResultOutput) Id added in v0.2.0

The provider-assigned unique ID for this managed resource.

func (GetSequencesResultOutput) Schema added in v0.2.0

The schema from which to return the sequences from.

func (GetSequencesResultOutput) Sequences added in v0.2.0

The sequences in the schema

func (GetSequencesResultOutput) ToGetSequencesResultOutput added in v0.2.0

func (o GetSequencesResultOutput) ToGetSequencesResultOutput() GetSequencesResultOutput

func (GetSequencesResultOutput) ToGetSequencesResultOutputWithContext added in v0.2.0

func (o GetSequencesResultOutput) ToGetSequencesResultOutputWithContext(ctx context.Context) GetSequencesResultOutput

type GetSequencesSequence added in v0.1.3

type GetSequencesSequence struct {
	Comment string `pulumi:"comment"`
	// The database from which to return the schemas from.
	Database string `pulumi:"database"`
	Name     string `pulumi:"name"`
	// The schema from which to return the sequences from.
	Schema string `pulumi:"schema"`
}

type GetSequencesSequenceArgs added in v0.1.3

type GetSequencesSequenceArgs struct {
	Comment pulumi.StringInput `pulumi:"comment"`
	// The database from which to return the schemas from.
	Database pulumi.StringInput `pulumi:"database"`
	Name     pulumi.StringInput `pulumi:"name"`
	// The schema from which to return the sequences from.
	Schema pulumi.StringInput `pulumi:"schema"`
}

func (GetSequencesSequenceArgs) ElementType added in v0.1.3

func (GetSequencesSequenceArgs) ElementType() reflect.Type

func (GetSequencesSequenceArgs) ToGetSequencesSequenceOutput added in v0.1.3

func (i GetSequencesSequenceArgs) ToGetSequencesSequenceOutput() GetSequencesSequenceOutput

func (GetSequencesSequenceArgs) ToGetSequencesSequenceOutputWithContext added in v0.1.3

func (i GetSequencesSequenceArgs) ToGetSequencesSequenceOutputWithContext(ctx context.Context) GetSequencesSequenceOutput

type GetSequencesSequenceArray added in v0.1.3

type GetSequencesSequenceArray []GetSequencesSequenceInput

func (GetSequencesSequenceArray) ElementType added in v0.1.3

func (GetSequencesSequenceArray) ElementType() reflect.Type

func (GetSequencesSequenceArray) ToGetSequencesSequenceArrayOutput added in v0.1.3

func (i GetSequencesSequenceArray) ToGetSequencesSequenceArrayOutput() GetSequencesSequenceArrayOutput

func (GetSequencesSequenceArray) ToGetSequencesSequenceArrayOutputWithContext added in v0.1.3

func (i GetSequencesSequenceArray) ToGetSequencesSequenceArrayOutputWithContext(ctx context.Context) GetSequencesSequenceArrayOutput

type GetSequencesSequenceArrayInput added in v0.1.3

type GetSequencesSequenceArrayInput interface {
	pulumi.Input

	ToGetSequencesSequenceArrayOutput() GetSequencesSequenceArrayOutput
	ToGetSequencesSequenceArrayOutputWithContext(context.Context) GetSequencesSequenceArrayOutput
}

GetSequencesSequenceArrayInput is an input type that accepts GetSequencesSequenceArray and GetSequencesSequenceArrayOutput values. You can construct a concrete instance of `GetSequencesSequenceArrayInput` via:

GetSequencesSequenceArray{ GetSequencesSequenceArgs{...} }

type GetSequencesSequenceArrayOutput added in v0.1.3

type GetSequencesSequenceArrayOutput struct{ *pulumi.OutputState }

func (GetSequencesSequenceArrayOutput) ElementType added in v0.1.3

func (GetSequencesSequenceArrayOutput) Index added in v0.1.3

func (GetSequencesSequenceArrayOutput) ToGetSequencesSequenceArrayOutput added in v0.1.3

func (o GetSequencesSequenceArrayOutput) ToGetSequencesSequenceArrayOutput() GetSequencesSequenceArrayOutput

func (GetSequencesSequenceArrayOutput) ToGetSequencesSequenceArrayOutputWithContext added in v0.1.3

func (o GetSequencesSequenceArrayOutput) ToGetSequencesSequenceArrayOutputWithContext(ctx context.Context) GetSequencesSequenceArrayOutput

type GetSequencesSequenceInput added in v0.1.3

type GetSequencesSequenceInput interface {
	pulumi.Input

	ToGetSequencesSequenceOutput() GetSequencesSequenceOutput
	ToGetSequencesSequenceOutputWithContext(context.Context) GetSequencesSequenceOutput
}

GetSequencesSequenceInput is an input type that accepts GetSequencesSequenceArgs and GetSequencesSequenceOutput values. You can construct a concrete instance of `GetSequencesSequenceInput` via:

GetSequencesSequenceArgs{...}

type GetSequencesSequenceOutput added in v0.1.3

type GetSequencesSequenceOutput struct{ *pulumi.OutputState }

func (GetSequencesSequenceOutput) Comment added in v0.1.3

func (GetSequencesSequenceOutput) Database added in v0.1.3

The database from which to return the schemas from.

func (GetSequencesSequenceOutput) ElementType added in v0.1.3

func (GetSequencesSequenceOutput) ElementType() reflect.Type

func (GetSequencesSequenceOutput) Name added in v0.1.3

func (GetSequencesSequenceOutput) Schema added in v0.1.3

The schema from which to return the sequences from.

func (GetSequencesSequenceOutput) ToGetSequencesSequenceOutput added in v0.1.3

func (o GetSequencesSequenceOutput) ToGetSequencesSequenceOutput() GetSequencesSequenceOutput

func (GetSequencesSequenceOutput) ToGetSequencesSequenceOutputWithContext added in v0.1.3

func (o GetSequencesSequenceOutput) ToGetSequencesSequenceOutputWithContext(ctx context.Context) GetSequencesSequenceOutput

type GetSharesArgs added in v0.23.0

type GetSharesArgs struct {
	// Filters the command output by object name.
	Pattern *string `pulumi:"pattern"`
}

A collection of arguments for invoking getShares.

type GetSharesOutputArgs added in v0.23.0

type GetSharesOutputArgs struct {
	// Filters the command output by object name.
	Pattern pulumi.StringPtrInput `pulumi:"pattern"`
}

A collection of arguments for invoking getShares.

func (GetSharesOutputArgs) ElementType added in v0.23.0

func (GetSharesOutputArgs) ElementType() reflect.Type

type GetSharesResult added in v0.23.0

type GetSharesResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// Filters the command output by object name.
	Pattern *string `pulumi:"pattern"`
	// List of all the shares available in the system.
	Shares []GetSharesShare `pulumi:"shares"`
}

A collection of values returned by getShares.

func GetShares added in v0.23.0

func GetShares(ctx *pulumi.Context, args *GetSharesArgs, opts ...pulumi.InvokeOption) (*GetSharesResult, error)

type GetSharesResultOutput added in v0.23.0

type GetSharesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getShares.

func GetSharesOutput added in v0.23.0

func GetSharesOutput(ctx *pulumi.Context, args GetSharesOutputArgs, opts ...pulumi.InvokeOption) GetSharesResultOutput

func (GetSharesResultOutput) ElementType added in v0.23.0

func (GetSharesResultOutput) ElementType() reflect.Type

func (GetSharesResultOutput) Id added in v0.23.0

The provider-assigned unique ID for this managed resource.

func (GetSharesResultOutput) Pattern added in v0.23.0

Filters the command output by object name.

func (GetSharesResultOutput) Shares added in v0.23.0

List of all the shares available in the system.

func (GetSharesResultOutput) ToGetSharesResultOutput added in v0.23.0

func (o GetSharesResultOutput) ToGetSharesResultOutput() GetSharesResultOutput

func (GetSharesResultOutput) ToGetSharesResultOutputWithContext added in v0.23.0

func (o GetSharesResultOutput) ToGetSharesResultOutputWithContext(ctx context.Context) GetSharesResultOutput

type GetSharesShare added in v0.23.0

type GetSharesShare struct {
	Comment string        `pulumi:"comment"`
	Kind    string        `pulumi:"kind"`
	Name    string        `pulumi:"name"`
	Owner   string        `pulumi:"owner"`
	Tos     []interface{} `pulumi:"tos"`
}

type GetSharesShareArgs added in v0.23.0

type GetSharesShareArgs struct {
	Comment pulumi.StringInput `pulumi:"comment"`
	Kind    pulumi.StringInput `pulumi:"kind"`
	Name    pulumi.StringInput `pulumi:"name"`
	Owner   pulumi.StringInput `pulumi:"owner"`
	Tos     pulumi.ArrayInput  `pulumi:"tos"`
}

func (GetSharesShareArgs) ElementType added in v0.23.0

func (GetSharesShareArgs) ElementType() reflect.Type

func (GetSharesShareArgs) ToGetSharesShareOutput added in v0.23.0

func (i GetSharesShareArgs) ToGetSharesShareOutput() GetSharesShareOutput

func (GetSharesShareArgs) ToGetSharesShareOutputWithContext added in v0.23.0

func (i GetSharesShareArgs) ToGetSharesShareOutputWithContext(ctx context.Context) GetSharesShareOutput

type GetSharesShareArray added in v0.23.0

type GetSharesShareArray []GetSharesShareInput

func (GetSharesShareArray) ElementType added in v0.23.0

func (GetSharesShareArray) ElementType() reflect.Type

func (GetSharesShareArray) ToGetSharesShareArrayOutput added in v0.23.0

func (i GetSharesShareArray) ToGetSharesShareArrayOutput() GetSharesShareArrayOutput

func (GetSharesShareArray) ToGetSharesShareArrayOutputWithContext added in v0.23.0

func (i GetSharesShareArray) ToGetSharesShareArrayOutputWithContext(ctx context.Context) GetSharesShareArrayOutput

type GetSharesShareArrayInput added in v0.23.0

type GetSharesShareArrayInput interface {
	pulumi.Input

	ToGetSharesShareArrayOutput() GetSharesShareArrayOutput
	ToGetSharesShareArrayOutputWithContext(context.Context) GetSharesShareArrayOutput
}

GetSharesShareArrayInput is an input type that accepts GetSharesShareArray and GetSharesShareArrayOutput values. You can construct a concrete instance of `GetSharesShareArrayInput` via:

GetSharesShareArray{ GetSharesShareArgs{...} }

type GetSharesShareArrayOutput added in v0.23.0

type GetSharesShareArrayOutput struct{ *pulumi.OutputState }

func (GetSharesShareArrayOutput) ElementType added in v0.23.0

func (GetSharesShareArrayOutput) ElementType() reflect.Type

func (GetSharesShareArrayOutput) Index added in v0.23.0

func (GetSharesShareArrayOutput) ToGetSharesShareArrayOutput added in v0.23.0

func (o GetSharesShareArrayOutput) ToGetSharesShareArrayOutput() GetSharesShareArrayOutput

func (GetSharesShareArrayOutput) ToGetSharesShareArrayOutputWithContext added in v0.23.0

func (o GetSharesShareArrayOutput) ToGetSharesShareArrayOutputWithContext(ctx context.Context) GetSharesShareArrayOutput

type GetSharesShareInput added in v0.23.0

type GetSharesShareInput interface {
	pulumi.Input

	ToGetSharesShareOutput() GetSharesShareOutput
	ToGetSharesShareOutputWithContext(context.Context) GetSharesShareOutput
}

GetSharesShareInput is an input type that accepts GetSharesShareArgs and GetSharesShareOutput values. You can construct a concrete instance of `GetSharesShareInput` via:

GetSharesShareArgs{...}

type GetSharesShareOutput added in v0.23.0

type GetSharesShareOutput struct{ *pulumi.OutputState }

func (GetSharesShareOutput) Comment added in v0.23.0

func (GetSharesShareOutput) ElementType added in v0.23.0

func (GetSharesShareOutput) ElementType() reflect.Type

func (GetSharesShareOutput) Kind added in v0.23.0

func (GetSharesShareOutput) Name added in v0.23.0

func (GetSharesShareOutput) Owner added in v0.23.0

func (GetSharesShareOutput) ToGetSharesShareOutput added in v0.23.0

func (o GetSharesShareOutput) ToGetSharesShareOutput() GetSharesShareOutput

func (GetSharesShareOutput) ToGetSharesShareOutputWithContext added in v0.23.0

func (o GetSharesShareOutput) ToGetSharesShareOutputWithContext(ctx context.Context) GetSharesShareOutput

func (GetSharesShareOutput) Tos added in v0.26.0

type GetStagesArgs added in v0.1.3

type GetStagesArgs struct {
	// The database from which to return the schemas from.
	Database string `pulumi:"database"`
	// The schema from which to return the stages from.
	Schema string `pulumi:"schema"`
}

A collection of arguments for invoking getStages.

type GetStagesOutputArgs added in v0.2.0

type GetStagesOutputArgs struct {
	// The database from which to return the schemas from.
	Database pulumi.StringInput `pulumi:"database"`
	// The schema from which to return the stages from.
	Schema pulumi.StringInput `pulumi:"schema"`
}

A collection of arguments for invoking getStages.

func (GetStagesOutputArgs) ElementType added in v0.2.0

func (GetStagesOutputArgs) ElementType() reflect.Type

type GetStagesResult added in v0.1.3

type GetStagesResult struct {
	// The database from which to return the schemas from.
	Database string `pulumi:"database"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The schema from which to return the stages from.
	Schema string `pulumi:"schema"`
	// The stages in the schema
	Stages []GetStagesStage `pulumi:"stages"`
}

A collection of values returned by getStages.

func GetStages added in v0.1.3

func GetStages(ctx *pulumi.Context, args *GetStagesArgs, opts ...pulumi.InvokeOption) (*GetStagesResult, error)

## Example Usage

```go 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.GetStages(ctx, &snowflake.GetStagesArgs{
			Database: "MYDB",
			Schema:   "MYSCHEMA",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetStagesResultOutput added in v0.2.0

type GetStagesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getStages.

func GetStagesOutput added in v0.2.0

func GetStagesOutput(ctx *pulumi.Context, args GetStagesOutputArgs, opts ...pulumi.InvokeOption) GetStagesResultOutput

func (GetStagesResultOutput) Database added in v0.2.0

The database from which to return the schemas from.

func (GetStagesResultOutput) ElementType added in v0.2.0

func (GetStagesResultOutput) ElementType() reflect.Type

func (GetStagesResultOutput) Id added in v0.2.0

The provider-assigned unique ID for this managed resource.

func (GetStagesResultOutput) Schema added in v0.2.0

The schema from which to return the stages from.

func (GetStagesResultOutput) Stages added in v0.2.0

The stages in the schema

func (GetStagesResultOutput) ToGetStagesResultOutput added in v0.2.0

func (o GetStagesResultOutput) ToGetStagesResultOutput() GetStagesResultOutput

func (GetStagesResultOutput) ToGetStagesResultOutputWithContext added in v0.2.0

func (o GetStagesResultOutput) ToGetStagesResultOutputWithContext(ctx context.Context) GetStagesResultOutput

type GetStagesStage added in v0.1.3

type GetStagesStage struct {
	Comment string `pulumi:"comment"`
	// The database from which to return the schemas from.
	Database string `pulumi:"database"`
	Name     string `pulumi:"name"`
	// The schema from which to return the stages from.
	Schema             string `pulumi:"schema"`
	StorageIntegration string `pulumi:"storageIntegration"`
}

type GetStagesStageArgs added in v0.1.3

type GetStagesStageArgs struct {
	Comment pulumi.StringInput `pulumi:"comment"`
	// The database from which to return the schemas from.
	Database pulumi.StringInput `pulumi:"database"`
	Name     pulumi.StringInput `pulumi:"name"`
	// The schema from which to return the stages from.
	Schema             pulumi.StringInput `pulumi:"schema"`
	StorageIntegration pulumi.StringInput `pulumi:"storageIntegration"`
}

func (GetStagesStageArgs) ElementType added in v0.1.3

func (GetStagesStageArgs) ElementType() reflect.Type

func (GetStagesStageArgs) ToGetStagesStageOutput added in v0.1.3

func (i GetStagesStageArgs) ToGetStagesStageOutput() GetStagesStageOutput

func (GetStagesStageArgs) ToGetStagesStageOutputWithContext added in v0.1.3

func (i GetStagesStageArgs) ToGetStagesStageOutputWithContext(ctx context.Context) GetStagesStageOutput

type GetStagesStageArray added in v0.1.3

type GetStagesStageArray []GetStagesStageInput

func (GetStagesStageArray) ElementType added in v0.1.3

func (GetStagesStageArray) ElementType() reflect.Type

func (GetStagesStageArray) ToGetStagesStageArrayOutput added in v0.1.3

func (i GetStagesStageArray) ToGetStagesStageArrayOutput() GetStagesStageArrayOutput

func (GetStagesStageArray) ToGetStagesStageArrayOutputWithContext added in v0.1.3

func (i GetStagesStageArray) ToGetStagesStageArrayOutputWithContext(ctx context.Context) GetStagesStageArrayOutput

type GetStagesStageArrayInput added in v0.1.3

type GetStagesStageArrayInput interface {
	pulumi.Input

	ToGetStagesStageArrayOutput() GetStagesStageArrayOutput
	ToGetStagesStageArrayOutputWithContext(context.Context) GetStagesStageArrayOutput
}

GetStagesStageArrayInput is an input type that accepts GetStagesStageArray and GetStagesStageArrayOutput values. You can construct a concrete instance of `GetStagesStageArrayInput` via:

GetStagesStageArray{ GetStagesStageArgs{...} }

type GetStagesStageArrayOutput added in v0.1.3

type GetStagesStageArrayOutput struct{ *pulumi.OutputState }

func (GetStagesStageArrayOutput) ElementType added in v0.1.3

func (GetStagesStageArrayOutput) ElementType() reflect.Type

func (GetStagesStageArrayOutput) Index added in v0.1.3

func (GetStagesStageArrayOutput) ToGetStagesStageArrayOutput added in v0.1.3

func (o GetStagesStageArrayOutput) ToGetStagesStageArrayOutput() GetStagesStageArrayOutput

func (GetStagesStageArrayOutput) ToGetStagesStageArrayOutputWithContext added in v0.1.3

func (o GetStagesStageArrayOutput) ToGetStagesStageArrayOutputWithContext(ctx context.Context) GetStagesStageArrayOutput

type GetStagesStageInput added in v0.1.3

type GetStagesStageInput interface {
	pulumi.Input

	ToGetStagesStageOutput() GetStagesStageOutput
	ToGetStagesStageOutputWithContext(context.Context) GetStagesStageOutput
}

GetStagesStageInput is an input type that accepts GetStagesStageArgs and GetStagesStageOutput values. You can construct a concrete instance of `GetStagesStageInput` via:

GetStagesStageArgs{...}

type GetStagesStageOutput added in v0.1.3

type GetStagesStageOutput struct{ *pulumi.OutputState }

func (GetStagesStageOutput) Comment added in v0.1.3

func (GetStagesStageOutput) Database added in v0.1.3

The database from which to return the schemas from.

func (GetStagesStageOutput) ElementType added in v0.1.3

func (GetStagesStageOutput) ElementType() reflect.Type

func (GetStagesStageOutput) Name added in v0.1.3

func (GetStagesStageOutput) Schema added in v0.1.3

The schema from which to return the stages from.

func (GetStagesStageOutput) StorageIntegration added in v0.1.3

func (o GetStagesStageOutput) StorageIntegration() pulumi.StringOutput

func (GetStagesStageOutput) ToGetStagesStageOutput added in v0.1.3

func (o GetStagesStageOutput) ToGetStagesStageOutput() GetStagesStageOutput

func (GetStagesStageOutput) ToGetStagesStageOutputWithContext added in v0.1.3

func (o GetStagesStageOutput) ToGetStagesStageOutputWithContext(ctx context.Context) GetStagesStageOutput

type GetStorageIntegrationsResult added in v0.1.3

type GetStorageIntegrationsResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The storage integrations in the database
	StorageIntegrations []GetStorageIntegrationsStorageIntegration `pulumi:"storageIntegrations"`
}

A collection of values returned by getStorageIntegrations.

func GetStorageIntegrations added in v0.1.3

func GetStorageIntegrations(ctx *pulumi.Context, opts ...pulumi.InvokeOption) (*GetStorageIntegrationsResult, error)

## Example Usage

```go 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.GetStorageIntegrations(ctx, nil, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetStorageIntegrationsStorageIntegration added in v0.1.3

type GetStorageIntegrationsStorageIntegration struct {
	Comment string `pulumi:"comment"`
	Enabled bool   `pulumi:"enabled"`
	Name    string `pulumi:"name"`
	Type    string `pulumi:"type"`
}

type GetStorageIntegrationsStorageIntegrationArgs added in v0.1.3

type GetStorageIntegrationsStorageIntegrationArgs struct {
	Comment pulumi.StringInput `pulumi:"comment"`
	Enabled pulumi.BoolInput   `pulumi:"enabled"`
	Name    pulumi.StringInput `pulumi:"name"`
	Type    pulumi.StringInput `pulumi:"type"`
}

func (GetStorageIntegrationsStorageIntegrationArgs) ElementType added in v0.1.3

func (GetStorageIntegrationsStorageIntegrationArgs) ToGetStorageIntegrationsStorageIntegrationOutput added in v0.1.3

func (i GetStorageIntegrationsStorageIntegrationArgs) ToGetStorageIntegrationsStorageIntegrationOutput() GetStorageIntegrationsStorageIntegrationOutput

func (GetStorageIntegrationsStorageIntegrationArgs) ToGetStorageIntegrationsStorageIntegrationOutputWithContext added in v0.1.3

func (i GetStorageIntegrationsStorageIntegrationArgs) ToGetStorageIntegrationsStorageIntegrationOutputWithContext(ctx context.Context) GetStorageIntegrationsStorageIntegrationOutput

type GetStorageIntegrationsStorageIntegrationArray added in v0.1.3

type GetStorageIntegrationsStorageIntegrationArray []GetStorageIntegrationsStorageIntegrationInput

func (GetStorageIntegrationsStorageIntegrationArray) ElementType added in v0.1.3

func (GetStorageIntegrationsStorageIntegrationArray) ToGetStorageIntegrationsStorageIntegrationArrayOutput added in v0.1.3

func (i GetStorageIntegrationsStorageIntegrationArray) ToGetStorageIntegrationsStorageIntegrationArrayOutput() GetStorageIntegrationsStorageIntegrationArrayOutput

func (GetStorageIntegrationsStorageIntegrationArray) ToGetStorageIntegrationsStorageIntegrationArrayOutputWithContext added in v0.1.3

func (i GetStorageIntegrationsStorageIntegrationArray) ToGetStorageIntegrationsStorageIntegrationArrayOutputWithContext(ctx context.Context) GetStorageIntegrationsStorageIntegrationArrayOutput

type GetStorageIntegrationsStorageIntegrationArrayInput added in v0.1.3

type GetStorageIntegrationsStorageIntegrationArrayInput interface {
	pulumi.Input

	ToGetStorageIntegrationsStorageIntegrationArrayOutput() GetStorageIntegrationsStorageIntegrationArrayOutput
	ToGetStorageIntegrationsStorageIntegrationArrayOutputWithContext(context.Context) GetStorageIntegrationsStorageIntegrationArrayOutput
}

GetStorageIntegrationsStorageIntegrationArrayInput is an input type that accepts GetStorageIntegrationsStorageIntegrationArray and GetStorageIntegrationsStorageIntegrationArrayOutput values. You can construct a concrete instance of `GetStorageIntegrationsStorageIntegrationArrayInput` via:

GetStorageIntegrationsStorageIntegrationArray{ GetStorageIntegrationsStorageIntegrationArgs{...} }

type GetStorageIntegrationsStorageIntegrationArrayOutput added in v0.1.3

type GetStorageIntegrationsStorageIntegrationArrayOutput struct{ *pulumi.OutputState }

func (GetStorageIntegrationsStorageIntegrationArrayOutput) ElementType added in v0.1.3

func (GetStorageIntegrationsStorageIntegrationArrayOutput) Index added in v0.1.3

func (GetStorageIntegrationsStorageIntegrationArrayOutput) ToGetStorageIntegrationsStorageIntegrationArrayOutput added in v0.1.3

func (o GetStorageIntegrationsStorageIntegrationArrayOutput) ToGetStorageIntegrationsStorageIntegrationArrayOutput() GetStorageIntegrationsStorageIntegrationArrayOutput

func (GetStorageIntegrationsStorageIntegrationArrayOutput) ToGetStorageIntegrationsStorageIntegrationArrayOutputWithContext added in v0.1.3

func (o GetStorageIntegrationsStorageIntegrationArrayOutput) ToGetStorageIntegrationsStorageIntegrationArrayOutputWithContext(ctx context.Context) GetStorageIntegrationsStorageIntegrationArrayOutput

type GetStorageIntegrationsStorageIntegrationInput added in v0.1.3

type GetStorageIntegrationsStorageIntegrationInput interface {
	pulumi.Input

	ToGetStorageIntegrationsStorageIntegrationOutput() GetStorageIntegrationsStorageIntegrationOutput
	ToGetStorageIntegrationsStorageIntegrationOutputWithContext(context.Context) GetStorageIntegrationsStorageIntegrationOutput
}

GetStorageIntegrationsStorageIntegrationInput is an input type that accepts GetStorageIntegrationsStorageIntegrationArgs and GetStorageIntegrationsStorageIntegrationOutput values. You can construct a concrete instance of `GetStorageIntegrationsStorageIntegrationInput` via:

GetStorageIntegrationsStorageIntegrationArgs{...}

type GetStorageIntegrationsStorageIntegrationOutput added in v0.1.3

type GetStorageIntegrationsStorageIntegrationOutput struct{ *pulumi.OutputState }

func (GetStorageIntegrationsStorageIntegrationOutput) Comment added in v0.1.3

func (GetStorageIntegrationsStorageIntegrationOutput) ElementType added in v0.1.3

func (GetStorageIntegrationsStorageIntegrationOutput) Enabled added in v0.1.3

func (GetStorageIntegrationsStorageIntegrationOutput) Name added in v0.1.3

func (GetStorageIntegrationsStorageIntegrationOutput) ToGetStorageIntegrationsStorageIntegrationOutput added in v0.1.3

func (o GetStorageIntegrationsStorageIntegrationOutput) ToGetStorageIntegrationsStorageIntegrationOutput() GetStorageIntegrationsStorageIntegrationOutput

func (GetStorageIntegrationsStorageIntegrationOutput) ToGetStorageIntegrationsStorageIntegrationOutputWithContext added in v0.1.3

func (o GetStorageIntegrationsStorageIntegrationOutput) ToGetStorageIntegrationsStorageIntegrationOutputWithContext(ctx context.Context) GetStorageIntegrationsStorageIntegrationOutput

func (GetStorageIntegrationsStorageIntegrationOutput) Type added in v0.1.3

type GetStreamsArgs added in v0.1.3

type GetStreamsArgs struct {
	// The database from which to return the streams from.
	Database string `pulumi:"database"`
	// The schema from which to return the streams from.
	Schema string `pulumi:"schema"`
}

A collection of arguments for invoking getStreams.

type GetStreamsOutputArgs added in v0.2.0

type GetStreamsOutputArgs struct {
	// The database from which to return the streams from.
	Database pulumi.StringInput `pulumi:"database"`
	// The schema from which to return the streams from.
	Schema pulumi.StringInput `pulumi:"schema"`
}

A collection of arguments for invoking getStreams.

func (GetStreamsOutputArgs) ElementType added in v0.2.0

func (GetStreamsOutputArgs) ElementType() reflect.Type

type GetStreamsResult added in v0.1.3

type GetStreamsResult struct {
	// The database from which to return the streams from.
	Database string `pulumi:"database"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The schema from which to return the streams from.
	Schema string `pulumi:"schema"`
	// The streams in the schema
	Streams []GetStreamsStream `pulumi:"streams"`
}

A collection of values returned by getStreams.

func GetStreams added in v0.1.3

func GetStreams(ctx *pulumi.Context, args *GetStreamsArgs, opts ...pulumi.InvokeOption) (*GetStreamsResult, error)

## Example Usage

```go 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.GetStreams(ctx, &snowflake.GetStreamsArgs{
			Database: "MYDB",
			Schema:   "MYSCHEMA",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetStreamsResultOutput added in v0.2.0

type GetStreamsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getStreams.

func GetStreamsOutput added in v0.2.0

func GetStreamsOutput(ctx *pulumi.Context, args GetStreamsOutputArgs, opts ...pulumi.InvokeOption) GetStreamsResultOutput

func (GetStreamsResultOutput) Database added in v0.2.0

The database from which to return the streams from.

func (GetStreamsResultOutput) ElementType added in v0.2.0

func (GetStreamsResultOutput) ElementType() reflect.Type

func (GetStreamsResultOutput) Id added in v0.2.0

The provider-assigned unique ID for this managed resource.

func (GetStreamsResultOutput) Schema added in v0.2.0

The schema from which to return the streams from.

func (GetStreamsResultOutput) Streams added in v0.2.0

The streams in the schema

func (GetStreamsResultOutput) ToGetStreamsResultOutput added in v0.2.0

func (o GetStreamsResultOutput) ToGetStreamsResultOutput() GetStreamsResultOutput

func (GetStreamsResultOutput) ToGetStreamsResultOutputWithContext added in v0.2.0

func (o GetStreamsResultOutput) ToGetStreamsResultOutputWithContext(ctx context.Context) GetStreamsResultOutput

type GetStreamsStream added in v0.1.3

type GetStreamsStream struct {
	Comment string `pulumi:"comment"`
	// The database from which to return the streams from.
	Database string `pulumi:"database"`
	Name     string `pulumi:"name"`
	// The schema from which to return the streams from.
	Schema string `pulumi:"schema"`
	Table  string `pulumi:"table"`
}

type GetStreamsStreamArgs added in v0.1.3

type GetStreamsStreamArgs struct {
	Comment pulumi.StringInput `pulumi:"comment"`
	// The database from which to return the streams from.
	Database pulumi.StringInput `pulumi:"database"`
	Name     pulumi.StringInput `pulumi:"name"`
	// The schema from which to return the streams from.
	Schema pulumi.StringInput `pulumi:"schema"`
	Table  pulumi.StringInput `pulumi:"table"`
}

func (GetStreamsStreamArgs) ElementType added in v0.1.3

func (GetStreamsStreamArgs) ElementType() reflect.Type

func (GetStreamsStreamArgs) ToGetStreamsStreamOutput added in v0.1.3

func (i GetStreamsStreamArgs) ToGetStreamsStreamOutput() GetStreamsStreamOutput

func (GetStreamsStreamArgs) ToGetStreamsStreamOutputWithContext added in v0.1.3

func (i GetStreamsStreamArgs) ToGetStreamsStreamOutputWithContext(ctx context.Context) GetStreamsStreamOutput

type GetStreamsStreamArray added in v0.1.3

type GetStreamsStreamArray []GetStreamsStreamInput

func (GetStreamsStreamArray) ElementType added in v0.1.3

func (GetStreamsStreamArray) ElementType() reflect.Type

func (GetStreamsStreamArray) ToGetStreamsStreamArrayOutput added in v0.1.3

func (i GetStreamsStreamArray) ToGetStreamsStreamArrayOutput() GetStreamsStreamArrayOutput

func (GetStreamsStreamArray) ToGetStreamsStreamArrayOutputWithContext added in v0.1.3

func (i GetStreamsStreamArray) ToGetStreamsStreamArrayOutputWithContext(ctx context.Context) GetStreamsStreamArrayOutput

type GetStreamsStreamArrayInput added in v0.1.3

type GetStreamsStreamArrayInput interface {
	pulumi.Input

	ToGetStreamsStreamArrayOutput() GetStreamsStreamArrayOutput
	ToGetStreamsStreamArrayOutputWithContext(context.Context) GetStreamsStreamArrayOutput
}

GetStreamsStreamArrayInput is an input type that accepts GetStreamsStreamArray and GetStreamsStreamArrayOutput values. You can construct a concrete instance of `GetStreamsStreamArrayInput` via:

GetStreamsStreamArray{ GetStreamsStreamArgs{...} }

type GetStreamsStreamArrayOutput added in v0.1.3

type GetStreamsStreamArrayOutput struct{ *pulumi.OutputState }

func (GetStreamsStreamArrayOutput) ElementType added in v0.1.3

func (GetStreamsStreamArrayOutput) Index added in v0.1.3

func (GetStreamsStreamArrayOutput) ToGetStreamsStreamArrayOutput added in v0.1.3

func (o GetStreamsStreamArrayOutput) ToGetStreamsStreamArrayOutput() GetStreamsStreamArrayOutput

func (GetStreamsStreamArrayOutput) ToGetStreamsStreamArrayOutputWithContext added in v0.1.3

func (o GetStreamsStreamArrayOutput) ToGetStreamsStreamArrayOutputWithContext(ctx context.Context) GetStreamsStreamArrayOutput

type GetStreamsStreamInput added in v0.1.3

type GetStreamsStreamInput interface {
	pulumi.Input

	ToGetStreamsStreamOutput() GetStreamsStreamOutput
	ToGetStreamsStreamOutputWithContext(context.Context) GetStreamsStreamOutput
}

GetStreamsStreamInput is an input type that accepts GetStreamsStreamArgs and GetStreamsStreamOutput values. You can construct a concrete instance of `GetStreamsStreamInput` via:

GetStreamsStreamArgs{...}

type GetStreamsStreamOutput added in v0.1.3

type GetStreamsStreamOutput struct{ *pulumi.OutputState }

func (GetStreamsStreamOutput) Comment added in v0.1.3

func (GetStreamsStreamOutput) Database added in v0.1.3

The database from which to return the streams from.

func (GetStreamsStreamOutput) ElementType added in v0.1.3

func (GetStreamsStreamOutput) ElementType() reflect.Type

func (GetStreamsStreamOutput) Name added in v0.1.3

func (GetStreamsStreamOutput) Schema added in v0.1.3

The schema from which to return the streams from.

func (GetStreamsStreamOutput) Table added in v0.1.3

func (GetStreamsStreamOutput) ToGetStreamsStreamOutput added in v0.1.3

func (o GetStreamsStreamOutput) ToGetStreamsStreamOutput() GetStreamsStreamOutput

func (GetStreamsStreamOutput) ToGetStreamsStreamOutputWithContext added in v0.1.3

func (o GetStreamsStreamOutput) ToGetStreamsStreamOutputWithContext(ctx context.Context) GetStreamsStreamOutput

type GetSystemGenerateScimAccessTokenArgs

type GetSystemGenerateScimAccessTokenArgs struct {
	// SCIM Integration Name
	IntegrationName string `pulumi:"integrationName"`
}

A collection of arguments for invoking getSystemGenerateScimAccessToken.

type GetSystemGenerateScimAccessTokenOutputArgs added in v0.2.0

type GetSystemGenerateScimAccessTokenOutputArgs struct {
	// SCIM Integration Name
	IntegrationName pulumi.StringInput `pulumi:"integrationName"`
}

A collection of arguments for invoking getSystemGenerateScimAccessToken.

func (GetSystemGenerateScimAccessTokenOutputArgs) ElementType added in v0.2.0

type GetSystemGenerateScimAccessTokenResult

type GetSystemGenerateScimAccessTokenResult struct {
	// SCIM Access Token
	AccessToken string `pulumi:"accessToken"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// SCIM Integration Name
	IntegrationName string `pulumi:"integrationName"`
}

A collection of values returned by getSystemGenerateScimAccessToken.

func GetSystemGenerateScimAccessToken

## Example Usage

```go 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.GetSystemGenerateScimAccessToken(ctx, &snowflake.GetSystemGenerateScimAccessTokenArgs{
			IntegrationName: "AAD_PROVISIONING",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetSystemGenerateScimAccessTokenResultOutput added in v0.2.0

type GetSystemGenerateScimAccessTokenResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getSystemGenerateScimAccessToken.

func (GetSystemGenerateScimAccessTokenResultOutput) AccessToken added in v0.2.0

SCIM Access Token

func (GetSystemGenerateScimAccessTokenResultOutput) ElementType added in v0.2.0

func (GetSystemGenerateScimAccessTokenResultOutput) Id added in v0.2.0

The provider-assigned unique ID for this managed resource.

func (GetSystemGenerateScimAccessTokenResultOutput) IntegrationName added in v0.2.0

SCIM Integration Name

func (GetSystemGenerateScimAccessTokenResultOutput) ToGetSystemGenerateScimAccessTokenResultOutput added in v0.2.0

func (o GetSystemGenerateScimAccessTokenResultOutput) ToGetSystemGenerateScimAccessTokenResultOutput() GetSystemGenerateScimAccessTokenResultOutput

func (GetSystemGenerateScimAccessTokenResultOutput) ToGetSystemGenerateScimAccessTokenResultOutputWithContext added in v0.2.0

func (o GetSystemGenerateScimAccessTokenResultOutput) ToGetSystemGenerateScimAccessTokenResultOutputWithContext(ctx context.Context) GetSystemGenerateScimAccessTokenResultOutput

type GetSystemGetAwsSnsIamPolicyArgs

type GetSystemGetAwsSnsIamPolicyArgs struct {
	// Amazon Resource Name (ARN) of the SNS topic for your S3 bucket
	AwsSnsTopicArn string `pulumi:"awsSnsTopicArn"`
}

A collection of arguments for invoking getSystemGetAwsSnsIamPolicy.

type GetSystemGetAwsSnsIamPolicyOutputArgs added in v0.2.0

type GetSystemGetAwsSnsIamPolicyOutputArgs struct {
	// Amazon Resource Name (ARN) of the SNS topic for your S3 bucket
	AwsSnsTopicArn pulumi.StringInput `pulumi:"awsSnsTopicArn"`
}

A collection of arguments for invoking getSystemGetAwsSnsIamPolicy.

func (GetSystemGetAwsSnsIamPolicyOutputArgs) ElementType added in v0.2.0

type GetSystemGetAwsSnsIamPolicyResult

type GetSystemGetAwsSnsIamPolicyResult struct {
	// Amazon Resource Name (ARN) of the SNS topic for your S3 bucket
	AwsSnsTopicArn string `pulumi:"awsSnsTopicArn"`
	// IAM policy for Snowflake’s SQS queue to subscribe to this topic
	AwsSnsTopicPolicyJson string `pulumi:"awsSnsTopicPolicyJson"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
}

A collection of values returned by getSystemGetAwsSnsIamPolicy.

type GetSystemGetAwsSnsIamPolicyResultOutput added in v0.2.0

type GetSystemGetAwsSnsIamPolicyResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getSystemGetAwsSnsIamPolicy.

func (GetSystemGetAwsSnsIamPolicyResultOutput) AwsSnsTopicArn added in v0.2.0

Amazon Resource Name (ARN) of the SNS topic for your S3 bucket

func (GetSystemGetAwsSnsIamPolicyResultOutput) AwsSnsTopicPolicyJson added in v0.2.0

IAM policy for Snowflake’s SQS queue to subscribe to this topic

func (GetSystemGetAwsSnsIamPolicyResultOutput) ElementType added in v0.2.0

func (GetSystemGetAwsSnsIamPolicyResultOutput) Id added in v0.2.0

The provider-assigned unique ID for this managed resource.

func (GetSystemGetAwsSnsIamPolicyResultOutput) ToGetSystemGetAwsSnsIamPolicyResultOutput added in v0.2.0

func (o GetSystemGetAwsSnsIamPolicyResultOutput) ToGetSystemGetAwsSnsIamPolicyResultOutput() GetSystemGetAwsSnsIamPolicyResultOutput

func (GetSystemGetAwsSnsIamPolicyResultOutput) ToGetSystemGetAwsSnsIamPolicyResultOutputWithContext added in v0.2.0

func (o GetSystemGetAwsSnsIamPolicyResultOutput) ToGetSystemGetAwsSnsIamPolicyResultOutputWithContext(ctx context.Context) GetSystemGetAwsSnsIamPolicyResultOutput

type GetSystemGetPrivateLinkConfigResult

type GetSystemGetPrivateLinkConfigResult struct {
	// The name of your Snowflake account.
	AccountName string `pulumi:"accountName"`
	// The URL used to connect to Snowflake through AWS PrivateLink or Azure Private Link.
	AccountUrl string `pulumi:"accountUrl"`
	// The AWS VPCE ID for your account.
	AwsVpceId string `pulumi:"awsVpceId"`
	// The Azure Private Link Service ID for your account.
	AzurePlsId string `pulumi:"azurePlsId"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The endpoint to connect to your Snowflake internal stage using AWS PrivateLink or Azure Private Link.
	InternalStage string `pulumi:"internalStage"`
	// The OCSP URL corresponding to your Snowflake account that uses AWS PrivateLink or Azure Private Link.
	OcspUrl string `pulumi:"ocspUrl"`
	// The regionless URL to connect to your Snowflake account using AWS PrivateLink, Azure Private Link, or Google Cloud Private Service Connect.
	RegionlessAccountUrl string `pulumi:"regionlessAccountUrl"`
	// The URL for your organization to access Snowsight using Private Connectivity to the Snowflake Service.
	RegionlessSnowsightUrl string `pulumi:"regionlessSnowsightUrl"`
	// The URL containing the cloud region to access Snowsight and the Snowflake Marketplace using Private Connectivity to the Snowflake Service.
	SnowsightUrl string `pulumi:"snowsightUrl"`
}

A collection of values returned by getSystemGetPrivateLinkConfig.

func GetSystemGetPrivateLinkConfig

func GetSystemGetPrivateLinkConfig(ctx *pulumi.Context, opts ...pulumi.InvokeOption) (*GetSystemGetPrivateLinkConfigResult, error)

type GetSystemGetSnowflakePlatformInfoResult

type GetSystemGetSnowflakePlatformInfoResult struct {
	// Snowflake AWS Virtual Private Cloud IDs
	AwsVpcIds []string `pulumi:"awsVpcIds"`
	// Snowflake Azure Virtual Network Subnet IDs
	AzureVnetSubnetIds []string `pulumi:"azureVnetSubnetIds"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
}

A collection of values returned by getSystemGetSnowflakePlatformInfo.

type GetTablesArgs added in v0.1.2

type GetTablesArgs struct {
	// The database from which to return the schemas from.
	Database string `pulumi:"database"`
	// The schema from which to return the tables from.
	Schema string `pulumi:"schema"`
}

A collection of arguments for invoking getTables.

type GetTablesOutputArgs added in v0.2.0

type GetTablesOutputArgs struct {
	// The database from which to return the schemas from.
	Database pulumi.StringInput `pulumi:"database"`
	// The schema from which to return the tables from.
	Schema pulumi.StringInput `pulumi:"schema"`
}

A collection of arguments for invoking getTables.

func (GetTablesOutputArgs) ElementType added in v0.2.0

func (GetTablesOutputArgs) ElementType() reflect.Type

type GetTablesResult added in v0.1.2

type GetTablesResult struct {
	// The database from which to return the schemas from.
	Database string `pulumi:"database"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The schema from which to return the tables from.
	Schema string `pulumi:"schema"`
	// The tables in the schema
	Tables []GetTablesTable `pulumi:"tables"`
}

A collection of values returned by getTables.

func GetTables added in v0.1.2

func GetTables(ctx *pulumi.Context, args *GetTablesArgs, opts ...pulumi.InvokeOption) (*GetTablesResult, error)

## Example Usage

```go 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.GetTables(ctx, &snowflake.GetTablesArgs{
			Database: "MYDB",
			Schema:   "MYSCHEMA",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetTablesResultOutput added in v0.2.0

type GetTablesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getTables.

func GetTablesOutput added in v0.2.0

func GetTablesOutput(ctx *pulumi.Context, args GetTablesOutputArgs, opts ...pulumi.InvokeOption) GetTablesResultOutput

func (GetTablesResultOutput) Database added in v0.2.0

The database from which to return the schemas from.

func (GetTablesResultOutput) ElementType added in v0.2.0

func (GetTablesResultOutput) ElementType() reflect.Type

func (GetTablesResultOutput) Id added in v0.2.0

The provider-assigned unique ID for this managed resource.

func (GetTablesResultOutput) Schema added in v0.2.0

The schema from which to return the tables from.

func (GetTablesResultOutput) Tables added in v0.2.0

The tables in the schema

func (GetTablesResultOutput) ToGetTablesResultOutput added in v0.2.0

func (o GetTablesResultOutput) ToGetTablesResultOutput() GetTablesResultOutput

func (GetTablesResultOutput) ToGetTablesResultOutputWithContext added in v0.2.0

func (o GetTablesResultOutput) ToGetTablesResultOutputWithContext(ctx context.Context) GetTablesResultOutput

type GetTablesTable added in v0.1.2

type GetTablesTable struct {
	Comment string `pulumi:"comment"`
	// The database from which to return the schemas from.
	Database string `pulumi:"database"`
	Name     string `pulumi:"name"`
	// The schema from which to return the tables from.
	Schema string `pulumi:"schema"`
}

type GetTablesTableArgs added in v0.1.2

type GetTablesTableArgs struct {
	Comment pulumi.StringInput `pulumi:"comment"`
	// The database from which to return the schemas from.
	Database pulumi.StringInput `pulumi:"database"`
	Name     pulumi.StringInput `pulumi:"name"`
	// The schema from which to return the tables from.
	Schema pulumi.StringInput `pulumi:"schema"`
}

func (GetTablesTableArgs) ElementType added in v0.1.2

func (GetTablesTableArgs) ElementType() reflect.Type

func (GetTablesTableArgs) ToGetTablesTableOutput added in v0.1.2

func (i GetTablesTableArgs) ToGetTablesTableOutput() GetTablesTableOutput

func (GetTablesTableArgs) ToGetTablesTableOutputWithContext added in v0.1.2

func (i GetTablesTableArgs) ToGetTablesTableOutputWithContext(ctx context.Context) GetTablesTableOutput

type GetTablesTableArray added in v0.1.2

type GetTablesTableArray []GetTablesTableInput

func (GetTablesTableArray) ElementType added in v0.1.2

func (GetTablesTableArray) ElementType() reflect.Type

func (GetTablesTableArray) ToGetTablesTableArrayOutput added in v0.1.2

func (i GetTablesTableArray) ToGetTablesTableArrayOutput() GetTablesTableArrayOutput

func (GetTablesTableArray) ToGetTablesTableArrayOutputWithContext added in v0.1.2

func (i GetTablesTableArray) ToGetTablesTableArrayOutputWithContext(ctx context.Context) GetTablesTableArrayOutput

type GetTablesTableArrayInput added in v0.1.2

type GetTablesTableArrayInput interface {
	pulumi.Input

	ToGetTablesTableArrayOutput() GetTablesTableArrayOutput
	ToGetTablesTableArrayOutputWithContext(context.Context) GetTablesTableArrayOutput
}

GetTablesTableArrayInput is an input type that accepts GetTablesTableArray and GetTablesTableArrayOutput values. You can construct a concrete instance of `GetTablesTableArrayInput` via:

GetTablesTableArray{ GetTablesTableArgs{...} }

type GetTablesTableArrayOutput added in v0.1.2

type GetTablesTableArrayOutput struct{ *pulumi.OutputState }

func (GetTablesTableArrayOutput) ElementType added in v0.1.2

func (GetTablesTableArrayOutput) ElementType() reflect.Type

func (GetTablesTableArrayOutput) Index added in v0.1.2

func (GetTablesTableArrayOutput) ToGetTablesTableArrayOutput added in v0.1.2

func (o GetTablesTableArrayOutput) ToGetTablesTableArrayOutput() GetTablesTableArrayOutput

func (GetTablesTableArrayOutput) ToGetTablesTableArrayOutputWithContext added in v0.1.2

func (o GetTablesTableArrayOutput) ToGetTablesTableArrayOutputWithContext(ctx context.Context) GetTablesTableArrayOutput

type GetTablesTableInput added in v0.1.2

type GetTablesTableInput interface {
	pulumi.Input

	ToGetTablesTableOutput() GetTablesTableOutput
	ToGetTablesTableOutputWithContext(context.Context) GetTablesTableOutput
}

GetTablesTableInput is an input type that accepts GetTablesTableArgs and GetTablesTableOutput values. You can construct a concrete instance of `GetTablesTableInput` via:

GetTablesTableArgs{...}

type GetTablesTableOutput added in v0.1.2

type GetTablesTableOutput struct{ *pulumi.OutputState }

func (GetTablesTableOutput) Comment added in v0.1.2

func (GetTablesTableOutput) Database added in v0.1.2

The database from which to return the schemas from.

func (GetTablesTableOutput) ElementType added in v0.1.2

func (GetTablesTableOutput) ElementType() reflect.Type

func (GetTablesTableOutput) Name added in v0.1.2

func (GetTablesTableOutput) Schema added in v0.1.2

The schema from which to return the tables from.

func (GetTablesTableOutput) ToGetTablesTableOutput added in v0.1.2

func (o GetTablesTableOutput) ToGetTablesTableOutput() GetTablesTableOutput

func (GetTablesTableOutput) ToGetTablesTableOutputWithContext added in v0.1.2

func (o GetTablesTableOutput) ToGetTablesTableOutputWithContext(ctx context.Context) GetTablesTableOutput

type GetTasksArgs added in v0.1.3

type GetTasksArgs struct {
	// The database from which to return the schemas from.
	Database string `pulumi:"database"`
	// The schema from which to return the tasks from.
	Schema string `pulumi:"schema"`
}

A collection of arguments for invoking getTasks.

type GetTasksOutputArgs added in v0.2.0

type GetTasksOutputArgs struct {
	// The database from which to return the schemas from.
	Database pulumi.StringInput `pulumi:"database"`
	// The schema from which to return the tasks from.
	Schema pulumi.StringInput `pulumi:"schema"`
}

A collection of arguments for invoking getTasks.

func (GetTasksOutputArgs) ElementType added in v0.2.0

func (GetTasksOutputArgs) ElementType() reflect.Type

type GetTasksResult added in v0.1.3

type GetTasksResult struct {
	// The database from which to return the schemas from.
	Database string `pulumi:"database"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The schema from which to return the tasks from.
	Schema string `pulumi:"schema"`
	// The tasks in the schema
	Tasks []GetTasksTask `pulumi:"tasks"`
}

A collection of values returned by getTasks.

func GetTasks added in v0.1.3

func GetTasks(ctx *pulumi.Context, args *GetTasksArgs, opts ...pulumi.InvokeOption) (*GetTasksResult, error)

## Example Usage

```go 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.GetTasks(ctx, &snowflake.GetTasksArgs{
			Database: "MYDB",
			Schema:   "MYSCHEMA",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetTasksResultOutput added in v0.2.0

type GetTasksResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getTasks.

func GetTasksOutput added in v0.2.0

func GetTasksOutput(ctx *pulumi.Context, args GetTasksOutputArgs, opts ...pulumi.InvokeOption) GetTasksResultOutput

func (GetTasksResultOutput) Database added in v0.2.0

The database from which to return the schemas from.

func (GetTasksResultOutput) ElementType added in v0.2.0

func (GetTasksResultOutput) ElementType() reflect.Type

func (GetTasksResultOutput) Id added in v0.2.0

The provider-assigned unique ID for this managed resource.

func (GetTasksResultOutput) Schema added in v0.2.0

The schema from which to return the tasks from.

func (GetTasksResultOutput) Tasks added in v0.2.0

The tasks in the schema

func (GetTasksResultOutput) ToGetTasksResultOutput added in v0.2.0

func (o GetTasksResultOutput) ToGetTasksResultOutput() GetTasksResultOutput

func (GetTasksResultOutput) ToGetTasksResultOutputWithContext added in v0.2.0

func (o GetTasksResultOutput) ToGetTasksResultOutputWithContext(ctx context.Context) GetTasksResultOutput

type GetTasksTask added in v0.1.3

type GetTasksTask struct {
	Comment string `pulumi:"comment"`
	// The database from which to return the schemas from.
	Database string `pulumi:"database"`
	Name     string `pulumi:"name"`
	// The schema from which to return the tasks from.
	Schema    string `pulumi:"schema"`
	Warehouse string `pulumi:"warehouse"`
}

type GetTasksTaskArgs added in v0.1.3

type GetTasksTaskArgs struct {
	Comment pulumi.StringInput `pulumi:"comment"`
	// The database from which to return the schemas from.
	Database pulumi.StringInput `pulumi:"database"`
	Name     pulumi.StringInput `pulumi:"name"`
	// The schema from which to return the tasks from.
	Schema    pulumi.StringInput `pulumi:"schema"`
	Warehouse pulumi.StringInput `pulumi:"warehouse"`
}

func (GetTasksTaskArgs) ElementType added in v0.1.3

func (GetTasksTaskArgs) ElementType() reflect.Type

func (GetTasksTaskArgs) ToGetTasksTaskOutput added in v0.1.3

func (i GetTasksTaskArgs) ToGetTasksTaskOutput() GetTasksTaskOutput

func (GetTasksTaskArgs) ToGetTasksTaskOutputWithContext added in v0.1.3

func (i GetTasksTaskArgs) ToGetTasksTaskOutputWithContext(ctx context.Context) GetTasksTaskOutput

type GetTasksTaskArray added in v0.1.3

type GetTasksTaskArray []GetTasksTaskInput

func (GetTasksTaskArray) ElementType added in v0.1.3

func (GetTasksTaskArray) ElementType() reflect.Type

func (GetTasksTaskArray) ToGetTasksTaskArrayOutput added in v0.1.3

func (i GetTasksTaskArray) ToGetTasksTaskArrayOutput() GetTasksTaskArrayOutput

func (GetTasksTaskArray) ToGetTasksTaskArrayOutputWithContext added in v0.1.3

func (i GetTasksTaskArray) ToGetTasksTaskArrayOutputWithContext(ctx context.Context) GetTasksTaskArrayOutput

type GetTasksTaskArrayInput added in v0.1.3

type GetTasksTaskArrayInput interface {
	pulumi.Input

	ToGetTasksTaskArrayOutput() GetTasksTaskArrayOutput
	ToGetTasksTaskArrayOutputWithContext(context.Context) GetTasksTaskArrayOutput
}

GetTasksTaskArrayInput is an input type that accepts GetTasksTaskArray and GetTasksTaskArrayOutput values. You can construct a concrete instance of `GetTasksTaskArrayInput` via:

GetTasksTaskArray{ GetTasksTaskArgs{...} }

type GetTasksTaskArrayOutput added in v0.1.3

type GetTasksTaskArrayOutput struct{ *pulumi.OutputState }

func (GetTasksTaskArrayOutput) ElementType added in v0.1.3

func (GetTasksTaskArrayOutput) ElementType() reflect.Type

func (GetTasksTaskArrayOutput) Index added in v0.1.3

func (GetTasksTaskArrayOutput) ToGetTasksTaskArrayOutput added in v0.1.3

func (o GetTasksTaskArrayOutput) ToGetTasksTaskArrayOutput() GetTasksTaskArrayOutput

func (GetTasksTaskArrayOutput) ToGetTasksTaskArrayOutputWithContext added in v0.1.3

func (o GetTasksTaskArrayOutput) ToGetTasksTaskArrayOutputWithContext(ctx context.Context) GetTasksTaskArrayOutput

type GetTasksTaskInput added in v0.1.3

type GetTasksTaskInput interface {
	pulumi.Input

	ToGetTasksTaskOutput() GetTasksTaskOutput
	ToGetTasksTaskOutputWithContext(context.Context) GetTasksTaskOutput
}

GetTasksTaskInput is an input type that accepts GetTasksTaskArgs and GetTasksTaskOutput values. You can construct a concrete instance of `GetTasksTaskInput` via:

GetTasksTaskArgs{...}

type GetTasksTaskOutput added in v0.1.3

type GetTasksTaskOutput struct{ *pulumi.OutputState }

func (GetTasksTaskOutput) Comment added in v0.1.3

func (GetTasksTaskOutput) Database added in v0.1.3

func (o GetTasksTaskOutput) Database() pulumi.StringOutput

The database from which to return the schemas from.

func (GetTasksTaskOutput) ElementType added in v0.1.3

func (GetTasksTaskOutput) ElementType() reflect.Type

func (GetTasksTaskOutput) Name added in v0.1.3

func (GetTasksTaskOutput) Schema added in v0.1.3

The schema from which to return the tasks from.

func (GetTasksTaskOutput) ToGetTasksTaskOutput added in v0.1.3

func (o GetTasksTaskOutput) ToGetTasksTaskOutput() GetTasksTaskOutput

func (GetTasksTaskOutput) ToGetTasksTaskOutputWithContext added in v0.1.3

func (o GetTasksTaskOutput) ToGetTasksTaskOutputWithContext(ctx context.Context) GetTasksTaskOutput

func (GetTasksTaskOutput) Warehouse added in v0.1.3

func (o GetTasksTaskOutput) Warehouse() pulumi.StringOutput

type GetUsersArgs added in v0.9.0

type GetUsersArgs struct {
	// Users pattern for which to return metadata. Please refer to LIKE keyword from snowflake documentation : https://docs.snowflake.com/en/sql-reference/sql/show-users.html#parameters
	Pattern string `pulumi:"pattern"`
}

A collection of arguments for invoking getUsers.

type GetUsersOutputArgs added in v0.9.0

type GetUsersOutputArgs struct {
	// Users pattern for which to return metadata. Please refer to LIKE keyword from snowflake documentation : https://docs.snowflake.com/en/sql-reference/sql/show-users.html#parameters
	Pattern pulumi.StringInput `pulumi:"pattern"`
}

A collection of arguments for invoking getUsers.

func (GetUsersOutputArgs) ElementType added in v0.9.0

func (GetUsersOutputArgs) ElementType() reflect.Type

type GetUsersResult added in v0.9.0

type GetUsersResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// Users pattern for which to return metadata. Please refer to LIKE keyword from snowflake documentation : https://docs.snowflake.com/en/sql-reference/sql/show-users.html#parameters
	Pattern string `pulumi:"pattern"`
	// The users in the database
	Users []GetUsersUser `pulumi:"users"`
}

A collection of values returned by getUsers.

func GetUsers added in v0.9.0

func GetUsers(ctx *pulumi.Context, args *GetUsersArgs, opts ...pulumi.InvokeOption) (*GetUsersResult, error)

## Example Usage

```go 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.GetUsers(ctx, &snowflake.GetUsersArgs{
			Pattern: "user1",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetUsersResultOutput added in v0.9.0

type GetUsersResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getUsers.

func GetUsersOutput added in v0.9.0

func GetUsersOutput(ctx *pulumi.Context, args GetUsersOutputArgs, opts ...pulumi.InvokeOption) GetUsersResultOutput

func (GetUsersResultOutput) ElementType added in v0.9.0

func (GetUsersResultOutput) ElementType() reflect.Type

func (GetUsersResultOutput) Id added in v0.9.0

The provider-assigned unique ID for this managed resource.

func (GetUsersResultOutput) Pattern added in v0.9.0

Users pattern for which to return metadata. Please refer to LIKE keyword from snowflake documentation : https://docs.snowflake.com/en/sql-reference/sql/show-users.html#parameters

func (GetUsersResultOutput) ToGetUsersResultOutput added in v0.9.0

func (o GetUsersResultOutput) ToGetUsersResultOutput() GetUsersResultOutput

func (GetUsersResultOutput) ToGetUsersResultOutputWithContext added in v0.9.0

func (o GetUsersResultOutput) ToGetUsersResultOutputWithContext(ctx context.Context) GetUsersResultOutput

func (GetUsersResultOutput) Users added in v0.9.0

The users in the database

type GetUsersUser added in v0.9.0

type GetUsersUser struct {
	Comment               string   `pulumi:"comment"`
	DefaultNamespace      string   `pulumi:"defaultNamespace"`
	DefaultRole           string   `pulumi:"defaultRole"`
	DefaultSecondaryRoles []string `pulumi:"defaultSecondaryRoles"`
	DefaultWarehouse      string   `pulumi:"defaultWarehouse"`
	Disabled              bool     `pulumi:"disabled"`
	DisplayName           string   `pulumi:"displayName"`
	Email                 string   `pulumi:"email"`
	FirstName             string   `pulumi:"firstName"`
	HasRsaPublicKey       bool     `pulumi:"hasRsaPublicKey"`
	LastName              string   `pulumi:"lastName"`
	LoginName             string   `pulumi:"loginName"`
	Name                  string   `pulumi:"name"`
}

type GetUsersUserArgs added in v0.9.0

type GetUsersUserArgs struct {
	Comment               pulumi.StringInput      `pulumi:"comment"`
	DefaultNamespace      pulumi.StringInput      `pulumi:"defaultNamespace"`
	DefaultRole           pulumi.StringInput      `pulumi:"defaultRole"`
	DefaultSecondaryRoles pulumi.StringArrayInput `pulumi:"defaultSecondaryRoles"`
	DefaultWarehouse      pulumi.StringInput      `pulumi:"defaultWarehouse"`
	Disabled              pulumi.BoolInput        `pulumi:"disabled"`
	DisplayName           pulumi.StringInput      `pulumi:"displayName"`
	Email                 pulumi.StringInput      `pulumi:"email"`
	FirstName             pulumi.StringInput      `pulumi:"firstName"`
	HasRsaPublicKey       pulumi.BoolInput        `pulumi:"hasRsaPublicKey"`
	LastName              pulumi.StringInput      `pulumi:"lastName"`
	LoginName             pulumi.StringInput      `pulumi:"loginName"`
	Name                  pulumi.StringInput      `pulumi:"name"`
}

func (GetUsersUserArgs) ElementType added in v0.9.0

func (GetUsersUserArgs) ElementType() reflect.Type

func (GetUsersUserArgs) ToGetUsersUserOutput added in v0.9.0

func (i GetUsersUserArgs) ToGetUsersUserOutput() GetUsersUserOutput

func (GetUsersUserArgs) ToGetUsersUserOutputWithContext added in v0.9.0

func (i GetUsersUserArgs) ToGetUsersUserOutputWithContext(ctx context.Context) GetUsersUserOutput

type GetUsersUserArray added in v0.9.0

type GetUsersUserArray []GetUsersUserInput

func (GetUsersUserArray) ElementType added in v0.9.0

func (GetUsersUserArray) ElementType() reflect.Type

func (GetUsersUserArray) ToGetUsersUserArrayOutput added in v0.9.0

func (i GetUsersUserArray) ToGetUsersUserArrayOutput() GetUsersUserArrayOutput

func (GetUsersUserArray) ToGetUsersUserArrayOutputWithContext added in v0.9.0

func (i GetUsersUserArray) ToGetUsersUserArrayOutputWithContext(ctx context.Context) GetUsersUserArrayOutput

type GetUsersUserArrayInput added in v0.9.0

type GetUsersUserArrayInput interface {
	pulumi.Input

	ToGetUsersUserArrayOutput() GetUsersUserArrayOutput
	ToGetUsersUserArrayOutputWithContext(context.Context) GetUsersUserArrayOutput
}

GetUsersUserArrayInput is an input type that accepts GetUsersUserArray and GetUsersUserArrayOutput values. You can construct a concrete instance of `GetUsersUserArrayInput` via:

GetUsersUserArray{ GetUsersUserArgs{...} }

type GetUsersUserArrayOutput added in v0.9.0

type GetUsersUserArrayOutput struct{ *pulumi.OutputState }

func (GetUsersUserArrayOutput) ElementType added in v0.9.0

func (GetUsersUserArrayOutput) ElementType() reflect.Type

func (GetUsersUserArrayOutput) Index added in v0.9.0

func (GetUsersUserArrayOutput) ToGetUsersUserArrayOutput added in v0.9.0

func (o GetUsersUserArrayOutput) ToGetUsersUserArrayOutput() GetUsersUserArrayOutput

func (GetUsersUserArrayOutput) ToGetUsersUserArrayOutputWithContext added in v0.9.0

func (o GetUsersUserArrayOutput) ToGetUsersUserArrayOutputWithContext(ctx context.Context) GetUsersUserArrayOutput

type GetUsersUserInput added in v0.9.0

type GetUsersUserInput interface {
	pulumi.Input

	ToGetUsersUserOutput() GetUsersUserOutput
	ToGetUsersUserOutputWithContext(context.Context) GetUsersUserOutput
}

GetUsersUserInput is an input type that accepts GetUsersUserArgs and GetUsersUserOutput values. You can construct a concrete instance of `GetUsersUserInput` via:

GetUsersUserArgs{...}

type GetUsersUserOutput added in v0.9.0

type GetUsersUserOutput struct{ *pulumi.OutputState }

func (GetUsersUserOutput) Comment added in v0.9.0

func (GetUsersUserOutput) DefaultNamespace added in v0.9.0

func (o GetUsersUserOutput) DefaultNamespace() pulumi.StringOutput

func (GetUsersUserOutput) DefaultRole added in v0.9.0

func (o GetUsersUserOutput) DefaultRole() pulumi.StringOutput

func (GetUsersUserOutput) DefaultSecondaryRoles added in v0.10.0

func (o GetUsersUserOutput) DefaultSecondaryRoles() pulumi.StringArrayOutput

func (GetUsersUserOutput) DefaultWarehouse added in v0.9.0

func (o GetUsersUserOutput) DefaultWarehouse() pulumi.StringOutput

func (GetUsersUserOutput) Disabled added in v0.9.0

func (o GetUsersUserOutput) Disabled() pulumi.BoolOutput

func (GetUsersUserOutput) DisplayName added in v0.9.0

func (o GetUsersUserOutput) DisplayName() pulumi.StringOutput

func (GetUsersUserOutput) ElementType added in v0.9.0

func (GetUsersUserOutput) ElementType() reflect.Type

func (GetUsersUserOutput) Email added in v0.9.0

func (GetUsersUserOutput) FirstName added in v0.9.0

func (o GetUsersUserOutput) FirstName() pulumi.StringOutput

func (GetUsersUserOutput) HasRsaPublicKey added in v0.9.0

func (o GetUsersUserOutput) HasRsaPublicKey() pulumi.BoolOutput

func (GetUsersUserOutput) LastName added in v0.9.0

func (o GetUsersUserOutput) LastName() pulumi.StringOutput

func (GetUsersUserOutput) LoginName added in v0.9.0

func (o GetUsersUserOutput) LoginName() pulumi.StringOutput

func (GetUsersUserOutput) Name added in v0.9.0

func (GetUsersUserOutput) ToGetUsersUserOutput added in v0.9.0

func (o GetUsersUserOutput) ToGetUsersUserOutput() GetUsersUserOutput

func (GetUsersUserOutput) ToGetUsersUserOutputWithContext added in v0.9.0

func (o GetUsersUserOutput) ToGetUsersUserOutputWithContext(ctx context.Context) GetUsersUserOutput

type GetViewsArgs added in v0.1.2

type GetViewsArgs struct {
	// The database from which to return the schemas from.
	Database string `pulumi:"database"`
	// The schema from which to return the views from.
	Schema string `pulumi:"schema"`
}

A collection of arguments for invoking getViews.

type GetViewsOutputArgs added in v0.2.0

type GetViewsOutputArgs struct {
	// The database from which to return the schemas from.
	Database pulumi.StringInput `pulumi:"database"`
	// The schema from which to return the views from.
	Schema pulumi.StringInput `pulumi:"schema"`
}

A collection of arguments for invoking getViews.

func (GetViewsOutputArgs) ElementType added in v0.2.0

func (GetViewsOutputArgs) ElementType() reflect.Type

type GetViewsResult added in v0.1.2

type GetViewsResult struct {
	// The database from which to return the schemas from.
	Database string `pulumi:"database"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The schema from which to return the views from.
	Schema string `pulumi:"schema"`
	// The views in the schema
	Views []GetViewsView `pulumi:"views"`
}

A collection of values returned by getViews.

func GetViews added in v0.1.2

func GetViews(ctx *pulumi.Context, args *GetViewsArgs, opts ...pulumi.InvokeOption) (*GetViewsResult, error)

## Example Usage

```go 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.GetViews(ctx, &snowflake.GetViewsArgs{
			Database: "MYDB",
			Schema:   "MYSCHEMA",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetViewsResultOutput added in v0.2.0

type GetViewsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getViews.

func GetViewsOutput added in v0.2.0

func GetViewsOutput(ctx *pulumi.Context, args GetViewsOutputArgs, opts ...pulumi.InvokeOption) GetViewsResultOutput

func (GetViewsResultOutput) Database added in v0.2.0

The database from which to return the schemas from.

func (GetViewsResultOutput) ElementType added in v0.2.0

func (GetViewsResultOutput) ElementType() reflect.Type

func (GetViewsResultOutput) Id added in v0.2.0

The provider-assigned unique ID for this managed resource.

func (GetViewsResultOutput) Schema added in v0.2.0

The schema from which to return the views from.

func (GetViewsResultOutput) ToGetViewsResultOutput added in v0.2.0

func (o GetViewsResultOutput) ToGetViewsResultOutput() GetViewsResultOutput

func (GetViewsResultOutput) ToGetViewsResultOutputWithContext added in v0.2.0

func (o GetViewsResultOutput) ToGetViewsResultOutputWithContext(ctx context.Context) GetViewsResultOutput

func (GetViewsResultOutput) Views added in v0.2.0

The views in the schema

type GetViewsView added in v0.1.2

type GetViewsView struct {
	Comment string `pulumi:"comment"`
	// The database from which to return the schemas from.
	Database string `pulumi:"database"`
	Name     string `pulumi:"name"`
	// The schema from which to return the views from.
	Schema string `pulumi:"schema"`
}

type GetViewsViewArgs added in v0.1.2

type GetViewsViewArgs struct {
	Comment pulumi.StringInput `pulumi:"comment"`
	// The database from which to return the schemas from.
	Database pulumi.StringInput `pulumi:"database"`
	Name     pulumi.StringInput `pulumi:"name"`
	// The schema from which to return the views from.
	Schema pulumi.StringInput `pulumi:"schema"`
}

func (GetViewsViewArgs) ElementType added in v0.1.2

func (GetViewsViewArgs) ElementType() reflect.Type

func (GetViewsViewArgs) ToGetViewsViewOutput added in v0.1.2

func (i GetViewsViewArgs) ToGetViewsViewOutput() GetViewsViewOutput

func (GetViewsViewArgs) ToGetViewsViewOutputWithContext added in v0.1.2

func (i GetViewsViewArgs) ToGetViewsViewOutputWithContext(ctx context.Context) GetViewsViewOutput

type GetViewsViewArray added in v0.1.2

type GetViewsViewArray []GetViewsViewInput

func (GetViewsViewArray) ElementType added in v0.1.2

func (GetViewsViewArray) ElementType() reflect.Type

func (GetViewsViewArray) ToGetViewsViewArrayOutput added in v0.1.2

func (i GetViewsViewArray) ToGetViewsViewArrayOutput() GetViewsViewArrayOutput

func (GetViewsViewArray) ToGetViewsViewArrayOutputWithContext added in v0.1.2

func (i GetViewsViewArray) ToGetViewsViewArrayOutputWithContext(ctx context.Context) GetViewsViewArrayOutput

type GetViewsViewArrayInput added in v0.1.2

type GetViewsViewArrayInput interface {
	pulumi.Input

	ToGetViewsViewArrayOutput() GetViewsViewArrayOutput
	ToGetViewsViewArrayOutputWithContext(context.Context) GetViewsViewArrayOutput
}

GetViewsViewArrayInput is an input type that accepts GetViewsViewArray and GetViewsViewArrayOutput values. You can construct a concrete instance of `GetViewsViewArrayInput` via:

GetViewsViewArray{ GetViewsViewArgs{...} }

type GetViewsViewArrayOutput added in v0.1.2

type GetViewsViewArrayOutput struct{ *pulumi.OutputState }

func (GetViewsViewArrayOutput) ElementType added in v0.1.2

func (GetViewsViewArrayOutput) ElementType() reflect.Type

func (GetViewsViewArrayOutput) Index added in v0.1.2

func (GetViewsViewArrayOutput) ToGetViewsViewArrayOutput added in v0.1.2

func (o GetViewsViewArrayOutput) ToGetViewsViewArrayOutput() GetViewsViewArrayOutput

func (GetViewsViewArrayOutput) ToGetViewsViewArrayOutputWithContext added in v0.1.2

func (o GetViewsViewArrayOutput) ToGetViewsViewArrayOutputWithContext(ctx context.Context) GetViewsViewArrayOutput

type GetViewsViewInput added in v0.1.2

type GetViewsViewInput interface {
	pulumi.Input

	ToGetViewsViewOutput() GetViewsViewOutput
	ToGetViewsViewOutputWithContext(context.Context) GetViewsViewOutput
}

GetViewsViewInput is an input type that accepts GetViewsViewArgs and GetViewsViewOutput values. You can construct a concrete instance of `GetViewsViewInput` via:

GetViewsViewArgs{...}

type GetViewsViewOutput added in v0.1.2

type GetViewsViewOutput struct{ *pulumi.OutputState }

func (GetViewsViewOutput) Comment added in v0.1.2

func (GetViewsViewOutput) Database added in v0.1.2

func (o GetViewsViewOutput) Database() pulumi.StringOutput

The database from which to return the schemas from.

func (GetViewsViewOutput) ElementType added in v0.1.2

func (GetViewsViewOutput) ElementType() reflect.Type

func (GetViewsViewOutput) Name added in v0.1.2

func (GetViewsViewOutput) Schema added in v0.1.2

The schema from which to return the views from.

func (GetViewsViewOutput) ToGetViewsViewOutput added in v0.1.2

func (o GetViewsViewOutput) ToGetViewsViewOutput() GetViewsViewOutput

func (GetViewsViewOutput) ToGetViewsViewOutputWithContext added in v0.1.2

func (o GetViewsViewOutput) ToGetViewsViewOutputWithContext(ctx context.Context) GetViewsViewOutput

type GetWarehousesResult added in v0.1.3

type GetWarehousesResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The warehouses in the database
	Warehouses []GetWarehousesWarehouse `pulumi:"warehouses"`
}

A collection of values returned by getWarehouses.

func GetWarehouses added in v0.1.3

func GetWarehouses(ctx *pulumi.Context, opts ...pulumi.InvokeOption) (*GetWarehousesResult, error)

## Example Usage

```go 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.GetWarehouses(ctx, nil, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetWarehousesWarehouse added in v0.1.3

type GetWarehousesWarehouse struct {
	Comment       string `pulumi:"comment"`
	Name          string `pulumi:"name"`
	ScalingPolicy string `pulumi:"scalingPolicy"`
	Size          string `pulumi:"size"`
	State         string `pulumi:"state"`
	Type          string `pulumi:"type"`
}

type GetWarehousesWarehouseArgs added in v0.1.3

type GetWarehousesWarehouseArgs struct {
	Comment       pulumi.StringInput `pulumi:"comment"`
	Name          pulumi.StringInput `pulumi:"name"`
	ScalingPolicy pulumi.StringInput `pulumi:"scalingPolicy"`
	Size          pulumi.StringInput `pulumi:"size"`
	State         pulumi.StringInput `pulumi:"state"`
	Type          pulumi.StringInput `pulumi:"type"`
}

func (GetWarehousesWarehouseArgs) ElementType added in v0.1.3

func (GetWarehousesWarehouseArgs) ElementType() reflect.Type

func (GetWarehousesWarehouseArgs) ToGetWarehousesWarehouseOutput added in v0.1.3

func (i GetWarehousesWarehouseArgs) ToGetWarehousesWarehouseOutput() GetWarehousesWarehouseOutput

func (GetWarehousesWarehouseArgs) ToGetWarehousesWarehouseOutputWithContext added in v0.1.3

func (i GetWarehousesWarehouseArgs) ToGetWarehousesWarehouseOutputWithContext(ctx context.Context) GetWarehousesWarehouseOutput

type GetWarehousesWarehouseArray added in v0.1.3

type GetWarehousesWarehouseArray []GetWarehousesWarehouseInput

func (GetWarehousesWarehouseArray) ElementType added in v0.1.3

func (GetWarehousesWarehouseArray) ToGetWarehousesWarehouseArrayOutput added in v0.1.3

func (i GetWarehousesWarehouseArray) ToGetWarehousesWarehouseArrayOutput() GetWarehousesWarehouseArrayOutput

func (GetWarehousesWarehouseArray) ToGetWarehousesWarehouseArrayOutputWithContext added in v0.1.3

func (i GetWarehousesWarehouseArray) ToGetWarehousesWarehouseArrayOutputWithContext(ctx context.Context) GetWarehousesWarehouseArrayOutput

type GetWarehousesWarehouseArrayInput added in v0.1.3

type GetWarehousesWarehouseArrayInput interface {
	pulumi.Input

	ToGetWarehousesWarehouseArrayOutput() GetWarehousesWarehouseArrayOutput
	ToGetWarehousesWarehouseArrayOutputWithContext(context.Context) GetWarehousesWarehouseArrayOutput
}

GetWarehousesWarehouseArrayInput is an input type that accepts GetWarehousesWarehouseArray and GetWarehousesWarehouseArrayOutput values. You can construct a concrete instance of `GetWarehousesWarehouseArrayInput` via:

GetWarehousesWarehouseArray{ GetWarehousesWarehouseArgs{...} }

type GetWarehousesWarehouseArrayOutput added in v0.1.3

type GetWarehousesWarehouseArrayOutput struct{ *pulumi.OutputState }

func (GetWarehousesWarehouseArrayOutput) ElementType added in v0.1.3

func (GetWarehousesWarehouseArrayOutput) Index added in v0.1.3

func (GetWarehousesWarehouseArrayOutput) ToGetWarehousesWarehouseArrayOutput added in v0.1.3

func (o GetWarehousesWarehouseArrayOutput) ToGetWarehousesWarehouseArrayOutput() GetWarehousesWarehouseArrayOutput

func (GetWarehousesWarehouseArrayOutput) ToGetWarehousesWarehouseArrayOutputWithContext added in v0.1.3

func (o GetWarehousesWarehouseArrayOutput) ToGetWarehousesWarehouseArrayOutputWithContext(ctx context.Context) GetWarehousesWarehouseArrayOutput

type GetWarehousesWarehouseInput added in v0.1.3

type GetWarehousesWarehouseInput interface {
	pulumi.Input

	ToGetWarehousesWarehouseOutput() GetWarehousesWarehouseOutput
	ToGetWarehousesWarehouseOutputWithContext(context.Context) GetWarehousesWarehouseOutput
}

GetWarehousesWarehouseInput is an input type that accepts GetWarehousesWarehouseArgs and GetWarehousesWarehouseOutput values. You can construct a concrete instance of `GetWarehousesWarehouseInput` via:

GetWarehousesWarehouseArgs{...}

type GetWarehousesWarehouseOutput added in v0.1.3

type GetWarehousesWarehouseOutput struct{ *pulumi.OutputState }

func (GetWarehousesWarehouseOutput) Comment added in v0.1.3

func (GetWarehousesWarehouseOutput) ElementType added in v0.1.3

func (GetWarehousesWarehouseOutput) Name added in v0.1.3

func (GetWarehousesWarehouseOutput) ScalingPolicy added in v0.1.3

func (GetWarehousesWarehouseOutput) Size added in v0.1.3

func (GetWarehousesWarehouseOutput) State added in v0.1.3

func (GetWarehousesWarehouseOutput) ToGetWarehousesWarehouseOutput added in v0.1.3

func (o GetWarehousesWarehouseOutput) ToGetWarehousesWarehouseOutput() GetWarehousesWarehouseOutput

func (GetWarehousesWarehouseOutput) ToGetWarehousesWarehouseOutputWithContext added in v0.1.3

func (o GetWarehousesWarehouseOutput) ToGetWarehousesWarehouseOutputWithContext(ctx context.Context) GetWarehousesWarehouseOutput

func (GetWarehousesWarehouseOutput) Type added in v0.1.3

type GrantPrivilegesToRole added in v0.29.0

type GrantPrivilegesToRole struct {
	pulumi.CustomResourceState

	// Grant all privileges on the account role.
	AllPrivileges pulumi.BoolPtrOutput `pulumi:"allPrivileges"`
	// If true, the privileges will be granted on the account.
	OnAccount pulumi.BoolPtrOutput `pulumi:"onAccount"`
	// Specifies the account object on which privileges will be granted
	OnAccountObject GrantPrivilegesToRoleOnAccountObjectPtrOutput `pulumi:"onAccountObject"`
	// Specifies the schema on which privileges will be granted.
	OnSchema GrantPrivilegesToRoleOnSchemaPtrOutput `pulumi:"onSchema"`
	// Specifies the schema object on which privileges will be granted.
	OnSchemaObject GrantPrivilegesToRoleOnSchemaObjectPtrOutput `pulumi:"onSchemaObject"`
	// The privileges to grant on the account role.
	Privileges pulumi.StringArrayOutput `pulumi:"privileges"`
	// The fully qualified name of the role to which privileges will be granted.
	RoleName pulumi.StringOutput `pulumi:"roleName"`
	// Specifies whether the grantee can grant the privileges to other users.
	WithGrantOption pulumi.BoolPtrOutput `pulumi:"withGrantOption"`
}

## Example Usage ### global privileges ##################################

list of privileges

resource "snowflake_grant_privileges_to_role" "g1" {
  privileges = ["MODIFY", "USAGE"]
  role_name  = snowflake_role.r.name
  on_account = true
}

all privileges + grant option

resource "snowflake_grant_privileges_to_role" "g2" {
  role_name         = snowflake_role.r.name
  on_account        = true
  all_privileges    = true
  with_grant_option = true
}

################################## ### account object privileges ##################################

list of privileges

resource "snowflake_grant_privileges_to_role" "g3" {
  privileges = ["CREATE", "MONITOR"]
  role_name  = snowflake_role.r.name
  on_account_object {
    object_type = "DATABASE"
    object_name = snowflake_database.d.name
  }
}

all privileges + grant option

resource "snowflake_grant_privileges_to_role" "g4" {
  role_name = snowflake_role.r.name
  on_account_object {
    object_type = "DATABASE"
    object_name = snowflake_database.d.name
  }
  all_privileges    = true
  with_grant_option = true
}

################################## ### schema privileges ##################################

list of privileges

resource "snowflake_grant_privileges_to_role" "g5" {
  privileges = ["MODIFY", "CREATE TABLE"]
  role_name  = snowflake_role.r.name
  on_schema {
    schema_name = "\"my_db\".\"my_schema\"" # note this is a fully qualified name!
  }
}

all privileges + grant option

resource "snowflake_grant_privileges_to_role" "g6" {
  role_name = snowflake_role.r.name
  on_schema {
    schema_name = "\"my_db\".\"my_schema\"" # note this is a fully qualified name!
  }
  all_privileges    = true
  with_grant_option = true
}

all schemas in database

resource "snowflake_grant_privileges_to_role" "g7" {
  privileges = ["MODIFY", "CREATE TABLE"]
  role_name  = snowflake_role.r.name
  on_schema {
    all_schemas_in_database = snowflake_database.d.name
  }
}

future schemas in database

resource "snowflake_grant_privileges_to_role" "g8" {
  privileges = ["MODIFY", "CREATE TABLE"]
  role_name  = snowflake_role.r.name
  on_schema {
    future_schemas_in_database = snowflake_database.d.name
  }
}

##################################

## Import

format is role_name (string) | privileges (comma-delimited string) | all_privileges (bool) |with_grant_option (bool) | on_account (bool) | on_account_object (bool) | on_schema (bool) | on_schema_object (bool) | all (bool) | future (bool) | object_type (string) | object_name (string) | object_type_plural (string) | in_schema (bool) | schema_name (string) | in_database (bool) | database_name (string)

```sh

$ pulumi import snowflake:index/grantPrivilegesToRole:GrantPrivilegesToRole "test_role|MANAGE GRANTS,MONITOR USAGE|false|false|true|false|false|false|false|false||||false||false|"

```

func GetGrantPrivilegesToRole added in v0.29.0

func GetGrantPrivilegesToRole(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *GrantPrivilegesToRoleState, opts ...pulumi.ResourceOption) (*GrantPrivilegesToRole, error)

GetGrantPrivilegesToRole gets an existing GrantPrivilegesToRole resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewGrantPrivilegesToRole added in v0.29.0

func NewGrantPrivilegesToRole(ctx *pulumi.Context,
	name string, args *GrantPrivilegesToRoleArgs, opts ...pulumi.ResourceOption) (*GrantPrivilegesToRole, error)

NewGrantPrivilegesToRole registers a new resource with the given unique name, arguments, and options.

func (*GrantPrivilegesToRole) ElementType added in v0.29.0

func (*GrantPrivilegesToRole) ElementType() reflect.Type

func (*GrantPrivilegesToRole) ToGrantPrivilegesToRoleOutput added in v0.29.0

func (i *GrantPrivilegesToRole) ToGrantPrivilegesToRoleOutput() GrantPrivilegesToRoleOutput

func (*GrantPrivilegesToRole) ToGrantPrivilegesToRoleOutputWithContext added in v0.29.0

func (i *GrantPrivilegesToRole) ToGrantPrivilegesToRoleOutputWithContext(ctx context.Context) GrantPrivilegesToRoleOutput

type GrantPrivilegesToRoleArgs added in v0.29.0

type GrantPrivilegesToRoleArgs struct {
	// Grant all privileges on the account role.
	AllPrivileges pulumi.BoolPtrInput
	// If true, the privileges will be granted on the account.
	OnAccount pulumi.BoolPtrInput
	// Specifies the account object on which privileges will be granted
	OnAccountObject GrantPrivilegesToRoleOnAccountObjectPtrInput
	// Specifies the schema on which privileges will be granted.
	OnSchema GrantPrivilegesToRoleOnSchemaPtrInput
	// Specifies the schema object on which privileges will be granted.
	OnSchemaObject GrantPrivilegesToRoleOnSchemaObjectPtrInput
	// The privileges to grant on the account role.
	Privileges pulumi.StringArrayInput
	// The fully qualified name of the role to which privileges will be granted.
	RoleName pulumi.StringInput
	// Specifies whether the grantee can grant the privileges to other users.
	WithGrantOption pulumi.BoolPtrInput
}

The set of arguments for constructing a GrantPrivilegesToRole resource.

func (GrantPrivilegesToRoleArgs) ElementType added in v0.29.0

func (GrantPrivilegesToRoleArgs) ElementType() reflect.Type

type GrantPrivilegesToRoleArray added in v0.29.0

type GrantPrivilegesToRoleArray []GrantPrivilegesToRoleInput

func (GrantPrivilegesToRoleArray) ElementType added in v0.29.0

func (GrantPrivilegesToRoleArray) ElementType() reflect.Type

func (GrantPrivilegesToRoleArray) ToGrantPrivilegesToRoleArrayOutput added in v0.29.0

func (i GrantPrivilegesToRoleArray) ToGrantPrivilegesToRoleArrayOutput() GrantPrivilegesToRoleArrayOutput

func (GrantPrivilegesToRoleArray) ToGrantPrivilegesToRoleArrayOutputWithContext added in v0.29.0

func (i GrantPrivilegesToRoleArray) ToGrantPrivilegesToRoleArrayOutputWithContext(ctx context.Context) GrantPrivilegesToRoleArrayOutput

type GrantPrivilegesToRoleArrayInput added in v0.29.0

type GrantPrivilegesToRoleArrayInput interface {
	pulumi.Input

	ToGrantPrivilegesToRoleArrayOutput() GrantPrivilegesToRoleArrayOutput
	ToGrantPrivilegesToRoleArrayOutputWithContext(context.Context) GrantPrivilegesToRoleArrayOutput
}

GrantPrivilegesToRoleArrayInput is an input type that accepts GrantPrivilegesToRoleArray and GrantPrivilegesToRoleArrayOutput values. You can construct a concrete instance of `GrantPrivilegesToRoleArrayInput` via:

GrantPrivilegesToRoleArray{ GrantPrivilegesToRoleArgs{...} }

type GrantPrivilegesToRoleArrayOutput added in v0.29.0

type GrantPrivilegesToRoleArrayOutput struct{ *pulumi.OutputState }

func (GrantPrivilegesToRoleArrayOutput) ElementType added in v0.29.0

func (GrantPrivilegesToRoleArrayOutput) Index added in v0.29.0

func (GrantPrivilegesToRoleArrayOutput) ToGrantPrivilegesToRoleArrayOutput added in v0.29.0

func (o GrantPrivilegesToRoleArrayOutput) ToGrantPrivilegesToRoleArrayOutput() GrantPrivilegesToRoleArrayOutput

func (GrantPrivilegesToRoleArrayOutput) ToGrantPrivilegesToRoleArrayOutputWithContext added in v0.29.0

func (o GrantPrivilegesToRoleArrayOutput) ToGrantPrivilegesToRoleArrayOutputWithContext(ctx context.Context) GrantPrivilegesToRoleArrayOutput

type GrantPrivilegesToRoleInput added in v0.29.0

type GrantPrivilegesToRoleInput interface {
	pulumi.Input

	ToGrantPrivilegesToRoleOutput() GrantPrivilegesToRoleOutput
	ToGrantPrivilegesToRoleOutputWithContext(ctx context.Context) GrantPrivilegesToRoleOutput
}

type GrantPrivilegesToRoleMap added in v0.29.0

type GrantPrivilegesToRoleMap map[string]GrantPrivilegesToRoleInput

func (GrantPrivilegesToRoleMap) ElementType added in v0.29.0

func (GrantPrivilegesToRoleMap) ElementType() reflect.Type

func (GrantPrivilegesToRoleMap) ToGrantPrivilegesToRoleMapOutput added in v0.29.0

func (i GrantPrivilegesToRoleMap) ToGrantPrivilegesToRoleMapOutput() GrantPrivilegesToRoleMapOutput

func (GrantPrivilegesToRoleMap) ToGrantPrivilegesToRoleMapOutputWithContext added in v0.29.0

func (i GrantPrivilegesToRoleMap) ToGrantPrivilegesToRoleMapOutputWithContext(ctx context.Context) GrantPrivilegesToRoleMapOutput

type GrantPrivilegesToRoleMapInput added in v0.29.0

type GrantPrivilegesToRoleMapInput interface {
	pulumi.Input

	ToGrantPrivilegesToRoleMapOutput() GrantPrivilegesToRoleMapOutput
	ToGrantPrivilegesToRoleMapOutputWithContext(context.Context) GrantPrivilegesToRoleMapOutput
}

GrantPrivilegesToRoleMapInput is an input type that accepts GrantPrivilegesToRoleMap and GrantPrivilegesToRoleMapOutput values. You can construct a concrete instance of `GrantPrivilegesToRoleMapInput` via:

GrantPrivilegesToRoleMap{ "key": GrantPrivilegesToRoleArgs{...} }

type GrantPrivilegesToRoleMapOutput added in v0.29.0

type GrantPrivilegesToRoleMapOutput struct{ *pulumi.OutputState }

func (GrantPrivilegesToRoleMapOutput) ElementType added in v0.29.0

func (GrantPrivilegesToRoleMapOutput) MapIndex added in v0.29.0

func (GrantPrivilegesToRoleMapOutput) ToGrantPrivilegesToRoleMapOutput added in v0.29.0

func (o GrantPrivilegesToRoleMapOutput) ToGrantPrivilegesToRoleMapOutput() GrantPrivilegesToRoleMapOutput

func (GrantPrivilegesToRoleMapOutput) ToGrantPrivilegesToRoleMapOutputWithContext added in v0.29.0

func (o GrantPrivilegesToRoleMapOutput) ToGrantPrivilegesToRoleMapOutputWithContext(ctx context.Context) GrantPrivilegesToRoleMapOutput

type GrantPrivilegesToRoleOnAccountObject added in v0.29.0

type GrantPrivilegesToRoleOnAccountObject struct {
	// The fully qualified name of the object on which privileges will be granted.
	ObjectName string `pulumi:"objectName"`
	// The object type of the account object on which privileges will be granted. Valid values are: USER | RESOURCE MONITOR | WAREHOUSE | DATABASE | INTEGRATION | FAILOVER GROUP | REPLICATION GROUP
	ObjectType string `pulumi:"objectType"`
}

type GrantPrivilegesToRoleOnAccountObjectArgs added in v0.29.0

type GrantPrivilegesToRoleOnAccountObjectArgs struct {
	// The fully qualified name of the object on which privileges will be granted.
	ObjectName pulumi.StringInput `pulumi:"objectName"`
	// The object type of the account object on which privileges will be granted. Valid values are: USER | RESOURCE MONITOR | WAREHOUSE | DATABASE | INTEGRATION | FAILOVER GROUP | REPLICATION GROUP
	ObjectType pulumi.StringInput `pulumi:"objectType"`
}

func (GrantPrivilegesToRoleOnAccountObjectArgs) ElementType added in v0.29.0

func (GrantPrivilegesToRoleOnAccountObjectArgs) ToGrantPrivilegesToRoleOnAccountObjectOutput added in v0.29.0

func (i GrantPrivilegesToRoleOnAccountObjectArgs) ToGrantPrivilegesToRoleOnAccountObjectOutput() GrantPrivilegesToRoleOnAccountObjectOutput

func (GrantPrivilegesToRoleOnAccountObjectArgs) ToGrantPrivilegesToRoleOnAccountObjectOutputWithContext added in v0.29.0

func (i GrantPrivilegesToRoleOnAccountObjectArgs) ToGrantPrivilegesToRoleOnAccountObjectOutputWithContext(ctx context.Context) GrantPrivilegesToRoleOnAccountObjectOutput

func (GrantPrivilegesToRoleOnAccountObjectArgs) ToGrantPrivilegesToRoleOnAccountObjectPtrOutput added in v0.29.0

func (i GrantPrivilegesToRoleOnAccountObjectArgs) ToGrantPrivilegesToRoleOnAccountObjectPtrOutput() GrantPrivilegesToRoleOnAccountObjectPtrOutput

func (GrantPrivilegesToRoleOnAccountObjectArgs) ToGrantPrivilegesToRoleOnAccountObjectPtrOutputWithContext added in v0.29.0

func (i GrantPrivilegesToRoleOnAccountObjectArgs) ToGrantPrivilegesToRoleOnAccountObjectPtrOutputWithContext(ctx context.Context) GrantPrivilegesToRoleOnAccountObjectPtrOutput

type GrantPrivilegesToRoleOnAccountObjectInput added in v0.29.0

type GrantPrivilegesToRoleOnAccountObjectInput interface {
	pulumi.Input

	ToGrantPrivilegesToRoleOnAccountObjectOutput() GrantPrivilegesToRoleOnAccountObjectOutput
	ToGrantPrivilegesToRoleOnAccountObjectOutputWithContext(context.Context) GrantPrivilegesToRoleOnAccountObjectOutput
}

GrantPrivilegesToRoleOnAccountObjectInput is an input type that accepts GrantPrivilegesToRoleOnAccountObjectArgs and GrantPrivilegesToRoleOnAccountObjectOutput values. You can construct a concrete instance of `GrantPrivilegesToRoleOnAccountObjectInput` via:

GrantPrivilegesToRoleOnAccountObjectArgs{...}

type GrantPrivilegesToRoleOnAccountObjectOutput added in v0.29.0

type GrantPrivilegesToRoleOnAccountObjectOutput struct{ *pulumi.OutputState }

func (GrantPrivilegesToRoleOnAccountObjectOutput) ElementType added in v0.29.0

func (GrantPrivilegesToRoleOnAccountObjectOutput) ObjectName added in v0.29.0

The fully qualified name of the object on which privileges will be granted.

func (GrantPrivilegesToRoleOnAccountObjectOutput) ObjectType added in v0.29.0

The object type of the account object on which privileges will be granted. Valid values are: USER | RESOURCE MONITOR | WAREHOUSE | DATABASE | INTEGRATION | FAILOVER GROUP | REPLICATION GROUP

func (GrantPrivilegesToRoleOnAccountObjectOutput) ToGrantPrivilegesToRoleOnAccountObjectOutput added in v0.29.0

func (o GrantPrivilegesToRoleOnAccountObjectOutput) ToGrantPrivilegesToRoleOnAccountObjectOutput() GrantPrivilegesToRoleOnAccountObjectOutput

func (GrantPrivilegesToRoleOnAccountObjectOutput) ToGrantPrivilegesToRoleOnAccountObjectOutputWithContext added in v0.29.0

func (o GrantPrivilegesToRoleOnAccountObjectOutput) ToGrantPrivilegesToRoleOnAccountObjectOutputWithContext(ctx context.Context) GrantPrivilegesToRoleOnAccountObjectOutput

func (GrantPrivilegesToRoleOnAccountObjectOutput) ToGrantPrivilegesToRoleOnAccountObjectPtrOutput added in v0.29.0

func (o GrantPrivilegesToRoleOnAccountObjectOutput) ToGrantPrivilegesToRoleOnAccountObjectPtrOutput() GrantPrivilegesToRoleOnAccountObjectPtrOutput

func (GrantPrivilegesToRoleOnAccountObjectOutput) ToGrantPrivilegesToRoleOnAccountObjectPtrOutputWithContext added in v0.29.0

func (o GrantPrivilegesToRoleOnAccountObjectOutput) ToGrantPrivilegesToRoleOnAccountObjectPtrOutputWithContext(ctx context.Context) GrantPrivilegesToRoleOnAccountObjectPtrOutput

type GrantPrivilegesToRoleOnAccountObjectPtrInput added in v0.29.0

type GrantPrivilegesToRoleOnAccountObjectPtrInput interface {
	pulumi.Input

	ToGrantPrivilegesToRoleOnAccountObjectPtrOutput() GrantPrivilegesToRoleOnAccountObjectPtrOutput
	ToGrantPrivilegesToRoleOnAccountObjectPtrOutputWithContext(context.Context) GrantPrivilegesToRoleOnAccountObjectPtrOutput
}

GrantPrivilegesToRoleOnAccountObjectPtrInput is an input type that accepts GrantPrivilegesToRoleOnAccountObjectArgs, GrantPrivilegesToRoleOnAccountObjectPtr and GrantPrivilegesToRoleOnAccountObjectPtrOutput values. You can construct a concrete instance of `GrantPrivilegesToRoleOnAccountObjectPtrInput` via:

        GrantPrivilegesToRoleOnAccountObjectArgs{...}

or:

        nil

type GrantPrivilegesToRoleOnAccountObjectPtrOutput added in v0.29.0

type GrantPrivilegesToRoleOnAccountObjectPtrOutput struct{ *pulumi.OutputState }

func (GrantPrivilegesToRoleOnAccountObjectPtrOutput) Elem added in v0.29.0

func (GrantPrivilegesToRoleOnAccountObjectPtrOutput) ElementType added in v0.29.0

func (GrantPrivilegesToRoleOnAccountObjectPtrOutput) ObjectName added in v0.29.0

The fully qualified name of the object on which privileges will be granted.

func (GrantPrivilegesToRoleOnAccountObjectPtrOutput) ObjectType added in v0.29.0

The object type of the account object on which privileges will be granted. Valid values are: USER | RESOURCE MONITOR | WAREHOUSE | DATABASE | INTEGRATION | FAILOVER GROUP | REPLICATION GROUP

func (GrantPrivilegesToRoleOnAccountObjectPtrOutput) ToGrantPrivilegesToRoleOnAccountObjectPtrOutput added in v0.29.0

func (o GrantPrivilegesToRoleOnAccountObjectPtrOutput) ToGrantPrivilegesToRoleOnAccountObjectPtrOutput() GrantPrivilegesToRoleOnAccountObjectPtrOutput

func (GrantPrivilegesToRoleOnAccountObjectPtrOutput) ToGrantPrivilegesToRoleOnAccountObjectPtrOutputWithContext added in v0.29.0

func (o GrantPrivilegesToRoleOnAccountObjectPtrOutput) ToGrantPrivilegesToRoleOnAccountObjectPtrOutputWithContext(ctx context.Context) GrantPrivilegesToRoleOnAccountObjectPtrOutput

type GrantPrivilegesToRoleOnSchema added in v0.29.0

type GrantPrivilegesToRoleOnSchema struct {
	// The fully qualified name of the database.
	AllSchemasInDatabase *string `pulumi:"allSchemasInDatabase"`
	// The fully qualified name of the database.
	FutureSchemasInDatabase *string `pulumi:"futureSchemasInDatabase"`
	// The fully qualified name of the schema.
	SchemaName *string `pulumi:"schemaName"`
}

type GrantPrivilegesToRoleOnSchemaArgs added in v0.29.0

type GrantPrivilegesToRoleOnSchemaArgs struct {
	// The fully qualified name of the database.
	AllSchemasInDatabase pulumi.StringPtrInput `pulumi:"allSchemasInDatabase"`
	// The fully qualified name of the database.
	FutureSchemasInDatabase pulumi.StringPtrInput `pulumi:"futureSchemasInDatabase"`
	// The fully qualified name of the schema.
	SchemaName pulumi.StringPtrInput `pulumi:"schemaName"`
}

func (GrantPrivilegesToRoleOnSchemaArgs) ElementType added in v0.29.0

func (GrantPrivilegesToRoleOnSchemaArgs) ToGrantPrivilegesToRoleOnSchemaOutput added in v0.29.0

func (i GrantPrivilegesToRoleOnSchemaArgs) ToGrantPrivilegesToRoleOnSchemaOutput() GrantPrivilegesToRoleOnSchemaOutput

func (GrantPrivilegesToRoleOnSchemaArgs) ToGrantPrivilegesToRoleOnSchemaOutputWithContext added in v0.29.0

func (i GrantPrivilegesToRoleOnSchemaArgs) ToGrantPrivilegesToRoleOnSchemaOutputWithContext(ctx context.Context) GrantPrivilegesToRoleOnSchemaOutput

func (GrantPrivilegesToRoleOnSchemaArgs) ToGrantPrivilegesToRoleOnSchemaPtrOutput added in v0.29.0

func (i GrantPrivilegesToRoleOnSchemaArgs) ToGrantPrivilegesToRoleOnSchemaPtrOutput() GrantPrivilegesToRoleOnSchemaPtrOutput

func (GrantPrivilegesToRoleOnSchemaArgs) ToGrantPrivilegesToRoleOnSchemaPtrOutputWithContext added in v0.29.0

func (i GrantPrivilegesToRoleOnSchemaArgs) ToGrantPrivilegesToRoleOnSchemaPtrOutputWithContext(ctx context.Context) GrantPrivilegesToRoleOnSchemaPtrOutput

type GrantPrivilegesToRoleOnSchemaInput added in v0.29.0

type GrantPrivilegesToRoleOnSchemaInput interface {
	pulumi.Input

	ToGrantPrivilegesToRoleOnSchemaOutput() GrantPrivilegesToRoleOnSchemaOutput
	ToGrantPrivilegesToRoleOnSchemaOutputWithContext(context.Context) GrantPrivilegesToRoleOnSchemaOutput
}

GrantPrivilegesToRoleOnSchemaInput is an input type that accepts GrantPrivilegesToRoleOnSchemaArgs and GrantPrivilegesToRoleOnSchemaOutput values. You can construct a concrete instance of `GrantPrivilegesToRoleOnSchemaInput` via:

GrantPrivilegesToRoleOnSchemaArgs{...}

type GrantPrivilegesToRoleOnSchemaObject added in v0.29.0

type GrantPrivilegesToRoleOnSchemaObject struct {
	// Configures the privilege to be granted on all objects in eihter a database or schema.
	All *GrantPrivilegesToRoleOnSchemaObjectAll `pulumi:"all"`
	// Configures the privilege to be granted on future objects in eihter a database or schema.
	Future *GrantPrivilegesToRoleOnSchemaObjectFuture `pulumi:"future"`
	// The fully qualified name of the object on which privileges will be granted.
	ObjectName *string `pulumi:"objectName"`
	// The object type of the schema object on which privileges will be granted. Valid values are: USER | RESOURCE MONITOR | WAREHOUSE | DATABASE | INTEGRATION | FAILOVER GROUP | REPLICATION GROUP
	ObjectType *string `pulumi:"objectType"`
}

type GrantPrivilegesToRoleOnSchemaObjectAll added in v0.29.0

type GrantPrivilegesToRoleOnSchemaObjectAll struct {
	InDatabase       *string `pulumi:"inDatabase"`
	InSchema         *string `pulumi:"inSchema"`
	ObjectTypePlural string  `pulumi:"objectTypePlural"`
}

type GrantPrivilegesToRoleOnSchemaObjectAllArgs added in v0.29.0

type GrantPrivilegesToRoleOnSchemaObjectAllArgs struct {
	InDatabase       pulumi.StringPtrInput `pulumi:"inDatabase"`
	InSchema         pulumi.StringPtrInput `pulumi:"inSchema"`
	ObjectTypePlural pulumi.StringInput    `pulumi:"objectTypePlural"`
}

func (GrantPrivilegesToRoleOnSchemaObjectAllArgs) ElementType added in v0.29.0

func (GrantPrivilegesToRoleOnSchemaObjectAllArgs) ToGrantPrivilegesToRoleOnSchemaObjectAllOutput added in v0.29.0

func (i GrantPrivilegesToRoleOnSchemaObjectAllArgs) ToGrantPrivilegesToRoleOnSchemaObjectAllOutput() GrantPrivilegesToRoleOnSchemaObjectAllOutput

func (GrantPrivilegesToRoleOnSchemaObjectAllArgs) ToGrantPrivilegesToRoleOnSchemaObjectAllOutputWithContext added in v0.29.0

func (i GrantPrivilegesToRoleOnSchemaObjectAllArgs) ToGrantPrivilegesToRoleOnSchemaObjectAllOutputWithContext(ctx context.Context) GrantPrivilegesToRoleOnSchemaObjectAllOutput

func (GrantPrivilegesToRoleOnSchemaObjectAllArgs) ToGrantPrivilegesToRoleOnSchemaObjectAllPtrOutput added in v0.29.0

func (i GrantPrivilegesToRoleOnSchemaObjectAllArgs) ToGrantPrivilegesToRoleOnSchemaObjectAllPtrOutput() GrantPrivilegesToRoleOnSchemaObjectAllPtrOutput

func (GrantPrivilegesToRoleOnSchemaObjectAllArgs) ToGrantPrivilegesToRoleOnSchemaObjectAllPtrOutputWithContext added in v0.29.0

func (i GrantPrivilegesToRoleOnSchemaObjectAllArgs) ToGrantPrivilegesToRoleOnSchemaObjectAllPtrOutputWithContext(ctx context.Context) GrantPrivilegesToRoleOnSchemaObjectAllPtrOutput

type GrantPrivilegesToRoleOnSchemaObjectAllInput added in v0.29.0

type GrantPrivilegesToRoleOnSchemaObjectAllInput interface {
	pulumi.Input

	ToGrantPrivilegesToRoleOnSchemaObjectAllOutput() GrantPrivilegesToRoleOnSchemaObjectAllOutput
	ToGrantPrivilegesToRoleOnSchemaObjectAllOutputWithContext(context.Context) GrantPrivilegesToRoleOnSchemaObjectAllOutput
}

GrantPrivilegesToRoleOnSchemaObjectAllInput is an input type that accepts GrantPrivilegesToRoleOnSchemaObjectAllArgs and GrantPrivilegesToRoleOnSchemaObjectAllOutput values. You can construct a concrete instance of `GrantPrivilegesToRoleOnSchemaObjectAllInput` via:

GrantPrivilegesToRoleOnSchemaObjectAllArgs{...}

type GrantPrivilegesToRoleOnSchemaObjectAllOutput added in v0.29.0

type GrantPrivilegesToRoleOnSchemaObjectAllOutput struct{ *pulumi.OutputState }

func (GrantPrivilegesToRoleOnSchemaObjectAllOutput) ElementType added in v0.29.0

func (GrantPrivilegesToRoleOnSchemaObjectAllOutput) InDatabase added in v0.29.0

func (GrantPrivilegesToRoleOnSchemaObjectAllOutput) InSchema added in v0.29.0

func (GrantPrivilegesToRoleOnSchemaObjectAllOutput) ObjectTypePlural added in v0.29.0

func (GrantPrivilegesToRoleOnSchemaObjectAllOutput) ToGrantPrivilegesToRoleOnSchemaObjectAllOutput added in v0.29.0

func (o GrantPrivilegesToRoleOnSchemaObjectAllOutput) ToGrantPrivilegesToRoleOnSchemaObjectAllOutput() GrantPrivilegesToRoleOnSchemaObjectAllOutput

func (GrantPrivilegesToRoleOnSchemaObjectAllOutput) ToGrantPrivilegesToRoleOnSchemaObjectAllOutputWithContext added in v0.29.0

func (o GrantPrivilegesToRoleOnSchemaObjectAllOutput) ToGrantPrivilegesToRoleOnSchemaObjectAllOutputWithContext(ctx context.Context) GrantPrivilegesToRoleOnSchemaObjectAllOutput

func (GrantPrivilegesToRoleOnSchemaObjectAllOutput) ToGrantPrivilegesToRoleOnSchemaObjectAllPtrOutput added in v0.29.0

func (o GrantPrivilegesToRoleOnSchemaObjectAllOutput) ToGrantPrivilegesToRoleOnSchemaObjectAllPtrOutput() GrantPrivilegesToRoleOnSchemaObjectAllPtrOutput

func (GrantPrivilegesToRoleOnSchemaObjectAllOutput) ToGrantPrivilegesToRoleOnSchemaObjectAllPtrOutputWithContext added in v0.29.0

func (o GrantPrivilegesToRoleOnSchemaObjectAllOutput) ToGrantPrivilegesToRoleOnSchemaObjectAllPtrOutputWithContext(ctx context.Context) GrantPrivilegesToRoleOnSchemaObjectAllPtrOutput

type GrantPrivilegesToRoleOnSchemaObjectAllPtrInput added in v0.29.0

type GrantPrivilegesToRoleOnSchemaObjectAllPtrInput interface {
	pulumi.Input

	ToGrantPrivilegesToRoleOnSchemaObjectAllPtrOutput() GrantPrivilegesToRoleOnSchemaObjectAllPtrOutput
	ToGrantPrivilegesToRoleOnSchemaObjectAllPtrOutputWithContext(context.Context) GrantPrivilegesToRoleOnSchemaObjectAllPtrOutput
}

GrantPrivilegesToRoleOnSchemaObjectAllPtrInput is an input type that accepts GrantPrivilegesToRoleOnSchemaObjectAllArgs, GrantPrivilegesToRoleOnSchemaObjectAllPtr and GrantPrivilegesToRoleOnSchemaObjectAllPtrOutput values. You can construct a concrete instance of `GrantPrivilegesToRoleOnSchemaObjectAllPtrInput` via:

        GrantPrivilegesToRoleOnSchemaObjectAllArgs{...}

or:

        nil

type GrantPrivilegesToRoleOnSchemaObjectAllPtrOutput added in v0.29.0

type GrantPrivilegesToRoleOnSchemaObjectAllPtrOutput struct{ *pulumi.OutputState }

func (GrantPrivilegesToRoleOnSchemaObjectAllPtrOutput) Elem added in v0.29.0

func (GrantPrivilegesToRoleOnSchemaObjectAllPtrOutput) ElementType added in v0.29.0

func (GrantPrivilegesToRoleOnSchemaObjectAllPtrOutput) InDatabase added in v0.29.0

func (GrantPrivilegesToRoleOnSchemaObjectAllPtrOutput) InSchema added in v0.29.0

func (GrantPrivilegesToRoleOnSchemaObjectAllPtrOutput) ObjectTypePlural added in v0.29.0

func (GrantPrivilegesToRoleOnSchemaObjectAllPtrOutput) ToGrantPrivilegesToRoleOnSchemaObjectAllPtrOutput added in v0.29.0

func (o GrantPrivilegesToRoleOnSchemaObjectAllPtrOutput) ToGrantPrivilegesToRoleOnSchemaObjectAllPtrOutput() GrantPrivilegesToRoleOnSchemaObjectAllPtrOutput

func (GrantPrivilegesToRoleOnSchemaObjectAllPtrOutput) ToGrantPrivilegesToRoleOnSchemaObjectAllPtrOutputWithContext added in v0.29.0

func (o GrantPrivilegesToRoleOnSchemaObjectAllPtrOutput) ToGrantPrivilegesToRoleOnSchemaObjectAllPtrOutputWithContext(ctx context.Context) GrantPrivilegesToRoleOnSchemaObjectAllPtrOutput

type GrantPrivilegesToRoleOnSchemaObjectArgs added in v0.29.0

type GrantPrivilegesToRoleOnSchemaObjectArgs struct {
	// Configures the privilege to be granted on all objects in eihter a database or schema.
	All GrantPrivilegesToRoleOnSchemaObjectAllPtrInput `pulumi:"all"`
	// Configures the privilege to be granted on future objects in eihter a database or schema.
	Future GrantPrivilegesToRoleOnSchemaObjectFuturePtrInput `pulumi:"future"`
	// The fully qualified name of the object on which privileges will be granted.
	ObjectName pulumi.StringPtrInput `pulumi:"objectName"`
	// The object type of the schema object on which privileges will be granted. Valid values are: USER | RESOURCE MONITOR | WAREHOUSE | DATABASE | INTEGRATION | FAILOVER GROUP | REPLICATION GROUP
	ObjectType pulumi.StringPtrInput `pulumi:"objectType"`
}

func (GrantPrivilegesToRoleOnSchemaObjectArgs) ElementType added in v0.29.0

func (GrantPrivilegesToRoleOnSchemaObjectArgs) ToGrantPrivilegesToRoleOnSchemaObjectOutput added in v0.29.0

func (i GrantPrivilegesToRoleOnSchemaObjectArgs) ToGrantPrivilegesToRoleOnSchemaObjectOutput() GrantPrivilegesToRoleOnSchemaObjectOutput

func (GrantPrivilegesToRoleOnSchemaObjectArgs) ToGrantPrivilegesToRoleOnSchemaObjectOutputWithContext added in v0.29.0

func (i GrantPrivilegesToRoleOnSchemaObjectArgs) ToGrantPrivilegesToRoleOnSchemaObjectOutputWithContext(ctx context.Context) GrantPrivilegesToRoleOnSchemaObjectOutput

func (GrantPrivilegesToRoleOnSchemaObjectArgs) ToGrantPrivilegesToRoleOnSchemaObjectPtrOutput added in v0.29.0

func (i GrantPrivilegesToRoleOnSchemaObjectArgs) ToGrantPrivilegesToRoleOnSchemaObjectPtrOutput() GrantPrivilegesToRoleOnSchemaObjectPtrOutput

func (GrantPrivilegesToRoleOnSchemaObjectArgs) ToGrantPrivilegesToRoleOnSchemaObjectPtrOutputWithContext added in v0.29.0

func (i GrantPrivilegesToRoleOnSchemaObjectArgs) ToGrantPrivilegesToRoleOnSchemaObjectPtrOutputWithContext(ctx context.Context) GrantPrivilegesToRoleOnSchemaObjectPtrOutput

type GrantPrivilegesToRoleOnSchemaObjectFuture added in v0.29.0

type GrantPrivilegesToRoleOnSchemaObjectFuture struct {
	InDatabase       *string `pulumi:"inDatabase"`
	InSchema         *string `pulumi:"inSchema"`
	ObjectTypePlural string  `pulumi:"objectTypePlural"`
}

type GrantPrivilegesToRoleOnSchemaObjectFutureArgs added in v0.29.0

type GrantPrivilegesToRoleOnSchemaObjectFutureArgs struct {
	InDatabase       pulumi.StringPtrInput `pulumi:"inDatabase"`
	InSchema         pulumi.StringPtrInput `pulumi:"inSchema"`
	ObjectTypePlural pulumi.StringInput    `pulumi:"objectTypePlural"`
}

func (GrantPrivilegesToRoleOnSchemaObjectFutureArgs) ElementType added in v0.29.0

func (GrantPrivilegesToRoleOnSchemaObjectFutureArgs) ToGrantPrivilegesToRoleOnSchemaObjectFutureOutput added in v0.29.0

func (i GrantPrivilegesToRoleOnSchemaObjectFutureArgs) ToGrantPrivilegesToRoleOnSchemaObjectFutureOutput() GrantPrivilegesToRoleOnSchemaObjectFutureOutput

func (GrantPrivilegesToRoleOnSchemaObjectFutureArgs) ToGrantPrivilegesToRoleOnSchemaObjectFutureOutputWithContext added in v0.29.0

func (i GrantPrivilegesToRoleOnSchemaObjectFutureArgs) ToGrantPrivilegesToRoleOnSchemaObjectFutureOutputWithContext(ctx context.Context) GrantPrivilegesToRoleOnSchemaObjectFutureOutput

func (GrantPrivilegesToRoleOnSchemaObjectFutureArgs) ToGrantPrivilegesToRoleOnSchemaObjectFuturePtrOutput added in v0.29.0

func (i GrantPrivilegesToRoleOnSchemaObjectFutureArgs) ToGrantPrivilegesToRoleOnSchemaObjectFuturePtrOutput() GrantPrivilegesToRoleOnSchemaObjectFuturePtrOutput

func (GrantPrivilegesToRoleOnSchemaObjectFutureArgs) ToGrantPrivilegesToRoleOnSchemaObjectFuturePtrOutputWithContext added in v0.29.0

func (i GrantPrivilegesToRoleOnSchemaObjectFutureArgs) ToGrantPrivilegesToRoleOnSchemaObjectFuturePtrOutputWithContext(ctx context.Context) GrantPrivilegesToRoleOnSchemaObjectFuturePtrOutput

type GrantPrivilegesToRoleOnSchemaObjectFutureInput added in v0.29.0

type GrantPrivilegesToRoleOnSchemaObjectFutureInput interface {
	pulumi.Input

	ToGrantPrivilegesToRoleOnSchemaObjectFutureOutput() GrantPrivilegesToRoleOnSchemaObjectFutureOutput
	ToGrantPrivilegesToRoleOnSchemaObjectFutureOutputWithContext(context.Context) GrantPrivilegesToRoleOnSchemaObjectFutureOutput
}

GrantPrivilegesToRoleOnSchemaObjectFutureInput is an input type that accepts GrantPrivilegesToRoleOnSchemaObjectFutureArgs and GrantPrivilegesToRoleOnSchemaObjectFutureOutput values. You can construct a concrete instance of `GrantPrivilegesToRoleOnSchemaObjectFutureInput` via:

GrantPrivilegesToRoleOnSchemaObjectFutureArgs{...}

type GrantPrivilegesToRoleOnSchemaObjectFutureOutput added in v0.29.0

type GrantPrivilegesToRoleOnSchemaObjectFutureOutput struct{ *pulumi.OutputState }

func (GrantPrivilegesToRoleOnSchemaObjectFutureOutput) ElementType added in v0.29.0

func (GrantPrivilegesToRoleOnSchemaObjectFutureOutput) InDatabase added in v0.29.0

func (GrantPrivilegesToRoleOnSchemaObjectFutureOutput) InSchema added in v0.29.0

func (GrantPrivilegesToRoleOnSchemaObjectFutureOutput) ObjectTypePlural added in v0.29.0

func (GrantPrivilegesToRoleOnSchemaObjectFutureOutput) ToGrantPrivilegesToRoleOnSchemaObjectFutureOutput added in v0.29.0

func (o GrantPrivilegesToRoleOnSchemaObjectFutureOutput) ToGrantPrivilegesToRoleOnSchemaObjectFutureOutput() GrantPrivilegesToRoleOnSchemaObjectFutureOutput

func (GrantPrivilegesToRoleOnSchemaObjectFutureOutput) ToGrantPrivilegesToRoleOnSchemaObjectFutureOutputWithContext added in v0.29.0

func (o GrantPrivilegesToRoleOnSchemaObjectFutureOutput) ToGrantPrivilegesToRoleOnSchemaObjectFutureOutputWithContext(ctx context.Context) GrantPrivilegesToRoleOnSchemaObjectFutureOutput

func (GrantPrivilegesToRoleOnSchemaObjectFutureOutput) ToGrantPrivilegesToRoleOnSchemaObjectFuturePtrOutput added in v0.29.0

func (o GrantPrivilegesToRoleOnSchemaObjectFutureOutput) ToGrantPrivilegesToRoleOnSchemaObjectFuturePtrOutput() GrantPrivilegesToRoleOnSchemaObjectFuturePtrOutput

func (GrantPrivilegesToRoleOnSchemaObjectFutureOutput) ToGrantPrivilegesToRoleOnSchemaObjectFuturePtrOutputWithContext added in v0.29.0

func (o GrantPrivilegesToRoleOnSchemaObjectFutureOutput) ToGrantPrivilegesToRoleOnSchemaObjectFuturePtrOutputWithContext(ctx context.Context) GrantPrivilegesToRoleOnSchemaObjectFuturePtrOutput

type GrantPrivilegesToRoleOnSchemaObjectFuturePtrInput added in v0.29.0

type GrantPrivilegesToRoleOnSchemaObjectFuturePtrInput interface {
	pulumi.Input

	ToGrantPrivilegesToRoleOnSchemaObjectFuturePtrOutput() GrantPrivilegesToRoleOnSchemaObjectFuturePtrOutput
	ToGrantPrivilegesToRoleOnSchemaObjectFuturePtrOutputWithContext(context.Context) GrantPrivilegesToRoleOnSchemaObjectFuturePtrOutput
}

GrantPrivilegesToRoleOnSchemaObjectFuturePtrInput is an input type that accepts GrantPrivilegesToRoleOnSchemaObjectFutureArgs, GrantPrivilegesToRoleOnSchemaObjectFuturePtr and GrantPrivilegesToRoleOnSchemaObjectFuturePtrOutput values. You can construct a concrete instance of `GrantPrivilegesToRoleOnSchemaObjectFuturePtrInput` via:

        GrantPrivilegesToRoleOnSchemaObjectFutureArgs{...}

or:

        nil

type GrantPrivilegesToRoleOnSchemaObjectFuturePtrOutput added in v0.29.0

type GrantPrivilegesToRoleOnSchemaObjectFuturePtrOutput struct{ *pulumi.OutputState }

func (GrantPrivilegesToRoleOnSchemaObjectFuturePtrOutput) Elem added in v0.29.0

func (GrantPrivilegesToRoleOnSchemaObjectFuturePtrOutput) ElementType added in v0.29.0

func (GrantPrivilegesToRoleOnSchemaObjectFuturePtrOutput) InDatabase added in v0.29.0

func (GrantPrivilegesToRoleOnSchemaObjectFuturePtrOutput) InSchema added in v0.29.0

func (GrantPrivilegesToRoleOnSchemaObjectFuturePtrOutput) ObjectTypePlural added in v0.29.0

func (GrantPrivilegesToRoleOnSchemaObjectFuturePtrOutput) ToGrantPrivilegesToRoleOnSchemaObjectFuturePtrOutput added in v0.29.0

func (o GrantPrivilegesToRoleOnSchemaObjectFuturePtrOutput) ToGrantPrivilegesToRoleOnSchemaObjectFuturePtrOutput() GrantPrivilegesToRoleOnSchemaObjectFuturePtrOutput

func (GrantPrivilegesToRoleOnSchemaObjectFuturePtrOutput) ToGrantPrivilegesToRoleOnSchemaObjectFuturePtrOutputWithContext added in v0.29.0

func (o GrantPrivilegesToRoleOnSchemaObjectFuturePtrOutput) ToGrantPrivilegesToRoleOnSchemaObjectFuturePtrOutputWithContext(ctx context.Context) GrantPrivilegesToRoleOnSchemaObjectFuturePtrOutput

type GrantPrivilegesToRoleOnSchemaObjectInput added in v0.29.0

type GrantPrivilegesToRoleOnSchemaObjectInput interface {
	pulumi.Input

	ToGrantPrivilegesToRoleOnSchemaObjectOutput() GrantPrivilegesToRoleOnSchemaObjectOutput
	ToGrantPrivilegesToRoleOnSchemaObjectOutputWithContext(context.Context) GrantPrivilegesToRoleOnSchemaObjectOutput
}

GrantPrivilegesToRoleOnSchemaObjectInput is an input type that accepts GrantPrivilegesToRoleOnSchemaObjectArgs and GrantPrivilegesToRoleOnSchemaObjectOutput values. You can construct a concrete instance of `GrantPrivilegesToRoleOnSchemaObjectInput` via:

GrantPrivilegesToRoleOnSchemaObjectArgs{...}

type GrantPrivilegesToRoleOnSchemaObjectOutput added in v0.29.0

type GrantPrivilegesToRoleOnSchemaObjectOutput struct{ *pulumi.OutputState }

func (GrantPrivilegesToRoleOnSchemaObjectOutput) All added in v0.29.0

Configures the privilege to be granted on all objects in eihter a database or schema.

func (GrantPrivilegesToRoleOnSchemaObjectOutput) ElementType added in v0.29.0

func (GrantPrivilegesToRoleOnSchemaObjectOutput) Future added in v0.29.0

Configures the privilege to be granted on future objects in eihter a database or schema.

func (GrantPrivilegesToRoleOnSchemaObjectOutput) ObjectName added in v0.29.0

The fully qualified name of the object on which privileges will be granted.

func (GrantPrivilegesToRoleOnSchemaObjectOutput) ObjectType added in v0.29.0

The object type of the schema object on which privileges will be granted. Valid values are: USER | RESOURCE MONITOR | WAREHOUSE | DATABASE | INTEGRATION | FAILOVER GROUP | REPLICATION GROUP

func (GrantPrivilegesToRoleOnSchemaObjectOutput) ToGrantPrivilegesToRoleOnSchemaObjectOutput added in v0.29.0

func (o GrantPrivilegesToRoleOnSchemaObjectOutput) ToGrantPrivilegesToRoleOnSchemaObjectOutput() GrantPrivilegesToRoleOnSchemaObjectOutput

func (GrantPrivilegesToRoleOnSchemaObjectOutput) ToGrantPrivilegesToRoleOnSchemaObjectOutputWithContext added in v0.29.0

func (o GrantPrivilegesToRoleOnSchemaObjectOutput) ToGrantPrivilegesToRoleOnSchemaObjectOutputWithContext(ctx context.Context) GrantPrivilegesToRoleOnSchemaObjectOutput

func (GrantPrivilegesToRoleOnSchemaObjectOutput) ToGrantPrivilegesToRoleOnSchemaObjectPtrOutput added in v0.29.0

func (o GrantPrivilegesToRoleOnSchemaObjectOutput) ToGrantPrivilegesToRoleOnSchemaObjectPtrOutput() GrantPrivilegesToRoleOnSchemaObjectPtrOutput

func (GrantPrivilegesToRoleOnSchemaObjectOutput) ToGrantPrivilegesToRoleOnSchemaObjectPtrOutputWithContext added in v0.29.0

func (o GrantPrivilegesToRoleOnSchemaObjectOutput) ToGrantPrivilegesToRoleOnSchemaObjectPtrOutputWithContext(ctx context.Context) GrantPrivilegesToRoleOnSchemaObjectPtrOutput

type GrantPrivilegesToRoleOnSchemaObjectPtrInput added in v0.29.0

type GrantPrivilegesToRoleOnSchemaObjectPtrInput interface {
	pulumi.Input

	ToGrantPrivilegesToRoleOnSchemaObjectPtrOutput() GrantPrivilegesToRoleOnSchemaObjectPtrOutput
	ToGrantPrivilegesToRoleOnSchemaObjectPtrOutputWithContext(context.Context) GrantPrivilegesToRoleOnSchemaObjectPtrOutput
}

GrantPrivilegesToRoleOnSchemaObjectPtrInput is an input type that accepts GrantPrivilegesToRoleOnSchemaObjectArgs, GrantPrivilegesToRoleOnSchemaObjectPtr and GrantPrivilegesToRoleOnSchemaObjectPtrOutput values. You can construct a concrete instance of `GrantPrivilegesToRoleOnSchemaObjectPtrInput` via:

        GrantPrivilegesToRoleOnSchemaObjectArgs{...}

or:

        nil

type GrantPrivilegesToRoleOnSchemaObjectPtrOutput added in v0.29.0

type GrantPrivilegesToRoleOnSchemaObjectPtrOutput struct{ *pulumi.OutputState }

func (GrantPrivilegesToRoleOnSchemaObjectPtrOutput) All added in v0.29.0

Configures the privilege to be granted on all objects in eihter a database or schema.

func (GrantPrivilegesToRoleOnSchemaObjectPtrOutput) Elem added in v0.29.0

func (GrantPrivilegesToRoleOnSchemaObjectPtrOutput) ElementType added in v0.29.0

func (GrantPrivilegesToRoleOnSchemaObjectPtrOutput) Future added in v0.29.0

Configures the privilege to be granted on future objects in eihter a database or schema.

func (GrantPrivilegesToRoleOnSchemaObjectPtrOutput) ObjectName added in v0.29.0

The fully qualified name of the object on which privileges will be granted.

func (GrantPrivilegesToRoleOnSchemaObjectPtrOutput) ObjectType added in v0.29.0

The object type of the schema object on which privileges will be granted. Valid values are: USER | RESOURCE MONITOR | WAREHOUSE | DATABASE | INTEGRATION | FAILOVER GROUP | REPLICATION GROUP

func (GrantPrivilegesToRoleOnSchemaObjectPtrOutput) ToGrantPrivilegesToRoleOnSchemaObjectPtrOutput added in v0.29.0

func (o GrantPrivilegesToRoleOnSchemaObjectPtrOutput) ToGrantPrivilegesToRoleOnSchemaObjectPtrOutput() GrantPrivilegesToRoleOnSchemaObjectPtrOutput

func (GrantPrivilegesToRoleOnSchemaObjectPtrOutput) ToGrantPrivilegesToRoleOnSchemaObjectPtrOutputWithContext added in v0.29.0

func (o GrantPrivilegesToRoleOnSchemaObjectPtrOutput) ToGrantPrivilegesToRoleOnSchemaObjectPtrOutputWithContext(ctx context.Context) GrantPrivilegesToRoleOnSchemaObjectPtrOutput

type GrantPrivilegesToRoleOnSchemaOutput added in v0.29.0

type GrantPrivilegesToRoleOnSchemaOutput struct{ *pulumi.OutputState }

func (GrantPrivilegesToRoleOnSchemaOutput) AllSchemasInDatabase added in v0.29.0

The fully qualified name of the database.

func (GrantPrivilegesToRoleOnSchemaOutput) ElementType added in v0.29.0

func (GrantPrivilegesToRoleOnSchemaOutput) FutureSchemasInDatabase added in v0.29.0

func (o GrantPrivilegesToRoleOnSchemaOutput) FutureSchemasInDatabase() pulumi.StringPtrOutput

The fully qualified name of the database.

func (GrantPrivilegesToRoleOnSchemaOutput) SchemaName added in v0.29.0

The fully qualified name of the schema.

func (GrantPrivilegesToRoleOnSchemaOutput) ToGrantPrivilegesToRoleOnSchemaOutput added in v0.29.0

func (o GrantPrivilegesToRoleOnSchemaOutput) ToGrantPrivilegesToRoleOnSchemaOutput() GrantPrivilegesToRoleOnSchemaOutput

func (GrantPrivilegesToRoleOnSchemaOutput) ToGrantPrivilegesToRoleOnSchemaOutputWithContext added in v0.29.0

func (o GrantPrivilegesToRoleOnSchemaOutput) ToGrantPrivilegesToRoleOnSchemaOutputWithContext(ctx context.Context) GrantPrivilegesToRoleOnSchemaOutput

func (GrantPrivilegesToRoleOnSchemaOutput) ToGrantPrivilegesToRoleOnSchemaPtrOutput added in v0.29.0

func (o GrantPrivilegesToRoleOnSchemaOutput) ToGrantPrivilegesToRoleOnSchemaPtrOutput() GrantPrivilegesToRoleOnSchemaPtrOutput

func (GrantPrivilegesToRoleOnSchemaOutput) ToGrantPrivilegesToRoleOnSchemaPtrOutputWithContext added in v0.29.0

func (o GrantPrivilegesToRoleOnSchemaOutput) ToGrantPrivilegesToRoleOnSchemaPtrOutputWithContext(ctx context.Context) GrantPrivilegesToRoleOnSchemaPtrOutput

type GrantPrivilegesToRoleOnSchemaPtrInput added in v0.29.0

type GrantPrivilegesToRoleOnSchemaPtrInput interface {
	pulumi.Input

	ToGrantPrivilegesToRoleOnSchemaPtrOutput() GrantPrivilegesToRoleOnSchemaPtrOutput
	ToGrantPrivilegesToRoleOnSchemaPtrOutputWithContext(context.Context) GrantPrivilegesToRoleOnSchemaPtrOutput
}

GrantPrivilegesToRoleOnSchemaPtrInput is an input type that accepts GrantPrivilegesToRoleOnSchemaArgs, GrantPrivilegesToRoleOnSchemaPtr and GrantPrivilegesToRoleOnSchemaPtrOutput values. You can construct a concrete instance of `GrantPrivilegesToRoleOnSchemaPtrInput` via:

        GrantPrivilegesToRoleOnSchemaArgs{...}

or:

        nil

type GrantPrivilegesToRoleOnSchemaPtrOutput added in v0.29.0

type GrantPrivilegesToRoleOnSchemaPtrOutput struct{ *pulumi.OutputState }

func (GrantPrivilegesToRoleOnSchemaPtrOutput) AllSchemasInDatabase added in v0.29.0

The fully qualified name of the database.

func (GrantPrivilegesToRoleOnSchemaPtrOutput) Elem added in v0.29.0

func (GrantPrivilegesToRoleOnSchemaPtrOutput) ElementType added in v0.29.0

func (GrantPrivilegesToRoleOnSchemaPtrOutput) FutureSchemasInDatabase added in v0.29.0

The fully qualified name of the database.

func (GrantPrivilegesToRoleOnSchemaPtrOutput) SchemaName added in v0.29.0

The fully qualified name of the schema.

func (GrantPrivilegesToRoleOnSchemaPtrOutput) ToGrantPrivilegesToRoleOnSchemaPtrOutput added in v0.29.0

func (o GrantPrivilegesToRoleOnSchemaPtrOutput) ToGrantPrivilegesToRoleOnSchemaPtrOutput() GrantPrivilegesToRoleOnSchemaPtrOutput

func (GrantPrivilegesToRoleOnSchemaPtrOutput) ToGrantPrivilegesToRoleOnSchemaPtrOutputWithContext added in v0.29.0

func (o GrantPrivilegesToRoleOnSchemaPtrOutput) ToGrantPrivilegesToRoleOnSchemaPtrOutputWithContext(ctx context.Context) GrantPrivilegesToRoleOnSchemaPtrOutput

type GrantPrivilegesToRoleOutput added in v0.29.0

type GrantPrivilegesToRoleOutput struct{ *pulumi.OutputState }

func (GrantPrivilegesToRoleOutput) AllPrivileges added in v0.29.0

Grant all privileges on the account role.

func (GrantPrivilegesToRoleOutput) ElementType added in v0.29.0

func (GrantPrivilegesToRoleOutput) OnAccount added in v0.29.0

If true, the privileges will be granted on the account.

func (GrantPrivilegesToRoleOutput) OnAccountObject added in v0.29.0

Specifies the account object on which privileges will be granted

func (GrantPrivilegesToRoleOutput) OnSchema added in v0.29.0

Specifies the schema on which privileges will be granted.

func (GrantPrivilegesToRoleOutput) OnSchemaObject added in v0.29.0

Specifies the schema object on which privileges will be granted.

func (GrantPrivilegesToRoleOutput) Privileges added in v0.29.0

The privileges to grant on the account role.

func (GrantPrivilegesToRoleOutput) RoleName added in v0.29.0

The fully qualified name of the role to which privileges will be granted.

func (GrantPrivilegesToRoleOutput) ToGrantPrivilegesToRoleOutput added in v0.29.0

func (o GrantPrivilegesToRoleOutput) ToGrantPrivilegesToRoleOutput() GrantPrivilegesToRoleOutput

func (GrantPrivilegesToRoleOutput) ToGrantPrivilegesToRoleOutputWithContext added in v0.29.0

func (o GrantPrivilegesToRoleOutput) ToGrantPrivilegesToRoleOutputWithContext(ctx context.Context) GrantPrivilegesToRoleOutput

func (GrantPrivilegesToRoleOutput) WithGrantOption added in v0.29.0

func (o GrantPrivilegesToRoleOutput) WithGrantOption() pulumi.BoolPtrOutput

Specifies whether the grantee can grant the privileges to other users.

type GrantPrivilegesToRoleState added in v0.29.0

type GrantPrivilegesToRoleState struct {
	// Grant all privileges on the account role.
	AllPrivileges pulumi.BoolPtrInput
	// If true, the privileges will be granted on the account.
	OnAccount pulumi.BoolPtrInput
	// Specifies the account object on which privileges will be granted
	OnAccountObject GrantPrivilegesToRoleOnAccountObjectPtrInput
	// Specifies the schema on which privileges will be granted.
	OnSchema GrantPrivilegesToRoleOnSchemaPtrInput
	// Specifies the schema object on which privileges will be granted.
	OnSchemaObject GrantPrivilegesToRoleOnSchemaObjectPtrInput
	// The privileges to grant on the account role.
	Privileges pulumi.StringArrayInput
	// The fully qualified name of the role to which privileges will be granted.
	RoleName pulumi.StringPtrInput
	// Specifies whether the grantee can grant the privileges to other users.
	WithGrantOption pulumi.BoolPtrInput
}

func (GrantPrivilegesToRoleState) ElementType added in v0.29.0

func (GrantPrivilegesToRoleState) ElementType() reflect.Type

type IntegrationGrant

type IntegrationGrant struct {
	pulumi.CustomResourceState

	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrOutput `pulumi:"enableMultipleGrants"`
	// Identifier for the integration; must be unique for your account.
	IntegrationName pulumi.StringOutput `pulumi:"integrationName"`
	// The privilege to grant on the integration. To grant all privileges, use the value `ALL PRIVILEGES`
	Privilege pulumi.StringPtrOutput `pulumi:"privilege"`
	// The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
	RevertOwnershipToRoleName pulumi.StringPtrOutput `pulumi:"revertOwnershipToRoleName"`
	// Grants privilege to these roles.
	Roles pulumi.StringArrayOutput `pulumi:"roles"`
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrOutput `pulumi:"withGrantOption"`
}

## Example Usage

```go 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.NewIntegrationGrant(ctx, "grant", &snowflake.IntegrationGrantArgs{
			IntegrationName: pulumi.String("integration"),
			Privilege:       pulumi.String("USAGE"),
			Roles: pulumi.StringArray{
				pulumi.String("role1"),
				pulumi.String("role2"),
			},
			WithGrantOption: pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

format is integration_name|privilege|with_grant_option|roles

```sh

$ pulumi import snowflake:index/integrationGrant:IntegrationGrant example "MY_INTEGRATION|USAGE|false|role1,role2"

```

func GetIntegrationGrant

func GetIntegrationGrant(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *IntegrationGrantState, opts ...pulumi.ResourceOption) (*IntegrationGrant, error)

GetIntegrationGrant gets an existing IntegrationGrant resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewIntegrationGrant

func NewIntegrationGrant(ctx *pulumi.Context,
	name string, args *IntegrationGrantArgs, opts ...pulumi.ResourceOption) (*IntegrationGrant, error)

NewIntegrationGrant registers a new resource with the given unique name, arguments, and options.

func (*IntegrationGrant) ElementType

func (*IntegrationGrant) ElementType() reflect.Type

func (*IntegrationGrant) ToIntegrationGrantOutput

func (i *IntegrationGrant) ToIntegrationGrantOutput() IntegrationGrantOutput

func (*IntegrationGrant) ToIntegrationGrantOutputWithContext

func (i *IntegrationGrant) ToIntegrationGrantOutputWithContext(ctx context.Context) IntegrationGrantOutput

type IntegrationGrantArgs

type IntegrationGrantArgs struct {
	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrInput
	// Identifier for the integration; must be unique for your account.
	IntegrationName pulumi.StringInput
	// The privilege to grant on the integration. To grant all privileges, use the value `ALL PRIVILEGES`
	Privilege pulumi.StringPtrInput
	// The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
	RevertOwnershipToRoleName pulumi.StringPtrInput
	// Grants privilege to these roles.
	Roles pulumi.StringArrayInput
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrInput
}

The set of arguments for constructing a IntegrationGrant resource.

func (IntegrationGrantArgs) ElementType

func (IntegrationGrantArgs) ElementType() reflect.Type

type IntegrationGrantArray

type IntegrationGrantArray []IntegrationGrantInput

func (IntegrationGrantArray) ElementType

func (IntegrationGrantArray) ElementType() reflect.Type

func (IntegrationGrantArray) ToIntegrationGrantArrayOutput

func (i IntegrationGrantArray) ToIntegrationGrantArrayOutput() IntegrationGrantArrayOutput

func (IntegrationGrantArray) ToIntegrationGrantArrayOutputWithContext

func (i IntegrationGrantArray) ToIntegrationGrantArrayOutputWithContext(ctx context.Context) IntegrationGrantArrayOutput

type IntegrationGrantArrayInput

type IntegrationGrantArrayInput interface {
	pulumi.Input

	ToIntegrationGrantArrayOutput() IntegrationGrantArrayOutput
	ToIntegrationGrantArrayOutputWithContext(context.Context) IntegrationGrantArrayOutput
}

IntegrationGrantArrayInput is an input type that accepts IntegrationGrantArray and IntegrationGrantArrayOutput values. You can construct a concrete instance of `IntegrationGrantArrayInput` via:

IntegrationGrantArray{ IntegrationGrantArgs{...} }

type IntegrationGrantArrayOutput

type IntegrationGrantArrayOutput struct{ *pulumi.OutputState }

func (IntegrationGrantArrayOutput) ElementType

func (IntegrationGrantArrayOutput) Index

func (IntegrationGrantArrayOutput) ToIntegrationGrantArrayOutput

func (o IntegrationGrantArrayOutput) ToIntegrationGrantArrayOutput() IntegrationGrantArrayOutput

func (IntegrationGrantArrayOutput) ToIntegrationGrantArrayOutputWithContext

func (o IntegrationGrantArrayOutput) ToIntegrationGrantArrayOutputWithContext(ctx context.Context) IntegrationGrantArrayOutput

type IntegrationGrantInput

type IntegrationGrantInput interface {
	pulumi.Input

	ToIntegrationGrantOutput() IntegrationGrantOutput
	ToIntegrationGrantOutputWithContext(ctx context.Context) IntegrationGrantOutput
}

type IntegrationGrantMap

type IntegrationGrantMap map[string]IntegrationGrantInput

func (IntegrationGrantMap) ElementType

func (IntegrationGrantMap) ElementType() reflect.Type

func (IntegrationGrantMap) ToIntegrationGrantMapOutput

func (i IntegrationGrantMap) ToIntegrationGrantMapOutput() IntegrationGrantMapOutput

func (IntegrationGrantMap) ToIntegrationGrantMapOutputWithContext

func (i IntegrationGrantMap) ToIntegrationGrantMapOutputWithContext(ctx context.Context) IntegrationGrantMapOutput

type IntegrationGrantMapInput

type IntegrationGrantMapInput interface {
	pulumi.Input

	ToIntegrationGrantMapOutput() IntegrationGrantMapOutput
	ToIntegrationGrantMapOutputWithContext(context.Context) IntegrationGrantMapOutput
}

IntegrationGrantMapInput is an input type that accepts IntegrationGrantMap and IntegrationGrantMapOutput values. You can construct a concrete instance of `IntegrationGrantMapInput` via:

IntegrationGrantMap{ "key": IntegrationGrantArgs{...} }

type IntegrationGrantMapOutput

type IntegrationGrantMapOutput struct{ *pulumi.OutputState }

func (IntegrationGrantMapOutput) ElementType

func (IntegrationGrantMapOutput) ElementType() reflect.Type

func (IntegrationGrantMapOutput) MapIndex

func (IntegrationGrantMapOutput) ToIntegrationGrantMapOutput

func (o IntegrationGrantMapOutput) ToIntegrationGrantMapOutput() IntegrationGrantMapOutput

func (IntegrationGrantMapOutput) ToIntegrationGrantMapOutputWithContext

func (o IntegrationGrantMapOutput) ToIntegrationGrantMapOutputWithContext(ctx context.Context) IntegrationGrantMapOutput

type IntegrationGrantOutput

type IntegrationGrantOutput struct{ *pulumi.OutputState }

func (IntegrationGrantOutput) ElementType

func (IntegrationGrantOutput) ElementType() reflect.Type

func (IntegrationGrantOutput) EnableMultipleGrants added in v0.9.0

func (o IntegrationGrantOutput) EnableMultipleGrants() pulumi.BoolPtrOutput

When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke grants applied to roles and objects outside Terraform.

func (IntegrationGrantOutput) IntegrationName added in v0.9.0

func (o IntegrationGrantOutput) IntegrationName() pulumi.StringOutput

Identifier for the integration; must be unique for your account.

func (IntegrationGrantOutput) Privilege added in v0.9.0

The privilege to grant on the integration. To grant all privileges, use the value `ALL PRIVILEGES`

func (IntegrationGrantOutput) RevertOwnershipToRoleName added in v0.26.0

func (o IntegrationGrantOutput) RevertOwnershipToRoleName() pulumi.StringPtrOutput

The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`

func (IntegrationGrantOutput) Roles added in v0.9.0

Grants privilege to these roles.

func (IntegrationGrantOutput) ToIntegrationGrantOutput

func (o IntegrationGrantOutput) ToIntegrationGrantOutput() IntegrationGrantOutput

func (IntegrationGrantOutput) ToIntegrationGrantOutputWithContext

func (o IntegrationGrantOutput) ToIntegrationGrantOutputWithContext(ctx context.Context) IntegrationGrantOutput

func (IntegrationGrantOutput) WithGrantOption added in v0.9.0

func (o IntegrationGrantOutput) WithGrantOption() pulumi.BoolPtrOutput

When this is set to true, allows the recipient role to grant the privileges to other roles.

type IntegrationGrantState

type IntegrationGrantState struct {
	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrInput
	// Identifier for the integration; must be unique for your account.
	IntegrationName pulumi.StringPtrInput
	// The privilege to grant on the integration. To grant all privileges, use the value `ALL PRIVILEGES`
	Privilege pulumi.StringPtrInput
	// The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
	RevertOwnershipToRoleName pulumi.StringPtrInput
	// Grants privilege to these roles.
	Roles pulumi.StringArrayInput
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrInput
}

func (IntegrationGrantState) ElementType

func (IntegrationGrantState) ElementType() reflect.Type

type LookupDatabaseArgs added in v0.5.0

type LookupDatabaseArgs struct {
	// The database from which to return its metadata.
	Name string `pulumi:"name"`
}

A collection of arguments for invoking getDatabase.

type LookupDatabaseOutputArgs added in v0.5.0

type LookupDatabaseOutputArgs struct {
	// The database from which to return its metadata.
	Name pulumi.StringInput `pulumi:"name"`
}

A collection of arguments for invoking getDatabase.

func (LookupDatabaseOutputArgs) ElementType added in v0.5.0

func (LookupDatabaseOutputArgs) ElementType() reflect.Type

type LookupDatabaseResult added in v0.5.0

type LookupDatabaseResult struct {
	Comment   string `pulumi:"comment"`
	CreatedOn string `pulumi:"createdOn"`
	// The provider-assigned unique ID for this managed resource.
	Id        string `pulumi:"id"`
	IsCurrent bool   `pulumi:"isCurrent"`
	IsDefault bool   `pulumi:"isDefault"`
	// The database from which to return its metadata.
	Name          string `pulumi:"name"`
	Options       string `pulumi:"options"`
	Origin        string `pulumi:"origin"`
	Owner         string `pulumi:"owner"`
	RetentionTime int    `pulumi:"retentionTime"`
}

A collection of values returned by getDatabase.

func LookupDatabase added in v0.5.0

func LookupDatabase(ctx *pulumi.Context, args *LookupDatabaseArgs, opts ...pulumi.InvokeOption) (*LookupDatabaseResult, error)

## Example Usage

```go 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.LookupDatabase(ctx, &snowflake.LookupDatabaseArgs{
			Name: "DEMO_DB",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type LookupDatabaseResultOutput added in v0.5.0

type LookupDatabaseResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getDatabase.

func LookupDatabaseOutput added in v0.5.0

func LookupDatabaseOutput(ctx *pulumi.Context, args LookupDatabaseOutputArgs, opts ...pulumi.InvokeOption) LookupDatabaseResultOutput

func (LookupDatabaseResultOutput) Comment added in v0.5.0

func (LookupDatabaseResultOutput) CreatedOn added in v0.5.0

func (LookupDatabaseResultOutput) ElementType added in v0.5.0

func (LookupDatabaseResultOutput) ElementType() reflect.Type

func (LookupDatabaseResultOutput) Id added in v0.5.0

The provider-assigned unique ID for this managed resource.

func (LookupDatabaseResultOutput) IsCurrent added in v0.5.0

func (LookupDatabaseResultOutput) IsDefault added in v0.5.0

func (LookupDatabaseResultOutput) Name added in v0.5.0

The database from which to return its metadata.

func (LookupDatabaseResultOutput) Options added in v0.5.0

func (LookupDatabaseResultOutput) Origin added in v0.5.0

func (LookupDatabaseResultOutput) Owner added in v0.5.0

func (LookupDatabaseResultOutput) RetentionTime added in v0.5.0

func (o LookupDatabaseResultOutput) RetentionTime() pulumi.IntOutput

func (LookupDatabaseResultOutput) ToLookupDatabaseResultOutput added in v0.5.0

func (o LookupDatabaseResultOutput) ToLookupDatabaseResultOutput() LookupDatabaseResultOutput

func (LookupDatabaseResultOutput) ToLookupDatabaseResultOutputWithContext added in v0.5.0

func (o LookupDatabaseResultOutput) ToLookupDatabaseResultOutputWithContext(ctx context.Context) LookupDatabaseResultOutput

type LookupRoleArgs added in v0.8.0

type LookupRoleArgs struct {
	// The role for which to return metadata.
	Name string `pulumi:"name"`
}

A collection of arguments for invoking getRole.

type LookupRoleOutputArgs added in v0.8.0

type LookupRoleOutputArgs struct {
	// The role for which to return metadata.
	Name pulumi.StringInput `pulumi:"name"`
}

A collection of arguments for invoking getRole.

func (LookupRoleOutputArgs) ElementType added in v0.8.0

func (LookupRoleOutputArgs) ElementType() reflect.Type

type LookupRoleResult added in v0.8.0

type LookupRoleResult struct {
	// The comment on the role
	Comment string `pulumi:"comment"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The role for which to return metadata.
	Name string `pulumi:"name"`
}

A collection of values returned by getRole.

func LookupRole added in v0.8.0

func LookupRole(ctx *pulumi.Context, args *LookupRoleArgs, opts ...pulumi.InvokeOption) (*LookupRoleResult, error)

## Example Usage

```go 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.LookupRole(ctx, &snowflake.LookupRoleArgs{
			Name: "role1",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type LookupRoleResultOutput added in v0.8.0

type LookupRoleResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getRole.

func LookupRoleOutput added in v0.8.0

func LookupRoleOutput(ctx *pulumi.Context, args LookupRoleOutputArgs, opts ...pulumi.InvokeOption) LookupRoleResultOutput

func (LookupRoleResultOutput) Comment added in v0.8.0

The comment on the role

func (LookupRoleResultOutput) ElementType added in v0.8.0

func (LookupRoleResultOutput) ElementType() reflect.Type

func (LookupRoleResultOutput) Id added in v0.8.0

The provider-assigned unique ID for this managed resource.

func (LookupRoleResultOutput) Name added in v0.8.0

The role for which to return metadata.

func (LookupRoleResultOutput) ToLookupRoleResultOutput added in v0.8.0

func (o LookupRoleResultOutput) ToLookupRoleResultOutput() LookupRoleResultOutput

func (LookupRoleResultOutput) ToLookupRoleResultOutputWithContext added in v0.8.0

func (o LookupRoleResultOutput) ToLookupRoleResultOutputWithContext(ctx context.Context) LookupRoleResultOutput

type ManagedAccount

type ManagedAccount struct {
	pulumi.CustomResourceState

	// Identifier, as well as login name, for the initial user in the managed account. This user serves as the account administrator for the account.
	AdminName pulumi.StringOutput `pulumi:"adminName"`
	// Password for the initial user in the managed account.
	AdminPassword pulumi.StringOutput `pulumi:"adminPassword"`
	// Cloud in which the managed account is located.
	Cloud pulumi.StringOutput `pulumi:"cloud"`
	// Specifies a comment for the managed account.
	Comment pulumi.StringPtrOutput `pulumi:"comment"`
	// Date and time when the managed account was created.
	CreatedOn pulumi.StringOutput `pulumi:"createdOn"`
	// Display name of the managed account.
	Locator pulumi.StringOutput `pulumi:"locator"`
	// Identifier for the managed account; must be unique for your account.
	Name pulumi.StringOutput `pulumi:"name"`
	// Snowflake Region in which the managed account is located.
	Region pulumi.StringOutput `pulumi:"region"`
	// Specifies the type of managed account.
	Type pulumi.StringPtrOutput `pulumi:"type"`
	// URL for accessing the managed account, particularly through the web interface.
	Url pulumi.StringOutput `pulumi:"url"`
}

## Import

```sh

$ pulumi import snowflake:index/managedAccount:ManagedAccount example name

```

func GetManagedAccount

func GetManagedAccount(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ManagedAccountState, opts ...pulumi.ResourceOption) (*ManagedAccount, error)

GetManagedAccount gets an existing ManagedAccount resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewManagedAccount

func NewManagedAccount(ctx *pulumi.Context,
	name string, args *ManagedAccountArgs, opts ...pulumi.ResourceOption) (*ManagedAccount, error)

NewManagedAccount registers a new resource with the given unique name, arguments, and options.

func (*ManagedAccount) ElementType

func (*ManagedAccount) ElementType() reflect.Type

func (*ManagedAccount) ToManagedAccountOutput

func (i *ManagedAccount) ToManagedAccountOutput() ManagedAccountOutput

func (*ManagedAccount) ToManagedAccountOutputWithContext

func (i *ManagedAccount) ToManagedAccountOutputWithContext(ctx context.Context) ManagedAccountOutput

type ManagedAccountArgs

type ManagedAccountArgs struct {
	// Identifier, as well as login name, for the initial user in the managed account. This user serves as the account administrator for the account.
	AdminName pulumi.StringInput
	// Password for the initial user in the managed account.
	AdminPassword pulumi.StringInput
	// Specifies a comment for the managed account.
	Comment pulumi.StringPtrInput
	// Identifier for the managed account; must be unique for your account.
	Name pulumi.StringPtrInput
	// Specifies the type of managed account.
	Type pulumi.StringPtrInput
}

The set of arguments for constructing a ManagedAccount resource.

func (ManagedAccountArgs) ElementType

func (ManagedAccountArgs) ElementType() reflect.Type

type ManagedAccountArray

type ManagedAccountArray []ManagedAccountInput

func (ManagedAccountArray) ElementType

func (ManagedAccountArray) ElementType() reflect.Type

func (ManagedAccountArray) ToManagedAccountArrayOutput

func (i ManagedAccountArray) ToManagedAccountArrayOutput() ManagedAccountArrayOutput

func (ManagedAccountArray) ToManagedAccountArrayOutputWithContext

func (i ManagedAccountArray) ToManagedAccountArrayOutputWithContext(ctx context.Context) ManagedAccountArrayOutput

type ManagedAccountArrayInput

type ManagedAccountArrayInput interface {
	pulumi.Input

	ToManagedAccountArrayOutput() ManagedAccountArrayOutput
	ToManagedAccountArrayOutputWithContext(context.Context) ManagedAccountArrayOutput
}

ManagedAccountArrayInput is an input type that accepts ManagedAccountArray and ManagedAccountArrayOutput values. You can construct a concrete instance of `ManagedAccountArrayInput` via:

ManagedAccountArray{ ManagedAccountArgs{...} }

type ManagedAccountArrayOutput

type ManagedAccountArrayOutput struct{ *pulumi.OutputState }

func (ManagedAccountArrayOutput) ElementType

func (ManagedAccountArrayOutput) ElementType() reflect.Type

func (ManagedAccountArrayOutput) Index

func (ManagedAccountArrayOutput) ToManagedAccountArrayOutput

func (o ManagedAccountArrayOutput) ToManagedAccountArrayOutput() ManagedAccountArrayOutput

func (ManagedAccountArrayOutput) ToManagedAccountArrayOutputWithContext

func (o ManagedAccountArrayOutput) ToManagedAccountArrayOutputWithContext(ctx context.Context) ManagedAccountArrayOutput

type ManagedAccountInput

type ManagedAccountInput interface {
	pulumi.Input

	ToManagedAccountOutput() ManagedAccountOutput
	ToManagedAccountOutputWithContext(ctx context.Context) ManagedAccountOutput
}

type ManagedAccountMap

type ManagedAccountMap map[string]ManagedAccountInput

func (ManagedAccountMap) ElementType

func (ManagedAccountMap) ElementType() reflect.Type

func (ManagedAccountMap) ToManagedAccountMapOutput

func (i ManagedAccountMap) ToManagedAccountMapOutput() ManagedAccountMapOutput

func (ManagedAccountMap) ToManagedAccountMapOutputWithContext

func (i ManagedAccountMap) ToManagedAccountMapOutputWithContext(ctx context.Context) ManagedAccountMapOutput

type ManagedAccountMapInput

type ManagedAccountMapInput interface {
	pulumi.Input

	ToManagedAccountMapOutput() ManagedAccountMapOutput
	ToManagedAccountMapOutputWithContext(context.Context) ManagedAccountMapOutput
}

ManagedAccountMapInput is an input type that accepts ManagedAccountMap and ManagedAccountMapOutput values. You can construct a concrete instance of `ManagedAccountMapInput` via:

ManagedAccountMap{ "key": ManagedAccountArgs{...} }

type ManagedAccountMapOutput

type ManagedAccountMapOutput struct{ *pulumi.OutputState }

func (ManagedAccountMapOutput) ElementType

func (ManagedAccountMapOutput) ElementType() reflect.Type

func (ManagedAccountMapOutput) MapIndex

func (ManagedAccountMapOutput) ToManagedAccountMapOutput

func (o ManagedAccountMapOutput) ToManagedAccountMapOutput() ManagedAccountMapOutput

func (ManagedAccountMapOutput) ToManagedAccountMapOutputWithContext

func (o ManagedAccountMapOutput) ToManagedAccountMapOutputWithContext(ctx context.Context) ManagedAccountMapOutput

type ManagedAccountOutput

type ManagedAccountOutput struct{ *pulumi.OutputState }

func (ManagedAccountOutput) AdminName added in v0.9.0

Identifier, as well as login name, for the initial user in the managed account. This user serves as the account administrator for the account.

func (ManagedAccountOutput) AdminPassword added in v0.9.0

func (o ManagedAccountOutput) AdminPassword() pulumi.StringOutput

Password for the initial user in the managed account.

func (ManagedAccountOutput) Cloud added in v0.9.0

Cloud in which the managed account is located.

func (ManagedAccountOutput) Comment added in v0.9.0

Specifies a comment for the managed account.

func (ManagedAccountOutput) CreatedOn added in v0.9.0

Date and time when the managed account was created.

func (ManagedAccountOutput) ElementType

func (ManagedAccountOutput) ElementType() reflect.Type

func (ManagedAccountOutput) Locator added in v0.9.0

Display name of the managed account.

func (ManagedAccountOutput) Name added in v0.9.0

Identifier for the managed account; must be unique for your account.

func (ManagedAccountOutput) Region added in v0.9.0

Snowflake Region in which the managed account is located.

func (ManagedAccountOutput) ToManagedAccountOutput

func (o ManagedAccountOutput) ToManagedAccountOutput() ManagedAccountOutput

func (ManagedAccountOutput) ToManagedAccountOutputWithContext

func (o ManagedAccountOutput) ToManagedAccountOutputWithContext(ctx context.Context) ManagedAccountOutput

func (ManagedAccountOutput) Type added in v0.9.0

Specifies the type of managed account.

func (ManagedAccountOutput) Url added in v0.9.0

URL for accessing the managed account, particularly through the web interface.

type ManagedAccountState

type ManagedAccountState struct {
	// Identifier, as well as login name, for the initial user in the managed account. This user serves as the account administrator for the account.
	AdminName pulumi.StringPtrInput
	// Password for the initial user in the managed account.
	AdminPassword pulumi.StringPtrInput
	// Cloud in which the managed account is located.
	Cloud pulumi.StringPtrInput
	// Specifies a comment for the managed account.
	Comment pulumi.StringPtrInput
	// Date and time when the managed account was created.
	CreatedOn pulumi.StringPtrInput
	// Display name of the managed account.
	Locator pulumi.StringPtrInput
	// Identifier for the managed account; must be unique for your account.
	Name pulumi.StringPtrInput
	// Snowflake Region in which the managed account is located.
	Region pulumi.StringPtrInput
	// Specifies the type of managed account.
	Type pulumi.StringPtrInput
	// URL for accessing the managed account, particularly through the web interface.
	Url pulumi.StringPtrInput
}

func (ManagedAccountState) ElementType

func (ManagedAccountState) ElementType() reflect.Type

type MaskingPolicy

type MaskingPolicy struct {
	pulumi.CustomResourceState

	// Specifies a comment for the masking policy.
	Comment pulumi.StringPtrOutput `pulumi:"comment"`
	// The database in which to create the masking policy.
	Database pulumi.StringOutput `pulumi:"database"`
	// Specifies whether the row access policy or conditional masking policy can reference a column that is already protected by a masking policy.
	ExemptOtherPolicies pulumi.BoolPtrOutput `pulumi:"exemptOtherPolicies"`
	// Prevent overwriting a previous masking policy with the same name.
	IfNotExists pulumi.BoolPtrOutput `pulumi:"ifNotExists"`
	// Specifies the SQL expression that transforms the data.
	MaskingExpression pulumi.StringOutput `pulumi:"maskingExpression"`
	// Specifies the identifier for the masking policy; must be unique for the database and schema in which the masking policy is created.
	Name pulumi.StringOutput `pulumi:"name"`
	// Whether to override a previous masking policy with the same name.
	OrReplace pulumi.BoolPtrOutput `pulumi:"orReplace"`
	// Specifies the qualified identifier for the masking policy.
	QualifiedName pulumi.StringOutput `pulumi:"qualifiedName"`
	// Specifies the data type to return.
	ReturnDataType pulumi.StringOutput `pulumi:"returnDataType"`
	// The schema in which to create the masking policy.
	Schema pulumi.StringOutput `pulumi:"schema"`
	// The signature for the masking policy; specifies the input columns and data types to evaluate at query runtime.
	Signature MaskingPolicySignatureOutput `pulumi:"signature"`
}

## Example Usage

```go 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.NewMaskingPolicy(ctx, "test", &snowflake.MaskingPolicyArgs{
			Database: pulumi.String("EXAMPLE_DB"),
			MaskingExpression: pulumi.String(`  case
    when current_role() in ('ROLE_A') then
      val
    when is_role_in_session( 'ROLE_B' ) then
      'ABC123'
    else
      '******'
  end

`),

			ReturnDataType: pulumi.String("VARCHAR"),
			Schema:         pulumi.String("EXAMPLE_SCHEMA"),
			Signature: &snowflake.MaskingPolicySignatureArgs{
				Columns: snowflake.MaskingPolicySignatureColumnArray{
					&snowflake.MaskingPolicySignatureColumnArgs{
						Name: pulumi.String("val"),
						Type: pulumi.String("VARCHAR"),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

format is database name | schema name | policy name

```sh

$ pulumi import snowflake:index/maskingPolicy:MaskingPolicy example 'dbName|schemaName|policyName'

```

func GetMaskingPolicy

func GetMaskingPolicy(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *MaskingPolicyState, opts ...pulumi.ResourceOption) (*MaskingPolicy, error)

GetMaskingPolicy gets an existing MaskingPolicy resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewMaskingPolicy

func NewMaskingPolicy(ctx *pulumi.Context,
	name string, args *MaskingPolicyArgs, opts ...pulumi.ResourceOption) (*MaskingPolicy, error)

NewMaskingPolicy registers a new resource with the given unique name, arguments, and options.

func (*MaskingPolicy) ElementType

func (*MaskingPolicy) ElementType() reflect.Type

func (*MaskingPolicy) ToMaskingPolicyOutput

func (i *MaskingPolicy) ToMaskingPolicyOutput() MaskingPolicyOutput

func (*MaskingPolicy) ToMaskingPolicyOutputWithContext

func (i *MaskingPolicy) ToMaskingPolicyOutputWithContext(ctx context.Context) MaskingPolicyOutput

type MaskingPolicyArgs

type MaskingPolicyArgs struct {
	// Specifies a comment for the masking policy.
	Comment pulumi.StringPtrInput
	// The database in which to create the masking policy.
	Database pulumi.StringInput
	// Specifies whether the row access policy or conditional masking policy can reference a column that is already protected by a masking policy.
	ExemptOtherPolicies pulumi.BoolPtrInput
	// Prevent overwriting a previous masking policy with the same name.
	IfNotExists pulumi.BoolPtrInput
	// Specifies the SQL expression that transforms the data.
	MaskingExpression pulumi.StringInput
	// Specifies the identifier for the masking policy; must be unique for the database and schema in which the masking policy is created.
	Name pulumi.StringPtrInput
	// Whether to override a previous masking policy with the same name.
	OrReplace pulumi.BoolPtrInput
	// Specifies the data type to return.
	ReturnDataType pulumi.StringInput
	// The schema in which to create the masking policy.
	Schema pulumi.StringInput
	// The signature for the masking policy; specifies the input columns and data types to evaluate at query runtime.
	Signature MaskingPolicySignatureInput
}

The set of arguments for constructing a MaskingPolicy resource.

func (MaskingPolicyArgs) ElementType

func (MaskingPolicyArgs) ElementType() reflect.Type

type MaskingPolicyArray

type MaskingPolicyArray []MaskingPolicyInput

func (MaskingPolicyArray) ElementType

func (MaskingPolicyArray) ElementType() reflect.Type

func (MaskingPolicyArray) ToMaskingPolicyArrayOutput

func (i MaskingPolicyArray) ToMaskingPolicyArrayOutput() MaskingPolicyArrayOutput

func (MaskingPolicyArray) ToMaskingPolicyArrayOutputWithContext

func (i MaskingPolicyArray) ToMaskingPolicyArrayOutputWithContext(ctx context.Context) MaskingPolicyArrayOutput

type MaskingPolicyArrayInput

type MaskingPolicyArrayInput interface {
	pulumi.Input

	ToMaskingPolicyArrayOutput() MaskingPolicyArrayOutput
	ToMaskingPolicyArrayOutputWithContext(context.Context) MaskingPolicyArrayOutput
}

MaskingPolicyArrayInput is an input type that accepts MaskingPolicyArray and MaskingPolicyArrayOutput values. You can construct a concrete instance of `MaskingPolicyArrayInput` via:

MaskingPolicyArray{ MaskingPolicyArgs{...} }

type MaskingPolicyArrayOutput

type MaskingPolicyArrayOutput struct{ *pulumi.OutputState }

func (MaskingPolicyArrayOutput) ElementType

func (MaskingPolicyArrayOutput) ElementType() reflect.Type

func (MaskingPolicyArrayOutput) Index

func (MaskingPolicyArrayOutput) ToMaskingPolicyArrayOutput

func (o MaskingPolicyArrayOutput) ToMaskingPolicyArrayOutput() MaskingPolicyArrayOutput

func (MaskingPolicyArrayOutput) ToMaskingPolicyArrayOutputWithContext

func (o MaskingPolicyArrayOutput) ToMaskingPolicyArrayOutputWithContext(ctx context.Context) MaskingPolicyArrayOutput

type MaskingPolicyGrant

type MaskingPolicyGrant struct {
	pulumi.CustomResourceState

	// The name of the database containing the masking policy on which to grant privileges.
	DatabaseName pulumi.StringOutput `pulumi:"databaseName"`
	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrOutput `pulumi:"enableMultipleGrants"`
	// The name of the masking policy on which to grant privileges immediately.
	MaskingPolicyName pulumi.StringOutput `pulumi:"maskingPolicyName"`
	// The privilege to grant on the masking policy. To grant all privileges, use the value `ALL PRIVILEGES`
	Privilege pulumi.StringPtrOutput `pulumi:"privilege"`
	// The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
	RevertOwnershipToRoleName pulumi.StringPtrOutput `pulumi:"revertOwnershipToRoleName"`
	// Grants privilege to these roles.
	Roles pulumi.StringArrayOutput `pulumi:"roles"`
	// The name of the schema containing the masking policy on which to grant privileges.
	SchemaName pulumi.StringOutput `pulumi:"schemaName"`
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrOutput `pulumi:"withGrantOption"`
}

## Example Usage

```go 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.NewMaskingPolicyGrant(ctx, "example", &snowflake.MaskingPolicyGrantArgs{
			DatabaseName:         pulumi.String("EXAMPLE_DB_NAME"),
			EnableMultipleGrants: pulumi.Bool(true),
			MaskingPolicyName:    pulumi.String("EXAMPLE_MASKING_POLICY_NAME"),
			Privilege:            pulumi.String("APPLY"),
			Roles: pulumi.StringArray{
				pulumi.String("ROLE1_NAME"),
				pulumi.String("ROLE2_NAME"),
			},
			SchemaName:      pulumi.String("EXAMPLE_SCHEMA_NAME"),
			WithGrantOption: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

format is database_name|schema_name|masking_policy_name|privilege|with_grant_option|roles

```sh

$ pulumi import snowflake:index/maskingPolicyGrant:MaskingPolicyGrant example "dbName|schemaName|maskingPolicyName|USAGE|false|role1,role2"

```

func GetMaskingPolicyGrant

func GetMaskingPolicyGrant(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *MaskingPolicyGrantState, opts ...pulumi.ResourceOption) (*MaskingPolicyGrant, error)

GetMaskingPolicyGrant gets an existing MaskingPolicyGrant resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewMaskingPolicyGrant

func NewMaskingPolicyGrant(ctx *pulumi.Context,
	name string, args *MaskingPolicyGrantArgs, opts ...pulumi.ResourceOption) (*MaskingPolicyGrant, error)

NewMaskingPolicyGrant registers a new resource with the given unique name, arguments, and options.

func (*MaskingPolicyGrant) ElementType

func (*MaskingPolicyGrant) ElementType() reflect.Type

func (*MaskingPolicyGrant) ToMaskingPolicyGrantOutput

func (i *MaskingPolicyGrant) ToMaskingPolicyGrantOutput() MaskingPolicyGrantOutput

func (*MaskingPolicyGrant) ToMaskingPolicyGrantOutputWithContext

func (i *MaskingPolicyGrant) ToMaskingPolicyGrantOutputWithContext(ctx context.Context) MaskingPolicyGrantOutput

type MaskingPolicyGrantArgs

type MaskingPolicyGrantArgs struct {
	// The name of the database containing the masking policy on which to grant privileges.
	DatabaseName pulumi.StringInput
	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrInput
	// The name of the masking policy on which to grant privileges immediately.
	MaskingPolicyName pulumi.StringInput
	// The privilege to grant on the masking policy. To grant all privileges, use the value `ALL PRIVILEGES`
	Privilege pulumi.StringPtrInput
	// The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
	RevertOwnershipToRoleName pulumi.StringPtrInput
	// Grants privilege to these roles.
	Roles pulumi.StringArrayInput
	// The name of the schema containing the masking policy on which to grant privileges.
	SchemaName pulumi.StringInput
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrInput
}

The set of arguments for constructing a MaskingPolicyGrant resource.

func (MaskingPolicyGrantArgs) ElementType

func (MaskingPolicyGrantArgs) ElementType() reflect.Type

type MaskingPolicyGrantArray

type MaskingPolicyGrantArray []MaskingPolicyGrantInput

func (MaskingPolicyGrantArray) ElementType

func (MaskingPolicyGrantArray) ElementType() reflect.Type

func (MaskingPolicyGrantArray) ToMaskingPolicyGrantArrayOutput

func (i MaskingPolicyGrantArray) ToMaskingPolicyGrantArrayOutput() MaskingPolicyGrantArrayOutput

func (MaskingPolicyGrantArray) ToMaskingPolicyGrantArrayOutputWithContext

func (i MaskingPolicyGrantArray) ToMaskingPolicyGrantArrayOutputWithContext(ctx context.Context) MaskingPolicyGrantArrayOutput

type MaskingPolicyGrantArrayInput

type MaskingPolicyGrantArrayInput interface {
	pulumi.Input

	ToMaskingPolicyGrantArrayOutput() MaskingPolicyGrantArrayOutput
	ToMaskingPolicyGrantArrayOutputWithContext(context.Context) MaskingPolicyGrantArrayOutput
}

MaskingPolicyGrantArrayInput is an input type that accepts MaskingPolicyGrantArray and MaskingPolicyGrantArrayOutput values. You can construct a concrete instance of `MaskingPolicyGrantArrayInput` via:

MaskingPolicyGrantArray{ MaskingPolicyGrantArgs{...} }

type MaskingPolicyGrantArrayOutput

type MaskingPolicyGrantArrayOutput struct{ *pulumi.OutputState }

func (MaskingPolicyGrantArrayOutput) ElementType

func (MaskingPolicyGrantArrayOutput) Index

func (MaskingPolicyGrantArrayOutput) ToMaskingPolicyGrantArrayOutput

func (o MaskingPolicyGrantArrayOutput) ToMaskingPolicyGrantArrayOutput() MaskingPolicyGrantArrayOutput

func (MaskingPolicyGrantArrayOutput) ToMaskingPolicyGrantArrayOutputWithContext

func (o MaskingPolicyGrantArrayOutput) ToMaskingPolicyGrantArrayOutputWithContext(ctx context.Context) MaskingPolicyGrantArrayOutput

type MaskingPolicyGrantInput

type MaskingPolicyGrantInput interface {
	pulumi.Input

	ToMaskingPolicyGrantOutput() MaskingPolicyGrantOutput
	ToMaskingPolicyGrantOutputWithContext(ctx context.Context) MaskingPolicyGrantOutput
}

type MaskingPolicyGrantMap

type MaskingPolicyGrantMap map[string]MaskingPolicyGrantInput

func (MaskingPolicyGrantMap) ElementType

func (MaskingPolicyGrantMap) ElementType() reflect.Type

func (MaskingPolicyGrantMap) ToMaskingPolicyGrantMapOutput

func (i MaskingPolicyGrantMap) ToMaskingPolicyGrantMapOutput() MaskingPolicyGrantMapOutput

func (MaskingPolicyGrantMap) ToMaskingPolicyGrantMapOutputWithContext

func (i MaskingPolicyGrantMap) ToMaskingPolicyGrantMapOutputWithContext(ctx context.Context) MaskingPolicyGrantMapOutput

type MaskingPolicyGrantMapInput

type MaskingPolicyGrantMapInput interface {
	pulumi.Input

	ToMaskingPolicyGrantMapOutput() MaskingPolicyGrantMapOutput
	ToMaskingPolicyGrantMapOutputWithContext(context.Context) MaskingPolicyGrantMapOutput
}

MaskingPolicyGrantMapInput is an input type that accepts MaskingPolicyGrantMap and MaskingPolicyGrantMapOutput values. You can construct a concrete instance of `MaskingPolicyGrantMapInput` via:

MaskingPolicyGrantMap{ "key": MaskingPolicyGrantArgs{...} }

type MaskingPolicyGrantMapOutput

type MaskingPolicyGrantMapOutput struct{ *pulumi.OutputState }

func (MaskingPolicyGrantMapOutput) ElementType

func (MaskingPolicyGrantMapOutput) MapIndex

func (MaskingPolicyGrantMapOutput) ToMaskingPolicyGrantMapOutput

func (o MaskingPolicyGrantMapOutput) ToMaskingPolicyGrantMapOutput() MaskingPolicyGrantMapOutput

func (MaskingPolicyGrantMapOutput) ToMaskingPolicyGrantMapOutputWithContext

func (o MaskingPolicyGrantMapOutput) ToMaskingPolicyGrantMapOutputWithContext(ctx context.Context) MaskingPolicyGrantMapOutput

type MaskingPolicyGrantOutput

type MaskingPolicyGrantOutput struct{ *pulumi.OutputState }

func (MaskingPolicyGrantOutput) DatabaseName added in v0.9.0

func (o MaskingPolicyGrantOutput) DatabaseName() pulumi.StringOutput

The name of the database containing the masking policy on which to grant privileges.

func (MaskingPolicyGrantOutput) ElementType

func (MaskingPolicyGrantOutput) ElementType() reflect.Type

func (MaskingPolicyGrantOutput) EnableMultipleGrants added in v0.9.0

func (o MaskingPolicyGrantOutput) EnableMultipleGrants() pulumi.BoolPtrOutput

When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke grants applied to roles and objects outside Terraform.

func (MaskingPolicyGrantOutput) MaskingPolicyName added in v0.9.0

func (o MaskingPolicyGrantOutput) MaskingPolicyName() pulumi.StringOutput

The name of the masking policy on which to grant privileges immediately.

func (MaskingPolicyGrantOutput) Privilege added in v0.9.0

The privilege to grant on the masking policy. To grant all privileges, use the value `ALL PRIVILEGES`

func (MaskingPolicyGrantOutput) RevertOwnershipToRoleName added in v0.26.0

func (o MaskingPolicyGrantOutput) RevertOwnershipToRoleName() pulumi.StringPtrOutput

The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`

func (MaskingPolicyGrantOutput) Roles added in v0.9.0

Grants privilege to these roles.

func (MaskingPolicyGrantOutput) SchemaName added in v0.9.0

The name of the schema containing the masking policy on which to grant privileges.

func (MaskingPolicyGrantOutput) ToMaskingPolicyGrantOutput

func (o MaskingPolicyGrantOutput) ToMaskingPolicyGrantOutput() MaskingPolicyGrantOutput

func (MaskingPolicyGrantOutput) ToMaskingPolicyGrantOutputWithContext

func (o MaskingPolicyGrantOutput) ToMaskingPolicyGrantOutputWithContext(ctx context.Context) MaskingPolicyGrantOutput

func (MaskingPolicyGrantOutput) WithGrantOption added in v0.9.0

func (o MaskingPolicyGrantOutput) WithGrantOption() pulumi.BoolPtrOutput

When this is set to true, allows the recipient role to grant the privileges to other roles.

type MaskingPolicyGrantState

type MaskingPolicyGrantState struct {
	// The name of the database containing the masking policy on which to grant privileges.
	DatabaseName pulumi.StringPtrInput
	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrInput
	// The name of the masking policy on which to grant privileges immediately.
	MaskingPolicyName pulumi.StringPtrInput
	// The privilege to grant on the masking policy. To grant all privileges, use the value `ALL PRIVILEGES`
	Privilege pulumi.StringPtrInput
	// The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
	RevertOwnershipToRoleName pulumi.StringPtrInput
	// Grants privilege to these roles.
	Roles pulumi.StringArrayInput
	// The name of the schema containing the masking policy on which to grant privileges.
	SchemaName pulumi.StringPtrInput
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrInput
}

func (MaskingPolicyGrantState) ElementType

func (MaskingPolicyGrantState) ElementType() reflect.Type

type MaskingPolicyInput

type MaskingPolicyInput interface {
	pulumi.Input

	ToMaskingPolicyOutput() MaskingPolicyOutput
	ToMaskingPolicyOutputWithContext(ctx context.Context) MaskingPolicyOutput
}

type MaskingPolicyMap

type MaskingPolicyMap map[string]MaskingPolicyInput

func (MaskingPolicyMap) ElementType

func (MaskingPolicyMap) ElementType() reflect.Type

func (MaskingPolicyMap) ToMaskingPolicyMapOutput

func (i MaskingPolicyMap) ToMaskingPolicyMapOutput() MaskingPolicyMapOutput

func (MaskingPolicyMap) ToMaskingPolicyMapOutputWithContext

func (i MaskingPolicyMap) ToMaskingPolicyMapOutputWithContext(ctx context.Context) MaskingPolicyMapOutput

type MaskingPolicyMapInput

type MaskingPolicyMapInput interface {
	pulumi.Input

	ToMaskingPolicyMapOutput() MaskingPolicyMapOutput
	ToMaskingPolicyMapOutputWithContext(context.Context) MaskingPolicyMapOutput
}

MaskingPolicyMapInput is an input type that accepts MaskingPolicyMap and MaskingPolicyMapOutput values. You can construct a concrete instance of `MaskingPolicyMapInput` via:

MaskingPolicyMap{ "key": MaskingPolicyArgs{...} }

type MaskingPolicyMapOutput

type MaskingPolicyMapOutput struct{ *pulumi.OutputState }

func (MaskingPolicyMapOutput) ElementType

func (MaskingPolicyMapOutput) ElementType() reflect.Type

func (MaskingPolicyMapOutput) MapIndex

func (MaskingPolicyMapOutput) ToMaskingPolicyMapOutput

func (o MaskingPolicyMapOutput) ToMaskingPolicyMapOutput() MaskingPolicyMapOutput

func (MaskingPolicyMapOutput) ToMaskingPolicyMapOutputWithContext

func (o MaskingPolicyMapOutput) ToMaskingPolicyMapOutputWithContext(ctx context.Context) MaskingPolicyMapOutput

type MaskingPolicyOutput

type MaskingPolicyOutput struct{ *pulumi.OutputState }

func (MaskingPolicyOutput) Comment added in v0.9.0

Specifies a comment for the masking policy.

func (MaskingPolicyOutput) Database added in v0.9.0

The database in which to create the masking policy.

func (MaskingPolicyOutput) ElementType

func (MaskingPolicyOutput) ElementType() reflect.Type

func (MaskingPolicyOutput) ExemptOtherPolicies added in v0.25.0

func (o MaskingPolicyOutput) ExemptOtherPolicies() pulumi.BoolPtrOutput

Specifies whether the row access policy or conditional masking policy can reference a column that is already protected by a masking policy.

func (MaskingPolicyOutput) IfNotExists added in v0.25.0

func (o MaskingPolicyOutput) IfNotExists() pulumi.BoolPtrOutput

Prevent overwriting a previous masking policy with the same name.

func (MaskingPolicyOutput) MaskingExpression added in v0.9.0

func (o MaskingPolicyOutput) MaskingExpression() pulumi.StringOutput

Specifies the SQL expression that transforms the data.

func (MaskingPolicyOutput) Name added in v0.9.0

Specifies the identifier for the masking policy; must be unique for the database and schema in which the masking policy is created.

func (MaskingPolicyOutput) OrReplace added in v0.25.0

Whether to override a previous masking policy with the same name.

func (MaskingPolicyOutput) QualifiedName added in v0.15.0

func (o MaskingPolicyOutput) QualifiedName() pulumi.StringOutput

Specifies the qualified identifier for the masking policy.

func (MaskingPolicyOutput) ReturnDataType added in v0.9.0

func (o MaskingPolicyOutput) ReturnDataType() pulumi.StringOutput

Specifies the data type to return.

func (MaskingPolicyOutput) Schema added in v0.9.0

The schema in which to create the masking policy.

func (MaskingPolicyOutput) Signature added in v0.25.0

The signature for the masking policy; specifies the input columns and data types to evaluate at query runtime.

func (MaskingPolicyOutput) ToMaskingPolicyOutput

func (o MaskingPolicyOutput) ToMaskingPolicyOutput() MaskingPolicyOutput

func (MaskingPolicyOutput) ToMaskingPolicyOutputWithContext

func (o MaskingPolicyOutput) ToMaskingPolicyOutputWithContext(ctx context.Context) MaskingPolicyOutput

type MaskingPolicySignature added in v0.25.0

type MaskingPolicySignature struct {
	Columns []MaskingPolicySignatureColumn `pulumi:"columns"`
}

type MaskingPolicySignatureArgs added in v0.25.0

type MaskingPolicySignatureArgs struct {
	Columns MaskingPolicySignatureColumnArrayInput `pulumi:"columns"`
}

func (MaskingPolicySignatureArgs) ElementType added in v0.25.0

func (MaskingPolicySignatureArgs) ElementType() reflect.Type

func (MaskingPolicySignatureArgs) ToMaskingPolicySignatureOutput added in v0.25.0

func (i MaskingPolicySignatureArgs) ToMaskingPolicySignatureOutput() MaskingPolicySignatureOutput

func (MaskingPolicySignatureArgs) ToMaskingPolicySignatureOutputWithContext added in v0.25.0

func (i MaskingPolicySignatureArgs) ToMaskingPolicySignatureOutputWithContext(ctx context.Context) MaskingPolicySignatureOutput

func (MaskingPolicySignatureArgs) ToMaskingPolicySignaturePtrOutput added in v0.25.0

func (i MaskingPolicySignatureArgs) ToMaskingPolicySignaturePtrOutput() MaskingPolicySignaturePtrOutput

func (MaskingPolicySignatureArgs) ToMaskingPolicySignaturePtrOutputWithContext added in v0.25.0

func (i MaskingPolicySignatureArgs) ToMaskingPolicySignaturePtrOutputWithContext(ctx context.Context) MaskingPolicySignaturePtrOutput

type MaskingPolicySignatureColumn added in v0.25.0

type MaskingPolicySignatureColumn struct {
	// Specifies the identifier for the masking policy; must be unique for the database and schema in which the masking policy is created.
	Name string `pulumi:"name"`
	Type string `pulumi:"type"`
}

type MaskingPolicySignatureColumnArgs added in v0.25.0

type MaskingPolicySignatureColumnArgs struct {
	// Specifies the identifier for the masking policy; must be unique for the database and schema in which the masking policy is created.
	Name pulumi.StringInput `pulumi:"name"`
	Type pulumi.StringInput `pulumi:"type"`
}

func (MaskingPolicySignatureColumnArgs) ElementType added in v0.25.0

func (MaskingPolicySignatureColumnArgs) ToMaskingPolicySignatureColumnOutput added in v0.25.0

func (i MaskingPolicySignatureColumnArgs) ToMaskingPolicySignatureColumnOutput() MaskingPolicySignatureColumnOutput

func (MaskingPolicySignatureColumnArgs) ToMaskingPolicySignatureColumnOutputWithContext added in v0.25.0

func (i MaskingPolicySignatureColumnArgs) ToMaskingPolicySignatureColumnOutputWithContext(ctx context.Context) MaskingPolicySignatureColumnOutput

type MaskingPolicySignatureColumnArray added in v0.25.0

type MaskingPolicySignatureColumnArray []MaskingPolicySignatureColumnInput

func (MaskingPolicySignatureColumnArray) ElementType added in v0.25.0

func (MaskingPolicySignatureColumnArray) ToMaskingPolicySignatureColumnArrayOutput added in v0.25.0

func (i MaskingPolicySignatureColumnArray) ToMaskingPolicySignatureColumnArrayOutput() MaskingPolicySignatureColumnArrayOutput

func (MaskingPolicySignatureColumnArray) ToMaskingPolicySignatureColumnArrayOutputWithContext added in v0.25.0

func (i MaskingPolicySignatureColumnArray) ToMaskingPolicySignatureColumnArrayOutputWithContext(ctx context.Context) MaskingPolicySignatureColumnArrayOutput

type MaskingPolicySignatureColumnArrayInput added in v0.25.0

type MaskingPolicySignatureColumnArrayInput interface {
	pulumi.Input

	ToMaskingPolicySignatureColumnArrayOutput() MaskingPolicySignatureColumnArrayOutput
	ToMaskingPolicySignatureColumnArrayOutputWithContext(context.Context) MaskingPolicySignatureColumnArrayOutput
}

MaskingPolicySignatureColumnArrayInput is an input type that accepts MaskingPolicySignatureColumnArray and MaskingPolicySignatureColumnArrayOutput values. You can construct a concrete instance of `MaskingPolicySignatureColumnArrayInput` via:

MaskingPolicySignatureColumnArray{ MaskingPolicySignatureColumnArgs{...} }

type MaskingPolicySignatureColumnArrayOutput added in v0.25.0

type MaskingPolicySignatureColumnArrayOutput struct{ *pulumi.OutputState }

func (MaskingPolicySignatureColumnArrayOutput) ElementType added in v0.25.0

func (MaskingPolicySignatureColumnArrayOutput) Index added in v0.25.0

func (MaskingPolicySignatureColumnArrayOutput) ToMaskingPolicySignatureColumnArrayOutput added in v0.25.0

func (o MaskingPolicySignatureColumnArrayOutput) ToMaskingPolicySignatureColumnArrayOutput() MaskingPolicySignatureColumnArrayOutput

func (MaskingPolicySignatureColumnArrayOutput) ToMaskingPolicySignatureColumnArrayOutputWithContext added in v0.25.0

func (o MaskingPolicySignatureColumnArrayOutput) ToMaskingPolicySignatureColumnArrayOutputWithContext(ctx context.Context) MaskingPolicySignatureColumnArrayOutput

type MaskingPolicySignatureColumnInput added in v0.25.0

type MaskingPolicySignatureColumnInput interface {
	pulumi.Input

	ToMaskingPolicySignatureColumnOutput() MaskingPolicySignatureColumnOutput
	ToMaskingPolicySignatureColumnOutputWithContext(context.Context) MaskingPolicySignatureColumnOutput
}

MaskingPolicySignatureColumnInput is an input type that accepts MaskingPolicySignatureColumnArgs and MaskingPolicySignatureColumnOutput values. You can construct a concrete instance of `MaskingPolicySignatureColumnInput` via:

MaskingPolicySignatureColumnArgs{...}

type MaskingPolicySignatureColumnOutput added in v0.25.0

type MaskingPolicySignatureColumnOutput struct{ *pulumi.OutputState }

func (MaskingPolicySignatureColumnOutput) ElementType added in v0.25.0

func (MaskingPolicySignatureColumnOutput) Name added in v0.25.0

Specifies the identifier for the masking policy; must be unique for the database and schema in which the masking policy is created.

func (MaskingPolicySignatureColumnOutput) ToMaskingPolicySignatureColumnOutput added in v0.25.0

func (o MaskingPolicySignatureColumnOutput) ToMaskingPolicySignatureColumnOutput() MaskingPolicySignatureColumnOutput

func (MaskingPolicySignatureColumnOutput) ToMaskingPolicySignatureColumnOutputWithContext added in v0.25.0

func (o MaskingPolicySignatureColumnOutput) ToMaskingPolicySignatureColumnOutputWithContext(ctx context.Context) MaskingPolicySignatureColumnOutput

func (MaskingPolicySignatureColumnOutput) Type added in v0.25.0

type MaskingPolicySignatureInput added in v0.25.0

type MaskingPolicySignatureInput interface {
	pulumi.Input

	ToMaskingPolicySignatureOutput() MaskingPolicySignatureOutput
	ToMaskingPolicySignatureOutputWithContext(context.Context) MaskingPolicySignatureOutput
}

MaskingPolicySignatureInput is an input type that accepts MaskingPolicySignatureArgs and MaskingPolicySignatureOutput values. You can construct a concrete instance of `MaskingPolicySignatureInput` via:

MaskingPolicySignatureArgs{...}

type MaskingPolicySignatureOutput added in v0.25.0

type MaskingPolicySignatureOutput struct{ *pulumi.OutputState }

func (MaskingPolicySignatureOutput) Columns added in v0.25.0

func (MaskingPolicySignatureOutput) ElementType added in v0.25.0

func (MaskingPolicySignatureOutput) ToMaskingPolicySignatureOutput added in v0.25.0

func (o MaskingPolicySignatureOutput) ToMaskingPolicySignatureOutput() MaskingPolicySignatureOutput

func (MaskingPolicySignatureOutput) ToMaskingPolicySignatureOutputWithContext added in v0.25.0

func (o MaskingPolicySignatureOutput) ToMaskingPolicySignatureOutputWithContext(ctx context.Context) MaskingPolicySignatureOutput

func (MaskingPolicySignatureOutput) ToMaskingPolicySignaturePtrOutput added in v0.25.0

func (o MaskingPolicySignatureOutput) ToMaskingPolicySignaturePtrOutput() MaskingPolicySignaturePtrOutput

func (MaskingPolicySignatureOutput) ToMaskingPolicySignaturePtrOutputWithContext added in v0.25.0

func (o MaskingPolicySignatureOutput) ToMaskingPolicySignaturePtrOutputWithContext(ctx context.Context) MaskingPolicySignaturePtrOutput

type MaskingPolicySignaturePtrInput added in v0.25.0

type MaskingPolicySignaturePtrInput interface {
	pulumi.Input

	ToMaskingPolicySignaturePtrOutput() MaskingPolicySignaturePtrOutput
	ToMaskingPolicySignaturePtrOutputWithContext(context.Context) MaskingPolicySignaturePtrOutput
}

MaskingPolicySignaturePtrInput is an input type that accepts MaskingPolicySignatureArgs, MaskingPolicySignaturePtr and MaskingPolicySignaturePtrOutput values. You can construct a concrete instance of `MaskingPolicySignaturePtrInput` via:

        MaskingPolicySignatureArgs{...}

or:

        nil

func MaskingPolicySignaturePtr added in v0.25.0

func MaskingPolicySignaturePtr(v *MaskingPolicySignatureArgs) MaskingPolicySignaturePtrInput

type MaskingPolicySignaturePtrOutput added in v0.25.0

type MaskingPolicySignaturePtrOutput struct{ *pulumi.OutputState }

func (MaskingPolicySignaturePtrOutput) Columns added in v0.25.0

func (MaskingPolicySignaturePtrOutput) Elem added in v0.25.0

func (MaskingPolicySignaturePtrOutput) ElementType added in v0.25.0

func (MaskingPolicySignaturePtrOutput) ToMaskingPolicySignaturePtrOutput added in v0.25.0

func (o MaskingPolicySignaturePtrOutput) ToMaskingPolicySignaturePtrOutput() MaskingPolicySignaturePtrOutput

func (MaskingPolicySignaturePtrOutput) ToMaskingPolicySignaturePtrOutputWithContext added in v0.25.0

func (o MaskingPolicySignaturePtrOutput) ToMaskingPolicySignaturePtrOutputWithContext(ctx context.Context) MaskingPolicySignaturePtrOutput

type MaskingPolicyState

type MaskingPolicyState struct {
	// Specifies a comment for the masking policy.
	Comment pulumi.StringPtrInput
	// The database in which to create the masking policy.
	Database pulumi.StringPtrInput
	// Specifies whether the row access policy or conditional masking policy can reference a column that is already protected by a masking policy.
	ExemptOtherPolicies pulumi.BoolPtrInput
	// Prevent overwriting a previous masking policy with the same name.
	IfNotExists pulumi.BoolPtrInput
	// Specifies the SQL expression that transforms the data.
	MaskingExpression pulumi.StringPtrInput
	// Specifies the identifier for the masking policy; must be unique for the database and schema in which the masking policy is created.
	Name pulumi.StringPtrInput
	// Whether to override a previous masking policy with the same name.
	OrReplace pulumi.BoolPtrInput
	// Specifies the qualified identifier for the masking policy.
	QualifiedName pulumi.StringPtrInput
	// Specifies the data type to return.
	ReturnDataType pulumi.StringPtrInput
	// The schema in which to create the masking policy.
	Schema pulumi.StringPtrInput
	// The signature for the masking policy; specifies the input columns and data types to evaluate at query runtime.
	Signature MaskingPolicySignaturePtrInput
}

func (MaskingPolicyState) ElementType

func (MaskingPolicyState) ElementType() reflect.Type

type MaterializedView

type MaterializedView struct {
	pulumi.CustomResourceState

	// Specifies a comment for the view.
	Comment pulumi.StringPtrOutput `pulumi:"comment"`
	// The database in which to create the view. Don't use the | character.
	Database pulumi.StringOutput `pulumi:"database"`
	// Specifies that the view is secure.
	IsSecure pulumi.BoolPtrOutput `pulumi:"isSecure"`
	// Specifies the identifier for the view; must be unique for the schema in which the view is created.
	Name pulumi.StringOutput `pulumi:"name"`
	// Overwrites the View if it exists.
	OrReplace pulumi.BoolPtrOutput `pulumi:"orReplace"`
	// The schema in which to create the view. Don't use the | character.
	Schema pulumi.StringOutput `pulumi:"schema"`
	// Specifies the query used to create the view.
	Statement pulumi.StringOutput `pulumi:"statement"`
	// Definitions of a tag to associate with the resource.
	//
	// Deprecated: Use the 'snowflake_tag_association' resource instead.
	Tags MaterializedViewTagArrayOutput `pulumi:"tags"`
	// The warehouse name.
	Warehouse pulumi.StringOutput `pulumi:"warehouse"`
}

## Example Usage

```go 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.NewMaterializedView(ctx, "view", &snowflake.MaterializedViewArgs{
			Database:  pulumi.String("db"),
			Schema:    pulumi.String("schema"),
			Warehouse: pulumi.String("warehouse"),
			Comment:   pulumi.String("comment"),
			Statement: pulumi.String("select * from foo;\n"),
			OrReplace: pulumi.Bool(false),
			IsSecure:  pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

format is database name | schema name | view name

```sh

$ pulumi import snowflake:index/materializedView:MaterializedView example 'dbName|schemaName|viewName'

```

func GetMaterializedView

func GetMaterializedView(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *MaterializedViewState, opts ...pulumi.ResourceOption) (*MaterializedView, error)

GetMaterializedView gets an existing MaterializedView resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewMaterializedView

func NewMaterializedView(ctx *pulumi.Context,
	name string, args *MaterializedViewArgs, opts ...pulumi.ResourceOption) (*MaterializedView, error)

NewMaterializedView registers a new resource with the given unique name, arguments, and options.

func (*MaterializedView) ElementType

func (*MaterializedView) ElementType() reflect.Type

func (*MaterializedView) ToMaterializedViewOutput

func (i *MaterializedView) ToMaterializedViewOutput() MaterializedViewOutput

func (*MaterializedView) ToMaterializedViewOutputWithContext

func (i *MaterializedView) ToMaterializedViewOutputWithContext(ctx context.Context) MaterializedViewOutput

type MaterializedViewArgs

type MaterializedViewArgs struct {
	// Specifies a comment for the view.
	Comment pulumi.StringPtrInput
	// The database in which to create the view. Don't use the | character.
	Database pulumi.StringInput
	// Specifies that the view is secure.
	IsSecure pulumi.BoolPtrInput
	// Specifies the identifier for the view; must be unique for the schema in which the view is created.
	Name pulumi.StringPtrInput
	// Overwrites the View if it exists.
	OrReplace pulumi.BoolPtrInput
	// The schema in which to create the view. Don't use the | character.
	Schema pulumi.StringInput
	// Specifies the query used to create the view.
	Statement pulumi.StringInput
	// Definitions of a tag to associate with the resource.
	//
	// Deprecated: Use the 'snowflake_tag_association' resource instead.
	Tags MaterializedViewTagArrayInput
	// The warehouse name.
	Warehouse pulumi.StringInput
}

The set of arguments for constructing a MaterializedView resource.

func (MaterializedViewArgs) ElementType

func (MaterializedViewArgs) ElementType() reflect.Type

type MaterializedViewArray

type MaterializedViewArray []MaterializedViewInput

func (MaterializedViewArray) ElementType

func (MaterializedViewArray) ElementType() reflect.Type

func (MaterializedViewArray) ToMaterializedViewArrayOutput

func (i MaterializedViewArray) ToMaterializedViewArrayOutput() MaterializedViewArrayOutput

func (MaterializedViewArray) ToMaterializedViewArrayOutputWithContext

func (i MaterializedViewArray) ToMaterializedViewArrayOutputWithContext(ctx context.Context) MaterializedViewArrayOutput

type MaterializedViewArrayInput

type MaterializedViewArrayInput interface {
	pulumi.Input

	ToMaterializedViewArrayOutput() MaterializedViewArrayOutput
	ToMaterializedViewArrayOutputWithContext(context.Context) MaterializedViewArrayOutput
}

MaterializedViewArrayInput is an input type that accepts MaterializedViewArray and MaterializedViewArrayOutput values. You can construct a concrete instance of `MaterializedViewArrayInput` via:

MaterializedViewArray{ MaterializedViewArgs{...} }

type MaterializedViewArrayOutput

type MaterializedViewArrayOutput struct{ *pulumi.OutputState }

func (MaterializedViewArrayOutput) ElementType

func (MaterializedViewArrayOutput) Index

func (MaterializedViewArrayOutput) ToMaterializedViewArrayOutput

func (o MaterializedViewArrayOutput) ToMaterializedViewArrayOutput() MaterializedViewArrayOutput

func (MaterializedViewArrayOutput) ToMaterializedViewArrayOutputWithContext

func (o MaterializedViewArrayOutput) ToMaterializedViewArrayOutputWithContext(ctx context.Context) MaterializedViewArrayOutput

type MaterializedViewGrant

type MaterializedViewGrant struct {
	pulumi.CustomResourceState

	// The name of the database containing the current or future materialized views on which to grant privileges.
	DatabaseName pulumi.StringOutput `pulumi:"databaseName"`
	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrOutput `pulumi:"enableMultipleGrants"`
	// The name of the materialized view on which to grant privileges immediately (only valid if on*future and on*all are false).
	MaterializedViewName pulumi.StringPtrOutput `pulumi:"materializedViewName"`
	// When this is set to true and a schema*name is provided, apply this grant on all materialized views in the given schema. When this is true and no schema*name is provided apply this grant on all materialized views in the given database. The materialized*view*name and shares fields must be unset in order to use on*all. Cannot be used together with on*future.
	OnAll pulumi.BoolPtrOutput `pulumi:"onAll"`
	// When this is set to true and a schema*name is provided, apply this grant on all future materialized views in the given schema. When this is true and no schema*name is provided apply this grant on all future materialized views in the given database. The materialized*view*name and shares fields must be unset in order to use on*future. Cannot be used together with on*all.
	OnFuture pulumi.BoolPtrOutput `pulumi:"onFuture"`
	// The privilege to grant on the current or future materialized view. To grant all privileges, use the value `ALL PRIVILEGES`
	Privilege pulumi.StringPtrOutput `pulumi:"privilege"`
	// The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
	RevertOwnershipToRoleName pulumi.StringPtrOutput `pulumi:"revertOwnershipToRoleName"`
	// Grants privilege to these roles.
	Roles pulumi.StringArrayOutput `pulumi:"roles"`
	// The name of the schema containing the current or future materialized views on which to grant privileges.
	SchemaName pulumi.StringPtrOutput `pulumi:"schemaName"`
	// Grants privilege to these shares (only valid if on*future and on*all are false).
	Shares pulumi.StringArrayOutput `pulumi:"shares"`
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrOutput `pulumi:"withGrantOption"`
}

## Example Usage

```go 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.NewMaterializedViewGrant(ctx, "grant", &snowflake.MaterializedViewGrantArgs{
			DatabaseName:         pulumi.String("database"),
			MaterializedViewName: pulumi.String("materialized_view"),
			OnFuture:             pulumi.Bool(false),
			Privilege:            pulumi.String("SELECT"),
			Roles: pulumi.StringArray{
				pulumi.String("role1"),
				pulumi.String("role2"),
			},
			SchemaName: pulumi.String("schema"),
			Shares: pulumi.StringArray{
				pulumi.String("share1"),
				pulumi.String("share2"),
			},
			WithGrantOption: pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

format is database_name|schema_name|materialized_view_name|privilege|with_grant_option|on_future|on_all|roles|shares

```sh

$ pulumi import snowflake:index/materializedViewGrant:MaterializedViewGrant example "MY_DATABASE|MY_SCHEMA|MY_MV_NAME|SELECT|false|false|role1,role2|share1,share2"

```

func GetMaterializedViewGrant

func GetMaterializedViewGrant(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *MaterializedViewGrantState, opts ...pulumi.ResourceOption) (*MaterializedViewGrant, error)

GetMaterializedViewGrant gets an existing MaterializedViewGrant resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewMaterializedViewGrant

func NewMaterializedViewGrant(ctx *pulumi.Context,
	name string, args *MaterializedViewGrantArgs, opts ...pulumi.ResourceOption) (*MaterializedViewGrant, error)

NewMaterializedViewGrant registers a new resource with the given unique name, arguments, and options.

func (*MaterializedViewGrant) ElementType

func (*MaterializedViewGrant) ElementType() reflect.Type

func (*MaterializedViewGrant) ToMaterializedViewGrantOutput

func (i *MaterializedViewGrant) ToMaterializedViewGrantOutput() MaterializedViewGrantOutput

func (*MaterializedViewGrant) ToMaterializedViewGrantOutputWithContext

func (i *MaterializedViewGrant) ToMaterializedViewGrantOutputWithContext(ctx context.Context) MaterializedViewGrantOutput

type MaterializedViewGrantArgs

type MaterializedViewGrantArgs struct {
	// The name of the database containing the current or future materialized views on which to grant privileges.
	DatabaseName pulumi.StringInput
	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrInput
	// The name of the materialized view on which to grant privileges immediately (only valid if on*future and on*all are false).
	MaterializedViewName pulumi.StringPtrInput
	// When this is set to true and a schema*name is provided, apply this grant on all materialized views in the given schema. When this is true and no schema*name is provided apply this grant on all materialized views in the given database. The materialized*view*name and shares fields must be unset in order to use on*all. Cannot be used together with on*future.
	OnAll pulumi.BoolPtrInput
	// When this is set to true and a schema*name is provided, apply this grant on all future materialized views in the given schema. When this is true and no schema*name is provided apply this grant on all future materialized views in the given database. The materialized*view*name and shares fields must be unset in order to use on*future. Cannot be used together with on*all.
	OnFuture pulumi.BoolPtrInput
	// The privilege to grant on the current or future materialized view. To grant all privileges, use the value `ALL PRIVILEGES`
	Privilege pulumi.StringPtrInput
	// The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
	RevertOwnershipToRoleName pulumi.StringPtrInput
	// Grants privilege to these roles.
	Roles pulumi.StringArrayInput
	// The name of the schema containing the current or future materialized views on which to grant privileges.
	SchemaName pulumi.StringPtrInput
	// Grants privilege to these shares (only valid if on*future and on*all are false).
	Shares pulumi.StringArrayInput
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrInput
}

The set of arguments for constructing a MaterializedViewGrant resource.

func (MaterializedViewGrantArgs) ElementType

func (MaterializedViewGrantArgs) ElementType() reflect.Type

type MaterializedViewGrantArray

type MaterializedViewGrantArray []MaterializedViewGrantInput

func (MaterializedViewGrantArray) ElementType

func (MaterializedViewGrantArray) ElementType() reflect.Type

func (MaterializedViewGrantArray) ToMaterializedViewGrantArrayOutput

func (i MaterializedViewGrantArray) ToMaterializedViewGrantArrayOutput() MaterializedViewGrantArrayOutput

func (MaterializedViewGrantArray) ToMaterializedViewGrantArrayOutputWithContext

func (i MaterializedViewGrantArray) ToMaterializedViewGrantArrayOutputWithContext(ctx context.Context) MaterializedViewGrantArrayOutput

type MaterializedViewGrantArrayInput

type MaterializedViewGrantArrayInput interface {
	pulumi.Input

	ToMaterializedViewGrantArrayOutput() MaterializedViewGrantArrayOutput
	ToMaterializedViewGrantArrayOutputWithContext(context.Context) MaterializedViewGrantArrayOutput
}

MaterializedViewGrantArrayInput is an input type that accepts MaterializedViewGrantArray and MaterializedViewGrantArrayOutput values. You can construct a concrete instance of `MaterializedViewGrantArrayInput` via:

MaterializedViewGrantArray{ MaterializedViewGrantArgs{...} }

type MaterializedViewGrantArrayOutput

type MaterializedViewGrantArrayOutput struct{ *pulumi.OutputState }

func (MaterializedViewGrantArrayOutput) ElementType

func (MaterializedViewGrantArrayOutput) Index

func (MaterializedViewGrantArrayOutput) ToMaterializedViewGrantArrayOutput

func (o MaterializedViewGrantArrayOutput) ToMaterializedViewGrantArrayOutput() MaterializedViewGrantArrayOutput

func (MaterializedViewGrantArrayOutput) ToMaterializedViewGrantArrayOutputWithContext

func (o MaterializedViewGrantArrayOutput) ToMaterializedViewGrantArrayOutputWithContext(ctx context.Context) MaterializedViewGrantArrayOutput

type MaterializedViewGrantInput

type MaterializedViewGrantInput interface {
	pulumi.Input

	ToMaterializedViewGrantOutput() MaterializedViewGrantOutput
	ToMaterializedViewGrantOutputWithContext(ctx context.Context) MaterializedViewGrantOutput
}

type MaterializedViewGrantMap

type MaterializedViewGrantMap map[string]MaterializedViewGrantInput

func (MaterializedViewGrantMap) ElementType

func (MaterializedViewGrantMap) ElementType() reflect.Type

func (MaterializedViewGrantMap) ToMaterializedViewGrantMapOutput

func (i MaterializedViewGrantMap) ToMaterializedViewGrantMapOutput() MaterializedViewGrantMapOutput

func (MaterializedViewGrantMap) ToMaterializedViewGrantMapOutputWithContext

func (i MaterializedViewGrantMap) ToMaterializedViewGrantMapOutputWithContext(ctx context.Context) MaterializedViewGrantMapOutput

type MaterializedViewGrantMapInput

type MaterializedViewGrantMapInput interface {
	pulumi.Input

	ToMaterializedViewGrantMapOutput() MaterializedViewGrantMapOutput
	ToMaterializedViewGrantMapOutputWithContext(context.Context) MaterializedViewGrantMapOutput
}

MaterializedViewGrantMapInput is an input type that accepts MaterializedViewGrantMap and MaterializedViewGrantMapOutput values. You can construct a concrete instance of `MaterializedViewGrantMapInput` via:

MaterializedViewGrantMap{ "key": MaterializedViewGrantArgs{...} }

type MaterializedViewGrantMapOutput

type MaterializedViewGrantMapOutput struct{ *pulumi.OutputState }

func (MaterializedViewGrantMapOutput) ElementType

func (MaterializedViewGrantMapOutput) MapIndex

func (MaterializedViewGrantMapOutput) ToMaterializedViewGrantMapOutput

func (o MaterializedViewGrantMapOutput) ToMaterializedViewGrantMapOutput() MaterializedViewGrantMapOutput

func (MaterializedViewGrantMapOutput) ToMaterializedViewGrantMapOutputWithContext

func (o MaterializedViewGrantMapOutput) ToMaterializedViewGrantMapOutputWithContext(ctx context.Context) MaterializedViewGrantMapOutput

type MaterializedViewGrantOutput

type MaterializedViewGrantOutput struct{ *pulumi.OutputState }

func (MaterializedViewGrantOutput) DatabaseName added in v0.9.0

The name of the database containing the current or future materialized views on which to grant privileges.

func (MaterializedViewGrantOutput) ElementType

func (MaterializedViewGrantOutput) EnableMultipleGrants added in v0.9.0

func (o MaterializedViewGrantOutput) EnableMultipleGrants() pulumi.BoolPtrOutput

When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke grants applied to roles and objects outside Terraform.

func (MaterializedViewGrantOutput) MaterializedViewName added in v0.9.0

func (o MaterializedViewGrantOutput) MaterializedViewName() pulumi.StringPtrOutput

The name of the materialized view on which to grant privileges immediately (only valid if on*future and on*all are false).

func (MaterializedViewGrantOutput) OnAll added in v0.23.0

When this is set to true and a schema*name is provided, apply this grant on all materialized views in the given schema. When this is true and no schema*name is provided apply this grant on all materialized views in the given database. The materialized*view*name and shares fields must be unset in order to use on*all. Cannot be used together with on*future.

func (MaterializedViewGrantOutput) OnFuture added in v0.9.0

When this is set to true and a schema*name is provided, apply this grant on all future materialized views in the given schema. When this is true and no schema*name is provided apply this grant on all future materialized views in the given database. The materialized*view*name and shares fields must be unset in order to use on*future. Cannot be used together with on*all.

func (MaterializedViewGrantOutput) Privilege added in v0.9.0

The privilege to grant on the current or future materialized view. To grant all privileges, use the value `ALL PRIVILEGES`

func (MaterializedViewGrantOutput) RevertOwnershipToRoleName added in v0.26.0

func (o MaterializedViewGrantOutput) RevertOwnershipToRoleName() pulumi.StringPtrOutput

The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`

func (MaterializedViewGrantOutput) Roles added in v0.9.0

Grants privilege to these roles.

func (MaterializedViewGrantOutput) SchemaName added in v0.9.0

The name of the schema containing the current or future materialized views on which to grant privileges.

func (MaterializedViewGrantOutput) Shares added in v0.9.0

Grants privilege to these shares (only valid if on*future and on*all are false).

func (MaterializedViewGrantOutput) ToMaterializedViewGrantOutput

func (o MaterializedViewGrantOutput) ToMaterializedViewGrantOutput() MaterializedViewGrantOutput

func (MaterializedViewGrantOutput) ToMaterializedViewGrantOutputWithContext

func (o MaterializedViewGrantOutput) ToMaterializedViewGrantOutputWithContext(ctx context.Context) MaterializedViewGrantOutput

func (MaterializedViewGrantOutput) WithGrantOption added in v0.9.0

func (o MaterializedViewGrantOutput) WithGrantOption() pulumi.BoolPtrOutput

When this is set to true, allows the recipient role to grant the privileges to other roles.

type MaterializedViewGrantState

type MaterializedViewGrantState struct {
	// The name of the database containing the current or future materialized views on which to grant privileges.
	DatabaseName pulumi.StringPtrInput
	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrInput
	// The name of the materialized view on which to grant privileges immediately (only valid if on*future and on*all are false).
	MaterializedViewName pulumi.StringPtrInput
	// When this is set to true and a schema*name is provided, apply this grant on all materialized views in the given schema. When this is true and no schema*name is provided apply this grant on all materialized views in the given database. The materialized*view*name and shares fields must be unset in order to use on*all. Cannot be used together with on*future.
	OnAll pulumi.BoolPtrInput
	// When this is set to true and a schema*name is provided, apply this grant on all future materialized views in the given schema. When this is true and no schema*name is provided apply this grant on all future materialized views in the given database. The materialized*view*name and shares fields must be unset in order to use on*future. Cannot be used together with on*all.
	OnFuture pulumi.BoolPtrInput
	// The privilege to grant on the current or future materialized view. To grant all privileges, use the value `ALL PRIVILEGES`
	Privilege pulumi.StringPtrInput
	// The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
	RevertOwnershipToRoleName pulumi.StringPtrInput
	// Grants privilege to these roles.
	Roles pulumi.StringArrayInput
	// The name of the schema containing the current or future materialized views on which to grant privileges.
	SchemaName pulumi.StringPtrInput
	// Grants privilege to these shares (only valid if on*future and on*all are false).
	Shares pulumi.StringArrayInput
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrInput
}

func (MaterializedViewGrantState) ElementType

func (MaterializedViewGrantState) ElementType() reflect.Type

type MaterializedViewInput

type MaterializedViewInput interface {
	pulumi.Input

	ToMaterializedViewOutput() MaterializedViewOutput
	ToMaterializedViewOutputWithContext(ctx context.Context) MaterializedViewOutput
}

type MaterializedViewMap

type MaterializedViewMap map[string]MaterializedViewInput

func (MaterializedViewMap) ElementType

func (MaterializedViewMap) ElementType() reflect.Type

func (MaterializedViewMap) ToMaterializedViewMapOutput

func (i MaterializedViewMap) ToMaterializedViewMapOutput() MaterializedViewMapOutput

func (MaterializedViewMap) ToMaterializedViewMapOutputWithContext

func (i MaterializedViewMap) ToMaterializedViewMapOutputWithContext(ctx context.Context) MaterializedViewMapOutput

type MaterializedViewMapInput

type MaterializedViewMapInput interface {
	pulumi.Input

	ToMaterializedViewMapOutput() MaterializedViewMapOutput
	ToMaterializedViewMapOutputWithContext(context.Context) MaterializedViewMapOutput
}

MaterializedViewMapInput is an input type that accepts MaterializedViewMap and MaterializedViewMapOutput values. You can construct a concrete instance of `MaterializedViewMapInput` via:

MaterializedViewMap{ "key": MaterializedViewArgs{...} }

type MaterializedViewMapOutput

type MaterializedViewMapOutput struct{ *pulumi.OutputState }

func (MaterializedViewMapOutput) ElementType

func (MaterializedViewMapOutput) ElementType() reflect.Type

func (MaterializedViewMapOutput) MapIndex

func (MaterializedViewMapOutput) ToMaterializedViewMapOutput

func (o MaterializedViewMapOutput) ToMaterializedViewMapOutput() MaterializedViewMapOutput

func (MaterializedViewMapOutput) ToMaterializedViewMapOutputWithContext

func (o MaterializedViewMapOutput) ToMaterializedViewMapOutputWithContext(ctx context.Context) MaterializedViewMapOutput

type MaterializedViewOutput

type MaterializedViewOutput struct{ *pulumi.OutputState }

func (MaterializedViewOutput) Comment added in v0.9.0

Specifies a comment for the view.

func (MaterializedViewOutput) Database added in v0.9.0

The database in which to create the view. Don't use the | character.

func (MaterializedViewOutput) ElementType

func (MaterializedViewOutput) ElementType() reflect.Type

func (MaterializedViewOutput) IsSecure added in v0.9.0

Specifies that the view is secure.

func (MaterializedViewOutput) Name added in v0.9.0

Specifies the identifier for the view; must be unique for the schema in which the view is created.

func (MaterializedViewOutput) OrReplace added in v0.9.0

Overwrites the View if it exists.

func (MaterializedViewOutput) Schema added in v0.9.0

The schema in which to create the view. Don't use the | character.

func (MaterializedViewOutput) Statement added in v0.9.0

Specifies the query used to create the view.

func (MaterializedViewOutput) Tags deprecated added in v0.9.0

Definitions of a tag to associate with the resource.

Deprecated: Use the 'snowflake_tag_association' resource instead.

func (MaterializedViewOutput) ToMaterializedViewOutput

func (o MaterializedViewOutput) ToMaterializedViewOutput() MaterializedViewOutput

func (MaterializedViewOutput) ToMaterializedViewOutputWithContext

func (o MaterializedViewOutput) ToMaterializedViewOutputWithContext(ctx context.Context) MaterializedViewOutput

func (MaterializedViewOutput) Warehouse added in v0.9.0

The warehouse name.

type MaterializedViewState

type MaterializedViewState struct {
	// Specifies a comment for the view.
	Comment pulumi.StringPtrInput
	// The database in which to create the view. Don't use the | character.
	Database pulumi.StringPtrInput
	// Specifies that the view is secure.
	IsSecure pulumi.BoolPtrInput
	// Specifies the identifier for the view; must be unique for the schema in which the view is created.
	Name pulumi.StringPtrInput
	// Overwrites the View if it exists.
	OrReplace pulumi.BoolPtrInput
	// The schema in which to create the view. Don't use the | character.
	Schema pulumi.StringPtrInput
	// Specifies the query used to create the view.
	Statement pulumi.StringPtrInput
	// Definitions of a tag to associate with the resource.
	//
	// Deprecated: Use the 'snowflake_tag_association' resource instead.
	Tags MaterializedViewTagArrayInput
	// The warehouse name.
	Warehouse pulumi.StringPtrInput
}

func (MaterializedViewState) ElementType

func (MaterializedViewState) ElementType() reflect.Type

type MaterializedViewTag added in v0.3.0

type MaterializedViewTag struct {
	// Name of the database that the tag was created in.
	Database *string `pulumi:"database"`
	// Tag name, e.g. department.
	Name string `pulumi:"name"`
	// Name of the schema that the tag was created in.
	Schema *string `pulumi:"schema"`
	// Tag value, e.g. marketing_info.
	Value string `pulumi:"value"`
}

type MaterializedViewTagArgs added in v0.3.0

type MaterializedViewTagArgs struct {
	// Name of the database that the tag was created in.
	Database pulumi.StringPtrInput `pulumi:"database"`
	// Tag name, e.g. department.
	Name pulumi.StringInput `pulumi:"name"`
	// Name of the schema that the tag was created in.
	Schema pulumi.StringPtrInput `pulumi:"schema"`
	// Tag value, e.g. marketing_info.
	Value pulumi.StringInput `pulumi:"value"`
}

func (MaterializedViewTagArgs) ElementType added in v0.3.0

func (MaterializedViewTagArgs) ElementType() reflect.Type

func (MaterializedViewTagArgs) ToMaterializedViewTagOutput added in v0.3.0

func (i MaterializedViewTagArgs) ToMaterializedViewTagOutput() MaterializedViewTagOutput

func (MaterializedViewTagArgs) ToMaterializedViewTagOutputWithContext added in v0.3.0

func (i MaterializedViewTagArgs) ToMaterializedViewTagOutputWithContext(ctx context.Context) MaterializedViewTagOutput

type MaterializedViewTagArray added in v0.3.0

type MaterializedViewTagArray []MaterializedViewTagInput

func (MaterializedViewTagArray) ElementType added in v0.3.0

func (MaterializedViewTagArray) ElementType() reflect.Type

func (MaterializedViewTagArray) ToMaterializedViewTagArrayOutput added in v0.3.0

func (i MaterializedViewTagArray) ToMaterializedViewTagArrayOutput() MaterializedViewTagArrayOutput

func (MaterializedViewTagArray) ToMaterializedViewTagArrayOutputWithContext added in v0.3.0

func (i MaterializedViewTagArray) ToMaterializedViewTagArrayOutputWithContext(ctx context.Context) MaterializedViewTagArrayOutput

type MaterializedViewTagArrayInput added in v0.3.0

type MaterializedViewTagArrayInput interface {
	pulumi.Input

	ToMaterializedViewTagArrayOutput() MaterializedViewTagArrayOutput
	ToMaterializedViewTagArrayOutputWithContext(context.Context) MaterializedViewTagArrayOutput
}

MaterializedViewTagArrayInput is an input type that accepts MaterializedViewTagArray and MaterializedViewTagArrayOutput values. You can construct a concrete instance of `MaterializedViewTagArrayInput` via:

MaterializedViewTagArray{ MaterializedViewTagArgs{...} }

type MaterializedViewTagArrayOutput added in v0.3.0

type MaterializedViewTagArrayOutput struct{ *pulumi.OutputState }

func (MaterializedViewTagArrayOutput) ElementType added in v0.3.0

func (MaterializedViewTagArrayOutput) Index added in v0.3.0

func (MaterializedViewTagArrayOutput) ToMaterializedViewTagArrayOutput added in v0.3.0

func (o MaterializedViewTagArrayOutput) ToMaterializedViewTagArrayOutput() MaterializedViewTagArrayOutput

func (MaterializedViewTagArrayOutput) ToMaterializedViewTagArrayOutputWithContext added in v0.3.0

func (o MaterializedViewTagArrayOutput) ToMaterializedViewTagArrayOutputWithContext(ctx context.Context) MaterializedViewTagArrayOutput

type MaterializedViewTagInput added in v0.3.0

type MaterializedViewTagInput interface {
	pulumi.Input

	ToMaterializedViewTagOutput() MaterializedViewTagOutput
	ToMaterializedViewTagOutputWithContext(context.Context) MaterializedViewTagOutput
}

MaterializedViewTagInput is an input type that accepts MaterializedViewTagArgs and MaterializedViewTagOutput values. You can construct a concrete instance of `MaterializedViewTagInput` via:

MaterializedViewTagArgs{...}

type MaterializedViewTagOutput added in v0.3.0

type MaterializedViewTagOutput struct{ *pulumi.OutputState }

func (MaterializedViewTagOutput) Database added in v0.3.0

Name of the database that the tag was created in.

func (MaterializedViewTagOutput) ElementType added in v0.3.0

func (MaterializedViewTagOutput) ElementType() reflect.Type

func (MaterializedViewTagOutput) Name added in v0.3.0

Tag name, e.g. department.

func (MaterializedViewTagOutput) Schema added in v0.3.0

Name of the schema that the tag was created in.

func (MaterializedViewTagOutput) ToMaterializedViewTagOutput added in v0.3.0

func (o MaterializedViewTagOutput) ToMaterializedViewTagOutput() MaterializedViewTagOutput

func (MaterializedViewTagOutput) ToMaterializedViewTagOutputWithContext added in v0.3.0

func (o MaterializedViewTagOutput) ToMaterializedViewTagOutputWithContext(ctx context.Context) MaterializedViewTagOutput

func (MaterializedViewTagOutput) Value added in v0.3.0

Tag value, e.g. marketing_info.

type NetworkPolicy

type NetworkPolicy struct {
	pulumi.CustomResourceState

	// Specifies one or more IPv4 addresses (CIDR notation) that are allowed access to your Snowflake account
	AllowedIpLists pulumi.StringArrayOutput `pulumi:"allowedIpLists"`
	// Specifies one or more IPv4 addresses (CIDR notation) that are denied access to your Snowflake account\n\n\n\n**Do not** add `0.0.0.0/0` to `blockedIpList`
	BlockedIpLists pulumi.StringArrayOutput `pulumi:"blockedIpLists"`
	// Specifies a comment for the network policy.
	Comment pulumi.StringPtrOutput `pulumi:"comment"`
	// Specifies the identifier for the network policy; must be unique for the account in which the network policy is created.
	Name pulumi.StringOutput `pulumi:"name"`
}

## Example Usage

```go 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.NewNetworkPolicy(ctx, "policy", &snowflake.NetworkPolicyArgs{
			AllowedIpLists: pulumi.StringArray{
				pulumi.String("192.168.0.100/24"),
			},
			BlockedIpLists: pulumi.StringArray{
				pulumi.String("192.168.0.101"),
			},
			Comment: pulumi.String("A policy."),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

```sh

$ pulumi import snowflake:index/networkPolicy:NetworkPolicy example policyname

```

func GetNetworkPolicy

func GetNetworkPolicy(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *NetworkPolicyState, opts ...pulumi.ResourceOption) (*NetworkPolicy, error)

GetNetworkPolicy gets an existing NetworkPolicy resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewNetworkPolicy

func NewNetworkPolicy(ctx *pulumi.Context,
	name string, args *NetworkPolicyArgs, opts ...pulumi.ResourceOption) (*NetworkPolicy, error)

NewNetworkPolicy registers a new resource with the given unique name, arguments, and options.

func (*NetworkPolicy) ElementType

func (*NetworkPolicy) ElementType() reflect.Type

func (*NetworkPolicy) ToNetworkPolicyOutput

func (i *NetworkPolicy) ToNetworkPolicyOutput() NetworkPolicyOutput

func (*NetworkPolicy) ToNetworkPolicyOutputWithContext

func (i *NetworkPolicy) ToNetworkPolicyOutputWithContext(ctx context.Context) NetworkPolicyOutput

type NetworkPolicyArgs

type NetworkPolicyArgs struct {
	// Specifies one or more IPv4 addresses (CIDR notation) that are allowed access to your Snowflake account
	AllowedIpLists pulumi.StringArrayInput
	// Specifies one or more IPv4 addresses (CIDR notation) that are denied access to your Snowflake account\n\n\n\n**Do not** add `0.0.0.0/0` to `blockedIpList`
	BlockedIpLists pulumi.StringArrayInput
	// Specifies a comment for the network policy.
	Comment pulumi.StringPtrInput
	// Specifies the identifier for the network policy; must be unique for the account in which the network policy is created.
	Name pulumi.StringPtrInput
}

The set of arguments for constructing a NetworkPolicy resource.

func (NetworkPolicyArgs) ElementType

func (NetworkPolicyArgs) ElementType() reflect.Type

type NetworkPolicyArray

type NetworkPolicyArray []NetworkPolicyInput

func (NetworkPolicyArray) ElementType

func (NetworkPolicyArray) ElementType() reflect.Type

func (NetworkPolicyArray) ToNetworkPolicyArrayOutput

func (i NetworkPolicyArray) ToNetworkPolicyArrayOutput() NetworkPolicyArrayOutput

func (NetworkPolicyArray) ToNetworkPolicyArrayOutputWithContext

func (i NetworkPolicyArray) ToNetworkPolicyArrayOutputWithContext(ctx context.Context) NetworkPolicyArrayOutput

type NetworkPolicyArrayInput

type NetworkPolicyArrayInput interface {
	pulumi.Input

	ToNetworkPolicyArrayOutput() NetworkPolicyArrayOutput
	ToNetworkPolicyArrayOutputWithContext(context.Context) NetworkPolicyArrayOutput
}

NetworkPolicyArrayInput is an input type that accepts NetworkPolicyArray and NetworkPolicyArrayOutput values. You can construct a concrete instance of `NetworkPolicyArrayInput` via:

NetworkPolicyArray{ NetworkPolicyArgs{...} }

type NetworkPolicyArrayOutput

type NetworkPolicyArrayOutput struct{ *pulumi.OutputState }

func (NetworkPolicyArrayOutput) ElementType

func (NetworkPolicyArrayOutput) ElementType() reflect.Type

func (NetworkPolicyArrayOutput) Index

func (NetworkPolicyArrayOutput) ToNetworkPolicyArrayOutput

func (o NetworkPolicyArrayOutput) ToNetworkPolicyArrayOutput() NetworkPolicyArrayOutput

func (NetworkPolicyArrayOutput) ToNetworkPolicyArrayOutputWithContext

func (o NetworkPolicyArrayOutput) ToNetworkPolicyArrayOutputWithContext(ctx context.Context) NetworkPolicyArrayOutput

type NetworkPolicyAttachment

type NetworkPolicyAttachment struct {
	pulumi.CustomResourceState

	// Specifies the identifier for the network policy; must be unique for the account in which the network policy is created.
	NetworkPolicyName pulumi.StringOutput `pulumi:"networkPolicyName"`
	// Specifies whether the network policy should be applied globally to your Snowflake account\n\n\n\n**Note:** The Snowflake user running `pulumi up` must be on an IP address allowed by the network policy to set that policy globally on the Snowflake account.\n\n\n\nAdditionally, a Snowflake account can only have one network policy set globally at any given time. This resource does not enforce one-policy-per-account, it is the user's responsibility to enforce this. If multiple network policy resources have `set_for_account: true`, the final policy set on the account will be non-deterministic.
	SetForAccount pulumi.BoolPtrOutput `pulumi:"setForAccount"`
	// Specifies which users the network policy should be attached to
	Users pulumi.StringArrayOutput `pulumi:"users"`
}

## Example Usage

```go 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.NewNetworkPolicyAttachment(ctx, "attach", &snowflake.NetworkPolicyAttachmentArgs{
			NetworkPolicyName: pulumi.String("policy"),
			SetForAccount:     pulumi.Bool(false),
			Users: pulumi.StringArray{
				pulumi.String("user1"),
				pulumi.String("user2"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

```sh

$ pulumi import snowflake:index/networkPolicyAttachment:NetworkPolicyAttachment example attachment_policyname

```

func GetNetworkPolicyAttachment

func GetNetworkPolicyAttachment(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *NetworkPolicyAttachmentState, opts ...pulumi.ResourceOption) (*NetworkPolicyAttachment, error)

GetNetworkPolicyAttachment gets an existing NetworkPolicyAttachment resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewNetworkPolicyAttachment

func NewNetworkPolicyAttachment(ctx *pulumi.Context,
	name string, args *NetworkPolicyAttachmentArgs, opts ...pulumi.ResourceOption) (*NetworkPolicyAttachment, error)

NewNetworkPolicyAttachment registers a new resource with the given unique name, arguments, and options.

func (*NetworkPolicyAttachment) ElementType

func (*NetworkPolicyAttachment) ElementType() reflect.Type

func (*NetworkPolicyAttachment) ToNetworkPolicyAttachmentOutput

func (i *NetworkPolicyAttachment) ToNetworkPolicyAttachmentOutput() NetworkPolicyAttachmentOutput

func (*NetworkPolicyAttachment) ToNetworkPolicyAttachmentOutputWithContext

func (i *NetworkPolicyAttachment) ToNetworkPolicyAttachmentOutputWithContext(ctx context.Context) NetworkPolicyAttachmentOutput

type NetworkPolicyAttachmentArgs

type NetworkPolicyAttachmentArgs struct {
	// Specifies the identifier for the network policy; must be unique for the account in which the network policy is created.
	NetworkPolicyName pulumi.StringInput
	// Specifies whether the network policy should be applied globally to your Snowflake account\n\n\n\n**Note:** The Snowflake user running `pulumi up` must be on an IP address allowed by the network policy to set that policy globally on the Snowflake account.\n\n\n\nAdditionally, a Snowflake account can only have one network policy set globally at any given time. This resource does not enforce one-policy-per-account, it is the user's responsibility to enforce this. If multiple network policy resources have `set_for_account: true`, the final policy set on the account will be non-deterministic.
	SetForAccount pulumi.BoolPtrInput
	// Specifies which users the network policy should be attached to
	Users pulumi.StringArrayInput
}

The set of arguments for constructing a NetworkPolicyAttachment resource.

func (NetworkPolicyAttachmentArgs) ElementType

type NetworkPolicyAttachmentArray

type NetworkPolicyAttachmentArray []NetworkPolicyAttachmentInput

func (NetworkPolicyAttachmentArray) ElementType

func (NetworkPolicyAttachmentArray) ToNetworkPolicyAttachmentArrayOutput

func (i NetworkPolicyAttachmentArray) ToNetworkPolicyAttachmentArrayOutput() NetworkPolicyAttachmentArrayOutput

func (NetworkPolicyAttachmentArray) ToNetworkPolicyAttachmentArrayOutputWithContext

func (i NetworkPolicyAttachmentArray) ToNetworkPolicyAttachmentArrayOutputWithContext(ctx context.Context) NetworkPolicyAttachmentArrayOutput

type NetworkPolicyAttachmentArrayInput

type NetworkPolicyAttachmentArrayInput interface {
	pulumi.Input

	ToNetworkPolicyAttachmentArrayOutput() NetworkPolicyAttachmentArrayOutput
	ToNetworkPolicyAttachmentArrayOutputWithContext(context.Context) NetworkPolicyAttachmentArrayOutput
}

NetworkPolicyAttachmentArrayInput is an input type that accepts NetworkPolicyAttachmentArray and NetworkPolicyAttachmentArrayOutput values. You can construct a concrete instance of `NetworkPolicyAttachmentArrayInput` via:

NetworkPolicyAttachmentArray{ NetworkPolicyAttachmentArgs{...} }

type NetworkPolicyAttachmentArrayOutput

type NetworkPolicyAttachmentArrayOutput struct{ *pulumi.OutputState }

func (NetworkPolicyAttachmentArrayOutput) ElementType

func (NetworkPolicyAttachmentArrayOutput) Index

func (NetworkPolicyAttachmentArrayOutput) ToNetworkPolicyAttachmentArrayOutput

func (o NetworkPolicyAttachmentArrayOutput) ToNetworkPolicyAttachmentArrayOutput() NetworkPolicyAttachmentArrayOutput

func (NetworkPolicyAttachmentArrayOutput) ToNetworkPolicyAttachmentArrayOutputWithContext

func (o NetworkPolicyAttachmentArrayOutput) ToNetworkPolicyAttachmentArrayOutputWithContext(ctx context.Context) NetworkPolicyAttachmentArrayOutput

type NetworkPolicyAttachmentInput

type NetworkPolicyAttachmentInput interface {
	pulumi.Input

	ToNetworkPolicyAttachmentOutput() NetworkPolicyAttachmentOutput
	ToNetworkPolicyAttachmentOutputWithContext(ctx context.Context) NetworkPolicyAttachmentOutput
}

type NetworkPolicyAttachmentMap

type NetworkPolicyAttachmentMap map[string]NetworkPolicyAttachmentInput

func (NetworkPolicyAttachmentMap) ElementType

func (NetworkPolicyAttachmentMap) ElementType() reflect.Type

func (NetworkPolicyAttachmentMap) ToNetworkPolicyAttachmentMapOutput

func (i NetworkPolicyAttachmentMap) ToNetworkPolicyAttachmentMapOutput() NetworkPolicyAttachmentMapOutput

func (NetworkPolicyAttachmentMap) ToNetworkPolicyAttachmentMapOutputWithContext

func (i NetworkPolicyAttachmentMap) ToNetworkPolicyAttachmentMapOutputWithContext(ctx context.Context) NetworkPolicyAttachmentMapOutput

type NetworkPolicyAttachmentMapInput

type NetworkPolicyAttachmentMapInput interface {
	pulumi.Input

	ToNetworkPolicyAttachmentMapOutput() NetworkPolicyAttachmentMapOutput
	ToNetworkPolicyAttachmentMapOutputWithContext(context.Context) NetworkPolicyAttachmentMapOutput
}

NetworkPolicyAttachmentMapInput is an input type that accepts NetworkPolicyAttachmentMap and NetworkPolicyAttachmentMapOutput values. You can construct a concrete instance of `NetworkPolicyAttachmentMapInput` via:

NetworkPolicyAttachmentMap{ "key": NetworkPolicyAttachmentArgs{...} }

type NetworkPolicyAttachmentMapOutput

type NetworkPolicyAttachmentMapOutput struct{ *pulumi.OutputState }

func (NetworkPolicyAttachmentMapOutput) ElementType

func (NetworkPolicyAttachmentMapOutput) MapIndex

func (NetworkPolicyAttachmentMapOutput) ToNetworkPolicyAttachmentMapOutput

func (o NetworkPolicyAttachmentMapOutput) ToNetworkPolicyAttachmentMapOutput() NetworkPolicyAttachmentMapOutput

func (NetworkPolicyAttachmentMapOutput) ToNetworkPolicyAttachmentMapOutputWithContext

func (o NetworkPolicyAttachmentMapOutput) ToNetworkPolicyAttachmentMapOutputWithContext(ctx context.Context) NetworkPolicyAttachmentMapOutput

type NetworkPolicyAttachmentOutput

type NetworkPolicyAttachmentOutput struct{ *pulumi.OutputState }

func (NetworkPolicyAttachmentOutput) ElementType

func (NetworkPolicyAttachmentOutput) NetworkPolicyName added in v0.9.0

func (o NetworkPolicyAttachmentOutput) NetworkPolicyName() pulumi.StringOutput

Specifies the identifier for the network policy; must be unique for the account in which the network policy is created.

func (NetworkPolicyAttachmentOutput) SetForAccount added in v0.9.0

Specifies whether the network policy should be applied globally to your Snowflake account\n\n\n\n**Note:** The Snowflake user running `pulumi up` must be on an IP address allowed by the network policy to set that policy globally on the Snowflake account.\n\n\n\nAdditionally, a Snowflake account can only have one network policy set globally at any given time. This resource does not enforce one-policy-per-account, it is the user's responsibility to enforce this. If multiple network policy resources have `set_for_account: true`, the final policy set on the account will be non-deterministic.

func (NetworkPolicyAttachmentOutput) ToNetworkPolicyAttachmentOutput

func (o NetworkPolicyAttachmentOutput) ToNetworkPolicyAttachmentOutput() NetworkPolicyAttachmentOutput

func (NetworkPolicyAttachmentOutput) ToNetworkPolicyAttachmentOutputWithContext

func (o NetworkPolicyAttachmentOutput) ToNetworkPolicyAttachmentOutputWithContext(ctx context.Context) NetworkPolicyAttachmentOutput

func (NetworkPolicyAttachmentOutput) Users added in v0.9.0

Specifies which users the network policy should be attached to

type NetworkPolicyAttachmentState

type NetworkPolicyAttachmentState struct {
	// Specifies the identifier for the network policy; must be unique for the account in which the network policy is created.
	NetworkPolicyName pulumi.StringPtrInput
	// Specifies whether the network policy should be applied globally to your Snowflake account\n\n\n\n**Note:** The Snowflake user running `pulumi up` must be on an IP address allowed by the network policy to set that policy globally on the Snowflake account.\n\n\n\nAdditionally, a Snowflake account can only have one network policy set globally at any given time. This resource does not enforce one-policy-per-account, it is the user's responsibility to enforce this. If multiple network policy resources have `set_for_account: true`, the final policy set on the account will be non-deterministic.
	SetForAccount pulumi.BoolPtrInput
	// Specifies which users the network policy should be attached to
	Users pulumi.StringArrayInput
}

func (NetworkPolicyAttachmentState) ElementType

type NetworkPolicyInput

type NetworkPolicyInput interface {
	pulumi.Input

	ToNetworkPolicyOutput() NetworkPolicyOutput
	ToNetworkPolicyOutputWithContext(ctx context.Context) NetworkPolicyOutput
}

type NetworkPolicyMap

type NetworkPolicyMap map[string]NetworkPolicyInput

func (NetworkPolicyMap) ElementType

func (NetworkPolicyMap) ElementType() reflect.Type

func (NetworkPolicyMap) ToNetworkPolicyMapOutput

func (i NetworkPolicyMap) ToNetworkPolicyMapOutput() NetworkPolicyMapOutput

func (NetworkPolicyMap) ToNetworkPolicyMapOutputWithContext

func (i NetworkPolicyMap) ToNetworkPolicyMapOutputWithContext(ctx context.Context) NetworkPolicyMapOutput

type NetworkPolicyMapInput

type NetworkPolicyMapInput interface {
	pulumi.Input

	ToNetworkPolicyMapOutput() NetworkPolicyMapOutput
	ToNetworkPolicyMapOutputWithContext(context.Context) NetworkPolicyMapOutput
}

NetworkPolicyMapInput is an input type that accepts NetworkPolicyMap and NetworkPolicyMapOutput values. You can construct a concrete instance of `NetworkPolicyMapInput` via:

NetworkPolicyMap{ "key": NetworkPolicyArgs{...} }

type NetworkPolicyMapOutput

type NetworkPolicyMapOutput struct{ *pulumi.OutputState }

func (NetworkPolicyMapOutput) ElementType

func (NetworkPolicyMapOutput) ElementType() reflect.Type

func (NetworkPolicyMapOutput) MapIndex

func (NetworkPolicyMapOutput) ToNetworkPolicyMapOutput

func (o NetworkPolicyMapOutput) ToNetworkPolicyMapOutput() NetworkPolicyMapOutput

func (NetworkPolicyMapOutput) ToNetworkPolicyMapOutputWithContext

func (o NetworkPolicyMapOutput) ToNetworkPolicyMapOutputWithContext(ctx context.Context) NetworkPolicyMapOutput

type NetworkPolicyOutput

type NetworkPolicyOutput struct{ *pulumi.OutputState }

func (NetworkPolicyOutput) AllowedIpLists added in v0.9.0

func (o NetworkPolicyOutput) AllowedIpLists() pulumi.StringArrayOutput

Specifies one or more IPv4 addresses (CIDR notation) that are allowed access to your Snowflake account

func (NetworkPolicyOutput) BlockedIpLists added in v0.9.0

func (o NetworkPolicyOutput) BlockedIpLists() pulumi.StringArrayOutput

Specifies one or more IPv4 addresses (CIDR notation) that are denied access to your Snowflake account\n\n\n\n**Do not** add `0.0.0.0/0` to `blockedIpList`

func (NetworkPolicyOutput) Comment added in v0.9.0

Specifies a comment for the network policy.

func (NetworkPolicyOutput) ElementType

func (NetworkPolicyOutput) ElementType() reflect.Type

func (NetworkPolicyOutput) Name added in v0.9.0

Specifies the identifier for the network policy; must be unique for the account in which the network policy is created.

func (NetworkPolicyOutput) ToNetworkPolicyOutput

func (o NetworkPolicyOutput) ToNetworkPolicyOutput() NetworkPolicyOutput

func (NetworkPolicyOutput) ToNetworkPolicyOutputWithContext

func (o NetworkPolicyOutput) ToNetworkPolicyOutputWithContext(ctx context.Context) NetworkPolicyOutput

type NetworkPolicyState

type NetworkPolicyState struct {
	// Specifies one or more IPv4 addresses (CIDR notation) that are allowed access to your Snowflake account
	AllowedIpLists pulumi.StringArrayInput
	// Specifies one or more IPv4 addresses (CIDR notation) that are denied access to your Snowflake account\n\n\n\n**Do not** add `0.0.0.0/0` to `blockedIpList`
	BlockedIpLists pulumi.StringArrayInput
	// Specifies a comment for the network policy.
	Comment pulumi.StringPtrInput
	// Specifies the identifier for the network policy; must be unique for the account in which the network policy is created.
	Name pulumi.StringPtrInput
}

func (NetworkPolicyState) ElementType

func (NetworkPolicyState) ElementType() reflect.Type

type NotificationIntegration

type NotificationIntegration struct {
	pulumi.CustomResourceState

	// The external ID that Snowflake will use when assuming the AWS role
	AwsSnsExternalId pulumi.StringOutput `pulumi:"awsSnsExternalId"`
	// The Snowflake user that will attempt to assume the AWS role.
	AwsSnsIamUserArn pulumi.StringOutput `pulumi:"awsSnsIamUserArn"`
	// AWS IAM role ARN for notification integration to assume
	AwsSnsRoleArn pulumi.StringPtrOutput `pulumi:"awsSnsRoleArn"`
	// AWS SNS Topic ARN for notification integration to connect to
	AwsSnsTopicArn pulumi.StringPtrOutput `pulumi:"awsSnsTopicArn"`
	// AWS SQS queue ARN for notification integration to connect to
	AwsSqsArn pulumi.StringPtrOutput `pulumi:"awsSqsArn"`
	// The external ID that Snowflake will use when assuming the AWS role
	AwsSqsExternalId pulumi.StringOutput `pulumi:"awsSqsExternalId"`
	// The Snowflake user that will attempt to assume the AWS role.
	AwsSqsIamUserArn pulumi.StringOutput `pulumi:"awsSqsIamUserArn"`
	// AWS IAM role ARN for notification integration to assume
	AwsSqsRoleArn pulumi.StringPtrOutput `pulumi:"awsSqsRoleArn"`
	// The queue ID for the Azure Queue Storage queue created for Event Grid notifications
	AzureStorageQueuePrimaryUri pulumi.StringPtrOutput `pulumi:"azureStorageQueuePrimaryUri"`
	// The ID of the Azure Active Directory tenant used for identity management
	AzureTenantId pulumi.StringPtrOutput `pulumi:"azureTenantId"`
	// A comment for the integration
	Comment pulumi.StringPtrOutput `pulumi:"comment"`
	// Date and time when the notification integration was created.
	CreatedOn pulumi.StringOutput `pulumi:"createdOn"`
	// Direction of the cloud messaging with respect to Snowflake (required only for error notifications)
	Direction pulumi.StringPtrOutput `pulumi:"direction"`
	Enabled   pulumi.BoolPtrOutput   `pulumi:"enabled"`
	// The GCP service account identifier that Snowflake will use when assuming the GCP role
	GcpPubsubServiceAccount pulumi.StringOutput `pulumi:"gcpPubsubServiceAccount"`
	// The subscription id that Snowflake will listen to when using the GCP_PUBSUB provider.
	GcpPubsubSubscriptionName pulumi.StringPtrOutput `pulumi:"gcpPubsubSubscriptionName"`
	// The topic id that Snowflake will use to push notifications.
	GcpPubsubTopicName pulumi.StringPtrOutput `pulumi:"gcpPubsubTopicName"`
	Name               pulumi.StringOutput    `pulumi:"name"`
	// The third-party cloud message queuing service (e.g. AZURE*STORAGE*QUEUE, AWS*SQS, AWS*SNS)
	NotificationProvider pulumi.StringPtrOutput `pulumi:"notificationProvider"`
	// A type of integration
	Type pulumi.StringPtrOutput `pulumi:"type"`
}

## Example Usage

```go 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.NewNotificationIntegration(ctx, "integration", &snowflake.NotificationIntegrationArgs{
			AzureStorageQueuePrimaryUri: pulumi.String("..."),
			AzureTenantId:               pulumi.String("..."),
			Comment:                     pulumi.String("A notification integration."),
			Direction:                   pulumi.String("OUTBOUND"),
			Enabled:                     pulumi.Bool(true),
			NotificationProvider:        pulumi.String("AZURE_STORAGE_QUEUE"),
			Type:                        pulumi.String("QUEUE"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

```sh

$ pulumi import snowflake:index/notificationIntegration:NotificationIntegration example name

```

func GetNotificationIntegration

func GetNotificationIntegration(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *NotificationIntegrationState, opts ...pulumi.ResourceOption) (*NotificationIntegration, error)

GetNotificationIntegration gets an existing NotificationIntegration resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewNotificationIntegration

func NewNotificationIntegration(ctx *pulumi.Context,
	name string, args *NotificationIntegrationArgs, opts ...pulumi.ResourceOption) (*NotificationIntegration, error)

NewNotificationIntegration registers a new resource with the given unique name, arguments, and options.

func (*NotificationIntegration) ElementType

func (*NotificationIntegration) ElementType() reflect.Type

func (*NotificationIntegration) ToNotificationIntegrationOutput

func (i *NotificationIntegration) ToNotificationIntegrationOutput() NotificationIntegrationOutput

func (*NotificationIntegration) ToNotificationIntegrationOutputWithContext

func (i *NotificationIntegration) ToNotificationIntegrationOutputWithContext(ctx context.Context) NotificationIntegrationOutput

type NotificationIntegrationArgs

type NotificationIntegrationArgs struct {
	// AWS IAM role ARN for notification integration to assume
	AwsSnsRoleArn pulumi.StringPtrInput
	// AWS SNS Topic ARN for notification integration to connect to
	AwsSnsTopicArn pulumi.StringPtrInput
	// AWS SQS queue ARN for notification integration to connect to
	AwsSqsArn pulumi.StringPtrInput
	// AWS IAM role ARN for notification integration to assume
	AwsSqsRoleArn pulumi.StringPtrInput
	// The queue ID for the Azure Queue Storage queue created for Event Grid notifications
	AzureStorageQueuePrimaryUri pulumi.StringPtrInput
	// The ID of the Azure Active Directory tenant used for identity management
	AzureTenantId pulumi.StringPtrInput
	// A comment for the integration
	Comment pulumi.StringPtrInput
	// Direction of the cloud messaging with respect to Snowflake (required only for error notifications)
	Direction pulumi.StringPtrInput
	Enabled   pulumi.BoolPtrInput
	// The subscription id that Snowflake will listen to when using the GCP_PUBSUB provider.
	GcpPubsubSubscriptionName pulumi.StringPtrInput
	// The topic id that Snowflake will use to push notifications.
	GcpPubsubTopicName pulumi.StringPtrInput
	Name               pulumi.StringPtrInput
	// The third-party cloud message queuing service (e.g. AZURE*STORAGE*QUEUE, AWS*SQS, AWS*SNS)
	NotificationProvider pulumi.StringPtrInput
	// A type of integration
	Type pulumi.StringPtrInput
}

The set of arguments for constructing a NotificationIntegration resource.

func (NotificationIntegrationArgs) ElementType

type NotificationIntegrationArray

type NotificationIntegrationArray []NotificationIntegrationInput

func (NotificationIntegrationArray) ElementType

func (NotificationIntegrationArray) ToNotificationIntegrationArrayOutput

func (i NotificationIntegrationArray) ToNotificationIntegrationArrayOutput() NotificationIntegrationArrayOutput

func (NotificationIntegrationArray) ToNotificationIntegrationArrayOutputWithContext

func (i NotificationIntegrationArray) ToNotificationIntegrationArrayOutputWithContext(ctx context.Context) NotificationIntegrationArrayOutput

type NotificationIntegrationArrayInput

type NotificationIntegrationArrayInput interface {
	pulumi.Input

	ToNotificationIntegrationArrayOutput() NotificationIntegrationArrayOutput
	ToNotificationIntegrationArrayOutputWithContext(context.Context) NotificationIntegrationArrayOutput
}

NotificationIntegrationArrayInput is an input type that accepts NotificationIntegrationArray and NotificationIntegrationArrayOutput values. You can construct a concrete instance of `NotificationIntegrationArrayInput` via:

NotificationIntegrationArray{ NotificationIntegrationArgs{...} }

type NotificationIntegrationArrayOutput

type NotificationIntegrationArrayOutput struct{ *pulumi.OutputState }

func (NotificationIntegrationArrayOutput) ElementType

func (NotificationIntegrationArrayOutput) Index

func (NotificationIntegrationArrayOutput) ToNotificationIntegrationArrayOutput

func (o NotificationIntegrationArrayOutput) ToNotificationIntegrationArrayOutput() NotificationIntegrationArrayOutput

func (NotificationIntegrationArrayOutput) ToNotificationIntegrationArrayOutputWithContext

func (o NotificationIntegrationArrayOutput) ToNotificationIntegrationArrayOutputWithContext(ctx context.Context) NotificationIntegrationArrayOutput

type NotificationIntegrationInput

type NotificationIntegrationInput interface {
	pulumi.Input

	ToNotificationIntegrationOutput() NotificationIntegrationOutput
	ToNotificationIntegrationOutputWithContext(ctx context.Context) NotificationIntegrationOutput
}

type NotificationIntegrationMap

type NotificationIntegrationMap map[string]NotificationIntegrationInput

func (NotificationIntegrationMap) ElementType

func (NotificationIntegrationMap) ElementType() reflect.Type

func (NotificationIntegrationMap) ToNotificationIntegrationMapOutput

func (i NotificationIntegrationMap) ToNotificationIntegrationMapOutput() NotificationIntegrationMapOutput

func (NotificationIntegrationMap) ToNotificationIntegrationMapOutputWithContext

func (i NotificationIntegrationMap) ToNotificationIntegrationMapOutputWithContext(ctx context.Context) NotificationIntegrationMapOutput

type NotificationIntegrationMapInput

type NotificationIntegrationMapInput interface {
	pulumi.Input

	ToNotificationIntegrationMapOutput() NotificationIntegrationMapOutput
	ToNotificationIntegrationMapOutputWithContext(context.Context) NotificationIntegrationMapOutput
}

NotificationIntegrationMapInput is an input type that accepts NotificationIntegrationMap and NotificationIntegrationMapOutput values. You can construct a concrete instance of `NotificationIntegrationMapInput` via:

NotificationIntegrationMap{ "key": NotificationIntegrationArgs{...} }

type NotificationIntegrationMapOutput

type NotificationIntegrationMapOutput struct{ *pulumi.OutputState }

func (NotificationIntegrationMapOutput) ElementType

func (NotificationIntegrationMapOutput) MapIndex

func (NotificationIntegrationMapOutput) ToNotificationIntegrationMapOutput

func (o NotificationIntegrationMapOutput) ToNotificationIntegrationMapOutput() NotificationIntegrationMapOutput

func (NotificationIntegrationMapOutput) ToNotificationIntegrationMapOutputWithContext

func (o NotificationIntegrationMapOutput) ToNotificationIntegrationMapOutputWithContext(ctx context.Context) NotificationIntegrationMapOutput

type NotificationIntegrationOutput

type NotificationIntegrationOutput struct{ *pulumi.OutputState }

func (NotificationIntegrationOutput) AwsSnsExternalId added in v0.9.0

func (o NotificationIntegrationOutput) AwsSnsExternalId() pulumi.StringOutput

The external ID that Snowflake will use when assuming the AWS role

func (NotificationIntegrationOutput) AwsSnsIamUserArn added in v0.9.0

func (o NotificationIntegrationOutput) AwsSnsIamUserArn() pulumi.StringOutput

The Snowflake user that will attempt to assume the AWS role.

func (NotificationIntegrationOutput) AwsSnsRoleArn added in v0.9.0

AWS IAM role ARN for notification integration to assume

func (NotificationIntegrationOutput) AwsSnsTopicArn added in v0.9.0

AWS SNS Topic ARN for notification integration to connect to

func (NotificationIntegrationOutput) AwsSqsArn added in v0.9.0

AWS SQS queue ARN for notification integration to connect to

func (NotificationIntegrationOutput) AwsSqsExternalId added in v0.9.0

func (o NotificationIntegrationOutput) AwsSqsExternalId() pulumi.StringOutput

The external ID that Snowflake will use when assuming the AWS role

func (NotificationIntegrationOutput) AwsSqsIamUserArn added in v0.9.0

func (o NotificationIntegrationOutput) AwsSqsIamUserArn() pulumi.StringOutput

The Snowflake user that will attempt to assume the AWS role.

func (NotificationIntegrationOutput) AwsSqsRoleArn added in v0.9.0

AWS IAM role ARN for notification integration to assume

func (NotificationIntegrationOutput) AzureStorageQueuePrimaryUri added in v0.9.0

func (o NotificationIntegrationOutput) AzureStorageQueuePrimaryUri() pulumi.StringPtrOutput

The queue ID for the Azure Queue Storage queue created for Event Grid notifications

func (NotificationIntegrationOutput) AzureTenantId added in v0.9.0

The ID of the Azure Active Directory tenant used for identity management

func (NotificationIntegrationOutput) Comment added in v0.9.0

A comment for the integration

func (NotificationIntegrationOutput) CreatedOn added in v0.9.0

Date and time when the notification integration was created.

func (NotificationIntegrationOutput) Direction added in v0.9.0

Direction of the cloud messaging with respect to Snowflake (required only for error notifications)

func (NotificationIntegrationOutput) ElementType

func (NotificationIntegrationOutput) Enabled added in v0.9.0

func (NotificationIntegrationOutput) GcpPubsubServiceAccount added in v0.9.0

func (o NotificationIntegrationOutput) GcpPubsubServiceAccount() pulumi.StringOutput

The GCP service account identifier that Snowflake will use when assuming the GCP role

func (NotificationIntegrationOutput) GcpPubsubSubscriptionName added in v0.9.0

func (o NotificationIntegrationOutput) GcpPubsubSubscriptionName() pulumi.StringPtrOutput

The subscription id that Snowflake will listen to when using the GCP_PUBSUB provider.

func (NotificationIntegrationOutput) GcpPubsubTopicName added in v0.23.0

func (o NotificationIntegrationOutput) GcpPubsubTopicName() pulumi.StringPtrOutput

The topic id that Snowflake will use to push notifications.

func (NotificationIntegrationOutput) Name added in v0.9.0

func (NotificationIntegrationOutput) NotificationProvider added in v0.9.0

func (o NotificationIntegrationOutput) NotificationProvider() pulumi.StringPtrOutput

The third-party cloud message queuing service (e.g. AZURE*STORAGE*QUEUE, AWS*SQS, AWS*SNS)

func (NotificationIntegrationOutput) ToNotificationIntegrationOutput

func (o NotificationIntegrationOutput) ToNotificationIntegrationOutput() NotificationIntegrationOutput

func (NotificationIntegrationOutput) ToNotificationIntegrationOutputWithContext

func (o NotificationIntegrationOutput) ToNotificationIntegrationOutputWithContext(ctx context.Context) NotificationIntegrationOutput

func (NotificationIntegrationOutput) Type added in v0.9.0

A type of integration

type NotificationIntegrationState

type NotificationIntegrationState struct {
	// The external ID that Snowflake will use when assuming the AWS role
	AwsSnsExternalId pulumi.StringPtrInput
	// The Snowflake user that will attempt to assume the AWS role.
	AwsSnsIamUserArn pulumi.StringPtrInput
	// AWS IAM role ARN for notification integration to assume
	AwsSnsRoleArn pulumi.StringPtrInput
	// AWS SNS Topic ARN for notification integration to connect to
	AwsSnsTopicArn pulumi.StringPtrInput
	// AWS SQS queue ARN for notification integration to connect to
	AwsSqsArn pulumi.StringPtrInput
	// The external ID that Snowflake will use when assuming the AWS role
	AwsSqsExternalId pulumi.StringPtrInput
	// The Snowflake user that will attempt to assume the AWS role.
	AwsSqsIamUserArn pulumi.StringPtrInput
	// AWS IAM role ARN for notification integration to assume
	AwsSqsRoleArn pulumi.StringPtrInput
	// The queue ID for the Azure Queue Storage queue created for Event Grid notifications
	AzureStorageQueuePrimaryUri pulumi.StringPtrInput
	// The ID of the Azure Active Directory tenant used for identity management
	AzureTenantId pulumi.StringPtrInput
	// A comment for the integration
	Comment pulumi.StringPtrInput
	// Date and time when the notification integration was created.
	CreatedOn pulumi.StringPtrInput
	// Direction of the cloud messaging with respect to Snowflake (required only for error notifications)
	Direction pulumi.StringPtrInput
	Enabled   pulumi.BoolPtrInput
	// The GCP service account identifier that Snowflake will use when assuming the GCP role
	GcpPubsubServiceAccount pulumi.StringPtrInput
	// The subscription id that Snowflake will listen to when using the GCP_PUBSUB provider.
	GcpPubsubSubscriptionName pulumi.StringPtrInput
	// The topic id that Snowflake will use to push notifications.
	GcpPubsubTopicName pulumi.StringPtrInput
	Name               pulumi.StringPtrInput
	// The third-party cloud message queuing service (e.g. AZURE*STORAGE*QUEUE, AWS*SQS, AWS*SNS)
	NotificationProvider pulumi.StringPtrInput
	// A type of integration
	Type pulumi.StringPtrInput
}

func (NotificationIntegrationState) ElementType

type OauthIntegration added in v0.4.1

type OauthIntegration struct {
	pulumi.CustomResourceState

	// List of roles that a user cannot explicitly consent to using after authenticating. Do not include ACCOUNTADMIN, ORGADMIN or SECURITYADMIN as they are already implicitly enforced and will cause in-place updates.
	BlockedRolesLists pulumi.StringArrayOutput `pulumi:"blockedRolesLists"`
	// Specifies a comment for the OAuth integration.
	Comment pulumi.StringPtrOutput `pulumi:"comment"`
	// Date and time when the OAuth integration was created.
	CreatedOn pulumi.StringOutput `pulumi:"createdOn"`
	// Specifies whether this OAuth integration is enabled or disabled.
	Enabled pulumi.BoolPtrOutput `pulumi:"enabled"`
	// Specifies the name of the OAuth integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account.
	Name pulumi.StringOutput `pulumi:"name"`
	// Specifies the OAuth client type.
	OauthClient pulumi.StringOutput `pulumi:"oauthClient"`
	// Specifies the type of client being registered. Snowflake supports both confidential and public clients.
	OauthClientType pulumi.StringPtrOutput `pulumi:"oauthClientType"`
	// Specifies whether to allow the client to exchange a refresh token for an access token when the current access token has expired.
	OauthIssueRefreshTokens pulumi.BoolPtrOutput `pulumi:"oauthIssueRefreshTokens"`
	// Specifies the client URI. After a user is authenticated, the web browser is redirected to this URI.
	OauthRedirectUri pulumi.StringPtrOutput `pulumi:"oauthRedirectUri"`
	// Specifies how long refresh tokens should be valid (in seconds). OAUTH*ISSUE*REFRESH_TOKENS must be set to TRUE.
	OauthRefreshTokenValidity pulumi.IntPtrOutput `pulumi:"oauthRefreshTokenValidity"`
	// Specifies whether default secondary roles set in the user properties are activated by default in the session being opened.
	OauthUseSecondaryRoles pulumi.StringPtrOutput `pulumi:"oauthUseSecondaryRoles"`
}

## Example Usage

```go 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.NewOauthIntegration(ctx, "tableauDesktop", &snowflake.OauthIntegrationArgs{
			BlockedRolesLists: pulumi.StringArray{
				pulumi.String("SYSADMIN"),
			},
			Enabled:                   pulumi.Bool(true),
			OauthClient:               pulumi.String("TABLEAU_DESKTOP"),
			OauthIssueRefreshTokens:   pulumi.Bool(true),
			OauthRefreshTokenValidity: pulumi.Int(3600),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

```sh

$ pulumi import snowflake:index/oauthIntegration:OauthIntegration example name

```

func GetOauthIntegration added in v0.4.1

func GetOauthIntegration(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *OauthIntegrationState, opts ...pulumi.ResourceOption) (*OauthIntegration, error)

GetOauthIntegration gets an existing OauthIntegration resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewOauthIntegration added in v0.4.1

func NewOauthIntegration(ctx *pulumi.Context,
	name string, args *OauthIntegrationArgs, opts ...pulumi.ResourceOption) (*OauthIntegration, error)

NewOauthIntegration registers a new resource with the given unique name, arguments, and options.

func (*OauthIntegration) ElementType added in v0.4.1

func (*OauthIntegration) ElementType() reflect.Type

func (*OauthIntegration) ToOauthIntegrationOutput added in v0.4.1

func (i *OauthIntegration) ToOauthIntegrationOutput() OauthIntegrationOutput

func (*OauthIntegration) ToOauthIntegrationOutputWithContext added in v0.4.1

func (i *OauthIntegration) ToOauthIntegrationOutputWithContext(ctx context.Context) OauthIntegrationOutput

type OauthIntegrationArgs added in v0.4.1

type OauthIntegrationArgs struct {
	// List of roles that a user cannot explicitly consent to using after authenticating. Do not include ACCOUNTADMIN, ORGADMIN or SECURITYADMIN as they are already implicitly enforced and will cause in-place updates.
	BlockedRolesLists pulumi.StringArrayInput
	// Specifies a comment for the OAuth integration.
	Comment pulumi.StringPtrInput
	// Specifies whether this OAuth integration is enabled or disabled.
	Enabled pulumi.BoolPtrInput
	// Specifies the name of the OAuth integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account.
	Name pulumi.StringPtrInput
	// Specifies the OAuth client type.
	OauthClient pulumi.StringInput
	// Specifies the type of client being registered. Snowflake supports both confidential and public clients.
	OauthClientType pulumi.StringPtrInput
	// Specifies whether to allow the client to exchange a refresh token for an access token when the current access token has expired.
	OauthIssueRefreshTokens pulumi.BoolPtrInput
	// Specifies the client URI. After a user is authenticated, the web browser is redirected to this URI.
	OauthRedirectUri pulumi.StringPtrInput
	// Specifies how long refresh tokens should be valid (in seconds). OAUTH*ISSUE*REFRESH_TOKENS must be set to TRUE.
	OauthRefreshTokenValidity pulumi.IntPtrInput
	// Specifies whether default secondary roles set in the user properties are activated by default in the session being opened.
	OauthUseSecondaryRoles pulumi.StringPtrInput
}

The set of arguments for constructing a OauthIntegration resource.

func (OauthIntegrationArgs) ElementType added in v0.4.1

func (OauthIntegrationArgs) ElementType() reflect.Type

type OauthIntegrationArray added in v0.4.1

type OauthIntegrationArray []OauthIntegrationInput

func (OauthIntegrationArray) ElementType added in v0.4.1

func (OauthIntegrationArray) ElementType() reflect.Type

func (OauthIntegrationArray) ToOauthIntegrationArrayOutput added in v0.4.1

func (i OauthIntegrationArray) ToOauthIntegrationArrayOutput() OauthIntegrationArrayOutput

func (OauthIntegrationArray) ToOauthIntegrationArrayOutputWithContext added in v0.4.1

func (i OauthIntegrationArray) ToOauthIntegrationArrayOutputWithContext(ctx context.Context) OauthIntegrationArrayOutput

type OauthIntegrationArrayInput added in v0.4.1

type OauthIntegrationArrayInput interface {
	pulumi.Input

	ToOauthIntegrationArrayOutput() OauthIntegrationArrayOutput
	ToOauthIntegrationArrayOutputWithContext(context.Context) OauthIntegrationArrayOutput
}

OauthIntegrationArrayInput is an input type that accepts OauthIntegrationArray and OauthIntegrationArrayOutput values. You can construct a concrete instance of `OauthIntegrationArrayInput` via:

OauthIntegrationArray{ OauthIntegrationArgs{...} }

type OauthIntegrationArrayOutput added in v0.4.1

type OauthIntegrationArrayOutput struct{ *pulumi.OutputState }

func (OauthIntegrationArrayOutput) ElementType added in v0.4.1

func (OauthIntegrationArrayOutput) Index added in v0.4.1

func (OauthIntegrationArrayOutput) ToOauthIntegrationArrayOutput added in v0.4.1

func (o OauthIntegrationArrayOutput) ToOauthIntegrationArrayOutput() OauthIntegrationArrayOutput

func (OauthIntegrationArrayOutput) ToOauthIntegrationArrayOutputWithContext added in v0.4.1

func (o OauthIntegrationArrayOutput) ToOauthIntegrationArrayOutputWithContext(ctx context.Context) OauthIntegrationArrayOutput

type OauthIntegrationInput added in v0.4.1

type OauthIntegrationInput interface {
	pulumi.Input

	ToOauthIntegrationOutput() OauthIntegrationOutput
	ToOauthIntegrationOutputWithContext(ctx context.Context) OauthIntegrationOutput
}

type OauthIntegrationMap added in v0.4.1

type OauthIntegrationMap map[string]OauthIntegrationInput

func (OauthIntegrationMap) ElementType added in v0.4.1

func (OauthIntegrationMap) ElementType() reflect.Type

func (OauthIntegrationMap) ToOauthIntegrationMapOutput added in v0.4.1

func (i OauthIntegrationMap) ToOauthIntegrationMapOutput() OauthIntegrationMapOutput

func (OauthIntegrationMap) ToOauthIntegrationMapOutputWithContext added in v0.4.1

func (i OauthIntegrationMap) ToOauthIntegrationMapOutputWithContext(ctx context.Context) OauthIntegrationMapOutput

type OauthIntegrationMapInput added in v0.4.1

type OauthIntegrationMapInput interface {
	pulumi.Input

	ToOauthIntegrationMapOutput() OauthIntegrationMapOutput
	ToOauthIntegrationMapOutputWithContext(context.Context) OauthIntegrationMapOutput
}

OauthIntegrationMapInput is an input type that accepts OauthIntegrationMap and OauthIntegrationMapOutput values. You can construct a concrete instance of `OauthIntegrationMapInput` via:

OauthIntegrationMap{ "key": OauthIntegrationArgs{...} }

type OauthIntegrationMapOutput added in v0.4.1

type OauthIntegrationMapOutput struct{ *pulumi.OutputState }

func (OauthIntegrationMapOutput) ElementType added in v0.4.1

func (OauthIntegrationMapOutput) ElementType() reflect.Type

func (OauthIntegrationMapOutput) MapIndex added in v0.4.1

func (OauthIntegrationMapOutput) ToOauthIntegrationMapOutput added in v0.4.1

func (o OauthIntegrationMapOutput) ToOauthIntegrationMapOutput() OauthIntegrationMapOutput

func (OauthIntegrationMapOutput) ToOauthIntegrationMapOutputWithContext added in v0.4.1

func (o OauthIntegrationMapOutput) ToOauthIntegrationMapOutputWithContext(ctx context.Context) OauthIntegrationMapOutput

type OauthIntegrationOutput added in v0.4.1

type OauthIntegrationOutput struct{ *pulumi.OutputState }

func (OauthIntegrationOutput) BlockedRolesLists added in v0.9.0

func (o OauthIntegrationOutput) BlockedRolesLists() pulumi.StringArrayOutput

List of roles that a user cannot explicitly consent to using after authenticating. Do not include ACCOUNTADMIN, ORGADMIN or SECURITYADMIN as they are already implicitly enforced and will cause in-place updates.

func (OauthIntegrationOutput) Comment added in v0.9.0

Specifies a comment for the OAuth integration.

func (OauthIntegrationOutput) CreatedOn added in v0.9.0

Date and time when the OAuth integration was created.

func (OauthIntegrationOutput) ElementType added in v0.4.1

func (OauthIntegrationOutput) ElementType() reflect.Type

func (OauthIntegrationOutput) Enabled added in v0.9.0

Specifies whether this OAuth integration is enabled or disabled.

func (OauthIntegrationOutput) Name added in v0.9.0

Specifies the name of the OAuth integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account.

func (OauthIntegrationOutput) OauthClient added in v0.9.0

func (o OauthIntegrationOutput) OauthClient() pulumi.StringOutput

Specifies the OAuth client type.

func (OauthIntegrationOutput) OauthClientType added in v0.19.0

func (o OauthIntegrationOutput) OauthClientType() pulumi.StringPtrOutput

Specifies the type of client being registered. Snowflake supports both confidential and public clients.

func (OauthIntegrationOutput) OauthIssueRefreshTokens added in v0.9.0

func (o OauthIntegrationOutput) OauthIssueRefreshTokens() pulumi.BoolPtrOutput

Specifies whether to allow the client to exchange a refresh token for an access token when the current access token has expired.

func (OauthIntegrationOutput) OauthRedirectUri added in v0.15.0

func (o OauthIntegrationOutput) OauthRedirectUri() pulumi.StringPtrOutput

Specifies the client URI. After a user is authenticated, the web browser is redirected to this URI.

func (OauthIntegrationOutput) OauthRefreshTokenValidity added in v0.9.0

func (o OauthIntegrationOutput) OauthRefreshTokenValidity() pulumi.IntPtrOutput

Specifies how long refresh tokens should be valid (in seconds). OAUTH*ISSUE*REFRESH_TOKENS must be set to TRUE.

func (OauthIntegrationOutput) OauthUseSecondaryRoles added in v0.9.0

func (o OauthIntegrationOutput) OauthUseSecondaryRoles() pulumi.StringPtrOutput

Specifies whether default secondary roles set in the user properties are activated by default in the session being opened.

func (OauthIntegrationOutput) ToOauthIntegrationOutput added in v0.4.1

func (o OauthIntegrationOutput) ToOauthIntegrationOutput() OauthIntegrationOutput

func (OauthIntegrationOutput) ToOauthIntegrationOutputWithContext added in v0.4.1

func (o OauthIntegrationOutput) ToOauthIntegrationOutputWithContext(ctx context.Context) OauthIntegrationOutput

type OauthIntegrationState added in v0.4.1

type OauthIntegrationState struct {
	// List of roles that a user cannot explicitly consent to using after authenticating. Do not include ACCOUNTADMIN, ORGADMIN or SECURITYADMIN as they are already implicitly enforced and will cause in-place updates.
	BlockedRolesLists pulumi.StringArrayInput
	// Specifies a comment for the OAuth integration.
	Comment pulumi.StringPtrInput
	// Date and time when the OAuth integration was created.
	CreatedOn pulumi.StringPtrInput
	// Specifies whether this OAuth integration is enabled or disabled.
	Enabled pulumi.BoolPtrInput
	// Specifies the name of the OAuth integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account.
	Name pulumi.StringPtrInput
	// Specifies the OAuth client type.
	OauthClient pulumi.StringPtrInput
	// Specifies the type of client being registered. Snowflake supports both confidential and public clients.
	OauthClientType pulumi.StringPtrInput
	// Specifies whether to allow the client to exchange a refresh token for an access token when the current access token has expired.
	OauthIssueRefreshTokens pulumi.BoolPtrInput
	// Specifies the client URI. After a user is authenticated, the web browser is redirected to this URI.
	OauthRedirectUri pulumi.StringPtrInput
	// Specifies how long refresh tokens should be valid (in seconds). OAUTH*ISSUE*REFRESH_TOKENS must be set to TRUE.
	OauthRefreshTokenValidity pulumi.IntPtrInput
	// Specifies whether default secondary roles set in the user properties are activated by default in the session being opened.
	OauthUseSecondaryRoles pulumi.StringPtrInput
}

func (OauthIntegrationState) ElementType added in v0.4.1

func (OauthIntegrationState) ElementType() reflect.Type

type ObjectParameter added in v0.16.0

type ObjectParameter struct {
	pulumi.CustomResourceState

	// Name of object parameter. Valid values are those in [object parameters](https://docs.snowflake.com/en/sql-reference/parameters.html#object-parameters).
	Key pulumi.StringOutput `pulumi:"key"`
	// Specifies the object identifier for the object parameter. If no value is provided, then the resource will default to setting the object parameter at account level.
	ObjectIdentifiers ObjectParameterObjectIdentifierArrayOutput `pulumi:"objectIdentifiers"`
	// Type of object to which the parameter applies. Valid values are those in [object types](https://docs.snowflake.com/en/sql-reference/parameters.html#object-types). If no value is provided, then the resource will default to setting the object parameter at account level.
	ObjectType pulumi.StringPtrOutput `pulumi:"objectType"`
	// If true, the object parameter will be set on the account level.
	OnAccount pulumi.BoolPtrOutput `pulumi:"onAccount"`
	// Value of object parameter, as a string. Constraints are the same as those for the parameters in Snowflake documentation.
	Value pulumi.StringOutput `pulumi:"value"`
}

## Example Usage

```go 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 {
		database, err := snowflake.NewDatabase(ctx, "database", nil)
		if err != nil {
			return err
		}
		_, err = snowflake.NewObjectParameter(ctx, "objectParameter", &snowflake.ObjectParameterArgs{
			Key:        pulumi.String("SUSPEND_TASK_AFTER_NUM_FAILURES"),
			Value:      pulumi.String("33"),
			ObjectType: pulumi.String("DATABASE"),
			ObjectIdentifiers: snowflake.ObjectParameterObjectIdentifierArray{
				&snowflake.ObjectParameterObjectIdentifierArgs{
					Name: database.Name,
				},
			},
		})
		if err != nil {
			return err
		}
		schema, err := snowflake.NewSchema(ctx, "schema", &snowflake.SchemaArgs{
			Database: database.Name,
		})
		if err != nil {
			return err
		}
		_, err = snowflake.NewObjectParameter(ctx, "o2", &snowflake.ObjectParameterArgs{
			Key:        pulumi.String("USER_TASK_TIMEOUT_MS"),
			Value:      pulumi.String("500"),
			ObjectType: pulumi.String("SCHEMA"),
			ObjectIdentifiers: snowflake.ObjectParameterObjectIdentifierArray{
				&snowflake.ObjectParameterObjectIdentifierArgs{
					Database: database.Name,
					Name:     schema.Name,
				},
			},
		})
		if err != nil {
			return err
		}
		table, err := snowflake.NewTable(ctx, "table", &snowflake.TableArgs{
			Database: database.Name,
			Schema:   schema.Name,
			Columns: snowflake.TableColumnArray{
				&snowflake.TableColumnArgs{
					Name: pulumi.String("id"),
					Type: pulumi.String("NUMBER"),
				},
			},
		})
		if err != nil {
			return err
		}
		_, err = snowflake.NewObjectParameter(ctx, "o3", &snowflake.ObjectParameterArgs{
			Key:        pulumi.String("DATA_RETENTION_TIME_IN_DAYS"),
			Value:      pulumi.String("89"),
			ObjectType: pulumi.String("TABLE"),
			ObjectIdentifiers: snowflake.ObjectParameterObjectIdentifierArray{
				&snowflake.ObjectParameterObjectIdentifierArgs{
					Database: database.Name,
					Schema:   schema.Name,
					Name:     table.Name,
				},
			},
		})
		if err != nil {
			return err
		}
		_, err = snowflake.NewObjectParameter(ctx, "o4", &snowflake.ObjectParameterArgs{
			Key:       pulumi.String("DATA_RETENTION_TIME_IN_DAYS"),
			Value:     pulumi.String("89"),
			OnAccount: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

```sh

$ pulumi import snowflake:index/objectParameter:ObjectParameter s <key>❄️<object_type>❄️<object_identifier>

```

func GetObjectParameter added in v0.16.0

func GetObjectParameter(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ObjectParameterState, opts ...pulumi.ResourceOption) (*ObjectParameter, error)

GetObjectParameter gets an existing ObjectParameter resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewObjectParameter added in v0.16.0

func NewObjectParameter(ctx *pulumi.Context,
	name string, args *ObjectParameterArgs, opts ...pulumi.ResourceOption) (*ObjectParameter, error)

NewObjectParameter registers a new resource with the given unique name, arguments, and options.

func (*ObjectParameter) ElementType added in v0.16.0

func (*ObjectParameter) ElementType() reflect.Type

func (*ObjectParameter) ToObjectParameterOutput added in v0.16.0

func (i *ObjectParameter) ToObjectParameterOutput() ObjectParameterOutput

func (*ObjectParameter) ToObjectParameterOutputWithContext added in v0.16.0

func (i *ObjectParameter) ToObjectParameterOutputWithContext(ctx context.Context) ObjectParameterOutput

type ObjectParameterArgs added in v0.16.0

type ObjectParameterArgs struct {
	// Name of object parameter. Valid values are those in [object parameters](https://docs.snowflake.com/en/sql-reference/parameters.html#object-parameters).
	Key pulumi.StringInput
	// Specifies the object identifier for the object parameter. If no value is provided, then the resource will default to setting the object parameter at account level.
	ObjectIdentifiers ObjectParameterObjectIdentifierArrayInput
	// Type of object to which the parameter applies. Valid values are those in [object types](https://docs.snowflake.com/en/sql-reference/parameters.html#object-types). If no value is provided, then the resource will default to setting the object parameter at account level.
	ObjectType pulumi.StringPtrInput
	// If true, the object parameter will be set on the account level.
	OnAccount pulumi.BoolPtrInput
	// Value of object parameter, as a string. Constraints are the same as those for the parameters in Snowflake documentation.
	Value pulumi.StringInput
}

The set of arguments for constructing a ObjectParameter resource.

func (ObjectParameterArgs) ElementType added in v0.16.0

func (ObjectParameterArgs) ElementType() reflect.Type

type ObjectParameterArray added in v0.16.0

type ObjectParameterArray []ObjectParameterInput

func (ObjectParameterArray) ElementType added in v0.16.0

func (ObjectParameterArray) ElementType() reflect.Type

func (ObjectParameterArray) ToObjectParameterArrayOutput added in v0.16.0

func (i ObjectParameterArray) ToObjectParameterArrayOutput() ObjectParameterArrayOutput

func (ObjectParameterArray) ToObjectParameterArrayOutputWithContext added in v0.16.0

func (i ObjectParameterArray) ToObjectParameterArrayOutputWithContext(ctx context.Context) ObjectParameterArrayOutput

type ObjectParameterArrayInput added in v0.16.0

type ObjectParameterArrayInput interface {
	pulumi.Input

	ToObjectParameterArrayOutput() ObjectParameterArrayOutput
	ToObjectParameterArrayOutputWithContext(context.Context) ObjectParameterArrayOutput
}

ObjectParameterArrayInput is an input type that accepts ObjectParameterArray and ObjectParameterArrayOutput values. You can construct a concrete instance of `ObjectParameterArrayInput` via:

ObjectParameterArray{ ObjectParameterArgs{...} }

type ObjectParameterArrayOutput added in v0.16.0

type ObjectParameterArrayOutput struct{ *pulumi.OutputState }

func (ObjectParameterArrayOutput) ElementType added in v0.16.0

func (ObjectParameterArrayOutput) ElementType() reflect.Type

func (ObjectParameterArrayOutput) Index added in v0.16.0

func (ObjectParameterArrayOutput) ToObjectParameterArrayOutput added in v0.16.0

func (o ObjectParameterArrayOutput) ToObjectParameterArrayOutput() ObjectParameterArrayOutput

func (ObjectParameterArrayOutput) ToObjectParameterArrayOutputWithContext added in v0.16.0

func (o ObjectParameterArrayOutput) ToObjectParameterArrayOutputWithContext(ctx context.Context) ObjectParameterArrayOutput

type ObjectParameterInput added in v0.16.0

type ObjectParameterInput interface {
	pulumi.Input

	ToObjectParameterOutput() ObjectParameterOutput
	ToObjectParameterOutputWithContext(ctx context.Context) ObjectParameterOutput
}

type ObjectParameterMap added in v0.16.0

type ObjectParameterMap map[string]ObjectParameterInput

func (ObjectParameterMap) ElementType added in v0.16.0

func (ObjectParameterMap) ElementType() reflect.Type

func (ObjectParameterMap) ToObjectParameterMapOutput added in v0.16.0

func (i ObjectParameterMap) ToObjectParameterMapOutput() ObjectParameterMapOutput

func (ObjectParameterMap) ToObjectParameterMapOutputWithContext added in v0.16.0

func (i ObjectParameterMap) ToObjectParameterMapOutputWithContext(ctx context.Context) ObjectParameterMapOutput

type ObjectParameterMapInput added in v0.16.0

type ObjectParameterMapInput interface {
	pulumi.Input

	ToObjectParameterMapOutput() ObjectParameterMapOutput
	ToObjectParameterMapOutputWithContext(context.Context) ObjectParameterMapOutput
}

ObjectParameterMapInput is an input type that accepts ObjectParameterMap and ObjectParameterMapOutput values. You can construct a concrete instance of `ObjectParameterMapInput` via:

ObjectParameterMap{ "key": ObjectParameterArgs{...} }

type ObjectParameterMapOutput added in v0.16.0

type ObjectParameterMapOutput struct{ *pulumi.OutputState }

func (ObjectParameterMapOutput) ElementType added in v0.16.0

func (ObjectParameterMapOutput) ElementType() reflect.Type

func (ObjectParameterMapOutput) MapIndex added in v0.16.0

func (ObjectParameterMapOutput) ToObjectParameterMapOutput added in v0.16.0

func (o ObjectParameterMapOutput) ToObjectParameterMapOutput() ObjectParameterMapOutput

func (ObjectParameterMapOutput) ToObjectParameterMapOutputWithContext added in v0.16.0

func (o ObjectParameterMapOutput) ToObjectParameterMapOutputWithContext(ctx context.Context) ObjectParameterMapOutput

type ObjectParameterObjectIdentifier added in v0.16.0

type ObjectParameterObjectIdentifier struct {
	// Name of the database that the object was created in.
	Database *string `pulumi:"database"`
	// Name of the object to set the parameter for.
	Name string `pulumi:"name"`
	// Name of the schema that the object was created in.
	Schema *string `pulumi:"schema"`
}

type ObjectParameterObjectIdentifierArgs added in v0.16.0

type ObjectParameterObjectIdentifierArgs struct {
	// Name of the database that the object was created in.
	Database pulumi.StringPtrInput `pulumi:"database"`
	// Name of the object to set the parameter for.
	Name pulumi.StringInput `pulumi:"name"`
	// Name of the schema that the object was created in.
	Schema pulumi.StringPtrInput `pulumi:"schema"`
}

func (ObjectParameterObjectIdentifierArgs) ElementType added in v0.16.0

func (ObjectParameterObjectIdentifierArgs) ToObjectParameterObjectIdentifierOutput added in v0.16.0

func (i ObjectParameterObjectIdentifierArgs) ToObjectParameterObjectIdentifierOutput() ObjectParameterObjectIdentifierOutput

func (ObjectParameterObjectIdentifierArgs) ToObjectParameterObjectIdentifierOutputWithContext added in v0.16.0

func (i ObjectParameterObjectIdentifierArgs) ToObjectParameterObjectIdentifierOutputWithContext(ctx context.Context) ObjectParameterObjectIdentifierOutput

type ObjectParameterObjectIdentifierArray added in v0.16.0

type ObjectParameterObjectIdentifierArray []ObjectParameterObjectIdentifierInput

func (ObjectParameterObjectIdentifierArray) ElementType added in v0.16.0

func (ObjectParameterObjectIdentifierArray) ToObjectParameterObjectIdentifierArrayOutput added in v0.16.0

func (i ObjectParameterObjectIdentifierArray) ToObjectParameterObjectIdentifierArrayOutput() ObjectParameterObjectIdentifierArrayOutput

func (ObjectParameterObjectIdentifierArray) ToObjectParameterObjectIdentifierArrayOutputWithContext added in v0.16.0

func (i ObjectParameterObjectIdentifierArray) ToObjectParameterObjectIdentifierArrayOutputWithContext(ctx context.Context) ObjectParameterObjectIdentifierArrayOutput

type ObjectParameterObjectIdentifierArrayInput added in v0.16.0

type ObjectParameterObjectIdentifierArrayInput interface {
	pulumi.Input

	ToObjectParameterObjectIdentifierArrayOutput() ObjectParameterObjectIdentifierArrayOutput
	ToObjectParameterObjectIdentifierArrayOutputWithContext(context.Context) ObjectParameterObjectIdentifierArrayOutput
}

ObjectParameterObjectIdentifierArrayInput is an input type that accepts ObjectParameterObjectIdentifierArray and ObjectParameterObjectIdentifierArrayOutput values. You can construct a concrete instance of `ObjectParameterObjectIdentifierArrayInput` via:

ObjectParameterObjectIdentifierArray{ ObjectParameterObjectIdentifierArgs{...} }

type ObjectParameterObjectIdentifierArrayOutput added in v0.16.0

type ObjectParameterObjectIdentifierArrayOutput struct{ *pulumi.OutputState }

func (ObjectParameterObjectIdentifierArrayOutput) ElementType added in v0.16.0

func (ObjectParameterObjectIdentifierArrayOutput) Index added in v0.16.0

func (ObjectParameterObjectIdentifierArrayOutput) ToObjectParameterObjectIdentifierArrayOutput added in v0.16.0

func (o ObjectParameterObjectIdentifierArrayOutput) ToObjectParameterObjectIdentifierArrayOutput() ObjectParameterObjectIdentifierArrayOutput

func (ObjectParameterObjectIdentifierArrayOutput) ToObjectParameterObjectIdentifierArrayOutputWithContext added in v0.16.0

func (o ObjectParameterObjectIdentifierArrayOutput) ToObjectParameterObjectIdentifierArrayOutputWithContext(ctx context.Context) ObjectParameterObjectIdentifierArrayOutput

type ObjectParameterObjectIdentifierInput added in v0.16.0

type ObjectParameterObjectIdentifierInput interface {
	pulumi.Input

	ToObjectParameterObjectIdentifierOutput() ObjectParameterObjectIdentifierOutput
	ToObjectParameterObjectIdentifierOutputWithContext(context.Context) ObjectParameterObjectIdentifierOutput
}

ObjectParameterObjectIdentifierInput is an input type that accepts ObjectParameterObjectIdentifierArgs and ObjectParameterObjectIdentifierOutput values. You can construct a concrete instance of `ObjectParameterObjectIdentifierInput` via:

ObjectParameterObjectIdentifierArgs{...}

type ObjectParameterObjectIdentifierOutput added in v0.16.0

type ObjectParameterObjectIdentifierOutput struct{ *pulumi.OutputState }

func (ObjectParameterObjectIdentifierOutput) Database added in v0.16.0

Name of the database that the object was created in.

func (ObjectParameterObjectIdentifierOutput) ElementType added in v0.16.0

func (ObjectParameterObjectIdentifierOutput) Name added in v0.16.0

Name of the object to set the parameter for.

func (ObjectParameterObjectIdentifierOutput) Schema added in v0.16.0

Name of the schema that the object was created in.

func (ObjectParameterObjectIdentifierOutput) ToObjectParameterObjectIdentifierOutput added in v0.16.0

func (o ObjectParameterObjectIdentifierOutput) ToObjectParameterObjectIdentifierOutput() ObjectParameterObjectIdentifierOutput

func (ObjectParameterObjectIdentifierOutput) ToObjectParameterObjectIdentifierOutputWithContext added in v0.16.0

func (o ObjectParameterObjectIdentifierOutput) ToObjectParameterObjectIdentifierOutputWithContext(ctx context.Context) ObjectParameterObjectIdentifierOutput

type ObjectParameterOutput added in v0.16.0

type ObjectParameterOutput struct{ *pulumi.OutputState }

func (ObjectParameterOutput) ElementType added in v0.16.0

func (ObjectParameterOutput) ElementType() reflect.Type

func (ObjectParameterOutput) Key added in v0.16.0

Name of object parameter. Valid values are those in [object parameters](https://docs.snowflake.com/en/sql-reference/parameters.html#object-parameters).

func (ObjectParameterOutput) ObjectIdentifiers added in v0.16.0

Specifies the object identifier for the object parameter. If no value is provided, then the resource will default to setting the object parameter at account level.

func (ObjectParameterOutput) ObjectType added in v0.16.0

Type of object to which the parameter applies. Valid values are those in [object types](https://docs.snowflake.com/en/sql-reference/parameters.html#object-types). If no value is provided, then the resource will default to setting the object parameter at account level.

func (ObjectParameterOutput) OnAccount added in v0.21.0

If true, the object parameter will be set on the account level.

func (ObjectParameterOutput) ToObjectParameterOutput added in v0.16.0

func (o ObjectParameterOutput) ToObjectParameterOutput() ObjectParameterOutput

func (ObjectParameterOutput) ToObjectParameterOutputWithContext added in v0.16.0

func (o ObjectParameterOutput) ToObjectParameterOutputWithContext(ctx context.Context) ObjectParameterOutput

func (ObjectParameterOutput) Value added in v0.16.0

Value of object parameter, as a string. Constraints are the same as those for the parameters in Snowflake documentation.

type ObjectParameterState added in v0.16.0

type ObjectParameterState struct {
	// Name of object parameter. Valid values are those in [object parameters](https://docs.snowflake.com/en/sql-reference/parameters.html#object-parameters).
	Key pulumi.StringPtrInput
	// Specifies the object identifier for the object parameter. If no value is provided, then the resource will default to setting the object parameter at account level.
	ObjectIdentifiers ObjectParameterObjectIdentifierArrayInput
	// Type of object to which the parameter applies. Valid values are those in [object types](https://docs.snowflake.com/en/sql-reference/parameters.html#object-types). If no value is provided, then the resource will default to setting the object parameter at account level.
	ObjectType pulumi.StringPtrInput
	// If true, the object parameter will be set on the account level.
	OnAccount pulumi.BoolPtrInput
	// Value of object parameter, as a string. Constraints are the same as those for the parameters in Snowflake documentation.
	Value pulumi.StringPtrInput
}

func (ObjectParameterState) ElementType added in v0.16.0

func (ObjectParameterState) ElementType() reflect.Type

type PasswordPolicy added in v0.23.0

type PasswordPolicy struct {
	pulumi.CustomResourceState

	// Adds a comment or overwrites an existing comment for the password policy.
	Comment pulumi.StringPtrOutput `pulumi:"comment"`
	// The database this password policy belongs to.
	Database pulumi.StringOutput `pulumi:"database"`
	// Prevent overwriting a previous password policy with the same name.
	IfNotExists pulumi.BoolPtrOutput `pulumi:"ifNotExists"`
	// Specifies the number of minutes the user account will be locked after exhausting the designated number of password retries (i.e. PASSWORD*MAX*RETRIES). Supported range: 1 to 999, inclusive. Default: 15
	LockoutTimeMins pulumi.IntPtrOutput `pulumi:"lockoutTimeMins"`
	// Specifies the maximum number of days before the password must be changed. Supported range: 0 to 999, inclusive. A value of zero (i.e. 0) indicates that the password does not need to be changed. Snowflake does not recommend choosing this value for a default account-level password policy or for any user-level policy. Instead, choose a value that meets your internal security guidelines. Default: 90, which means the password must be changed every 90 days.
	MaxAgeDays pulumi.IntPtrOutput `pulumi:"maxAgeDays"`
	// Specifies the maximum number of characters the password must contain. This number must be greater than or equal to the sum of PASSWORD*MIN*LENGTH, PASSWORD*MIN*UPPER*CASE*CHARS, and PASSWORD*MIN*LOWER*CASE*CHARS. Supported range: 8 to 256, inclusive. Default: 256
	MaxLength pulumi.IntPtrOutput `pulumi:"maxLength"`
	// Specifies the maximum number of attempts to enter a password before being locked out. Supported range: 1 to 10, inclusive. Default: 5
	MaxRetries pulumi.IntPtrOutput `pulumi:"maxRetries"`
	// Specifies the minimum number of characters the password must contain. Supported range: 8 to 256, inclusive. Default: 8
	MinLength pulumi.IntPtrOutput `pulumi:"minLength"`
	// Specifies the minimum number of lowercase characters the password must contain. Supported range: 0 to 256, inclusive. Default: 1
	MinLowerCaseChars pulumi.IntPtrOutput `pulumi:"minLowerCaseChars"`
	// Specifies the minimum number of numeric characters the password must contain. Supported range: 0 to 256, inclusive. Default: 1
	MinNumericChars pulumi.IntPtrOutput `pulumi:"minNumericChars"`
	// Specifies the minimum number of special characters the password must contain. Supported range: 0 to 256, inclusive. Default: 1
	MinSpecialChars pulumi.IntPtrOutput `pulumi:"minSpecialChars"`
	// Specifies the minimum number of uppercase characters the password must contain. Supported range: 0 to 256, inclusive. Default: 1
	MinUpperCaseChars pulumi.IntPtrOutput `pulumi:"minUpperCaseChars"`
	// Identifier for the password policy; must be unique for your account.
	Name pulumi.StringOutput `pulumi:"name"`
	// Whether to override a previous password policy with the same name.
	OrReplace pulumi.BoolPtrOutput `pulumi:"orReplace"`
	// The qualified name for the password policy.
	QualifiedName pulumi.StringOutput `pulumi:"qualifiedName"`
	// The schema this password policy belongs to.
	Schema pulumi.StringOutput `pulumi:"schema"`
}

A password policy specifies the requirements that must be met to create and reset a password to authenticate to Snowflake.

func GetPasswordPolicy added in v0.23.0

func GetPasswordPolicy(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *PasswordPolicyState, opts ...pulumi.ResourceOption) (*PasswordPolicy, error)

GetPasswordPolicy gets an existing PasswordPolicy resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewPasswordPolicy added in v0.23.0

func NewPasswordPolicy(ctx *pulumi.Context,
	name string, args *PasswordPolicyArgs, opts ...pulumi.ResourceOption) (*PasswordPolicy, error)

NewPasswordPolicy registers a new resource with the given unique name, arguments, and options.

func (*PasswordPolicy) ElementType added in v0.23.0

func (*PasswordPolicy) ElementType() reflect.Type

func (*PasswordPolicy) ToPasswordPolicyOutput added in v0.23.0

func (i *PasswordPolicy) ToPasswordPolicyOutput() PasswordPolicyOutput

func (*PasswordPolicy) ToPasswordPolicyOutputWithContext added in v0.23.0

func (i *PasswordPolicy) ToPasswordPolicyOutputWithContext(ctx context.Context) PasswordPolicyOutput

type PasswordPolicyArgs added in v0.23.0

type PasswordPolicyArgs struct {
	// Adds a comment or overwrites an existing comment for the password policy.
	Comment pulumi.StringPtrInput
	// The database this password policy belongs to.
	Database pulumi.StringInput
	// Prevent overwriting a previous password policy with the same name.
	IfNotExists pulumi.BoolPtrInput
	// Specifies the number of minutes the user account will be locked after exhausting the designated number of password retries (i.e. PASSWORD*MAX*RETRIES). Supported range: 1 to 999, inclusive. Default: 15
	LockoutTimeMins pulumi.IntPtrInput
	// Specifies the maximum number of days before the password must be changed. Supported range: 0 to 999, inclusive. A value of zero (i.e. 0) indicates that the password does not need to be changed. Snowflake does not recommend choosing this value for a default account-level password policy or for any user-level policy. Instead, choose a value that meets your internal security guidelines. Default: 90, which means the password must be changed every 90 days.
	MaxAgeDays pulumi.IntPtrInput
	// Specifies the maximum number of characters the password must contain. This number must be greater than or equal to the sum of PASSWORD*MIN*LENGTH, PASSWORD*MIN*UPPER*CASE*CHARS, and PASSWORD*MIN*LOWER*CASE*CHARS. Supported range: 8 to 256, inclusive. Default: 256
	MaxLength pulumi.IntPtrInput
	// Specifies the maximum number of attempts to enter a password before being locked out. Supported range: 1 to 10, inclusive. Default: 5
	MaxRetries pulumi.IntPtrInput
	// Specifies the minimum number of characters the password must contain. Supported range: 8 to 256, inclusive. Default: 8
	MinLength pulumi.IntPtrInput
	// Specifies the minimum number of lowercase characters the password must contain. Supported range: 0 to 256, inclusive. Default: 1
	MinLowerCaseChars pulumi.IntPtrInput
	// Specifies the minimum number of numeric characters the password must contain. Supported range: 0 to 256, inclusive. Default: 1
	MinNumericChars pulumi.IntPtrInput
	// Specifies the minimum number of special characters the password must contain. Supported range: 0 to 256, inclusive. Default: 1
	MinSpecialChars pulumi.IntPtrInput
	// Specifies the minimum number of uppercase characters the password must contain. Supported range: 0 to 256, inclusive. Default: 1
	MinUpperCaseChars pulumi.IntPtrInput
	// Identifier for the password policy; must be unique for your account.
	Name pulumi.StringPtrInput
	// Whether to override a previous password policy with the same name.
	OrReplace pulumi.BoolPtrInput
	// The schema this password policy belongs to.
	Schema pulumi.StringInput
}

The set of arguments for constructing a PasswordPolicy resource.

func (PasswordPolicyArgs) ElementType added in v0.23.0

func (PasswordPolicyArgs) ElementType() reflect.Type

type PasswordPolicyArray added in v0.23.0

type PasswordPolicyArray []PasswordPolicyInput

func (PasswordPolicyArray) ElementType added in v0.23.0

func (PasswordPolicyArray) ElementType() reflect.Type

func (PasswordPolicyArray) ToPasswordPolicyArrayOutput added in v0.23.0

func (i PasswordPolicyArray) ToPasswordPolicyArrayOutput() PasswordPolicyArrayOutput

func (PasswordPolicyArray) ToPasswordPolicyArrayOutputWithContext added in v0.23.0

func (i PasswordPolicyArray) ToPasswordPolicyArrayOutputWithContext(ctx context.Context) PasswordPolicyArrayOutput

type PasswordPolicyArrayInput added in v0.23.0

type PasswordPolicyArrayInput interface {
	pulumi.Input

	ToPasswordPolicyArrayOutput() PasswordPolicyArrayOutput
	ToPasswordPolicyArrayOutputWithContext(context.Context) PasswordPolicyArrayOutput
}

PasswordPolicyArrayInput is an input type that accepts PasswordPolicyArray and PasswordPolicyArrayOutput values. You can construct a concrete instance of `PasswordPolicyArrayInput` via:

PasswordPolicyArray{ PasswordPolicyArgs{...} }

type PasswordPolicyArrayOutput added in v0.23.0

type PasswordPolicyArrayOutput struct{ *pulumi.OutputState }

func (PasswordPolicyArrayOutput) ElementType added in v0.23.0

func (PasswordPolicyArrayOutput) ElementType() reflect.Type

func (PasswordPolicyArrayOutput) Index added in v0.23.0

func (PasswordPolicyArrayOutput) ToPasswordPolicyArrayOutput added in v0.23.0

func (o PasswordPolicyArrayOutput) ToPasswordPolicyArrayOutput() PasswordPolicyArrayOutput

func (PasswordPolicyArrayOutput) ToPasswordPolicyArrayOutputWithContext added in v0.23.0

func (o PasswordPolicyArrayOutput) ToPasswordPolicyArrayOutputWithContext(ctx context.Context) PasswordPolicyArrayOutput

type PasswordPolicyInput added in v0.23.0

type PasswordPolicyInput interface {
	pulumi.Input

	ToPasswordPolicyOutput() PasswordPolicyOutput
	ToPasswordPolicyOutputWithContext(ctx context.Context) PasswordPolicyOutput
}

type PasswordPolicyMap added in v0.23.0

type PasswordPolicyMap map[string]PasswordPolicyInput

func (PasswordPolicyMap) ElementType added in v0.23.0

func (PasswordPolicyMap) ElementType() reflect.Type

func (PasswordPolicyMap) ToPasswordPolicyMapOutput added in v0.23.0

func (i PasswordPolicyMap) ToPasswordPolicyMapOutput() PasswordPolicyMapOutput

func (PasswordPolicyMap) ToPasswordPolicyMapOutputWithContext added in v0.23.0

func (i PasswordPolicyMap) ToPasswordPolicyMapOutputWithContext(ctx context.Context) PasswordPolicyMapOutput

type PasswordPolicyMapInput added in v0.23.0

type PasswordPolicyMapInput interface {
	pulumi.Input

	ToPasswordPolicyMapOutput() PasswordPolicyMapOutput
	ToPasswordPolicyMapOutputWithContext(context.Context) PasswordPolicyMapOutput
}

PasswordPolicyMapInput is an input type that accepts PasswordPolicyMap and PasswordPolicyMapOutput values. You can construct a concrete instance of `PasswordPolicyMapInput` via:

PasswordPolicyMap{ "key": PasswordPolicyArgs{...} }

type PasswordPolicyMapOutput added in v0.23.0

type PasswordPolicyMapOutput struct{ *pulumi.OutputState }

func (PasswordPolicyMapOutput) ElementType added in v0.23.0

func (PasswordPolicyMapOutput) ElementType() reflect.Type

func (PasswordPolicyMapOutput) MapIndex added in v0.23.0

func (PasswordPolicyMapOutput) ToPasswordPolicyMapOutput added in v0.23.0

func (o PasswordPolicyMapOutput) ToPasswordPolicyMapOutput() PasswordPolicyMapOutput

func (PasswordPolicyMapOutput) ToPasswordPolicyMapOutputWithContext added in v0.23.0

func (o PasswordPolicyMapOutput) ToPasswordPolicyMapOutputWithContext(ctx context.Context) PasswordPolicyMapOutput

type PasswordPolicyOutput added in v0.23.0

type PasswordPolicyOutput struct{ *pulumi.OutputState }

func (PasswordPolicyOutput) Comment added in v0.23.0

Adds a comment or overwrites an existing comment for the password policy.

func (PasswordPolicyOutput) Database added in v0.23.0

The database this password policy belongs to.

func (PasswordPolicyOutput) ElementType added in v0.23.0

func (PasswordPolicyOutput) ElementType() reflect.Type

func (PasswordPolicyOutput) IfNotExists added in v0.23.0

func (o PasswordPolicyOutput) IfNotExists() pulumi.BoolPtrOutput

Prevent overwriting a previous password policy with the same name.

func (PasswordPolicyOutput) LockoutTimeMins added in v0.23.0

func (o PasswordPolicyOutput) LockoutTimeMins() pulumi.IntPtrOutput

Specifies the number of minutes the user account will be locked after exhausting the designated number of password retries (i.e. PASSWORD*MAX*RETRIES). Supported range: 1 to 999, inclusive. Default: 15

func (PasswordPolicyOutput) MaxAgeDays added in v0.23.0

func (o PasswordPolicyOutput) MaxAgeDays() pulumi.IntPtrOutput

Specifies the maximum number of days before the password must be changed. Supported range: 0 to 999, inclusive. A value of zero (i.e. 0) indicates that the password does not need to be changed. Snowflake does not recommend choosing this value for a default account-level password policy or for any user-level policy. Instead, choose a value that meets your internal security guidelines. Default: 90, which means the password must be changed every 90 days.

func (PasswordPolicyOutput) MaxLength added in v0.23.0

Specifies the maximum number of characters the password must contain. This number must be greater than or equal to the sum of PASSWORD*MIN*LENGTH, PASSWORD*MIN*UPPER*CASE*CHARS, and PASSWORD*MIN*LOWER*CASE*CHARS. Supported range: 8 to 256, inclusive. Default: 256

func (PasswordPolicyOutput) MaxRetries added in v0.23.0

func (o PasswordPolicyOutput) MaxRetries() pulumi.IntPtrOutput

Specifies the maximum number of attempts to enter a password before being locked out. Supported range: 1 to 10, inclusive. Default: 5

func (PasswordPolicyOutput) MinLength added in v0.23.0

Specifies the minimum number of characters the password must contain. Supported range: 8 to 256, inclusive. Default: 8

func (PasswordPolicyOutput) MinLowerCaseChars added in v0.23.0

func (o PasswordPolicyOutput) MinLowerCaseChars() pulumi.IntPtrOutput

Specifies the minimum number of lowercase characters the password must contain. Supported range: 0 to 256, inclusive. Default: 1

func (PasswordPolicyOutput) MinNumericChars added in v0.23.0

func (o PasswordPolicyOutput) MinNumericChars() pulumi.IntPtrOutput

Specifies the minimum number of numeric characters the password must contain. Supported range: 0 to 256, inclusive. Default: 1

func (PasswordPolicyOutput) MinSpecialChars added in v0.23.0

func (o PasswordPolicyOutput) MinSpecialChars() pulumi.IntPtrOutput

Specifies the minimum number of special characters the password must contain. Supported range: 0 to 256, inclusive. Default: 1

func (PasswordPolicyOutput) MinUpperCaseChars added in v0.23.0

func (o PasswordPolicyOutput) MinUpperCaseChars() pulumi.IntPtrOutput

Specifies the minimum number of uppercase characters the password must contain. Supported range: 0 to 256, inclusive. Default: 1

func (PasswordPolicyOutput) Name added in v0.23.0

Identifier for the password policy; must be unique for your account.

func (PasswordPolicyOutput) OrReplace added in v0.23.0

Whether to override a previous password policy with the same name.

func (PasswordPolicyOutput) QualifiedName added in v0.28.0

func (o PasswordPolicyOutput) QualifiedName() pulumi.StringOutput

The qualified name for the password policy.

func (PasswordPolicyOutput) Schema added in v0.23.0

The schema this password policy belongs to.

func (PasswordPolicyOutput) ToPasswordPolicyOutput added in v0.23.0

func (o PasswordPolicyOutput) ToPasswordPolicyOutput() PasswordPolicyOutput

func (PasswordPolicyOutput) ToPasswordPolicyOutputWithContext added in v0.23.0

func (o PasswordPolicyOutput) ToPasswordPolicyOutputWithContext(ctx context.Context) PasswordPolicyOutput

type PasswordPolicyState added in v0.23.0

type PasswordPolicyState struct {
	// Adds a comment or overwrites an existing comment for the password policy.
	Comment pulumi.StringPtrInput
	// The database this password policy belongs to.
	Database pulumi.StringPtrInput
	// Prevent overwriting a previous password policy with the same name.
	IfNotExists pulumi.BoolPtrInput
	// Specifies the number of minutes the user account will be locked after exhausting the designated number of password retries (i.e. PASSWORD*MAX*RETRIES). Supported range: 1 to 999, inclusive. Default: 15
	LockoutTimeMins pulumi.IntPtrInput
	// Specifies the maximum number of days before the password must be changed. Supported range: 0 to 999, inclusive. A value of zero (i.e. 0) indicates that the password does not need to be changed. Snowflake does not recommend choosing this value for a default account-level password policy or for any user-level policy. Instead, choose a value that meets your internal security guidelines. Default: 90, which means the password must be changed every 90 days.
	MaxAgeDays pulumi.IntPtrInput
	// Specifies the maximum number of characters the password must contain. This number must be greater than or equal to the sum of PASSWORD*MIN*LENGTH, PASSWORD*MIN*UPPER*CASE*CHARS, and PASSWORD*MIN*LOWER*CASE*CHARS. Supported range: 8 to 256, inclusive. Default: 256
	MaxLength pulumi.IntPtrInput
	// Specifies the maximum number of attempts to enter a password before being locked out. Supported range: 1 to 10, inclusive. Default: 5
	MaxRetries pulumi.IntPtrInput
	// Specifies the minimum number of characters the password must contain. Supported range: 8 to 256, inclusive. Default: 8
	MinLength pulumi.IntPtrInput
	// Specifies the minimum number of lowercase characters the password must contain. Supported range: 0 to 256, inclusive. Default: 1
	MinLowerCaseChars pulumi.IntPtrInput
	// Specifies the minimum number of numeric characters the password must contain. Supported range: 0 to 256, inclusive. Default: 1
	MinNumericChars pulumi.IntPtrInput
	// Specifies the minimum number of special characters the password must contain. Supported range: 0 to 256, inclusive. Default: 1
	MinSpecialChars pulumi.IntPtrInput
	// Specifies the minimum number of uppercase characters the password must contain. Supported range: 0 to 256, inclusive. Default: 1
	MinUpperCaseChars pulumi.IntPtrInput
	// Identifier for the password policy; must be unique for your account.
	Name pulumi.StringPtrInput
	// Whether to override a previous password policy with the same name.
	OrReplace pulumi.BoolPtrInput
	// The qualified name for the password policy.
	QualifiedName pulumi.StringPtrInput
	// The schema this password policy belongs to.
	Schema pulumi.StringPtrInput
}

func (PasswordPolicyState) ElementType added in v0.23.0

func (PasswordPolicyState) ElementType() reflect.Type

type Pipe

type Pipe struct {
	pulumi.CustomResourceState

	// Specifies a autoIngest param for the pipe.
	AutoIngest pulumi.BoolPtrOutput `pulumi:"autoIngest"`
	// Specifies the Amazon Resource Name (ARN) for the SNS topic for your S3 bucket.
	AwsSnsTopicArn pulumi.StringPtrOutput `pulumi:"awsSnsTopicArn"`
	// Specifies a comment for the pipe.
	Comment pulumi.StringPtrOutput `pulumi:"comment"`
	// Specifies the copy statement for the pipe.
	CopyStatement pulumi.StringOutput `pulumi:"copyStatement"`
	// The database in which to create the pipe.
	Database pulumi.StringOutput `pulumi:"database"`
	// Specifies the name of the notification integration used for error notifications.
	ErrorIntegration pulumi.StringPtrOutput `pulumi:"errorIntegration"`
	// Specifies an integration for the pipe.
	Integration pulumi.StringPtrOutput `pulumi:"integration"`
	// Specifies the identifier for the pipe; must be unique for the database and schema in which the pipe is created.
	Name pulumi.StringOutput `pulumi:"name"`
	// Amazon Resource Name of the Amazon SQS queue for the stage named in the DEFINITION column.
	NotificationChannel pulumi.StringOutput `pulumi:"notificationChannel"`
	// Name of the role that owns the pipe.
	Owner pulumi.StringOutput `pulumi:"owner"`
	// The schema in which to create the pipe.
	Schema pulumi.StringOutput `pulumi:"schema"`
}

## Import

format is database name | schema name | pipe name

```sh

$ pulumi import snowflake:index/pipe:Pipe example 'dbName|schemaName|pipeName'

```

func GetPipe

func GetPipe(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *PipeState, opts ...pulumi.ResourceOption) (*Pipe, error)

GetPipe gets an existing Pipe resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewPipe

func NewPipe(ctx *pulumi.Context,
	name string, args *PipeArgs, opts ...pulumi.ResourceOption) (*Pipe, error)

NewPipe registers a new resource with the given unique name, arguments, and options.

func (*Pipe) ElementType

func (*Pipe) ElementType() reflect.Type

func (*Pipe) ToPipeOutput

func (i *Pipe) ToPipeOutput() PipeOutput

func (*Pipe) ToPipeOutputWithContext

func (i *Pipe) ToPipeOutputWithContext(ctx context.Context) PipeOutput

type PipeArgs

type PipeArgs struct {
	// Specifies a autoIngest param for the pipe.
	AutoIngest pulumi.BoolPtrInput
	// Specifies the Amazon Resource Name (ARN) for the SNS topic for your S3 bucket.
	AwsSnsTopicArn pulumi.StringPtrInput
	// Specifies a comment for the pipe.
	Comment pulumi.StringPtrInput
	// Specifies the copy statement for the pipe.
	CopyStatement pulumi.StringInput
	// The database in which to create the pipe.
	Database pulumi.StringInput
	// Specifies the name of the notification integration used for error notifications.
	ErrorIntegration pulumi.StringPtrInput
	// Specifies an integration for the pipe.
	Integration pulumi.StringPtrInput
	// Specifies the identifier for the pipe; must be unique for the database and schema in which the pipe is created.
	Name pulumi.StringPtrInput
	// The schema in which to create the pipe.
	Schema pulumi.StringInput
}

The set of arguments for constructing a Pipe resource.

func (PipeArgs) ElementType

func (PipeArgs) ElementType() reflect.Type

type PipeArray

type PipeArray []PipeInput

func (PipeArray) ElementType

func (PipeArray) ElementType() reflect.Type

func (PipeArray) ToPipeArrayOutput

func (i PipeArray) ToPipeArrayOutput() PipeArrayOutput

func (PipeArray) ToPipeArrayOutputWithContext

func (i PipeArray) ToPipeArrayOutputWithContext(ctx context.Context) PipeArrayOutput

type PipeArrayInput

type PipeArrayInput interface {
	pulumi.Input

	ToPipeArrayOutput() PipeArrayOutput
	ToPipeArrayOutputWithContext(context.Context) PipeArrayOutput
}

PipeArrayInput is an input type that accepts PipeArray and PipeArrayOutput values. You can construct a concrete instance of `PipeArrayInput` via:

PipeArray{ PipeArgs{...} }

type PipeArrayOutput

type PipeArrayOutput struct{ *pulumi.OutputState }

func (PipeArrayOutput) ElementType

func (PipeArrayOutput) ElementType() reflect.Type

func (PipeArrayOutput) Index

func (PipeArrayOutput) ToPipeArrayOutput

func (o PipeArrayOutput) ToPipeArrayOutput() PipeArrayOutput

func (PipeArrayOutput) ToPipeArrayOutputWithContext

func (o PipeArrayOutput) ToPipeArrayOutputWithContext(ctx context.Context) PipeArrayOutput

type PipeGrant added in v0.1.2

type PipeGrant struct {
	pulumi.CustomResourceState

	// The name of the database containing the current or future pipes on which to grant privileges.
	DatabaseName pulumi.StringOutput `pulumi:"databaseName"`
	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrOutput `pulumi:"enableMultipleGrants"`
	// When this is set to true and a schema*name is provided, apply this grant on all future pipes in the given schema. When this is true and no schema*name is provided apply this grant on all future pipes in the given database. The pipe*name field must be unset in order to use on*future.
	OnFuture pulumi.BoolPtrOutput `pulumi:"onFuture"`
	// The name of the pipe on which to grant privileges immediately (only valid if onFuture is false).
	PipeName pulumi.StringPtrOutput `pulumi:"pipeName"`
	// The privilege to grant on the current or future pipe. To grant all privileges, use the value `ALL PRIVILEGES`
	Privilege pulumi.StringPtrOutput `pulumi:"privilege"`
	// The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
	RevertOwnershipToRoleName pulumi.StringPtrOutput `pulumi:"revertOwnershipToRoleName"`
	// Grants privilege to these roles.
	Roles pulumi.StringArrayOutput `pulumi:"roles"`
	// The name of the schema containing the current or future pipes on which to grant privileges.
	SchemaName pulumi.StringPtrOutput `pulumi:"schemaName"`
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrOutput `pulumi:"withGrantOption"`
}

## Example Usage

```go 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.NewPipeGrant(ctx, "grant", &snowflake.PipeGrantArgs{
			DatabaseName: pulumi.String("database"),
			OnFuture:     pulumi.Bool(false),
			PipeName:     pulumi.String("pipe"),
			Privilege:    pulumi.String("OPERATE"),
			Roles: pulumi.StringArray{
				pulumi.String("role1"),
				pulumi.String("role2"),
			},
			SchemaName:      pulumi.String("schema"),
			WithGrantOption: pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

format is database_name|schema_name|pipe_name|privilege|with_grant_option|on_future|roles

```sh

$ pulumi import snowflake:index/pipeGrant:PipeGrant example "MY_DATABASE|MY_SCHEMA|MY_PIPE_NAME|OPERATE|false|false|role1,role2'

```

func GetPipeGrant added in v0.1.2

func GetPipeGrant(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *PipeGrantState, opts ...pulumi.ResourceOption) (*PipeGrant, error)

GetPipeGrant gets an existing PipeGrant resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewPipeGrant added in v0.1.2

func NewPipeGrant(ctx *pulumi.Context,
	name string, args *PipeGrantArgs, opts ...pulumi.ResourceOption) (*PipeGrant, error)

NewPipeGrant registers a new resource with the given unique name, arguments, and options.

func (*PipeGrant) ElementType added in v0.1.2

func (*PipeGrant) ElementType() reflect.Type

func (*PipeGrant) ToPipeGrantOutput added in v0.1.2

func (i *PipeGrant) ToPipeGrantOutput() PipeGrantOutput

func (*PipeGrant) ToPipeGrantOutputWithContext added in v0.1.2

func (i *PipeGrant) ToPipeGrantOutputWithContext(ctx context.Context) PipeGrantOutput

type PipeGrantArgs added in v0.1.2

type PipeGrantArgs struct {
	// The name of the database containing the current or future pipes on which to grant privileges.
	DatabaseName pulumi.StringInput
	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrInput
	// When this is set to true and a schema*name is provided, apply this grant on all future pipes in the given schema. When this is true and no schema*name is provided apply this grant on all future pipes in the given database. The pipe*name field must be unset in order to use on*future.
	OnFuture pulumi.BoolPtrInput
	// The name of the pipe on which to grant privileges immediately (only valid if onFuture is false).
	PipeName pulumi.StringPtrInput
	// The privilege to grant on the current or future pipe. To grant all privileges, use the value `ALL PRIVILEGES`
	Privilege pulumi.StringPtrInput
	// The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
	RevertOwnershipToRoleName pulumi.StringPtrInput
	// Grants privilege to these roles.
	Roles pulumi.StringArrayInput
	// The name of the schema containing the current or future pipes on which to grant privileges.
	SchemaName pulumi.StringPtrInput
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrInput
}

The set of arguments for constructing a PipeGrant resource.

func (PipeGrantArgs) ElementType added in v0.1.2

func (PipeGrantArgs) ElementType() reflect.Type

type PipeGrantArray added in v0.1.2

type PipeGrantArray []PipeGrantInput

func (PipeGrantArray) ElementType added in v0.1.2

func (PipeGrantArray) ElementType() reflect.Type

func (PipeGrantArray) ToPipeGrantArrayOutput added in v0.1.2

func (i PipeGrantArray) ToPipeGrantArrayOutput() PipeGrantArrayOutput

func (PipeGrantArray) ToPipeGrantArrayOutputWithContext added in v0.1.2

func (i PipeGrantArray) ToPipeGrantArrayOutputWithContext(ctx context.Context) PipeGrantArrayOutput

type PipeGrantArrayInput added in v0.1.2

type PipeGrantArrayInput interface {
	pulumi.Input

	ToPipeGrantArrayOutput() PipeGrantArrayOutput
	ToPipeGrantArrayOutputWithContext(context.Context) PipeGrantArrayOutput
}

PipeGrantArrayInput is an input type that accepts PipeGrantArray and PipeGrantArrayOutput values. You can construct a concrete instance of `PipeGrantArrayInput` via:

PipeGrantArray{ PipeGrantArgs{...} }

type PipeGrantArrayOutput added in v0.1.2

type PipeGrantArrayOutput struct{ *pulumi.OutputState }

func (PipeGrantArrayOutput) ElementType added in v0.1.2

func (PipeGrantArrayOutput) ElementType() reflect.Type

func (PipeGrantArrayOutput) Index added in v0.1.2

func (PipeGrantArrayOutput) ToPipeGrantArrayOutput added in v0.1.2

func (o PipeGrantArrayOutput) ToPipeGrantArrayOutput() PipeGrantArrayOutput

func (PipeGrantArrayOutput) ToPipeGrantArrayOutputWithContext added in v0.1.2

func (o PipeGrantArrayOutput) ToPipeGrantArrayOutputWithContext(ctx context.Context) PipeGrantArrayOutput

type PipeGrantInput added in v0.1.2

type PipeGrantInput interface {
	pulumi.Input

	ToPipeGrantOutput() PipeGrantOutput
	ToPipeGrantOutputWithContext(ctx context.Context) PipeGrantOutput
}

type PipeGrantMap added in v0.1.2

type PipeGrantMap map[string]PipeGrantInput

func (PipeGrantMap) ElementType added in v0.1.2

func (PipeGrantMap) ElementType() reflect.Type

func (PipeGrantMap) ToPipeGrantMapOutput added in v0.1.2

func (i PipeGrantMap) ToPipeGrantMapOutput() PipeGrantMapOutput

func (PipeGrantMap) ToPipeGrantMapOutputWithContext added in v0.1.2

func (i PipeGrantMap) ToPipeGrantMapOutputWithContext(ctx context.Context) PipeGrantMapOutput

type PipeGrantMapInput added in v0.1.2

type PipeGrantMapInput interface {
	pulumi.Input

	ToPipeGrantMapOutput() PipeGrantMapOutput
	ToPipeGrantMapOutputWithContext(context.Context) PipeGrantMapOutput
}

PipeGrantMapInput is an input type that accepts PipeGrantMap and PipeGrantMapOutput values. You can construct a concrete instance of `PipeGrantMapInput` via:

PipeGrantMap{ "key": PipeGrantArgs{...} }

type PipeGrantMapOutput added in v0.1.2

type PipeGrantMapOutput struct{ *pulumi.OutputState }

func (PipeGrantMapOutput) ElementType added in v0.1.2

func (PipeGrantMapOutput) ElementType() reflect.Type

func (PipeGrantMapOutput) MapIndex added in v0.1.2

func (PipeGrantMapOutput) ToPipeGrantMapOutput added in v0.1.2

func (o PipeGrantMapOutput) ToPipeGrantMapOutput() PipeGrantMapOutput

func (PipeGrantMapOutput) ToPipeGrantMapOutputWithContext added in v0.1.2

func (o PipeGrantMapOutput) ToPipeGrantMapOutputWithContext(ctx context.Context) PipeGrantMapOutput

type PipeGrantOutput added in v0.1.2

type PipeGrantOutput struct{ *pulumi.OutputState }

func (PipeGrantOutput) DatabaseName added in v0.9.0

func (o PipeGrantOutput) DatabaseName() pulumi.StringOutput

The name of the database containing the current or future pipes on which to grant privileges.

func (PipeGrantOutput) ElementType added in v0.1.2

func (PipeGrantOutput) ElementType() reflect.Type

func (PipeGrantOutput) EnableMultipleGrants added in v0.9.0

func (o PipeGrantOutput) EnableMultipleGrants() pulumi.BoolPtrOutput

When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke grants applied to roles and objects outside Terraform.

func (PipeGrantOutput) OnFuture added in v0.9.0

func (o PipeGrantOutput) OnFuture() pulumi.BoolPtrOutput

When this is set to true and a schema*name is provided, apply this grant on all future pipes in the given schema. When this is true and no schema*name is provided apply this grant on all future pipes in the given database. The pipe*name field must be unset in order to use on*future.

func (PipeGrantOutput) PipeName added in v0.9.0

func (o PipeGrantOutput) PipeName() pulumi.StringPtrOutput

The name of the pipe on which to grant privileges immediately (only valid if onFuture is false).

func (PipeGrantOutput) Privilege added in v0.9.0

func (o PipeGrantOutput) Privilege() pulumi.StringPtrOutput

The privilege to grant on the current or future pipe. To grant all privileges, use the value `ALL PRIVILEGES`

func (PipeGrantOutput) RevertOwnershipToRoleName added in v0.26.0

func (o PipeGrantOutput) RevertOwnershipToRoleName() pulumi.StringPtrOutput

The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`

func (PipeGrantOutput) Roles added in v0.9.0

Grants privilege to these roles.

func (PipeGrantOutput) SchemaName added in v0.9.0

func (o PipeGrantOutput) SchemaName() pulumi.StringPtrOutput

The name of the schema containing the current or future pipes on which to grant privileges.

func (PipeGrantOutput) ToPipeGrantOutput added in v0.1.2

func (o PipeGrantOutput) ToPipeGrantOutput() PipeGrantOutput

func (PipeGrantOutput) ToPipeGrantOutputWithContext added in v0.1.2

func (o PipeGrantOutput) ToPipeGrantOutputWithContext(ctx context.Context) PipeGrantOutput

func (PipeGrantOutput) WithGrantOption added in v0.9.0

func (o PipeGrantOutput) WithGrantOption() pulumi.BoolPtrOutput

When this is set to true, allows the recipient role to grant the privileges to other roles.

type PipeGrantState added in v0.1.2

type PipeGrantState struct {
	// The name of the database containing the current or future pipes on which to grant privileges.
	DatabaseName pulumi.StringPtrInput
	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrInput
	// When this is set to true and a schema*name is provided, apply this grant on all future pipes in the given schema. When this is true and no schema*name is provided apply this grant on all future pipes in the given database. The pipe*name field must be unset in order to use on*future.
	OnFuture pulumi.BoolPtrInput
	// The name of the pipe on which to grant privileges immediately (only valid if onFuture is false).
	PipeName pulumi.StringPtrInput
	// The privilege to grant on the current or future pipe. To grant all privileges, use the value `ALL PRIVILEGES`
	Privilege pulumi.StringPtrInput
	// The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
	RevertOwnershipToRoleName pulumi.StringPtrInput
	// Grants privilege to these roles.
	Roles pulumi.StringArrayInput
	// The name of the schema containing the current or future pipes on which to grant privileges.
	SchemaName pulumi.StringPtrInput
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrInput
}

func (PipeGrantState) ElementType added in v0.1.2

func (PipeGrantState) ElementType() reflect.Type

type PipeInput

type PipeInput interface {
	pulumi.Input

	ToPipeOutput() PipeOutput
	ToPipeOutputWithContext(ctx context.Context) PipeOutput
}

type PipeMap

type PipeMap map[string]PipeInput

func (PipeMap) ElementType

func (PipeMap) ElementType() reflect.Type

func (PipeMap) ToPipeMapOutput

func (i PipeMap) ToPipeMapOutput() PipeMapOutput

func (PipeMap) ToPipeMapOutputWithContext

func (i PipeMap) ToPipeMapOutputWithContext(ctx context.Context) PipeMapOutput

type PipeMapInput

type PipeMapInput interface {
	pulumi.Input

	ToPipeMapOutput() PipeMapOutput
	ToPipeMapOutputWithContext(context.Context) PipeMapOutput
}

PipeMapInput is an input type that accepts PipeMap and PipeMapOutput values. You can construct a concrete instance of `PipeMapInput` via:

PipeMap{ "key": PipeArgs{...} }

type PipeMapOutput

type PipeMapOutput struct{ *pulumi.OutputState }

func (PipeMapOutput) ElementType

func (PipeMapOutput) ElementType() reflect.Type

func (PipeMapOutput) MapIndex

func (PipeMapOutput) ToPipeMapOutput

func (o PipeMapOutput) ToPipeMapOutput() PipeMapOutput

func (PipeMapOutput) ToPipeMapOutputWithContext

func (o PipeMapOutput) ToPipeMapOutputWithContext(ctx context.Context) PipeMapOutput

type PipeOutput

type PipeOutput struct{ *pulumi.OutputState }

func (PipeOutput) AutoIngest added in v0.9.0

func (o PipeOutput) AutoIngest() pulumi.BoolPtrOutput

Specifies a autoIngest param for the pipe.

func (PipeOutput) AwsSnsTopicArn added in v0.9.0

func (o PipeOutput) AwsSnsTopicArn() pulumi.StringPtrOutput

Specifies the Amazon Resource Name (ARN) for the SNS topic for your S3 bucket.

func (PipeOutput) Comment added in v0.9.0

func (o PipeOutput) Comment() pulumi.StringPtrOutput

Specifies a comment for the pipe.

func (PipeOutput) CopyStatement added in v0.9.0

func (o PipeOutput) CopyStatement() pulumi.StringOutput

Specifies the copy statement for the pipe.

func (PipeOutput) Database added in v0.9.0

func (o PipeOutput) Database() pulumi.StringOutput

The database in which to create the pipe.

func (PipeOutput) ElementType

func (PipeOutput) ElementType() reflect.Type

func (PipeOutput) ErrorIntegration added in v0.9.0

func (o PipeOutput) ErrorIntegration() pulumi.StringPtrOutput

Specifies the name of the notification integration used for error notifications.

func (PipeOutput) Integration added in v0.9.0

func (o PipeOutput) Integration() pulumi.StringPtrOutput

Specifies an integration for the pipe.

func (PipeOutput) Name added in v0.9.0

func (o PipeOutput) Name() pulumi.StringOutput

Specifies the identifier for the pipe; must be unique for the database and schema in which the pipe is created.

func (PipeOutput) NotificationChannel added in v0.9.0

func (o PipeOutput) NotificationChannel() pulumi.StringOutput

Amazon Resource Name of the Amazon SQS queue for the stage named in the DEFINITION column.

func (PipeOutput) Owner added in v0.9.0

func (o PipeOutput) Owner() pulumi.StringOutput

Name of the role that owns the pipe.

func (PipeOutput) Schema added in v0.9.0

func (o PipeOutput) Schema() pulumi.StringOutput

The schema in which to create the pipe.

func (PipeOutput) ToPipeOutput

func (o PipeOutput) ToPipeOutput() PipeOutput

func (PipeOutput) ToPipeOutputWithContext

func (o PipeOutput) ToPipeOutputWithContext(ctx context.Context) PipeOutput

type PipeState

type PipeState struct {
	// Specifies a autoIngest param for the pipe.
	AutoIngest pulumi.BoolPtrInput
	// Specifies the Amazon Resource Name (ARN) for the SNS topic for your S3 bucket.
	AwsSnsTopicArn pulumi.StringPtrInput
	// Specifies a comment for the pipe.
	Comment pulumi.StringPtrInput
	// Specifies the copy statement for the pipe.
	CopyStatement pulumi.StringPtrInput
	// The database in which to create the pipe.
	Database pulumi.StringPtrInput
	// Specifies the name of the notification integration used for error notifications.
	ErrorIntegration pulumi.StringPtrInput
	// Specifies an integration for the pipe.
	Integration pulumi.StringPtrInput
	// Specifies the identifier for the pipe; must be unique for the database and schema in which the pipe is created.
	Name pulumi.StringPtrInput
	// Amazon Resource Name of the Amazon SQS queue for the stage named in the DEFINITION column.
	NotificationChannel pulumi.StringPtrInput
	// Name of the role that owns the pipe.
	Owner pulumi.StringPtrInput
	// The schema in which to create the pipe.
	Schema pulumi.StringPtrInput
}

func (PipeState) ElementType

func (PipeState) ElementType() reflect.Type

type Procedure added in v0.1.3

type Procedure struct {
	pulumi.CustomResourceState

	// List of the arguments for the procedure
	Arguments ProcedureArgumentArrayOutput `pulumi:"arguments"`
	// Specifies a comment for the procedure.
	Comment pulumi.StringPtrOutput `pulumi:"comment"`
	// The database in which to create the procedure. Don't use the | character.
	Database pulumi.StringOutput `pulumi:"database"`
	// Sets execute context - see caller's rights and owner's rights
	ExecuteAs pulumi.StringPtrOutput `pulumi:"executeAs"`
	// The handler method for Java / Python procedures.
	Handler pulumi.StringPtrOutput `pulumi:"handler"`
	// Imports for Java / Python procedures. For Java this a list of jar files, for Python this is a list of Python files.
	Imports pulumi.StringArrayOutput `pulumi:"imports"`
	// Specifies the language of the stored procedure code.
	Language pulumi.StringPtrOutput `pulumi:"language"`
	// Specifies the identifier for the procedure; does not have to be unique for the schema in which the procedure is created. Don't use the | character.
	Name pulumi.StringOutput `pulumi:"name"`
	// Specifies the behavior of the procedure when called with null inputs.
	NullInputBehavior pulumi.StringPtrOutput `pulumi:"nullInputBehavior"`
	// List of package imports to use for Java / Python procedures. For Java, package imports should be of the form: package*name:version*number, where package*name is snowflake*domain:package. For Python use it should be: ('numpy','pandas','xgboost==1.5.0').
	Packages pulumi.StringArrayOutput `pulumi:"packages"`
	// Specifies the behavior of the function when returning results
	ReturnBehavior pulumi.StringPtrOutput `pulumi:"returnBehavior"`
	// The return type of the procedure
	ReturnType pulumi.StringOutput `pulumi:"returnType"`
	// Required for Python procedures. Specifies Python runtime version.
	RuntimeVersion pulumi.StringPtrOutput `pulumi:"runtimeVersion"`
	// The schema in which to create the procedure. Don't use the | character.
	Schema pulumi.StringOutput `pulumi:"schema"`
	// Specifies the code used to create the procedure.
	Statement pulumi.StringOutput `pulumi:"statement"`
}

## Import

format is database name | schema name | stored procedure name | <list of arg types, separated with '-'>

```sh

$ pulumi import snowflake:index/procedure:Procedure example 'dbName|schemaName|procedureName|varchar-varchar-varchar'

```

func GetProcedure added in v0.1.3

func GetProcedure(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ProcedureState, opts ...pulumi.ResourceOption) (*Procedure, error)

GetProcedure gets an existing Procedure resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewProcedure added in v0.1.3

func NewProcedure(ctx *pulumi.Context,
	name string, args *ProcedureArgs, opts ...pulumi.ResourceOption) (*Procedure, error)

NewProcedure registers a new resource with the given unique name, arguments, and options.

func (*Procedure) ElementType added in v0.1.3

func (*Procedure) ElementType() reflect.Type

func (*Procedure) ToProcedureOutput added in v0.1.3

func (i *Procedure) ToProcedureOutput() ProcedureOutput

func (*Procedure) ToProcedureOutputWithContext added in v0.1.3

func (i *Procedure) ToProcedureOutputWithContext(ctx context.Context) ProcedureOutput

type ProcedureArgs added in v0.1.3

type ProcedureArgs struct {
	// List of the arguments for the procedure
	Arguments ProcedureArgumentArrayInput
	// Specifies a comment for the procedure.
	Comment pulumi.StringPtrInput
	// The database in which to create the procedure. Don't use the | character.
	Database pulumi.StringInput
	// Sets execute context - see caller's rights and owner's rights
	ExecuteAs pulumi.StringPtrInput
	// The handler method for Java / Python procedures.
	Handler pulumi.StringPtrInput
	// Imports for Java / Python procedures. For Java this a list of jar files, for Python this is a list of Python files.
	Imports pulumi.StringArrayInput
	// Specifies the language of the stored procedure code.
	Language pulumi.StringPtrInput
	// Specifies the identifier for the procedure; does not have to be unique for the schema in which the procedure is created. Don't use the | character.
	Name pulumi.StringPtrInput
	// Specifies the behavior of the procedure when called with null inputs.
	NullInputBehavior pulumi.StringPtrInput
	// List of package imports to use for Java / Python procedures. For Java, package imports should be of the form: package*name:version*number, where package*name is snowflake*domain:package. For Python use it should be: ('numpy','pandas','xgboost==1.5.0').
	Packages pulumi.StringArrayInput
	// Specifies the behavior of the function when returning results
	ReturnBehavior pulumi.StringPtrInput
	// The return type of the procedure
	ReturnType pulumi.StringInput
	// Required for Python procedures. Specifies Python runtime version.
	RuntimeVersion pulumi.StringPtrInput
	// The schema in which to create the procedure. Don't use the | character.
	Schema pulumi.StringInput
	// Specifies the code used to create the procedure.
	Statement pulumi.StringInput
}

The set of arguments for constructing a Procedure resource.

func (ProcedureArgs) ElementType added in v0.1.3

func (ProcedureArgs) ElementType() reflect.Type

type ProcedureArgument added in v0.1.3

type ProcedureArgument struct {
	// The argument name
	Name string `pulumi:"name"`
	// The argument type
	Type string `pulumi:"type"`
}

type ProcedureArgumentArgs added in v0.1.3

type ProcedureArgumentArgs struct {
	// The argument name
	Name pulumi.StringInput `pulumi:"name"`
	// The argument type
	Type pulumi.StringInput `pulumi:"type"`
}

func (ProcedureArgumentArgs) ElementType added in v0.1.3

func (ProcedureArgumentArgs) ElementType() reflect.Type

func (ProcedureArgumentArgs) ToProcedureArgumentOutput added in v0.1.3

func (i ProcedureArgumentArgs) ToProcedureArgumentOutput() ProcedureArgumentOutput

func (ProcedureArgumentArgs) ToProcedureArgumentOutputWithContext added in v0.1.3

func (i ProcedureArgumentArgs) ToProcedureArgumentOutputWithContext(ctx context.Context) ProcedureArgumentOutput

type ProcedureArgumentArray added in v0.1.3

type ProcedureArgumentArray []ProcedureArgumentInput

func (ProcedureArgumentArray) ElementType added in v0.1.3

func (ProcedureArgumentArray) ElementType() reflect.Type

func (ProcedureArgumentArray) ToProcedureArgumentArrayOutput added in v0.1.3

func (i ProcedureArgumentArray) ToProcedureArgumentArrayOutput() ProcedureArgumentArrayOutput

func (ProcedureArgumentArray) ToProcedureArgumentArrayOutputWithContext added in v0.1.3

func (i ProcedureArgumentArray) ToProcedureArgumentArrayOutputWithContext(ctx context.Context) ProcedureArgumentArrayOutput

type ProcedureArgumentArrayInput added in v0.1.3

type ProcedureArgumentArrayInput interface {
	pulumi.Input

	ToProcedureArgumentArrayOutput() ProcedureArgumentArrayOutput
	ToProcedureArgumentArrayOutputWithContext(context.Context) ProcedureArgumentArrayOutput
}

ProcedureArgumentArrayInput is an input type that accepts ProcedureArgumentArray and ProcedureArgumentArrayOutput values. You can construct a concrete instance of `ProcedureArgumentArrayInput` via:

ProcedureArgumentArray{ ProcedureArgumentArgs{...} }

type ProcedureArgumentArrayOutput added in v0.1.3

type ProcedureArgumentArrayOutput struct{ *pulumi.OutputState }

func (ProcedureArgumentArrayOutput) ElementType added in v0.1.3

func (ProcedureArgumentArrayOutput) Index added in v0.1.3

func (ProcedureArgumentArrayOutput) ToProcedureArgumentArrayOutput added in v0.1.3

func (o ProcedureArgumentArrayOutput) ToProcedureArgumentArrayOutput() ProcedureArgumentArrayOutput

func (ProcedureArgumentArrayOutput) ToProcedureArgumentArrayOutputWithContext added in v0.1.3

func (o ProcedureArgumentArrayOutput) ToProcedureArgumentArrayOutputWithContext(ctx context.Context) ProcedureArgumentArrayOutput

type ProcedureArgumentInput added in v0.1.3

type ProcedureArgumentInput interface {
	pulumi.Input

	ToProcedureArgumentOutput() ProcedureArgumentOutput
	ToProcedureArgumentOutputWithContext(context.Context) ProcedureArgumentOutput
}

ProcedureArgumentInput is an input type that accepts ProcedureArgumentArgs and ProcedureArgumentOutput values. You can construct a concrete instance of `ProcedureArgumentInput` via:

ProcedureArgumentArgs{...}

type ProcedureArgumentOutput added in v0.1.3

type ProcedureArgumentOutput struct{ *pulumi.OutputState }

func (ProcedureArgumentOutput) ElementType added in v0.1.3

func (ProcedureArgumentOutput) ElementType() reflect.Type

func (ProcedureArgumentOutput) Name added in v0.1.3

The argument name

func (ProcedureArgumentOutput) ToProcedureArgumentOutput added in v0.1.3

func (o ProcedureArgumentOutput) ToProcedureArgumentOutput() ProcedureArgumentOutput

func (ProcedureArgumentOutput) ToProcedureArgumentOutputWithContext added in v0.1.3

func (o ProcedureArgumentOutput) ToProcedureArgumentOutputWithContext(ctx context.Context) ProcedureArgumentOutput

func (ProcedureArgumentOutput) Type added in v0.1.3

The argument type

type ProcedureArray added in v0.1.3

type ProcedureArray []ProcedureInput

func (ProcedureArray) ElementType added in v0.1.3

func (ProcedureArray) ElementType() reflect.Type

func (ProcedureArray) ToProcedureArrayOutput added in v0.1.3

func (i ProcedureArray) ToProcedureArrayOutput() ProcedureArrayOutput

func (ProcedureArray) ToProcedureArrayOutputWithContext added in v0.1.3

func (i ProcedureArray) ToProcedureArrayOutputWithContext(ctx context.Context) ProcedureArrayOutput

type ProcedureArrayInput added in v0.1.3

type ProcedureArrayInput interface {
	pulumi.Input

	ToProcedureArrayOutput() ProcedureArrayOutput
	ToProcedureArrayOutputWithContext(context.Context) ProcedureArrayOutput
}

ProcedureArrayInput is an input type that accepts ProcedureArray and ProcedureArrayOutput values. You can construct a concrete instance of `ProcedureArrayInput` via:

ProcedureArray{ ProcedureArgs{...} }

type ProcedureArrayOutput added in v0.1.3

type ProcedureArrayOutput struct{ *pulumi.OutputState }

func (ProcedureArrayOutput) ElementType added in v0.1.3

func (ProcedureArrayOutput) ElementType() reflect.Type

func (ProcedureArrayOutput) Index added in v0.1.3

func (ProcedureArrayOutput) ToProcedureArrayOutput added in v0.1.3

func (o ProcedureArrayOutput) ToProcedureArrayOutput() ProcedureArrayOutput

func (ProcedureArrayOutput) ToProcedureArrayOutputWithContext added in v0.1.3

func (o ProcedureArrayOutput) ToProcedureArrayOutputWithContext(ctx context.Context) ProcedureArrayOutput

type ProcedureGrant

type ProcedureGrant struct {
	pulumi.CustomResourceState

	// List of the argument data types for the procedure (must be present if procedure has arguments and procedureName is present)
	ArgumentDataTypes pulumi.StringArrayOutput `pulumi:"argumentDataTypes"`
	// The name of the database containing the current or future procedures on which to grant privileges.
	DatabaseName pulumi.StringOutput `pulumi:"databaseName"`
	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrOutput `pulumi:"enableMultipleGrants"`
	// When this is set to true and a schema*name is provided, apply this grant on all procedures in the given schema. When this is true and no schema*name is provided apply this grant on all procedures in the given database. The procedure*name and shares fields must be unset in order to use on*all. Cannot be used together with on_future.
	OnAll pulumi.BoolPtrOutput `pulumi:"onAll"`
	// When this is set to true and a schema*name is provided, apply this grant on all future procedures in the given schema. When this is true and no schema*name is provided apply this grant on all future procedures in the given database. The procedure*name and shares fields must be unset in order to use on*future. Cannot be used together with on_all.
	OnFuture pulumi.BoolPtrOutput `pulumi:"onFuture"`
	// The privilege to grant on the current or future procedure. To grant all privileges, use the value `ALL PRIVILEGES`
	Privilege pulumi.StringPtrOutput `pulumi:"privilege"`
	// The name of the procedure on which to grant privileges immediately (only valid if onFuture is false).
	ProcedureName pulumi.StringPtrOutput `pulumi:"procedureName"`
	// The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
	RevertOwnershipToRoleName pulumi.StringPtrOutput `pulumi:"revertOwnershipToRoleName"`
	// Grants privilege to these roles.
	Roles pulumi.StringArrayOutput `pulumi:"roles"`
	// The name of the schema containing the current or future procedures on which to grant privileges.
	SchemaName pulumi.StringPtrOutput `pulumi:"schemaName"`
	// Grants privilege to these shares (only valid if onFuture is false).
	Shares pulumi.StringArrayOutput `pulumi:"shares"`
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrOutput `pulumi:"withGrantOption"`
}

## Example Usage

```go 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.NewProcedureGrant(ctx, "grant", &snowflake.ProcedureGrantArgs{
			ArgumentDataTypes: pulumi.StringArray{
				pulumi.String("array"),
				pulumi.String("string"),
			},
			DatabaseName:  pulumi.String("database"),
			OnFuture:      pulumi.Bool(false),
			Privilege:     pulumi.String("USAGE"),
			ProcedureName: pulumi.String("procedure"),
			Roles: pulumi.StringArray{
				pulumi.String("role1"),
				pulumi.String("role2"),
			},
			SchemaName: pulumi.String("schema"),
			Shares: pulumi.StringArray{
				pulumi.String("share1"),
				pulumi.String("share2"),
			},
			WithGrantOption: pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

format is database_name|schema_name|procedure_name|argument_data_types|privilege|with_grant_option|on_future|roles|shares

```sh

$ pulumi import snowflake:index/procedureGrant:ProcedureGrant example "MY_DATABASE|MY_SCHEMA|MY_PROCEDURE|ARG1TYPE,ARG2TYPE|USAGE|false|false|role1,role2|share1,share2"

```

func GetProcedureGrant

func GetProcedureGrant(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ProcedureGrantState, opts ...pulumi.ResourceOption) (*ProcedureGrant, error)

GetProcedureGrant gets an existing ProcedureGrant resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewProcedureGrant

func NewProcedureGrant(ctx *pulumi.Context,
	name string, args *ProcedureGrantArgs, opts ...pulumi.ResourceOption) (*ProcedureGrant, error)

NewProcedureGrant registers a new resource with the given unique name, arguments, and options.

func (*ProcedureGrant) ElementType

func (*ProcedureGrant) ElementType() reflect.Type

func (*ProcedureGrant) ToProcedureGrantOutput

func (i *ProcedureGrant) ToProcedureGrantOutput() ProcedureGrantOutput

func (*ProcedureGrant) ToProcedureGrantOutputWithContext

func (i *ProcedureGrant) ToProcedureGrantOutputWithContext(ctx context.Context) ProcedureGrantOutput

type ProcedureGrantArgs

type ProcedureGrantArgs struct {
	// List of the argument data types for the procedure (must be present if procedure has arguments and procedureName is present)
	ArgumentDataTypes pulumi.StringArrayInput
	// The name of the database containing the current or future procedures on which to grant privileges.
	DatabaseName pulumi.StringInput
	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrInput
	// When this is set to true and a schema*name is provided, apply this grant on all procedures in the given schema. When this is true and no schema*name is provided apply this grant on all procedures in the given database. The procedure*name and shares fields must be unset in order to use on*all. Cannot be used together with on_future.
	OnAll pulumi.BoolPtrInput
	// When this is set to true and a schema*name is provided, apply this grant on all future procedures in the given schema. When this is true and no schema*name is provided apply this grant on all future procedures in the given database. The procedure*name and shares fields must be unset in order to use on*future. Cannot be used together with on_all.
	OnFuture pulumi.BoolPtrInput
	// The privilege to grant on the current or future procedure. To grant all privileges, use the value `ALL PRIVILEGES`
	Privilege pulumi.StringPtrInput
	// The name of the procedure on which to grant privileges immediately (only valid if onFuture is false).
	ProcedureName pulumi.StringPtrInput
	// The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
	RevertOwnershipToRoleName pulumi.StringPtrInput
	// Grants privilege to these roles.
	Roles pulumi.StringArrayInput
	// The name of the schema containing the current or future procedures on which to grant privileges.
	SchemaName pulumi.StringPtrInput
	// Grants privilege to these shares (only valid if onFuture is false).
	Shares pulumi.StringArrayInput
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrInput
}

The set of arguments for constructing a ProcedureGrant resource.

func (ProcedureGrantArgs) ElementType

func (ProcedureGrantArgs) ElementType() reflect.Type

type ProcedureGrantArray

type ProcedureGrantArray []ProcedureGrantInput

func (ProcedureGrantArray) ElementType

func (ProcedureGrantArray) ElementType() reflect.Type

func (ProcedureGrantArray) ToProcedureGrantArrayOutput

func (i ProcedureGrantArray) ToProcedureGrantArrayOutput() ProcedureGrantArrayOutput

func (ProcedureGrantArray) ToProcedureGrantArrayOutputWithContext

func (i ProcedureGrantArray) ToProcedureGrantArrayOutputWithContext(ctx context.Context) ProcedureGrantArrayOutput

type ProcedureGrantArrayInput

type ProcedureGrantArrayInput interface {
	pulumi.Input

	ToProcedureGrantArrayOutput() ProcedureGrantArrayOutput
	ToProcedureGrantArrayOutputWithContext(context.Context) ProcedureGrantArrayOutput
}

ProcedureGrantArrayInput is an input type that accepts ProcedureGrantArray and ProcedureGrantArrayOutput values. You can construct a concrete instance of `ProcedureGrantArrayInput` via:

ProcedureGrantArray{ ProcedureGrantArgs{...} }

type ProcedureGrantArrayOutput

type ProcedureGrantArrayOutput struct{ *pulumi.OutputState }

func (ProcedureGrantArrayOutput) ElementType

func (ProcedureGrantArrayOutput) ElementType() reflect.Type

func (ProcedureGrantArrayOutput) Index

func (ProcedureGrantArrayOutput) ToProcedureGrantArrayOutput

func (o ProcedureGrantArrayOutput) ToProcedureGrantArrayOutput() ProcedureGrantArrayOutput

func (ProcedureGrantArrayOutput) ToProcedureGrantArrayOutputWithContext

func (o ProcedureGrantArrayOutput) ToProcedureGrantArrayOutputWithContext(ctx context.Context) ProcedureGrantArrayOutput

type ProcedureGrantInput

type ProcedureGrantInput interface {
	pulumi.Input

	ToProcedureGrantOutput() ProcedureGrantOutput
	ToProcedureGrantOutputWithContext(ctx context.Context) ProcedureGrantOutput
}

type ProcedureGrantMap

type ProcedureGrantMap map[string]ProcedureGrantInput

func (ProcedureGrantMap) ElementType

func (ProcedureGrantMap) ElementType() reflect.Type

func (ProcedureGrantMap) ToProcedureGrantMapOutput

func (i ProcedureGrantMap) ToProcedureGrantMapOutput() ProcedureGrantMapOutput

func (ProcedureGrantMap) ToProcedureGrantMapOutputWithContext

func (i ProcedureGrantMap) ToProcedureGrantMapOutputWithContext(ctx context.Context) ProcedureGrantMapOutput

type ProcedureGrantMapInput

type ProcedureGrantMapInput interface {
	pulumi.Input

	ToProcedureGrantMapOutput() ProcedureGrantMapOutput
	ToProcedureGrantMapOutputWithContext(context.Context) ProcedureGrantMapOutput
}

ProcedureGrantMapInput is an input type that accepts ProcedureGrantMap and ProcedureGrantMapOutput values. You can construct a concrete instance of `ProcedureGrantMapInput` via:

ProcedureGrantMap{ "key": ProcedureGrantArgs{...} }

type ProcedureGrantMapOutput

type ProcedureGrantMapOutput struct{ *pulumi.OutputState }

func (ProcedureGrantMapOutput) ElementType

func (ProcedureGrantMapOutput) ElementType() reflect.Type

func (ProcedureGrantMapOutput) MapIndex

func (ProcedureGrantMapOutput) ToProcedureGrantMapOutput

func (o ProcedureGrantMapOutput) ToProcedureGrantMapOutput() ProcedureGrantMapOutput

func (ProcedureGrantMapOutput) ToProcedureGrantMapOutputWithContext

func (o ProcedureGrantMapOutput) ToProcedureGrantMapOutputWithContext(ctx context.Context) ProcedureGrantMapOutput

type ProcedureGrantOutput

type ProcedureGrantOutput struct{ *pulumi.OutputState }

func (ProcedureGrantOutput) ArgumentDataTypes added in v0.16.1

func (o ProcedureGrantOutput) ArgumentDataTypes() pulumi.StringArrayOutput

List of the argument data types for the procedure (must be present if procedure has arguments and procedureName is present)

func (ProcedureGrantOutput) DatabaseName added in v0.9.0

func (o ProcedureGrantOutput) DatabaseName() pulumi.StringOutput

The name of the database containing the current or future procedures on which to grant privileges.

func (ProcedureGrantOutput) ElementType

func (ProcedureGrantOutput) ElementType() reflect.Type

func (ProcedureGrantOutput) EnableMultipleGrants added in v0.9.0

func (o ProcedureGrantOutput) EnableMultipleGrants() pulumi.BoolPtrOutput

When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke grants applied to roles and objects outside Terraform.

func (ProcedureGrantOutput) OnAll added in v0.25.0

When this is set to true and a schema*name is provided, apply this grant on all procedures in the given schema. When this is true and no schema*name is provided apply this grant on all procedures in the given database. The procedure*name and shares fields must be unset in order to use on*all. Cannot be used together with on_future.

func (ProcedureGrantOutput) OnFuture added in v0.9.0

When this is set to true and a schema*name is provided, apply this grant on all future procedures in the given schema. When this is true and no schema*name is provided apply this grant on all future procedures in the given database. The procedure*name and shares fields must be unset in order to use on*future. Cannot be used together with on_all.

func (ProcedureGrantOutput) Privilege added in v0.9.0

The privilege to grant on the current or future procedure. To grant all privileges, use the value `ALL PRIVILEGES`

func (ProcedureGrantOutput) ProcedureName added in v0.9.0

func (o ProcedureGrantOutput) ProcedureName() pulumi.StringPtrOutput

The name of the procedure on which to grant privileges immediately (only valid if onFuture is false).

func (ProcedureGrantOutput) RevertOwnershipToRoleName added in v0.26.0

func (o ProcedureGrantOutput) RevertOwnershipToRoleName() pulumi.StringPtrOutput

The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`

func (ProcedureGrantOutput) Roles added in v0.9.0

Grants privilege to these roles.

func (ProcedureGrantOutput) SchemaName added in v0.9.0

The name of the schema containing the current or future procedures on which to grant privileges.

func (ProcedureGrantOutput) Shares added in v0.9.0

Grants privilege to these shares (only valid if onFuture is false).

func (ProcedureGrantOutput) ToProcedureGrantOutput

func (o ProcedureGrantOutput) ToProcedureGrantOutput() ProcedureGrantOutput

func (ProcedureGrantOutput) ToProcedureGrantOutputWithContext

func (o ProcedureGrantOutput) ToProcedureGrantOutputWithContext(ctx context.Context) ProcedureGrantOutput

func (ProcedureGrantOutput) WithGrantOption added in v0.9.0

func (o ProcedureGrantOutput) WithGrantOption() pulumi.BoolPtrOutput

When this is set to true, allows the recipient role to grant the privileges to other roles.

type ProcedureGrantState

type ProcedureGrantState struct {
	// List of the argument data types for the procedure (must be present if procedure has arguments and procedureName is present)
	ArgumentDataTypes pulumi.StringArrayInput
	// The name of the database containing the current or future procedures on which to grant privileges.
	DatabaseName pulumi.StringPtrInput
	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrInput
	// When this is set to true and a schema*name is provided, apply this grant on all procedures in the given schema. When this is true and no schema*name is provided apply this grant on all procedures in the given database. The procedure*name and shares fields must be unset in order to use on*all. Cannot be used together with on_future.
	OnAll pulumi.BoolPtrInput
	// When this is set to true and a schema*name is provided, apply this grant on all future procedures in the given schema. When this is true and no schema*name is provided apply this grant on all future procedures in the given database. The procedure*name and shares fields must be unset in order to use on*future. Cannot be used together with on_all.
	OnFuture pulumi.BoolPtrInput
	// The privilege to grant on the current or future procedure. To grant all privileges, use the value `ALL PRIVILEGES`
	Privilege pulumi.StringPtrInput
	// The name of the procedure on which to grant privileges immediately (only valid if onFuture is false).
	ProcedureName pulumi.StringPtrInput
	// The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
	RevertOwnershipToRoleName pulumi.StringPtrInput
	// Grants privilege to these roles.
	Roles pulumi.StringArrayInput
	// The name of the schema containing the current or future procedures on which to grant privileges.
	SchemaName pulumi.StringPtrInput
	// Grants privilege to these shares (only valid if onFuture is false).
	Shares pulumi.StringArrayInput
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrInput
}

func (ProcedureGrantState) ElementType

func (ProcedureGrantState) ElementType() reflect.Type

type ProcedureInput added in v0.1.3

type ProcedureInput interface {
	pulumi.Input

	ToProcedureOutput() ProcedureOutput
	ToProcedureOutputWithContext(ctx context.Context) ProcedureOutput
}

type ProcedureMap added in v0.1.3

type ProcedureMap map[string]ProcedureInput

func (ProcedureMap) ElementType added in v0.1.3

func (ProcedureMap) ElementType() reflect.Type

func (ProcedureMap) ToProcedureMapOutput added in v0.1.3

func (i ProcedureMap) ToProcedureMapOutput() ProcedureMapOutput

func (ProcedureMap) ToProcedureMapOutputWithContext added in v0.1.3

func (i ProcedureMap) ToProcedureMapOutputWithContext(ctx context.Context) ProcedureMapOutput

type ProcedureMapInput added in v0.1.3

type ProcedureMapInput interface {
	pulumi.Input

	ToProcedureMapOutput() ProcedureMapOutput
	ToProcedureMapOutputWithContext(context.Context) ProcedureMapOutput
}

ProcedureMapInput is an input type that accepts ProcedureMap and ProcedureMapOutput values. You can construct a concrete instance of `ProcedureMapInput` via:

ProcedureMap{ "key": ProcedureArgs{...} }

type ProcedureMapOutput added in v0.1.3

type ProcedureMapOutput struct{ *pulumi.OutputState }

func (ProcedureMapOutput) ElementType added in v0.1.3

func (ProcedureMapOutput) ElementType() reflect.Type

func (ProcedureMapOutput) MapIndex added in v0.1.3

func (ProcedureMapOutput) ToProcedureMapOutput added in v0.1.3

func (o ProcedureMapOutput) ToProcedureMapOutput() ProcedureMapOutput

func (ProcedureMapOutput) ToProcedureMapOutputWithContext added in v0.1.3

func (o ProcedureMapOutput) ToProcedureMapOutputWithContext(ctx context.Context) ProcedureMapOutput

type ProcedureOutput added in v0.1.3

type ProcedureOutput struct{ *pulumi.OutputState }

func (ProcedureOutput) Arguments added in v0.9.0

List of the arguments for the procedure

func (ProcedureOutput) Comment added in v0.9.0

Specifies a comment for the procedure.

func (ProcedureOutput) Database added in v0.9.0

func (o ProcedureOutput) Database() pulumi.StringOutput

The database in which to create the procedure. Don't use the | character.

func (ProcedureOutput) ElementType added in v0.1.3

func (ProcedureOutput) ElementType() reflect.Type

func (ProcedureOutput) ExecuteAs added in v0.9.0

func (o ProcedureOutput) ExecuteAs() pulumi.StringPtrOutput

Sets execute context - see caller's rights and owner's rights

func (ProcedureOutput) Handler added in v0.20.0

The handler method for Java / Python procedures.

func (ProcedureOutput) Imports added in v0.20.0

Imports for Java / Python procedures. For Java this a list of jar files, for Python this is a list of Python files.

func (ProcedureOutput) Language added in v0.10.0

func (o ProcedureOutput) Language() pulumi.StringPtrOutput

Specifies the language of the stored procedure code.

func (ProcedureOutput) Name added in v0.9.0

Specifies the identifier for the procedure; does not have to be unique for the schema in which the procedure is created. Don't use the | character.

func (ProcedureOutput) NullInputBehavior added in v0.9.0

func (o ProcedureOutput) NullInputBehavior() pulumi.StringPtrOutput

Specifies the behavior of the procedure when called with null inputs.

func (ProcedureOutput) Packages added in v0.20.0

List of package imports to use for Java / Python procedures. For Java, package imports should be of the form: package*name:version*number, where package*name is snowflake*domain:package. For Python use it should be: ('numpy','pandas','xgboost==1.5.0').

func (ProcedureOutput) ReturnBehavior added in v0.9.0

func (o ProcedureOutput) ReturnBehavior() pulumi.StringPtrOutput

Specifies the behavior of the function when returning results

func (ProcedureOutput) ReturnType added in v0.9.0

func (o ProcedureOutput) ReturnType() pulumi.StringOutput

The return type of the procedure

func (ProcedureOutput) RuntimeVersion added in v0.20.0

func (o ProcedureOutput) RuntimeVersion() pulumi.StringPtrOutput

Required for Python procedures. Specifies Python runtime version.

func (ProcedureOutput) Schema added in v0.9.0

func (o ProcedureOutput) Schema() pulumi.StringOutput

The schema in which to create the procedure. Don't use the | character.

func (ProcedureOutput) Statement added in v0.9.0

func (o ProcedureOutput) Statement() pulumi.StringOutput

Specifies the code used to create the procedure.

func (ProcedureOutput) ToProcedureOutput added in v0.1.3

func (o ProcedureOutput) ToProcedureOutput() ProcedureOutput

func (ProcedureOutput) ToProcedureOutputWithContext added in v0.1.3

func (o ProcedureOutput) ToProcedureOutputWithContext(ctx context.Context) ProcedureOutput

type ProcedureState added in v0.1.3

type ProcedureState struct {
	// List of the arguments for the procedure
	Arguments ProcedureArgumentArrayInput
	// Specifies a comment for the procedure.
	Comment pulumi.StringPtrInput
	// The database in which to create the procedure. Don't use the | character.
	Database pulumi.StringPtrInput
	// Sets execute context - see caller's rights and owner's rights
	ExecuteAs pulumi.StringPtrInput
	// The handler method for Java / Python procedures.
	Handler pulumi.StringPtrInput
	// Imports for Java / Python procedures. For Java this a list of jar files, for Python this is a list of Python files.
	Imports pulumi.StringArrayInput
	// Specifies the language of the stored procedure code.
	Language pulumi.StringPtrInput
	// Specifies the identifier for the procedure; does not have to be unique for the schema in which the procedure is created. Don't use the | character.
	Name pulumi.StringPtrInput
	// Specifies the behavior of the procedure when called with null inputs.
	NullInputBehavior pulumi.StringPtrInput
	// List of package imports to use for Java / Python procedures. For Java, package imports should be of the form: package*name:version*number, where package*name is snowflake*domain:package. For Python use it should be: ('numpy','pandas','xgboost==1.5.0').
	Packages pulumi.StringArrayInput
	// Specifies the behavior of the function when returning results
	ReturnBehavior pulumi.StringPtrInput
	// The return type of the procedure
	ReturnType pulumi.StringPtrInput
	// Required for Python procedures. Specifies Python runtime version.
	RuntimeVersion pulumi.StringPtrInput
	// The schema in which to create the procedure. Don't use the | character.
	Schema pulumi.StringPtrInput
	// Specifies the code used to create the procedure.
	Statement pulumi.StringPtrInput
}

func (ProcedureState) ElementType added in v0.1.3

func (ProcedureState) ElementType() reflect.Type

type Provider

type Provider struct {
	pulumi.ProviderResourceState

	// The name of the Snowflake account. Can also come from the `SNOWFLAKE_ACCOUNT` environment variable. Required unless
	// using profile.
	Account pulumi.StringPtrOutput `pulumi:"account"`
	// Supports passing in a custom host value to the snowflake go driver for use with privatelink.
	Host pulumi.StringPtrOutput `pulumi:"host"`
	// Token for use with OAuth. Generating the token is left to other tools. Cannot be used with `browser_auth`,
	// `private_key_path`, `oauth_refresh_token` or `password`. Can be sourced from `SNOWFLAKE_OAUTH_ACCESS_TOKEN` environment
	// variable.
	OauthAccessToken pulumi.StringPtrOutput `pulumi:"oauthAccessToken"`
	// Required when `oauth_refresh_token` is used. Can be sourced from `SNOWFLAKE_OAUTH_CLIENT_ID` environment variable.
	OauthClientId pulumi.StringPtrOutput `pulumi:"oauthClientId"`
	// Required when `oauth_refresh_token` is used. Can be sourced from `SNOWFLAKE_OAUTH_CLIENT_SECRET` environment variable.
	OauthClientSecret pulumi.StringPtrOutput `pulumi:"oauthClientSecret"`
	// Required when `oauth_refresh_token` is used. Can be sourced from `SNOWFLAKE_OAUTH_ENDPOINT` environment variable.
	OauthEndpoint pulumi.StringPtrOutput `pulumi:"oauthEndpoint"`
	// Required when `oauth_refresh_token` is used. Can be sourced from `SNOWFLAKE_OAUTH_REDIRECT_URL` environment variable.
	OauthRedirectUrl pulumi.StringPtrOutput `pulumi:"oauthRedirectUrl"`
	// Token for use with OAuth. Setup and generation of the token is left to other tools. Should be used in conjunction with
	// `oauth_client_id`, `oauth_client_secret`, `oauth_endpoint`, `oauth_redirect_url`. Cannot be used with `browser_auth`,
	// `private_key_path`, `oauth_access_token` or `password`. Can be sourced from `SNOWFLAKE_OAUTH_REFRESH_TOKEN` environment
	// variable.
	OauthRefreshToken pulumi.StringPtrOutput `pulumi:"oauthRefreshToken"`
	// Password for username+password auth. Cannot be used with `browser_auth` or `private_key_path`. Can be sourced from
	// `SNOWFLAKE_PASSWORD` environment variable.
	Password pulumi.StringPtrOutput `pulumi:"password"`
	// Private Key for username+private-key auth. Cannot be used with `browser_auth` or `password`. Can be sourced from
	// `SNOWFLAKE_PRIVATE_KEY` environment variable.
	PrivateKey pulumi.StringPtrOutput `pulumi:"privateKey"`
	// Supports the encryption ciphers aes-128-cbc, aes-128-gcm, aes-192-cbc, aes-192-gcm, aes-256-cbc, aes-256-gcm, and
	// des-ede3-cbc
	PrivateKeyPassphrase pulumi.StringPtrOutput `pulumi:"privateKeyPassphrase"`
	// Path to a private key for using keypair authentication. Cannot be used with `browser_auth`, `oauth_access_token` or
	// `password`. Can be sourced from `SNOWFLAKE_PRIVATE_KEY_PATH` environment variable.
	PrivateKeyPath pulumi.StringPtrOutput `pulumi:"privateKeyPath"`
	// Sets the profile to read from ~/.snowflake/config file.
	Profile pulumi.StringPtrOutput `pulumi:"profile"`
	// Support custom protocols to snowflake go driver. Can be sourced from `SNOWFLAKE_PROTOCOL` environment variable.
	Protocol pulumi.StringPtrOutput `pulumi:"protocol"`
	// [Snowflake region](https://docs.snowflake.com/en/user-guide/intro-regions.html) to use. Required if using the [legacy
	// format for the `account`
	// identifier](https://docs.snowflake.com/en/user-guide/admin-account-identifier.html#format-2-legacy-account-locator-in-a-region)
	// in the form of `<cloud_region_id>.<cloud>`. Can be sourced from the `SNOWFLAKE_REGION` environment variable.
	Region pulumi.StringPtrOutput `pulumi:"region"`
	// Snowflake role to use for operations. If left unset, default role for user will be used. Can be sourced from the
	// `SNOWFLAKE_ROLE` environment variable.
	Role pulumi.StringPtrOutput `pulumi:"role"`
	// Username for username+password authentication. Can come from the `SNOWFLAKE_USER` environment variable. Required unless
	// using profile.
	Username pulumi.StringPtrOutput `pulumi:"username"`
	// Sets the default warehouse. Optional. Can be sourced from SNOWFLAKE_WAREHOUSE environment variable.
	Warehouse pulumi.StringPtrOutput `pulumi:"warehouse"`
}

The provider type for the snowflake package. By default, resources use package-wide configuration settings, however an explicit `Provider` instance may be created and passed during resource construction to achieve fine-grained programmatic control over provider settings. See the [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.

func NewProvider

func NewProvider(ctx *pulumi.Context,
	name string, args *ProviderArgs, opts ...pulumi.ResourceOption) (*Provider, error)

NewProvider registers a new resource with the given unique name, arguments, and options.

func (*Provider) ElementType

func (*Provider) ElementType() reflect.Type

func (*Provider) ToProviderOutput

func (i *Provider) ToProviderOutput() ProviderOutput

func (*Provider) ToProviderOutputWithContext

func (i *Provider) ToProviderOutputWithContext(ctx context.Context) ProviderOutput

type ProviderArgs

type ProviderArgs struct {
	// The name of the Snowflake account. Can also come from the `SNOWFLAKE_ACCOUNT` environment variable. Required unless
	// using profile.
	Account pulumi.StringPtrInput
	// Required when `oauth_refresh_token` is used. Can be sourced from `SNOWFLAKE_USE_BROWSER_AUTH` environment variable.
	BrowserAuth pulumi.BoolPtrInput
	// Supports passing in a custom host value to the snowflake go driver for use with privatelink.
	Host pulumi.StringPtrInput
	// If true, bypass the Online Certificate Status Protocol (OCSP) certificate revocation check. IMPORTANT: Change the
	// default value for testing or emergency situations only.
	InsecureMode pulumi.BoolPtrInput
	// Token for use with OAuth. Generating the token is left to other tools. Cannot be used with `browser_auth`,
	// `private_key_path`, `oauth_refresh_token` or `password`. Can be sourced from `SNOWFLAKE_OAUTH_ACCESS_TOKEN` environment
	// variable.
	OauthAccessToken pulumi.StringPtrInput
	// Required when `oauth_refresh_token` is used. Can be sourced from `SNOWFLAKE_OAUTH_CLIENT_ID` environment variable.
	OauthClientId pulumi.StringPtrInput
	// Required when `oauth_refresh_token` is used. Can be sourced from `SNOWFLAKE_OAUTH_CLIENT_SECRET` environment variable.
	OauthClientSecret pulumi.StringPtrInput
	// Required when `oauth_refresh_token` is used. Can be sourced from `SNOWFLAKE_OAUTH_ENDPOINT` environment variable.
	OauthEndpoint pulumi.StringPtrInput
	// Required when `oauth_refresh_token` is used. Can be sourced from `SNOWFLAKE_OAUTH_REDIRECT_URL` environment variable.
	OauthRedirectUrl pulumi.StringPtrInput
	// Token for use with OAuth. Setup and generation of the token is left to other tools. Should be used in conjunction with
	// `oauth_client_id`, `oauth_client_secret`, `oauth_endpoint`, `oauth_redirect_url`. Cannot be used with `browser_auth`,
	// `private_key_path`, `oauth_access_token` or `password`. Can be sourced from `SNOWFLAKE_OAUTH_REFRESH_TOKEN` environment
	// variable.
	OauthRefreshToken pulumi.StringPtrInput
	// Password for username+password auth. Cannot be used with `browser_auth` or `private_key_path`. Can be sourced from
	// `SNOWFLAKE_PASSWORD` environment variable.
	Password pulumi.StringPtrInput
	// Support custom port values to snowflake go driver for use with privatelink. Can be sourced from `SNOWFLAKE_PORT`
	// environment variable.
	Port pulumi.IntPtrInput
	// Private Key for username+private-key auth. Cannot be used with `browser_auth` or `password`. Can be sourced from
	// `SNOWFLAKE_PRIVATE_KEY` environment variable.
	PrivateKey pulumi.StringPtrInput
	// Supports the encryption ciphers aes-128-cbc, aes-128-gcm, aes-192-cbc, aes-192-gcm, aes-256-cbc, aes-256-gcm, and
	// des-ede3-cbc
	PrivateKeyPassphrase pulumi.StringPtrInput
	// Path to a private key for using keypair authentication. Cannot be used with `browser_auth`, `oauth_access_token` or
	// `password`. Can be sourced from `SNOWFLAKE_PRIVATE_KEY_PATH` environment variable.
	PrivateKeyPath pulumi.StringPtrInput
	// Sets the profile to read from ~/.snowflake/config file.
	Profile pulumi.StringPtrInput
	// Support custom protocols to snowflake go driver. Can be sourced from `SNOWFLAKE_PROTOCOL` environment variable.
	Protocol pulumi.StringPtrInput
	// [Snowflake region](https://docs.snowflake.com/en/user-guide/intro-regions.html) to use. Required if using the [legacy
	// format for the `account`
	// identifier](https://docs.snowflake.com/en/user-guide/admin-account-identifier.html#format-2-legacy-account-locator-in-a-region)
	// in the form of `<cloud_region_id>.<cloud>`. Can be sourced from the `SNOWFLAKE_REGION` environment variable.
	Region pulumi.StringPtrInput
	// Snowflake role to use for operations. If left unset, default role for user will be used. Can be sourced from the
	// `SNOWFLAKE_ROLE` environment variable.
	Role pulumi.StringPtrInput
	// Sets session parameters. [Parameters](https://docs.snowflake.com/en/sql-reference/parameters)
	SessionParams pulumi.MapInput
	// Username for username+password authentication. Can come from the `SNOWFLAKE_USER` environment variable. Required unless
	// using profile.
	Username pulumi.StringPtrInput
	// Sets the default warehouse. Optional. Can be sourced from SNOWFLAKE_WAREHOUSE environment variable.
	Warehouse pulumi.StringPtrInput
}

The set of arguments for constructing a Provider resource.

func (ProviderArgs) ElementType

func (ProviderArgs) ElementType() reflect.Type

type ProviderInput

type ProviderInput interface {
	pulumi.Input

	ToProviderOutput() ProviderOutput
	ToProviderOutputWithContext(ctx context.Context) ProviderOutput
}

type ProviderOutput

type ProviderOutput struct{ *pulumi.OutputState }

func (ProviderOutput) Account added in v0.9.0

The name of the Snowflake account. Can also come from the `SNOWFLAKE_ACCOUNT` environment variable. Required unless using profile.

func (ProviderOutput) ElementType

func (ProviderOutput) ElementType() reflect.Type

func (ProviderOutput) Host added in v0.9.0

Supports passing in a custom host value to the snowflake go driver for use with privatelink.

func (ProviderOutput) OauthAccessToken added in v0.9.0

func (o ProviderOutput) OauthAccessToken() pulumi.StringPtrOutput

Token for use with OAuth. Generating the token is left to other tools. Cannot be used with `browser_auth`, `private_key_path`, `oauth_refresh_token` or `password`. Can be sourced from `SNOWFLAKE_OAUTH_ACCESS_TOKEN` environment variable.

func (ProviderOutput) OauthClientId added in v0.9.0

func (o ProviderOutput) OauthClientId() pulumi.StringPtrOutput

Required when `oauth_refresh_token` is used. Can be sourced from `SNOWFLAKE_OAUTH_CLIENT_ID` environment variable.

func (ProviderOutput) OauthClientSecret added in v0.9.0

func (o ProviderOutput) OauthClientSecret() pulumi.StringPtrOutput

Required when `oauth_refresh_token` is used. Can be sourced from `SNOWFLAKE_OAUTH_CLIENT_SECRET` environment variable.

func (ProviderOutput) OauthEndpoint added in v0.9.0

func (o ProviderOutput) OauthEndpoint() pulumi.StringPtrOutput

Required when `oauth_refresh_token` is used. Can be sourced from `SNOWFLAKE_OAUTH_ENDPOINT` environment variable.

func (ProviderOutput) OauthRedirectUrl added in v0.9.0

func (o ProviderOutput) OauthRedirectUrl() pulumi.StringPtrOutput

Required when `oauth_refresh_token` is used. Can be sourced from `SNOWFLAKE_OAUTH_REDIRECT_URL` environment variable.

func (ProviderOutput) OauthRefreshToken added in v0.9.0

func (o ProviderOutput) OauthRefreshToken() pulumi.StringPtrOutput

Token for use with OAuth. Setup and generation of the token is left to other tools. Should be used in conjunction with `oauth_client_id`, `oauth_client_secret`, `oauth_endpoint`, `oauth_redirect_url`. Cannot be used with `browser_auth`, `private_key_path`, `oauth_access_token` or `password`. Can be sourced from `SNOWFLAKE_OAUTH_REFRESH_TOKEN` environment variable.

func (ProviderOutput) Password added in v0.9.0

func (o ProviderOutput) Password() pulumi.StringPtrOutput

Password for username+password auth. Cannot be used with `browser_auth` or `private_key_path`. Can be sourced from `SNOWFLAKE_PASSWORD` environment variable.

func (ProviderOutput) PrivateKey added in v0.9.0

func (o ProviderOutput) PrivateKey() pulumi.StringPtrOutput

Private Key for username+private-key auth. Cannot be used with `browser_auth` or `password`. Can be sourced from `SNOWFLAKE_PRIVATE_KEY` environment variable.

func (ProviderOutput) PrivateKeyPassphrase added in v0.9.0

func (o ProviderOutput) PrivateKeyPassphrase() pulumi.StringPtrOutput

Supports the encryption ciphers aes-128-cbc, aes-128-gcm, aes-192-cbc, aes-192-gcm, aes-256-cbc, aes-256-gcm, and des-ede3-cbc

func (ProviderOutput) PrivateKeyPath added in v0.9.0

func (o ProviderOutput) PrivateKeyPath() pulumi.StringPtrOutput

Path to a private key for using keypair authentication. Cannot be used with `browser_auth`, `oauth_access_token` or `password`. Can be sourced from `SNOWFLAKE_PRIVATE_KEY_PATH` environment variable.

func (ProviderOutput) Profile added in v0.25.0

Sets the profile to read from ~/.snowflake/config file.

func (ProviderOutput) Protocol added in v0.14.0

func (o ProviderOutput) Protocol() pulumi.StringPtrOutput

Support custom protocols to snowflake go driver. Can be sourced from `SNOWFLAKE_PROTOCOL` environment variable.

func (ProviderOutput) Region added in v0.9.0

[Snowflake region](https://docs.snowflake.com/en/user-guide/intro-regions.html) to use. Required if using the [legacy format for the `account` identifier](https://docs.snowflake.com/en/user-guide/admin-account-identifier.html#format-2-legacy-account-locator-in-a-region) in the form of `<cloud_region_id>.<cloud>`. Can be sourced from the `SNOWFLAKE_REGION` environment variable.

func (ProviderOutput) Role added in v0.9.0

Snowflake role to use for operations. If left unset, default role for user will be used. Can be sourced from the `SNOWFLAKE_ROLE` environment variable.

func (ProviderOutput) ToProviderOutput

func (o ProviderOutput) ToProviderOutput() ProviderOutput

func (ProviderOutput) ToProviderOutputWithContext

func (o ProviderOutput) ToProviderOutputWithContext(ctx context.Context) ProviderOutput

func (ProviderOutput) Username added in v0.9.0

func (o ProviderOutput) Username() pulumi.StringPtrOutput

Username for username+password authentication. Can come from the `SNOWFLAKE_USER` environment variable. Required unless using profile.

func (ProviderOutput) Warehouse added in v0.11.0

func (o ProviderOutput) Warehouse() pulumi.StringPtrOutput

Sets the default warehouse. Optional. Can be sourced from SNOWFLAKE_WAREHOUSE environment variable.

type ResourceMonitor

type ResourceMonitor struct {
	pulumi.CustomResourceState

	// The number of credits allocated monthly to the resource monitor.
	CreditQuota pulumi.IntOutput `pulumi:"creditQuota"`
	// The date and time when the resource monitor suspends the assigned warehouses.
	EndTimestamp pulumi.StringPtrOutput `pulumi:"endTimestamp"`
	// The frequency interval at which the credit usage resets to 0. If you set a frequency for a resource monitor, you must also set START_TIMESTAMP.
	Frequency pulumi.StringOutput `pulumi:"frequency"`
	// Identifier for the resource monitor; must be unique for your account.
	Name pulumi.StringOutput `pulumi:"name"`
	// A list of percentage thresholds at which to send an alert to subscribed users.
	NotifyTriggers pulumi.IntArrayOutput `pulumi:"notifyTriggers"`
	// Specifies the list of users to receive email notifications on resource monitors.
	NotifyUsers pulumi.StringArrayOutput `pulumi:"notifyUsers"`
	// Specifies whether the resource monitor should be applied globally to your Snowflake account (defaults to false).
	SetForAccount pulumi.BoolPtrOutput `pulumi:"setForAccount"`
	// The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses.
	StartTimestamp pulumi.StringOutput `pulumi:"startTimestamp"`
	// The number that represents the percentage threshold at which to immediately suspend all warehouses.
	SuspendImmediateTrigger pulumi.IntPtrOutput `pulumi:"suspendImmediateTrigger"`
	// A list of percentage thresholds at which to suspend all warehouses.
	//
	// Deprecated: Use suspend_immediate_trigger instead
	SuspendImmediateTriggers pulumi.IntArrayOutput `pulumi:"suspendImmediateTriggers"`
	// The number that represents the percentage threshold at which to suspend all warehouses.
	SuspendTrigger pulumi.IntPtrOutput `pulumi:"suspendTrigger"`
	// A list of percentage thresholds at which to suspend all warehouses.
	//
	// Deprecated: Use suspend_trigger instead
	SuspendTriggers pulumi.IntArrayOutput `pulumi:"suspendTriggers"`
	// A list of warehouses to apply the resource monitor to.
	Warehouses pulumi.StringArrayOutput `pulumi:"warehouses"`
}

## Example Usage

```go 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.NewResourceMonitor(ctx, "monitor", &snowflake.ResourceMonitorArgs{
			CreditQuota:  pulumi.Int(100),
			EndTimestamp: pulumi.String("2021-12-07 00:00"),
			Frequency:    pulumi.String("DAILY"),
			NotifyTriggers: pulumi.IntArray{
				pulumi.Int(40),
				pulumi.Int(50),
			},
			NotifyUsers: pulumi.StringArray{
				pulumi.String("USERONE"),
				pulumi.String("USERTWO"),
			},
			StartTimestamp:           pulumi.String("2020-12-07 00:00"),
			SuspendImmediateTriggers: pulumi.IntArray(90),
			SuspendTriggers:          pulumi.IntArray(50),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

format is the resource monitor name

```sh

$ pulumi import snowflake:index/resourceMonitor:ResourceMonitor example 'resourceMonitorName'

```

func GetResourceMonitor

func GetResourceMonitor(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ResourceMonitorState, opts ...pulumi.ResourceOption) (*ResourceMonitor, error)

GetResourceMonitor gets an existing ResourceMonitor resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewResourceMonitor

func NewResourceMonitor(ctx *pulumi.Context,
	name string, args *ResourceMonitorArgs, opts ...pulumi.ResourceOption) (*ResourceMonitor, error)

NewResourceMonitor registers a new resource with the given unique name, arguments, and options.

func (*ResourceMonitor) ElementType

func (*ResourceMonitor) ElementType() reflect.Type

func (*ResourceMonitor) ToResourceMonitorOutput

func (i *ResourceMonitor) ToResourceMonitorOutput() ResourceMonitorOutput

func (*ResourceMonitor) ToResourceMonitorOutputWithContext

func (i *ResourceMonitor) ToResourceMonitorOutputWithContext(ctx context.Context) ResourceMonitorOutput

type ResourceMonitorArgs

type ResourceMonitorArgs struct {
	// The number of credits allocated monthly to the resource monitor.
	CreditQuota pulumi.IntPtrInput
	// The date and time when the resource monitor suspends the assigned warehouses.
	EndTimestamp pulumi.StringPtrInput
	// The frequency interval at which the credit usage resets to 0. If you set a frequency for a resource monitor, you must also set START_TIMESTAMP.
	Frequency pulumi.StringPtrInput
	// Identifier for the resource monitor; must be unique for your account.
	Name pulumi.StringPtrInput
	// A list of percentage thresholds at which to send an alert to subscribed users.
	NotifyTriggers pulumi.IntArrayInput
	// Specifies the list of users to receive email notifications on resource monitors.
	NotifyUsers pulumi.StringArrayInput
	// Specifies whether the resource monitor should be applied globally to your Snowflake account (defaults to false).
	SetForAccount pulumi.BoolPtrInput
	// The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses.
	StartTimestamp pulumi.StringPtrInput
	// The number that represents the percentage threshold at which to immediately suspend all warehouses.
	SuspendImmediateTrigger pulumi.IntPtrInput
	// A list of percentage thresholds at which to suspend all warehouses.
	//
	// Deprecated: Use suspend_immediate_trigger instead
	SuspendImmediateTriggers pulumi.IntArrayInput
	// The number that represents the percentage threshold at which to suspend all warehouses.
	SuspendTrigger pulumi.IntPtrInput
	// A list of percentage thresholds at which to suspend all warehouses.
	//
	// Deprecated: Use suspend_trigger instead
	SuspendTriggers pulumi.IntArrayInput
	// A list of warehouses to apply the resource monitor to.
	Warehouses pulumi.StringArrayInput
}

The set of arguments for constructing a ResourceMonitor resource.

func (ResourceMonitorArgs) ElementType

func (ResourceMonitorArgs) ElementType() reflect.Type

type ResourceMonitorArray

type ResourceMonitorArray []ResourceMonitorInput

func (ResourceMonitorArray) ElementType

func (ResourceMonitorArray) ElementType() reflect.Type

func (ResourceMonitorArray) ToResourceMonitorArrayOutput

func (i ResourceMonitorArray) ToResourceMonitorArrayOutput() ResourceMonitorArrayOutput

func (ResourceMonitorArray) ToResourceMonitorArrayOutputWithContext

func (i ResourceMonitorArray) ToResourceMonitorArrayOutputWithContext(ctx context.Context) ResourceMonitorArrayOutput

type ResourceMonitorArrayInput

type ResourceMonitorArrayInput interface {
	pulumi.Input

	ToResourceMonitorArrayOutput() ResourceMonitorArrayOutput
	ToResourceMonitorArrayOutputWithContext(context.Context) ResourceMonitorArrayOutput
}

ResourceMonitorArrayInput is an input type that accepts ResourceMonitorArray and ResourceMonitorArrayOutput values. You can construct a concrete instance of `ResourceMonitorArrayInput` via:

ResourceMonitorArray{ ResourceMonitorArgs{...} }

type ResourceMonitorArrayOutput

type ResourceMonitorArrayOutput struct{ *pulumi.OutputState }

func (ResourceMonitorArrayOutput) ElementType

func (ResourceMonitorArrayOutput) ElementType() reflect.Type

func (ResourceMonitorArrayOutput) Index

func (ResourceMonitorArrayOutput) ToResourceMonitorArrayOutput

func (o ResourceMonitorArrayOutput) ToResourceMonitorArrayOutput() ResourceMonitorArrayOutput

func (ResourceMonitorArrayOutput) ToResourceMonitorArrayOutputWithContext

func (o ResourceMonitorArrayOutput) ToResourceMonitorArrayOutputWithContext(ctx context.Context) ResourceMonitorArrayOutput

type ResourceMonitorGrant

type ResourceMonitorGrant struct {
	pulumi.CustomResourceState

	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrOutput `pulumi:"enableMultipleGrants"`
	// Identifier for the resource monitor; must be unique for your account.
	MonitorName pulumi.StringOutput `pulumi:"monitorName"`
	// The privilege to grant on the resource monitor. To grant all privileges, use the value `ALL PRIVILEGES`
	Privilege pulumi.StringPtrOutput `pulumi:"privilege"`
	// Grants privilege to these roles.
	Roles pulumi.StringArrayOutput `pulumi:"roles"`
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrOutput `pulumi:"withGrantOption"`
}

## Example Usage

```go 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.NewResourceMonitorGrant(ctx, "grant", &snowflake.ResourceMonitorGrantArgs{
			MonitorName: pulumi.String("monitor"),
			Privilege:   pulumi.String("MODIFY"),
			Roles: pulumi.StringArray{
				pulumi.String("role1"),
			},
			WithGrantOption: pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

format is monitor_name|privilege|with_grant_option|roles

```sh

$ pulumi import snowflake:index/resourceMonitorGrant:ResourceMonitorGrant example "MY_RESOURCE_MONITOR|MONITOR|false|role1,role2"

```

func GetResourceMonitorGrant

func GetResourceMonitorGrant(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ResourceMonitorGrantState, opts ...pulumi.ResourceOption) (*ResourceMonitorGrant, error)

GetResourceMonitorGrant gets an existing ResourceMonitorGrant resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewResourceMonitorGrant

func NewResourceMonitorGrant(ctx *pulumi.Context,
	name string, args *ResourceMonitorGrantArgs, opts ...pulumi.ResourceOption) (*ResourceMonitorGrant, error)

NewResourceMonitorGrant registers a new resource with the given unique name, arguments, and options.

func (*ResourceMonitorGrant) ElementType

func (*ResourceMonitorGrant) ElementType() reflect.Type

func (*ResourceMonitorGrant) ToResourceMonitorGrantOutput

func (i *ResourceMonitorGrant) ToResourceMonitorGrantOutput() ResourceMonitorGrantOutput

func (*ResourceMonitorGrant) ToResourceMonitorGrantOutputWithContext

func (i *ResourceMonitorGrant) ToResourceMonitorGrantOutputWithContext(ctx context.Context) ResourceMonitorGrantOutput

type ResourceMonitorGrantArgs

type ResourceMonitorGrantArgs struct {
	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrInput
	// Identifier for the resource monitor; must be unique for your account.
	MonitorName pulumi.StringInput
	// The privilege to grant on the resource monitor. To grant all privileges, use the value `ALL PRIVILEGES`
	Privilege pulumi.StringPtrInput
	// Grants privilege to these roles.
	Roles pulumi.StringArrayInput
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrInput
}

The set of arguments for constructing a ResourceMonitorGrant resource.

func (ResourceMonitorGrantArgs) ElementType

func (ResourceMonitorGrantArgs) ElementType() reflect.Type

type ResourceMonitorGrantArray

type ResourceMonitorGrantArray []ResourceMonitorGrantInput

func (ResourceMonitorGrantArray) ElementType

func (ResourceMonitorGrantArray) ElementType() reflect.Type

func (ResourceMonitorGrantArray) ToResourceMonitorGrantArrayOutput

func (i ResourceMonitorGrantArray) ToResourceMonitorGrantArrayOutput() ResourceMonitorGrantArrayOutput

func (ResourceMonitorGrantArray) ToResourceMonitorGrantArrayOutputWithContext

func (i ResourceMonitorGrantArray) ToResourceMonitorGrantArrayOutputWithContext(ctx context.Context) ResourceMonitorGrantArrayOutput

type ResourceMonitorGrantArrayInput

type ResourceMonitorGrantArrayInput interface {
	pulumi.Input

	ToResourceMonitorGrantArrayOutput() ResourceMonitorGrantArrayOutput
	ToResourceMonitorGrantArrayOutputWithContext(context.Context) ResourceMonitorGrantArrayOutput
}

ResourceMonitorGrantArrayInput is an input type that accepts ResourceMonitorGrantArray and ResourceMonitorGrantArrayOutput values. You can construct a concrete instance of `ResourceMonitorGrantArrayInput` via:

ResourceMonitorGrantArray{ ResourceMonitorGrantArgs{...} }

type ResourceMonitorGrantArrayOutput

type ResourceMonitorGrantArrayOutput struct{ *pulumi.OutputState }

func (ResourceMonitorGrantArrayOutput) ElementType

func (ResourceMonitorGrantArrayOutput) Index

func (ResourceMonitorGrantArrayOutput) ToResourceMonitorGrantArrayOutput

func (o ResourceMonitorGrantArrayOutput) ToResourceMonitorGrantArrayOutput() ResourceMonitorGrantArrayOutput

func (ResourceMonitorGrantArrayOutput) ToResourceMonitorGrantArrayOutputWithContext

func (o ResourceMonitorGrantArrayOutput) ToResourceMonitorGrantArrayOutputWithContext(ctx context.Context) ResourceMonitorGrantArrayOutput

type ResourceMonitorGrantInput

type ResourceMonitorGrantInput interface {
	pulumi.Input

	ToResourceMonitorGrantOutput() ResourceMonitorGrantOutput
	ToResourceMonitorGrantOutputWithContext(ctx context.Context) ResourceMonitorGrantOutput
}

type ResourceMonitorGrantMap

type ResourceMonitorGrantMap map[string]ResourceMonitorGrantInput

func (ResourceMonitorGrantMap) ElementType

func (ResourceMonitorGrantMap) ElementType() reflect.Type

func (ResourceMonitorGrantMap) ToResourceMonitorGrantMapOutput

func (i ResourceMonitorGrantMap) ToResourceMonitorGrantMapOutput() ResourceMonitorGrantMapOutput

func (ResourceMonitorGrantMap) ToResourceMonitorGrantMapOutputWithContext

func (i ResourceMonitorGrantMap) ToResourceMonitorGrantMapOutputWithContext(ctx context.Context) ResourceMonitorGrantMapOutput

type ResourceMonitorGrantMapInput

type ResourceMonitorGrantMapInput interface {
	pulumi.Input

	ToResourceMonitorGrantMapOutput() ResourceMonitorGrantMapOutput
	ToResourceMonitorGrantMapOutputWithContext(context.Context) ResourceMonitorGrantMapOutput
}

ResourceMonitorGrantMapInput is an input type that accepts ResourceMonitorGrantMap and ResourceMonitorGrantMapOutput values. You can construct a concrete instance of `ResourceMonitorGrantMapInput` via:

ResourceMonitorGrantMap{ "key": ResourceMonitorGrantArgs{...} }

type ResourceMonitorGrantMapOutput

type ResourceMonitorGrantMapOutput struct{ *pulumi.OutputState }

func (ResourceMonitorGrantMapOutput) ElementType

func (ResourceMonitorGrantMapOutput) MapIndex

func (ResourceMonitorGrantMapOutput) ToResourceMonitorGrantMapOutput

func (o ResourceMonitorGrantMapOutput) ToResourceMonitorGrantMapOutput() ResourceMonitorGrantMapOutput

func (ResourceMonitorGrantMapOutput) ToResourceMonitorGrantMapOutputWithContext

func (o ResourceMonitorGrantMapOutput) ToResourceMonitorGrantMapOutputWithContext(ctx context.Context) ResourceMonitorGrantMapOutput

type ResourceMonitorGrantOutput

type ResourceMonitorGrantOutput struct{ *pulumi.OutputState }

func (ResourceMonitorGrantOutput) ElementType

func (ResourceMonitorGrantOutput) ElementType() reflect.Type

func (ResourceMonitorGrantOutput) EnableMultipleGrants added in v0.9.0

func (o ResourceMonitorGrantOutput) EnableMultipleGrants() pulumi.BoolPtrOutput

When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke grants applied to roles and objects outside Terraform.

func (ResourceMonitorGrantOutput) MonitorName added in v0.9.0

Identifier for the resource monitor; must be unique for your account.

func (ResourceMonitorGrantOutput) Privilege added in v0.9.0

The privilege to grant on the resource monitor. To grant all privileges, use the value `ALL PRIVILEGES`

func (ResourceMonitorGrantOutput) Roles added in v0.9.0

Grants privilege to these roles.

func (ResourceMonitorGrantOutput) ToResourceMonitorGrantOutput

func (o ResourceMonitorGrantOutput) ToResourceMonitorGrantOutput() ResourceMonitorGrantOutput

func (ResourceMonitorGrantOutput) ToResourceMonitorGrantOutputWithContext

func (o ResourceMonitorGrantOutput) ToResourceMonitorGrantOutputWithContext(ctx context.Context) ResourceMonitorGrantOutput

func (ResourceMonitorGrantOutput) WithGrantOption added in v0.9.0

func (o ResourceMonitorGrantOutput) WithGrantOption() pulumi.BoolPtrOutput

When this is set to true, allows the recipient role to grant the privileges to other roles.

type ResourceMonitorGrantState

type ResourceMonitorGrantState struct {
	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrInput
	// Identifier for the resource monitor; must be unique for your account.
	MonitorName pulumi.StringPtrInput
	// The privilege to grant on the resource monitor. To grant all privileges, use the value `ALL PRIVILEGES`
	Privilege pulumi.StringPtrInput
	// Grants privilege to these roles.
	Roles pulumi.StringArrayInput
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrInput
}

func (ResourceMonitorGrantState) ElementType

func (ResourceMonitorGrantState) ElementType() reflect.Type

type ResourceMonitorInput

type ResourceMonitorInput interface {
	pulumi.Input

	ToResourceMonitorOutput() ResourceMonitorOutput
	ToResourceMonitorOutputWithContext(ctx context.Context) ResourceMonitorOutput
}

type ResourceMonitorMap

type ResourceMonitorMap map[string]ResourceMonitorInput

func (ResourceMonitorMap) ElementType

func (ResourceMonitorMap) ElementType() reflect.Type

func (ResourceMonitorMap) ToResourceMonitorMapOutput

func (i ResourceMonitorMap) ToResourceMonitorMapOutput() ResourceMonitorMapOutput

func (ResourceMonitorMap) ToResourceMonitorMapOutputWithContext

func (i ResourceMonitorMap) ToResourceMonitorMapOutputWithContext(ctx context.Context) ResourceMonitorMapOutput

type ResourceMonitorMapInput

type ResourceMonitorMapInput interface {
	pulumi.Input

	ToResourceMonitorMapOutput() ResourceMonitorMapOutput
	ToResourceMonitorMapOutputWithContext(context.Context) ResourceMonitorMapOutput
}

ResourceMonitorMapInput is an input type that accepts ResourceMonitorMap and ResourceMonitorMapOutput values. You can construct a concrete instance of `ResourceMonitorMapInput` via:

ResourceMonitorMap{ "key": ResourceMonitorArgs{...} }

type ResourceMonitorMapOutput

type ResourceMonitorMapOutput struct{ *pulumi.OutputState }

func (ResourceMonitorMapOutput) ElementType

func (ResourceMonitorMapOutput) ElementType() reflect.Type

func (ResourceMonitorMapOutput) MapIndex

func (ResourceMonitorMapOutput) ToResourceMonitorMapOutput

func (o ResourceMonitorMapOutput) ToResourceMonitorMapOutput() ResourceMonitorMapOutput

func (ResourceMonitorMapOutput) ToResourceMonitorMapOutputWithContext

func (o ResourceMonitorMapOutput) ToResourceMonitorMapOutputWithContext(ctx context.Context) ResourceMonitorMapOutput

type ResourceMonitorOutput

type ResourceMonitorOutput struct{ *pulumi.OutputState }

func (ResourceMonitorOutput) CreditQuota added in v0.9.0

func (o ResourceMonitorOutput) CreditQuota() pulumi.IntOutput

The number of credits allocated monthly to the resource monitor.

func (ResourceMonitorOutput) ElementType

func (ResourceMonitorOutput) ElementType() reflect.Type

func (ResourceMonitorOutput) EndTimestamp added in v0.9.0

func (o ResourceMonitorOutput) EndTimestamp() pulumi.StringPtrOutput

The date and time when the resource monitor suspends the assigned warehouses.

func (ResourceMonitorOutput) Frequency added in v0.9.0

The frequency interval at which the credit usage resets to 0. If you set a frequency for a resource monitor, you must also set START_TIMESTAMP.

func (ResourceMonitorOutput) Name added in v0.9.0

Identifier for the resource monitor; must be unique for your account.

func (ResourceMonitorOutput) NotifyTriggers added in v0.9.0

func (o ResourceMonitorOutput) NotifyTriggers() pulumi.IntArrayOutput

A list of percentage thresholds at which to send an alert to subscribed users.

func (ResourceMonitorOutput) NotifyUsers added in v0.15.0

Specifies the list of users to receive email notifications on resource monitors.

func (ResourceMonitorOutput) SetForAccount added in v0.9.0

func (o ResourceMonitorOutput) SetForAccount() pulumi.BoolPtrOutput

Specifies whether the resource monitor should be applied globally to your Snowflake account (defaults to false).

func (ResourceMonitorOutput) StartTimestamp added in v0.9.0

func (o ResourceMonitorOutput) StartTimestamp() pulumi.StringOutput

The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses.

func (ResourceMonitorOutput) SuspendImmediateTrigger added in v0.20.0

func (o ResourceMonitorOutput) SuspendImmediateTrigger() pulumi.IntPtrOutput

The number that represents the percentage threshold at which to immediately suspend all warehouses.

func (ResourceMonitorOutput) SuspendImmediateTriggers deprecated added in v0.9.0

func (o ResourceMonitorOutput) SuspendImmediateTriggers() pulumi.IntArrayOutput

A list of percentage thresholds at which to suspend all warehouses.

Deprecated: Use suspend_immediate_trigger instead

func (ResourceMonitorOutput) SuspendTrigger added in v0.20.0

func (o ResourceMonitorOutput) SuspendTrigger() pulumi.IntPtrOutput

The number that represents the percentage threshold at which to suspend all warehouses.

func (ResourceMonitorOutput) SuspendTriggers deprecated added in v0.9.0

func (o ResourceMonitorOutput) SuspendTriggers() pulumi.IntArrayOutput

A list of percentage thresholds at which to suspend all warehouses.

Deprecated: Use suspend_trigger instead

func (ResourceMonitorOutput) ToResourceMonitorOutput

func (o ResourceMonitorOutput) ToResourceMonitorOutput() ResourceMonitorOutput

func (ResourceMonitorOutput) ToResourceMonitorOutputWithContext

func (o ResourceMonitorOutput) ToResourceMonitorOutputWithContext(ctx context.Context) ResourceMonitorOutput

func (ResourceMonitorOutput) Warehouses added in v0.9.0

A list of warehouses to apply the resource monitor to.

type ResourceMonitorState

type ResourceMonitorState struct {
	// The number of credits allocated monthly to the resource monitor.
	CreditQuota pulumi.IntPtrInput
	// The date and time when the resource monitor suspends the assigned warehouses.
	EndTimestamp pulumi.StringPtrInput
	// The frequency interval at which the credit usage resets to 0. If you set a frequency for a resource monitor, you must also set START_TIMESTAMP.
	Frequency pulumi.StringPtrInput
	// Identifier for the resource monitor; must be unique for your account.
	Name pulumi.StringPtrInput
	// A list of percentage thresholds at which to send an alert to subscribed users.
	NotifyTriggers pulumi.IntArrayInput
	// Specifies the list of users to receive email notifications on resource monitors.
	NotifyUsers pulumi.StringArrayInput
	// Specifies whether the resource monitor should be applied globally to your Snowflake account (defaults to false).
	SetForAccount pulumi.BoolPtrInput
	// The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses.
	StartTimestamp pulumi.StringPtrInput
	// The number that represents the percentage threshold at which to immediately suspend all warehouses.
	SuspendImmediateTrigger pulumi.IntPtrInput
	// A list of percentage thresholds at which to suspend all warehouses.
	//
	// Deprecated: Use suspend_immediate_trigger instead
	SuspendImmediateTriggers pulumi.IntArrayInput
	// The number that represents the percentage threshold at which to suspend all warehouses.
	SuspendTrigger pulumi.IntPtrInput
	// A list of percentage thresholds at which to suspend all warehouses.
	//
	// Deprecated: Use suspend_trigger instead
	SuspendTriggers pulumi.IntArrayInput
	// A list of warehouses to apply the resource monitor to.
	Warehouses pulumi.StringArrayInput
}

func (ResourceMonitorState) ElementType

func (ResourceMonitorState) ElementType() reflect.Type

type Role

type Role struct {
	pulumi.CustomResourceState

	Comment pulumi.StringPtrOutput `pulumi:"comment"`
	Name    pulumi.StringOutput    `pulumi:"name"`
	// Definitions of a tag to associate with the resource.
	//
	// Deprecated: Use the 'snowflake_tag_association' resource instead.
	Tags RoleTagArrayOutput `pulumi:"tags"`
}

## Example Usage

```go 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.NewRole(ctx, "role", &snowflake.RoleArgs{
			Comment: pulumi.String("A role."),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

```sh

$ pulumi import snowflake:index/role:Role example roleName

```

func GetRole

func GetRole(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *RoleState, opts ...pulumi.ResourceOption) (*Role, error)

GetRole gets an existing Role resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewRole

func NewRole(ctx *pulumi.Context,
	name string, args *RoleArgs, opts ...pulumi.ResourceOption) (*Role, error)

NewRole registers a new resource with the given unique name, arguments, and options.

func (*Role) ElementType

func (*Role) ElementType() reflect.Type

func (*Role) ToRoleOutput

func (i *Role) ToRoleOutput() RoleOutput

func (*Role) ToRoleOutputWithContext

func (i *Role) ToRoleOutputWithContext(ctx context.Context) RoleOutput

type RoleArgs

type RoleArgs struct {
	Comment pulumi.StringPtrInput
	Name    pulumi.StringPtrInput
	// Definitions of a tag to associate with the resource.
	//
	// Deprecated: Use the 'snowflake_tag_association' resource instead.
	Tags RoleTagArrayInput
}

The set of arguments for constructing a Role resource.

func (RoleArgs) ElementType

func (RoleArgs) ElementType() reflect.Type

type RoleArray

type RoleArray []RoleInput

func (RoleArray) ElementType

func (RoleArray) ElementType() reflect.Type

func (RoleArray) ToRoleArrayOutput

func (i RoleArray) ToRoleArrayOutput() RoleArrayOutput

func (RoleArray) ToRoleArrayOutputWithContext

func (i RoleArray) ToRoleArrayOutputWithContext(ctx context.Context) RoleArrayOutput

type RoleArrayInput

type RoleArrayInput interface {
	pulumi.Input

	ToRoleArrayOutput() RoleArrayOutput
	ToRoleArrayOutputWithContext(context.Context) RoleArrayOutput
}

RoleArrayInput is an input type that accepts RoleArray and RoleArrayOutput values. You can construct a concrete instance of `RoleArrayInput` via:

RoleArray{ RoleArgs{...} }

type RoleArrayOutput

type RoleArrayOutput struct{ *pulumi.OutputState }

func (RoleArrayOutput) ElementType

func (RoleArrayOutput) ElementType() reflect.Type

func (RoleArrayOutput) Index

func (RoleArrayOutput) ToRoleArrayOutput

func (o RoleArrayOutput) ToRoleArrayOutput() RoleArrayOutput

func (RoleArrayOutput) ToRoleArrayOutputWithContext

func (o RoleArrayOutput) ToRoleArrayOutputWithContext(ctx context.Context) RoleArrayOutput

type RoleGrants

type RoleGrants struct {
	pulumi.CustomResourceState

	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrOutput `pulumi:"enableMultipleGrants"`
	// The name of the role we are granting.
	RoleName pulumi.StringOutput `pulumi:"roleName"`
	// Grants role to this specified role.
	Roles pulumi.StringArrayOutput `pulumi:"roles"`
	// Grants role to this specified user.
	Users pulumi.StringArrayOutput `pulumi:"users"`
}

## Example Usage

```go 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 {
		role, err := snowflake.NewRole(ctx, "role", &snowflake.RoleArgs{
			Comment: pulumi.String("for testing"),
		})
		if err != nil {
			return err
		}
		user, err := snowflake.NewUser(ctx, "user", &snowflake.UserArgs{
			Comment: pulumi.String("for testing"),
		})
		if err != nil {
			return err
		}
		user2, err := snowflake.NewUser(ctx, "user2", &snowflake.UserArgs{
			Comment: pulumi.String("for testing"),
		})
		if err != nil {
			return err
		}
		otherRole, err := snowflake.NewRole(ctx, "otherRole", nil)
		if err != nil {
			return err
		}
		_, err = snowflake.NewRoleGrants(ctx, "grants", &snowflake.RoleGrantsArgs{
			RoleName: role.Name,
			Roles: pulumi.StringArray{
				otherRole.Name,
			},
			Users: pulumi.StringArray{
				user.Name,
				user2.Name,
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

format is role_name|roles|users

```sh

$ pulumi import snowflake:index/roleGrants:RoleGrants example "role_name|role1,role2|user1,user2"

```

func GetRoleGrants

func GetRoleGrants(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *RoleGrantsState, opts ...pulumi.ResourceOption) (*RoleGrants, error)

GetRoleGrants gets an existing RoleGrants resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewRoleGrants

func NewRoleGrants(ctx *pulumi.Context,
	name string, args *RoleGrantsArgs, opts ...pulumi.ResourceOption) (*RoleGrants, error)

NewRoleGrants registers a new resource with the given unique name, arguments, and options.

func (*RoleGrants) ElementType

func (*RoleGrants) ElementType() reflect.Type

func (*RoleGrants) ToRoleGrantsOutput

func (i *RoleGrants) ToRoleGrantsOutput() RoleGrantsOutput

func (*RoleGrants) ToRoleGrantsOutputWithContext

func (i *RoleGrants) ToRoleGrantsOutputWithContext(ctx context.Context) RoleGrantsOutput

type RoleGrantsArgs

type RoleGrantsArgs struct {
	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrInput
	// The name of the role we are granting.
	RoleName pulumi.StringInput
	// Grants role to this specified role.
	Roles pulumi.StringArrayInput
	// Grants role to this specified user.
	Users pulumi.StringArrayInput
}

The set of arguments for constructing a RoleGrants resource.

func (RoleGrantsArgs) ElementType

func (RoleGrantsArgs) ElementType() reflect.Type

type RoleGrantsArray

type RoleGrantsArray []RoleGrantsInput

func (RoleGrantsArray) ElementType

func (RoleGrantsArray) ElementType() reflect.Type

func (RoleGrantsArray) ToRoleGrantsArrayOutput

func (i RoleGrantsArray) ToRoleGrantsArrayOutput() RoleGrantsArrayOutput

func (RoleGrantsArray) ToRoleGrantsArrayOutputWithContext

func (i RoleGrantsArray) ToRoleGrantsArrayOutputWithContext(ctx context.Context) RoleGrantsArrayOutput

type RoleGrantsArrayInput

type RoleGrantsArrayInput interface {
	pulumi.Input

	ToRoleGrantsArrayOutput() RoleGrantsArrayOutput
	ToRoleGrantsArrayOutputWithContext(context.Context) RoleGrantsArrayOutput
}

RoleGrantsArrayInput is an input type that accepts RoleGrantsArray and RoleGrantsArrayOutput values. You can construct a concrete instance of `RoleGrantsArrayInput` via:

RoleGrantsArray{ RoleGrantsArgs{...} }

type RoleGrantsArrayOutput

type RoleGrantsArrayOutput struct{ *pulumi.OutputState }

func (RoleGrantsArrayOutput) ElementType

func (RoleGrantsArrayOutput) ElementType() reflect.Type

func (RoleGrantsArrayOutput) Index

func (RoleGrantsArrayOutput) ToRoleGrantsArrayOutput

func (o RoleGrantsArrayOutput) ToRoleGrantsArrayOutput() RoleGrantsArrayOutput

func (RoleGrantsArrayOutput) ToRoleGrantsArrayOutputWithContext

func (o RoleGrantsArrayOutput) ToRoleGrantsArrayOutputWithContext(ctx context.Context) RoleGrantsArrayOutput

type RoleGrantsInput

type RoleGrantsInput interface {
	pulumi.Input

	ToRoleGrantsOutput() RoleGrantsOutput
	ToRoleGrantsOutputWithContext(ctx context.Context) RoleGrantsOutput
}

type RoleGrantsMap

type RoleGrantsMap map[string]RoleGrantsInput

func (RoleGrantsMap) ElementType

func (RoleGrantsMap) ElementType() reflect.Type

func (RoleGrantsMap) ToRoleGrantsMapOutput

func (i RoleGrantsMap) ToRoleGrantsMapOutput() RoleGrantsMapOutput

func (RoleGrantsMap) ToRoleGrantsMapOutputWithContext

func (i RoleGrantsMap) ToRoleGrantsMapOutputWithContext(ctx context.Context) RoleGrantsMapOutput

type RoleGrantsMapInput

type RoleGrantsMapInput interface {
	pulumi.Input

	ToRoleGrantsMapOutput() RoleGrantsMapOutput
	ToRoleGrantsMapOutputWithContext(context.Context) RoleGrantsMapOutput
}

RoleGrantsMapInput is an input type that accepts RoleGrantsMap and RoleGrantsMapOutput values. You can construct a concrete instance of `RoleGrantsMapInput` via:

RoleGrantsMap{ "key": RoleGrantsArgs{...} }

type RoleGrantsMapOutput

type RoleGrantsMapOutput struct{ *pulumi.OutputState }

func (RoleGrantsMapOutput) ElementType

func (RoleGrantsMapOutput) ElementType() reflect.Type

func (RoleGrantsMapOutput) MapIndex

func (RoleGrantsMapOutput) ToRoleGrantsMapOutput

func (o RoleGrantsMapOutput) ToRoleGrantsMapOutput() RoleGrantsMapOutput

func (RoleGrantsMapOutput) ToRoleGrantsMapOutputWithContext

func (o RoleGrantsMapOutput) ToRoleGrantsMapOutputWithContext(ctx context.Context) RoleGrantsMapOutput

type RoleGrantsOutput

type RoleGrantsOutput struct{ *pulumi.OutputState }

func (RoleGrantsOutput) ElementType

func (RoleGrantsOutput) ElementType() reflect.Type

func (RoleGrantsOutput) EnableMultipleGrants added in v0.9.0

func (o RoleGrantsOutput) EnableMultipleGrants() pulumi.BoolPtrOutput

When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke grants applied to roles and objects outside Terraform.

func (RoleGrantsOutput) RoleName added in v0.9.0

func (o RoleGrantsOutput) RoleName() pulumi.StringOutput

The name of the role we are granting.

func (RoleGrantsOutput) Roles added in v0.9.0

Grants role to this specified role.

func (RoleGrantsOutput) ToRoleGrantsOutput

func (o RoleGrantsOutput) ToRoleGrantsOutput() RoleGrantsOutput

func (RoleGrantsOutput) ToRoleGrantsOutputWithContext

func (o RoleGrantsOutput) ToRoleGrantsOutputWithContext(ctx context.Context) RoleGrantsOutput

func (RoleGrantsOutput) Users added in v0.9.0

Grants role to this specified user.

type RoleGrantsState

type RoleGrantsState struct {
	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrInput
	// The name of the role we are granting.
	RoleName pulumi.StringPtrInput
	// Grants role to this specified role.
	Roles pulumi.StringArrayInput
	// Grants role to this specified user.
	Users pulumi.StringArrayInput
}

func (RoleGrantsState) ElementType

func (RoleGrantsState) ElementType() reflect.Type

type RoleInput

type RoleInput interface {
	pulumi.Input

	ToRoleOutput() RoleOutput
	ToRoleOutputWithContext(ctx context.Context) RoleOutput
}

type RoleMap

type RoleMap map[string]RoleInput

func (RoleMap) ElementType

func (RoleMap) ElementType() reflect.Type

func (RoleMap) ToRoleMapOutput

func (i RoleMap) ToRoleMapOutput() RoleMapOutput

func (RoleMap) ToRoleMapOutputWithContext

func (i RoleMap) ToRoleMapOutputWithContext(ctx context.Context) RoleMapOutput

type RoleMapInput

type RoleMapInput interface {
	pulumi.Input

	ToRoleMapOutput() RoleMapOutput
	ToRoleMapOutputWithContext(context.Context) RoleMapOutput
}

RoleMapInput is an input type that accepts RoleMap and RoleMapOutput values. You can construct a concrete instance of `RoleMapInput` via:

RoleMap{ "key": RoleArgs{...} }

type RoleMapOutput

type RoleMapOutput struct{ *pulumi.OutputState }

func (RoleMapOutput) ElementType

func (RoleMapOutput) ElementType() reflect.Type

func (RoleMapOutput) MapIndex

func (RoleMapOutput) ToRoleMapOutput

func (o RoleMapOutput) ToRoleMapOutput() RoleMapOutput

func (RoleMapOutput) ToRoleMapOutputWithContext

func (o RoleMapOutput) ToRoleMapOutputWithContext(ctx context.Context) RoleMapOutput

type RoleOutput

type RoleOutput struct{ *pulumi.OutputState }

func (RoleOutput) Comment added in v0.9.0

func (o RoleOutput) Comment() pulumi.StringPtrOutput

func (RoleOutput) ElementType

func (RoleOutput) ElementType() reflect.Type

func (RoleOutput) Name added in v0.9.0

func (o RoleOutput) Name() pulumi.StringOutput

func (RoleOutput) Tags deprecated added in v0.9.0

func (o RoleOutput) Tags() RoleTagArrayOutput

Definitions of a tag to associate with the resource.

Deprecated: Use the 'snowflake_tag_association' resource instead.

func (RoleOutput) ToRoleOutput

func (o RoleOutput) ToRoleOutput() RoleOutput

func (RoleOutput) ToRoleOutputWithContext

func (o RoleOutput) ToRoleOutputWithContext(ctx context.Context) RoleOutput

type RoleOwnershipGrant added in v0.6.0

type RoleOwnershipGrant struct {
	pulumi.CustomResourceState

	// Specifies whether to remove or transfer all existing outbound privileges on the object when ownership is transferred to a new role.
	CurrentGrants pulumi.StringPtrOutput `pulumi:"currentGrants"`
	// The name of the role ownership is granted on.
	OnRoleName pulumi.StringOutput `pulumi:"onRoleName"`
	// The name of the role to revert ownership to on destroy.
	RevertOwnershipToRoleName pulumi.StringPtrOutput `pulumi:"revertOwnershipToRoleName"`
	// The name of the role to grant ownership. Please ensure that the role that terraform is using is granted access.
	ToRoleName pulumi.StringOutput `pulumi:"toRoleName"`
}

func GetRoleOwnershipGrant added in v0.6.0

func GetRoleOwnershipGrant(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *RoleOwnershipGrantState, opts ...pulumi.ResourceOption) (*RoleOwnershipGrant, error)

GetRoleOwnershipGrant gets an existing RoleOwnershipGrant resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewRoleOwnershipGrant added in v0.6.0

func NewRoleOwnershipGrant(ctx *pulumi.Context,
	name string, args *RoleOwnershipGrantArgs, opts ...pulumi.ResourceOption) (*RoleOwnershipGrant, error)

NewRoleOwnershipGrant registers a new resource with the given unique name, arguments, and options.

func (*RoleOwnershipGrant) ElementType added in v0.6.0

func (*RoleOwnershipGrant) ElementType() reflect.Type

func (*RoleOwnershipGrant) ToRoleOwnershipGrantOutput added in v0.6.0

func (i *RoleOwnershipGrant) ToRoleOwnershipGrantOutput() RoleOwnershipGrantOutput

func (*RoleOwnershipGrant) ToRoleOwnershipGrantOutputWithContext added in v0.6.0

func (i *RoleOwnershipGrant) ToRoleOwnershipGrantOutputWithContext(ctx context.Context) RoleOwnershipGrantOutput

type RoleOwnershipGrantArgs added in v0.6.0

type RoleOwnershipGrantArgs struct {
	// Specifies whether to remove or transfer all existing outbound privileges on the object when ownership is transferred to a new role.
	CurrentGrants pulumi.StringPtrInput
	// The name of the role ownership is granted on.
	OnRoleName pulumi.StringInput
	// The name of the role to revert ownership to on destroy.
	RevertOwnershipToRoleName pulumi.StringPtrInput
	// The name of the role to grant ownership. Please ensure that the role that terraform is using is granted access.
	ToRoleName pulumi.StringInput
}

The set of arguments for constructing a RoleOwnershipGrant resource.

func (RoleOwnershipGrantArgs) ElementType added in v0.6.0

func (RoleOwnershipGrantArgs) ElementType() reflect.Type

type RoleOwnershipGrantArray added in v0.6.0

type RoleOwnershipGrantArray []RoleOwnershipGrantInput

func (RoleOwnershipGrantArray) ElementType added in v0.6.0

func (RoleOwnershipGrantArray) ElementType() reflect.Type

func (RoleOwnershipGrantArray) ToRoleOwnershipGrantArrayOutput added in v0.6.0

func (i RoleOwnershipGrantArray) ToRoleOwnershipGrantArrayOutput() RoleOwnershipGrantArrayOutput

func (RoleOwnershipGrantArray) ToRoleOwnershipGrantArrayOutputWithContext added in v0.6.0

func (i RoleOwnershipGrantArray) ToRoleOwnershipGrantArrayOutputWithContext(ctx context.Context) RoleOwnershipGrantArrayOutput

type RoleOwnershipGrantArrayInput added in v0.6.0

type RoleOwnershipGrantArrayInput interface {
	pulumi.Input

	ToRoleOwnershipGrantArrayOutput() RoleOwnershipGrantArrayOutput
	ToRoleOwnershipGrantArrayOutputWithContext(context.Context) RoleOwnershipGrantArrayOutput
}

RoleOwnershipGrantArrayInput is an input type that accepts RoleOwnershipGrantArray and RoleOwnershipGrantArrayOutput values. You can construct a concrete instance of `RoleOwnershipGrantArrayInput` via:

RoleOwnershipGrantArray{ RoleOwnershipGrantArgs{...} }

type RoleOwnershipGrantArrayOutput added in v0.6.0

type RoleOwnershipGrantArrayOutput struct{ *pulumi.OutputState }

func (RoleOwnershipGrantArrayOutput) ElementType added in v0.6.0

func (RoleOwnershipGrantArrayOutput) Index added in v0.6.0

func (RoleOwnershipGrantArrayOutput) ToRoleOwnershipGrantArrayOutput added in v0.6.0

func (o RoleOwnershipGrantArrayOutput) ToRoleOwnershipGrantArrayOutput() RoleOwnershipGrantArrayOutput

func (RoleOwnershipGrantArrayOutput) ToRoleOwnershipGrantArrayOutputWithContext added in v0.6.0

func (o RoleOwnershipGrantArrayOutput) ToRoleOwnershipGrantArrayOutputWithContext(ctx context.Context) RoleOwnershipGrantArrayOutput

type RoleOwnershipGrantInput added in v0.6.0

type RoleOwnershipGrantInput interface {
	pulumi.Input

	ToRoleOwnershipGrantOutput() RoleOwnershipGrantOutput
	ToRoleOwnershipGrantOutputWithContext(ctx context.Context) RoleOwnershipGrantOutput
}

type RoleOwnershipGrantMap added in v0.6.0

type RoleOwnershipGrantMap map[string]RoleOwnershipGrantInput

func (RoleOwnershipGrantMap) ElementType added in v0.6.0

func (RoleOwnershipGrantMap) ElementType() reflect.Type

func (RoleOwnershipGrantMap) ToRoleOwnershipGrantMapOutput added in v0.6.0

func (i RoleOwnershipGrantMap) ToRoleOwnershipGrantMapOutput() RoleOwnershipGrantMapOutput

func (RoleOwnershipGrantMap) ToRoleOwnershipGrantMapOutputWithContext added in v0.6.0

func (i RoleOwnershipGrantMap) ToRoleOwnershipGrantMapOutputWithContext(ctx context.Context) RoleOwnershipGrantMapOutput

type RoleOwnershipGrantMapInput added in v0.6.0

type RoleOwnershipGrantMapInput interface {
	pulumi.Input

	ToRoleOwnershipGrantMapOutput() RoleOwnershipGrantMapOutput
	ToRoleOwnershipGrantMapOutputWithContext(context.Context) RoleOwnershipGrantMapOutput
}

RoleOwnershipGrantMapInput is an input type that accepts RoleOwnershipGrantMap and RoleOwnershipGrantMapOutput values. You can construct a concrete instance of `RoleOwnershipGrantMapInput` via:

RoleOwnershipGrantMap{ "key": RoleOwnershipGrantArgs{...} }

type RoleOwnershipGrantMapOutput added in v0.6.0

type RoleOwnershipGrantMapOutput struct{ *pulumi.OutputState }

func (RoleOwnershipGrantMapOutput) ElementType added in v0.6.0

func (RoleOwnershipGrantMapOutput) MapIndex added in v0.6.0

func (RoleOwnershipGrantMapOutput) ToRoleOwnershipGrantMapOutput added in v0.6.0

func (o RoleOwnershipGrantMapOutput) ToRoleOwnershipGrantMapOutput() RoleOwnershipGrantMapOutput

func (RoleOwnershipGrantMapOutput) ToRoleOwnershipGrantMapOutputWithContext added in v0.6.0

func (o RoleOwnershipGrantMapOutput) ToRoleOwnershipGrantMapOutputWithContext(ctx context.Context) RoleOwnershipGrantMapOutput

type RoleOwnershipGrantOutput added in v0.6.0

type RoleOwnershipGrantOutput struct{ *pulumi.OutputState }

func (RoleOwnershipGrantOutput) CurrentGrants added in v0.9.0

Specifies whether to remove or transfer all existing outbound privileges on the object when ownership is transferred to a new role.

func (RoleOwnershipGrantOutput) ElementType added in v0.6.0

func (RoleOwnershipGrantOutput) ElementType() reflect.Type

func (RoleOwnershipGrantOutput) OnRoleName added in v0.9.0

The name of the role ownership is granted on.

func (RoleOwnershipGrantOutput) RevertOwnershipToRoleName added in v0.15.0

func (o RoleOwnershipGrantOutput) RevertOwnershipToRoleName() pulumi.StringPtrOutput

The name of the role to revert ownership to on destroy.

func (RoleOwnershipGrantOutput) ToRoleName added in v0.9.0

The name of the role to grant ownership. Please ensure that the role that terraform is using is granted access.

func (RoleOwnershipGrantOutput) ToRoleOwnershipGrantOutput added in v0.6.0

func (o RoleOwnershipGrantOutput) ToRoleOwnershipGrantOutput() RoleOwnershipGrantOutput

func (RoleOwnershipGrantOutput) ToRoleOwnershipGrantOutputWithContext added in v0.6.0

func (o RoleOwnershipGrantOutput) ToRoleOwnershipGrantOutputWithContext(ctx context.Context) RoleOwnershipGrantOutput

type RoleOwnershipGrantState added in v0.6.0

type RoleOwnershipGrantState struct {
	// Specifies whether to remove or transfer all existing outbound privileges on the object when ownership is transferred to a new role.
	CurrentGrants pulumi.StringPtrInput
	// The name of the role ownership is granted on.
	OnRoleName pulumi.StringPtrInput
	// The name of the role to revert ownership to on destroy.
	RevertOwnershipToRoleName pulumi.StringPtrInput
	// The name of the role to grant ownership. Please ensure that the role that terraform is using is granted access.
	ToRoleName pulumi.StringPtrInput
}

func (RoleOwnershipGrantState) ElementType added in v0.6.0

func (RoleOwnershipGrantState) ElementType() reflect.Type

type RoleState

type RoleState struct {
	Comment pulumi.StringPtrInput
	Name    pulumi.StringPtrInput
	// Definitions of a tag to associate with the resource.
	//
	// Deprecated: Use the 'snowflake_tag_association' resource instead.
	Tags RoleTagArrayInput
}

func (RoleState) ElementType

func (RoleState) ElementType() reflect.Type

type RoleTag added in v0.3.0

type RoleTag struct {
	// Name of the database that the tag was created in.
	Database *string `pulumi:"database"`
	// Tag name, e.g. department.
	Name string `pulumi:"name"`
	// Name of the schema that the tag was created in.
	Schema *string `pulumi:"schema"`
	// Tag value, e.g. marketing_info.
	Value string `pulumi:"value"`
}

type RoleTagArgs added in v0.3.0

type RoleTagArgs struct {
	// Name of the database that the tag was created in.
	Database pulumi.StringPtrInput `pulumi:"database"`
	// Tag name, e.g. department.
	Name pulumi.StringInput `pulumi:"name"`
	// Name of the schema that the tag was created in.
	Schema pulumi.StringPtrInput `pulumi:"schema"`
	// Tag value, e.g. marketing_info.
	Value pulumi.StringInput `pulumi:"value"`
}

func (RoleTagArgs) ElementType added in v0.3.0

func (RoleTagArgs) ElementType() reflect.Type

func (RoleTagArgs) ToRoleTagOutput added in v0.3.0

func (i RoleTagArgs) ToRoleTagOutput() RoleTagOutput

func (RoleTagArgs) ToRoleTagOutputWithContext added in v0.3.0

func (i RoleTagArgs) ToRoleTagOutputWithContext(ctx context.Context) RoleTagOutput

type RoleTagArray added in v0.3.0

type RoleTagArray []RoleTagInput

func (RoleTagArray) ElementType added in v0.3.0

func (RoleTagArray) ElementType() reflect.Type

func (RoleTagArray) ToRoleTagArrayOutput added in v0.3.0

func (i RoleTagArray) ToRoleTagArrayOutput() RoleTagArrayOutput

func (RoleTagArray) ToRoleTagArrayOutputWithContext added in v0.3.0

func (i RoleTagArray) ToRoleTagArrayOutputWithContext(ctx context.Context) RoleTagArrayOutput

type RoleTagArrayInput added in v0.3.0

type RoleTagArrayInput interface {
	pulumi.Input

	ToRoleTagArrayOutput() RoleTagArrayOutput
	ToRoleTagArrayOutputWithContext(context.Context) RoleTagArrayOutput
}

RoleTagArrayInput is an input type that accepts RoleTagArray and RoleTagArrayOutput values. You can construct a concrete instance of `RoleTagArrayInput` via:

RoleTagArray{ RoleTagArgs{...} }

type RoleTagArrayOutput added in v0.3.0

type RoleTagArrayOutput struct{ *pulumi.OutputState }

func (RoleTagArrayOutput) ElementType added in v0.3.0

func (RoleTagArrayOutput) ElementType() reflect.Type

func (RoleTagArrayOutput) Index added in v0.3.0

func (RoleTagArrayOutput) ToRoleTagArrayOutput added in v0.3.0

func (o RoleTagArrayOutput) ToRoleTagArrayOutput() RoleTagArrayOutput

func (RoleTagArrayOutput) ToRoleTagArrayOutputWithContext added in v0.3.0

func (o RoleTagArrayOutput) ToRoleTagArrayOutputWithContext(ctx context.Context) RoleTagArrayOutput

type RoleTagInput added in v0.3.0

type RoleTagInput interface {
	pulumi.Input

	ToRoleTagOutput() RoleTagOutput
	ToRoleTagOutputWithContext(context.Context) RoleTagOutput
}

RoleTagInput is an input type that accepts RoleTagArgs and RoleTagOutput values. You can construct a concrete instance of `RoleTagInput` via:

RoleTagArgs{...}

type RoleTagOutput added in v0.3.0

type RoleTagOutput struct{ *pulumi.OutputState }

func (RoleTagOutput) Database added in v0.3.0

func (o RoleTagOutput) Database() pulumi.StringPtrOutput

Name of the database that the tag was created in.

func (RoleTagOutput) ElementType added in v0.3.0

func (RoleTagOutput) ElementType() reflect.Type

func (RoleTagOutput) Name added in v0.3.0

Tag name, e.g. department.

func (RoleTagOutput) Schema added in v0.3.0

Name of the schema that the tag was created in.

func (RoleTagOutput) ToRoleTagOutput added in v0.3.0

func (o RoleTagOutput) ToRoleTagOutput() RoleTagOutput

func (RoleTagOutput) ToRoleTagOutputWithContext added in v0.3.0

func (o RoleTagOutput) ToRoleTagOutputWithContext(ctx context.Context) RoleTagOutput

func (RoleTagOutput) Value added in v0.3.0

func (o RoleTagOutput) Value() pulumi.StringOutput

Tag value, e.g. marketing_info.

type RowAccessPolicy added in v0.1.3

type RowAccessPolicy struct {
	pulumi.CustomResourceState

	// Specifies a comment for the row access policy.
	Comment pulumi.StringPtrOutput `pulumi:"comment"`
	// The database in which to create the row access policy.
	Database pulumi.StringOutput `pulumi:"database"`
	// Specifies the identifier for the row access policy; must be unique for the database and schema in which the row access policy is created.
	Name pulumi.StringOutput `pulumi:"name"`
	// Specifies the SQL expression. The expression can be any boolean-valued SQL expression.
	RowAccessExpression pulumi.StringOutput `pulumi:"rowAccessExpression"`
	// The schema in which to create the row access policy.
	Schema pulumi.StringOutput `pulumi:"schema"`
	// Specifies signature (arguments) for the row access policy (uppercase and sorted to avoid recreation of resource). A signature specifies a set of attributes that must be considered to determine whether the row is accessible. The attribute values come from the database object (e.g. table or view) to be protected by the row access policy.
	Signature pulumi.StringMapOutput `pulumi:"signature"`
}

## Example Usage

```go 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.NewRowAccessPolicy(ctx, "exampleRowAccessPolicy", &snowflake.RowAccessPolicyArgs{
			Database:            pulumi.String("EXAMPLE_DB"),
			RowAccessExpression: pulumi.String("case when current_role() in ('ANALYST') then true else false end"),
			Schema:              pulumi.String("EXAMPLE_SCHEMA"),
			Signature: pulumi.StringMap{
				"A": pulumi.String("VARCHAR"),
				"B": pulumi.String("VARCHAR"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

format is database name | schema name | policy name

```sh

$ pulumi import snowflake:index/rowAccessPolicy:RowAccessPolicy example 'dbName|schemaName|policyName'

```

func GetRowAccessPolicy added in v0.1.3

func GetRowAccessPolicy(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *RowAccessPolicyState, opts ...pulumi.ResourceOption) (*RowAccessPolicy, error)

GetRowAccessPolicy gets an existing RowAccessPolicy resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewRowAccessPolicy added in v0.1.3

func NewRowAccessPolicy(ctx *pulumi.Context,
	name string, args *RowAccessPolicyArgs, opts ...pulumi.ResourceOption) (*RowAccessPolicy, error)

NewRowAccessPolicy registers a new resource with the given unique name, arguments, and options.

func (*RowAccessPolicy) ElementType added in v0.1.3

func (*RowAccessPolicy) ElementType() reflect.Type

func (*RowAccessPolicy) ToRowAccessPolicyOutput added in v0.1.3

func (i *RowAccessPolicy) ToRowAccessPolicyOutput() RowAccessPolicyOutput

func (*RowAccessPolicy) ToRowAccessPolicyOutputWithContext added in v0.1.3

func (i *RowAccessPolicy) ToRowAccessPolicyOutputWithContext(ctx context.Context) RowAccessPolicyOutput

type RowAccessPolicyArgs added in v0.1.3

type RowAccessPolicyArgs struct {
	// Specifies a comment for the row access policy.
	Comment pulumi.StringPtrInput
	// The database in which to create the row access policy.
	Database pulumi.StringInput
	// Specifies the identifier for the row access policy; must be unique for the database and schema in which the row access policy is created.
	Name pulumi.StringPtrInput
	// Specifies the SQL expression. The expression can be any boolean-valued SQL expression.
	RowAccessExpression pulumi.StringInput
	// The schema in which to create the row access policy.
	Schema pulumi.StringInput
	// Specifies signature (arguments) for the row access policy (uppercase and sorted to avoid recreation of resource). A signature specifies a set of attributes that must be considered to determine whether the row is accessible. The attribute values come from the database object (e.g. table or view) to be protected by the row access policy.
	Signature pulumi.StringMapInput
}

The set of arguments for constructing a RowAccessPolicy resource.

func (RowAccessPolicyArgs) ElementType added in v0.1.3

func (RowAccessPolicyArgs) ElementType() reflect.Type

type RowAccessPolicyArray added in v0.1.3

type RowAccessPolicyArray []RowAccessPolicyInput

func (RowAccessPolicyArray) ElementType added in v0.1.3

func (RowAccessPolicyArray) ElementType() reflect.Type

func (RowAccessPolicyArray) ToRowAccessPolicyArrayOutput added in v0.1.3

func (i RowAccessPolicyArray) ToRowAccessPolicyArrayOutput() RowAccessPolicyArrayOutput

func (RowAccessPolicyArray) ToRowAccessPolicyArrayOutputWithContext added in v0.1.3

func (i RowAccessPolicyArray) ToRowAccessPolicyArrayOutputWithContext(ctx context.Context) RowAccessPolicyArrayOutput

type RowAccessPolicyArrayInput added in v0.1.3

type RowAccessPolicyArrayInput interface {
	pulumi.Input

	ToRowAccessPolicyArrayOutput() RowAccessPolicyArrayOutput
	ToRowAccessPolicyArrayOutputWithContext(context.Context) RowAccessPolicyArrayOutput
}

RowAccessPolicyArrayInput is an input type that accepts RowAccessPolicyArray and RowAccessPolicyArrayOutput values. You can construct a concrete instance of `RowAccessPolicyArrayInput` via:

RowAccessPolicyArray{ RowAccessPolicyArgs{...} }

type RowAccessPolicyArrayOutput added in v0.1.3

type RowAccessPolicyArrayOutput struct{ *pulumi.OutputState }

func (RowAccessPolicyArrayOutput) ElementType added in v0.1.3

func (RowAccessPolicyArrayOutput) ElementType() reflect.Type

func (RowAccessPolicyArrayOutput) Index added in v0.1.3

func (RowAccessPolicyArrayOutput) ToRowAccessPolicyArrayOutput added in v0.1.3

func (o RowAccessPolicyArrayOutput) ToRowAccessPolicyArrayOutput() RowAccessPolicyArrayOutput

func (RowAccessPolicyArrayOutput) ToRowAccessPolicyArrayOutputWithContext added in v0.1.3

func (o RowAccessPolicyArrayOutput) ToRowAccessPolicyArrayOutputWithContext(ctx context.Context) RowAccessPolicyArrayOutput

type RowAccessPolicyGrant added in v0.1.3

type RowAccessPolicyGrant struct {
	pulumi.CustomResourceState

	// The name of the database containing the row access policy on which to grant privileges.
	DatabaseName pulumi.StringOutput `pulumi:"databaseName"`
	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrOutput `pulumi:"enableMultipleGrants"`
	// The privilege to grant on the row access policy. To grant all privileges, use the value `ALL PRIVILEGES`
	Privilege pulumi.StringPtrOutput `pulumi:"privilege"`
	// The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
	RevertOwnershipToRoleName pulumi.StringPtrOutput `pulumi:"revertOwnershipToRoleName"`
	// Grants privilege to these roles.
	Roles pulumi.StringArrayOutput `pulumi:"roles"`
	// The name of the row access policy on which to grant privileges immediately.
	RowAccessPolicyName pulumi.StringOutput `pulumi:"rowAccessPolicyName"`
	// The name of the schema containing the row access policy on which to grant privileges.
	SchemaName pulumi.StringOutput `pulumi:"schemaName"`
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrOutput `pulumi:"withGrantOption"`
}

## Example Usage

```go 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.NewRowAccessPolicyGrant(ctx, "grant", &snowflake.RowAccessPolicyGrantArgs{
			DatabaseName: pulumi.String("database"),
			Privilege:    pulumi.String("APPLY"),
			Roles: pulumi.StringArray{
				pulumi.String("role1"),
				pulumi.String("role2"),
			},
			RowAccessPolicyName: pulumi.String("row_access_policy"),
			SchemaName:          pulumi.String("schema"),
			WithGrantOption:     pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

format is database_name|schema_name|row_access_policy_name|privilege|with_grant_option|roles

```sh

$ pulumi import snowflake:index/rowAccessPolicyGrant:RowAccessPolicyGrant example "MY_DATABASE|MY_SCHEMA|MY_ROW_ACCESS_POLICY_NAME|SELECT|false|role1,role2"

```

func GetRowAccessPolicyGrant added in v0.1.3

func GetRowAccessPolicyGrant(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *RowAccessPolicyGrantState, opts ...pulumi.ResourceOption) (*RowAccessPolicyGrant, error)

GetRowAccessPolicyGrant gets an existing RowAccessPolicyGrant resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewRowAccessPolicyGrant added in v0.1.3

func NewRowAccessPolicyGrant(ctx *pulumi.Context,
	name string, args *RowAccessPolicyGrantArgs, opts ...pulumi.ResourceOption) (*RowAccessPolicyGrant, error)

NewRowAccessPolicyGrant registers a new resource with the given unique name, arguments, and options.

func (*RowAccessPolicyGrant) ElementType added in v0.1.3

func (*RowAccessPolicyGrant) ElementType() reflect.Type

func (*RowAccessPolicyGrant) ToRowAccessPolicyGrantOutput added in v0.1.3

func (i *RowAccessPolicyGrant) ToRowAccessPolicyGrantOutput() RowAccessPolicyGrantOutput

func (*RowAccessPolicyGrant) ToRowAccessPolicyGrantOutputWithContext added in v0.1.3

func (i *RowAccessPolicyGrant) ToRowAccessPolicyGrantOutputWithContext(ctx context.Context) RowAccessPolicyGrantOutput

type RowAccessPolicyGrantArgs added in v0.1.3

type RowAccessPolicyGrantArgs struct {
	// The name of the database containing the row access policy on which to grant privileges.
	DatabaseName pulumi.StringInput
	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrInput
	// The privilege to grant on the row access policy. To grant all privileges, use the value `ALL PRIVILEGES`
	Privilege pulumi.StringPtrInput
	// The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
	RevertOwnershipToRoleName pulumi.StringPtrInput
	// Grants privilege to these roles.
	Roles pulumi.StringArrayInput
	// The name of the row access policy on which to grant privileges immediately.
	RowAccessPolicyName pulumi.StringInput
	// The name of the schema containing the row access policy on which to grant privileges.
	SchemaName pulumi.StringInput
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrInput
}

The set of arguments for constructing a RowAccessPolicyGrant resource.

func (RowAccessPolicyGrantArgs) ElementType added in v0.1.3

func (RowAccessPolicyGrantArgs) ElementType() reflect.Type

type RowAccessPolicyGrantArray added in v0.1.3

type RowAccessPolicyGrantArray []RowAccessPolicyGrantInput

func (RowAccessPolicyGrantArray) ElementType added in v0.1.3

func (RowAccessPolicyGrantArray) ElementType() reflect.Type

func (RowAccessPolicyGrantArray) ToRowAccessPolicyGrantArrayOutput added in v0.1.3

func (i RowAccessPolicyGrantArray) ToRowAccessPolicyGrantArrayOutput() RowAccessPolicyGrantArrayOutput

func (RowAccessPolicyGrantArray) ToRowAccessPolicyGrantArrayOutputWithContext added in v0.1.3

func (i RowAccessPolicyGrantArray) ToRowAccessPolicyGrantArrayOutputWithContext(ctx context.Context) RowAccessPolicyGrantArrayOutput

type RowAccessPolicyGrantArrayInput added in v0.1.3

type RowAccessPolicyGrantArrayInput interface {
	pulumi.Input

	ToRowAccessPolicyGrantArrayOutput() RowAccessPolicyGrantArrayOutput
	ToRowAccessPolicyGrantArrayOutputWithContext(context.Context) RowAccessPolicyGrantArrayOutput
}

RowAccessPolicyGrantArrayInput is an input type that accepts RowAccessPolicyGrantArray and RowAccessPolicyGrantArrayOutput values. You can construct a concrete instance of `RowAccessPolicyGrantArrayInput` via:

RowAccessPolicyGrantArray{ RowAccessPolicyGrantArgs{...} }

type RowAccessPolicyGrantArrayOutput added in v0.1.3

type RowAccessPolicyGrantArrayOutput struct{ *pulumi.OutputState }

func (RowAccessPolicyGrantArrayOutput) ElementType added in v0.1.3

func (RowAccessPolicyGrantArrayOutput) Index added in v0.1.3

func (RowAccessPolicyGrantArrayOutput) ToRowAccessPolicyGrantArrayOutput added in v0.1.3

func (o RowAccessPolicyGrantArrayOutput) ToRowAccessPolicyGrantArrayOutput() RowAccessPolicyGrantArrayOutput

func (RowAccessPolicyGrantArrayOutput) ToRowAccessPolicyGrantArrayOutputWithContext added in v0.1.3

func (o RowAccessPolicyGrantArrayOutput) ToRowAccessPolicyGrantArrayOutputWithContext(ctx context.Context) RowAccessPolicyGrantArrayOutput

type RowAccessPolicyGrantInput added in v0.1.3

type RowAccessPolicyGrantInput interface {
	pulumi.Input

	ToRowAccessPolicyGrantOutput() RowAccessPolicyGrantOutput
	ToRowAccessPolicyGrantOutputWithContext(ctx context.Context) RowAccessPolicyGrantOutput
}

type RowAccessPolicyGrantMap added in v0.1.3

type RowAccessPolicyGrantMap map[string]RowAccessPolicyGrantInput

func (RowAccessPolicyGrantMap) ElementType added in v0.1.3

func (RowAccessPolicyGrantMap) ElementType() reflect.Type

func (RowAccessPolicyGrantMap) ToRowAccessPolicyGrantMapOutput added in v0.1.3

func (i RowAccessPolicyGrantMap) ToRowAccessPolicyGrantMapOutput() RowAccessPolicyGrantMapOutput

func (RowAccessPolicyGrantMap) ToRowAccessPolicyGrantMapOutputWithContext added in v0.1.3

func (i RowAccessPolicyGrantMap) ToRowAccessPolicyGrantMapOutputWithContext(ctx context.Context) RowAccessPolicyGrantMapOutput

type RowAccessPolicyGrantMapInput added in v0.1.3

type RowAccessPolicyGrantMapInput interface {
	pulumi.Input

	ToRowAccessPolicyGrantMapOutput() RowAccessPolicyGrantMapOutput
	ToRowAccessPolicyGrantMapOutputWithContext(context.Context) RowAccessPolicyGrantMapOutput
}

RowAccessPolicyGrantMapInput is an input type that accepts RowAccessPolicyGrantMap and RowAccessPolicyGrantMapOutput values. You can construct a concrete instance of `RowAccessPolicyGrantMapInput` via:

RowAccessPolicyGrantMap{ "key": RowAccessPolicyGrantArgs{...} }

type RowAccessPolicyGrantMapOutput added in v0.1.3

type RowAccessPolicyGrantMapOutput struct{ *pulumi.OutputState }

func (RowAccessPolicyGrantMapOutput) ElementType added in v0.1.3

func (RowAccessPolicyGrantMapOutput) MapIndex added in v0.1.3

func (RowAccessPolicyGrantMapOutput) ToRowAccessPolicyGrantMapOutput added in v0.1.3

func (o RowAccessPolicyGrantMapOutput) ToRowAccessPolicyGrantMapOutput() RowAccessPolicyGrantMapOutput

func (RowAccessPolicyGrantMapOutput) ToRowAccessPolicyGrantMapOutputWithContext added in v0.1.3

func (o RowAccessPolicyGrantMapOutput) ToRowAccessPolicyGrantMapOutputWithContext(ctx context.Context) RowAccessPolicyGrantMapOutput

type RowAccessPolicyGrantOutput added in v0.1.3

type RowAccessPolicyGrantOutput struct{ *pulumi.OutputState }

func (RowAccessPolicyGrantOutput) DatabaseName added in v0.9.0

The name of the database containing the row access policy on which to grant privileges.

func (RowAccessPolicyGrantOutput) ElementType added in v0.1.3

func (RowAccessPolicyGrantOutput) ElementType() reflect.Type

func (RowAccessPolicyGrantOutput) EnableMultipleGrants added in v0.9.0

func (o RowAccessPolicyGrantOutput) EnableMultipleGrants() pulumi.BoolPtrOutput

When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke grants applied to roles and objects outside Terraform.

func (RowAccessPolicyGrantOutput) Privilege added in v0.9.0

The privilege to grant on the row access policy. To grant all privileges, use the value `ALL PRIVILEGES`

func (RowAccessPolicyGrantOutput) RevertOwnershipToRoleName added in v0.26.0

func (o RowAccessPolicyGrantOutput) RevertOwnershipToRoleName() pulumi.StringPtrOutput

The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`

func (RowAccessPolicyGrantOutput) Roles added in v0.9.0

Grants privilege to these roles.

func (RowAccessPolicyGrantOutput) RowAccessPolicyName added in v0.9.0

func (o RowAccessPolicyGrantOutput) RowAccessPolicyName() pulumi.StringOutput

The name of the row access policy on which to grant privileges immediately.

func (RowAccessPolicyGrantOutput) SchemaName added in v0.9.0

The name of the schema containing the row access policy on which to grant privileges.

func (RowAccessPolicyGrantOutput) ToRowAccessPolicyGrantOutput added in v0.1.3

func (o RowAccessPolicyGrantOutput) ToRowAccessPolicyGrantOutput() RowAccessPolicyGrantOutput

func (RowAccessPolicyGrantOutput) ToRowAccessPolicyGrantOutputWithContext added in v0.1.3

func (o RowAccessPolicyGrantOutput) ToRowAccessPolicyGrantOutputWithContext(ctx context.Context) RowAccessPolicyGrantOutput

func (RowAccessPolicyGrantOutput) WithGrantOption added in v0.9.0

func (o RowAccessPolicyGrantOutput) WithGrantOption() pulumi.BoolPtrOutput

When this is set to true, allows the recipient role to grant the privileges to other roles.

type RowAccessPolicyGrantState added in v0.1.3

type RowAccessPolicyGrantState struct {
	// The name of the database containing the row access policy on which to grant privileges.
	DatabaseName pulumi.StringPtrInput
	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrInput
	// The privilege to grant on the row access policy. To grant all privileges, use the value `ALL PRIVILEGES`
	Privilege pulumi.StringPtrInput
	// The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
	RevertOwnershipToRoleName pulumi.StringPtrInput
	// Grants privilege to these roles.
	Roles pulumi.StringArrayInput
	// The name of the row access policy on which to grant privileges immediately.
	RowAccessPolicyName pulumi.StringPtrInput
	// The name of the schema containing the row access policy on which to grant privileges.
	SchemaName pulumi.StringPtrInput
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrInput
}

func (RowAccessPolicyGrantState) ElementType added in v0.1.3

func (RowAccessPolicyGrantState) ElementType() reflect.Type

type RowAccessPolicyInput added in v0.1.3

type RowAccessPolicyInput interface {
	pulumi.Input

	ToRowAccessPolicyOutput() RowAccessPolicyOutput
	ToRowAccessPolicyOutputWithContext(ctx context.Context) RowAccessPolicyOutput
}

type RowAccessPolicyMap added in v0.1.3

type RowAccessPolicyMap map[string]RowAccessPolicyInput

func (RowAccessPolicyMap) ElementType added in v0.1.3

func (RowAccessPolicyMap) ElementType() reflect.Type

func (RowAccessPolicyMap) ToRowAccessPolicyMapOutput added in v0.1.3

func (i RowAccessPolicyMap) ToRowAccessPolicyMapOutput() RowAccessPolicyMapOutput

func (RowAccessPolicyMap) ToRowAccessPolicyMapOutputWithContext added in v0.1.3

func (i RowAccessPolicyMap) ToRowAccessPolicyMapOutputWithContext(ctx context.Context) RowAccessPolicyMapOutput

type RowAccessPolicyMapInput added in v0.1.3

type RowAccessPolicyMapInput interface {
	pulumi.Input

	ToRowAccessPolicyMapOutput() RowAccessPolicyMapOutput
	ToRowAccessPolicyMapOutputWithContext(context.Context) RowAccessPolicyMapOutput
}

RowAccessPolicyMapInput is an input type that accepts RowAccessPolicyMap and RowAccessPolicyMapOutput values. You can construct a concrete instance of `RowAccessPolicyMapInput` via:

RowAccessPolicyMap{ "key": RowAccessPolicyArgs{...} }

type RowAccessPolicyMapOutput added in v0.1.3

type RowAccessPolicyMapOutput struct{ *pulumi.OutputState }

func (RowAccessPolicyMapOutput) ElementType added in v0.1.3

func (RowAccessPolicyMapOutput) ElementType() reflect.Type

func (RowAccessPolicyMapOutput) MapIndex added in v0.1.3

func (RowAccessPolicyMapOutput) ToRowAccessPolicyMapOutput added in v0.1.3

func (o RowAccessPolicyMapOutput) ToRowAccessPolicyMapOutput() RowAccessPolicyMapOutput

func (RowAccessPolicyMapOutput) ToRowAccessPolicyMapOutputWithContext added in v0.1.3

func (o RowAccessPolicyMapOutput) ToRowAccessPolicyMapOutputWithContext(ctx context.Context) RowAccessPolicyMapOutput

type RowAccessPolicyOutput added in v0.1.3

type RowAccessPolicyOutput struct{ *pulumi.OutputState }

func (RowAccessPolicyOutput) Comment added in v0.9.0

Specifies a comment for the row access policy.

func (RowAccessPolicyOutput) Database added in v0.9.0

The database in which to create the row access policy.

func (RowAccessPolicyOutput) ElementType added in v0.1.3

func (RowAccessPolicyOutput) ElementType() reflect.Type

func (RowAccessPolicyOutput) Name added in v0.9.0

Specifies the identifier for the row access policy; must be unique for the database and schema in which the row access policy is created.

func (RowAccessPolicyOutput) RowAccessExpression added in v0.9.0

func (o RowAccessPolicyOutput) RowAccessExpression() pulumi.StringOutput

Specifies the SQL expression. The expression can be any boolean-valued SQL expression.

func (RowAccessPolicyOutput) Schema added in v0.9.0

The schema in which to create the row access policy.

func (RowAccessPolicyOutput) Signature added in v0.9.0

Specifies signature (arguments) for the row access policy (uppercase and sorted to avoid recreation of resource). A signature specifies a set of attributes that must be considered to determine whether the row is accessible. The attribute values come from the database object (e.g. table or view) to be protected by the row access policy.

func (RowAccessPolicyOutput) ToRowAccessPolicyOutput added in v0.1.3

func (o RowAccessPolicyOutput) ToRowAccessPolicyOutput() RowAccessPolicyOutput

func (RowAccessPolicyOutput) ToRowAccessPolicyOutputWithContext added in v0.1.3

func (o RowAccessPolicyOutput) ToRowAccessPolicyOutputWithContext(ctx context.Context) RowAccessPolicyOutput

type RowAccessPolicyState added in v0.1.3

type RowAccessPolicyState struct {
	// Specifies a comment for the row access policy.
	Comment pulumi.StringPtrInput
	// The database in which to create the row access policy.
	Database pulumi.StringPtrInput
	// Specifies the identifier for the row access policy; must be unique for the database and schema in which the row access policy is created.
	Name pulumi.StringPtrInput
	// Specifies the SQL expression. The expression can be any boolean-valued SQL expression.
	RowAccessExpression pulumi.StringPtrInput
	// The schema in which to create the row access policy.
	Schema pulumi.StringPtrInput
	// Specifies signature (arguments) for the row access policy (uppercase and sorted to avoid recreation of resource). A signature specifies a set of attributes that must be considered to determine whether the row is accessible. The attribute values come from the database object (e.g. table or view) to be protected by the row access policy.
	Signature pulumi.StringMapInput
}

func (RowAccessPolicyState) ElementType added in v0.1.3

func (RowAccessPolicyState) ElementType() reflect.Type

type SamlIntegration added in v0.4.1

type SamlIntegration struct {
	pulumi.CustomResourceState

	// Date and time when the SAML integration was created.
	CreatedOn pulumi.StringOutput `pulumi:"createdOn"`
	// Specifies whether this security integration is enabled or disabled.
	Enabled pulumi.BoolPtrOutput `pulumi:"enabled"`
	// Specifies the name of the SAML2 integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account.
	Name                   pulumi.StringOutput `pulumi:"name"`
	Saml2DigestMethodsUsed pulumi.StringOutput `pulumi:"saml2DigestMethodsUsed"`
	// The Boolean indicating if the Log In With button will be shown on the login page. TRUE: displays the Log in WIth button on the login page.  FALSE: does not display the Log in With button on the login page.
	Saml2EnableSpInitiated pulumi.BoolPtrOutput `pulumi:"saml2EnableSpInitiated"`
	// The Boolean indicating whether users, during the initial authentication flow, are forced to authenticate again to access Snowflake. When set to TRUE, Snowflake sets the ForceAuthn SAML parameter to TRUE in the outgoing request from Snowflake to the identity provider. TRUE: forces users to authenticate again to access Snowflake, even if a valid session with the identity provider exists. FALSE: does not force users to authenticate again to access Snowflake.
	Saml2ForceAuthn pulumi.BoolPtrOutput `pulumi:"saml2ForceAuthn"`
	// The string containing the IdP EntityID / Issuer.
	Saml2Issuer pulumi.StringOutput `pulumi:"saml2Issuer"`
	// The endpoint to which Snowflake redirects users after clicking the Log Out button in the classic Snowflake web interface. Snowflake terminates the Snowflake session upon redirecting to the specified endpoint.
	Saml2PostLogoutRedirectUrl pulumi.StringPtrOutput `pulumi:"saml2PostLogoutRedirectUrl"`
	// The string describing the IdP. One of the following: OKTA, ADFS, Custom.
	Saml2Provider pulumi.StringOutput `pulumi:"saml2Provider"`
	// The SAML NameID format allows Snowflake to set an expectation of the identifying attribute of the user (i.e. SAML Subject) in the SAML assertion from the IdP to ensure a valid authentication to Snowflake. If a value is not specified, Snowflake sends the urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress value in the authentication request to the IdP. NameID must be one of the following values: urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified, urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress, urn:oasis:names:tc:SAML:1.1:nameid-format:X509SubjectName, urn:oasis:names:tc:SAML:1.1:nameid-format:WindowsDomainQualifiedName, urn:oasis:names:tc:SAML:2.0:nameid-format:kerberos, urn:oasis:names:tc:SAML:2.0:nameid-format:persistent, urn:oasis:names:tc:SAML:2.0:nameid-format:transient .
	Saml2RequestedNameidFormat pulumi.StringPtrOutput `pulumi:"saml2RequestedNameidFormat"`
	// The Boolean indicating whether SAML requests are signed. TRUE: allows SAML requests to be signed. FALSE: does not allow SAML requests to be signed.
	Saml2SignRequest          pulumi.BoolPtrOutput `pulumi:"saml2SignRequest"`
	Saml2SignatureMethodsUsed pulumi.StringOutput  `pulumi:"saml2SignatureMethodsUsed"`
	// The string containing the Snowflake Assertion Consumer Service URL to which the IdP will send its SAML authentication response back to Snowflake. This property will be set in the SAML authentication request generated by Snowflake when initiating a SAML SSO operation with the IdP. If an incorrect value is specified, Snowflake returns an error message indicating the acceptable values to use. Default: https://\n\n.\n\n.snowflakecomputing.com/fed/login
	Saml2SnowflakeAcsUrl pulumi.StringOutput `pulumi:"saml2SnowflakeAcsUrl"`
	// The string containing the EntityID / Issuer for the Snowflake service provider. If an incorrect value is specified, Snowflake returns an error message indicating the acceptable values to use.
	Saml2SnowflakeIssuerUrl pulumi.StringOutput `pulumi:"saml2SnowflakeIssuerUrl"`
	// Metadata created by Snowflake to provide to SAML2 provider.
	Saml2SnowflakeMetadata pulumi.StringOutput `pulumi:"saml2SnowflakeMetadata"`
	// The Base64 encoded self-signed certificate generated by Snowflake for use with Encrypting SAML Assertions and Signed SAML Requests. You must have at least one of these features (encrypted SAML assertions or signed SAML responses) enabled in your Snowflake account to access the certificate value.
	Saml2SnowflakeX509Cert pulumi.StringOutput `pulumi:"saml2SnowflakeX509Cert"`
	// The string containing the label to display after the Log In With button on the login page.
	Saml2SpInitiatedLoginPageLabel pulumi.StringPtrOutput `pulumi:"saml2SpInitiatedLoginPageLabel"`
	// The string containing the IdP SSO URL, where the user should be redirected by Snowflake (the Service Provider) with a SAML AuthnRequest message.
	Saml2SsoUrl pulumi.StringOutput `pulumi:"saml2SsoUrl"`
	// The Base64 encoded IdP signing certificate on a single line without the leading -----BEGIN CERTIFICATE----- and ending -----END CERTIFICATE----- markers.
	Saml2X509Cert pulumi.StringOutput `pulumi:"saml2X509Cert"`
}

## Example Usage

```go 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.NewSamlIntegration(ctx, "samlIntegration", &snowflake.SamlIntegrationArgs{
			Enabled:       pulumi.Bool(true),
			Saml2Issuer:   pulumi.String("test_issuer"),
			Saml2Provider: pulumi.String("CUSTOM"),
			Saml2SsoUrl:   pulumi.String("https://testsamlissuer.com"),
			Saml2X509Cert: pulumi.String("MIICYzCCAcygAwIBAgIBADANBgkqhkiG9w0BAQUFADAuMQswCQYDVQQGEwJVUzEMMAoGA1UEChMDSUJNMREwDwYDVQQLEwhMb2NhbCBDQTAeFw05OTEyMjIwNTAwMDBaFw0wMDEyMjMwNDU5NTlaMC4xCzAJBgNVBAYTAlVTMQwwCgYDVQQKEwNJQk0xETAPBgNVBAsTCExvY2FsIENBMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQD2bZEo7xGaX2/0GHkrNFZvlxBou9v1Jmt/PDiTMPve8r9FeJAQ0QdvFST/0JPQYD20rH0bimdDLgNdNynmyRoS2S/IInfpmf69iyc2G0TPyRvmHIiOZbdCd+YBHQi1adkj17NDcWj6S14tVurFX73zx0sNoMS79q3tuXKrDsxeuwIDAQABo4GQMIGNMEsGCVUdDwGG+EIBDQQ+EzxHZW5lcmF0ZWQgYnkgdGhlIFNlY3VyZVdheSBTZWN1cml0eSBTZXJ2ZXIgZm9yIE9TLzM5MCAoUkFDRikwDgYDVR0PAQH/BAQDAgAGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFJ3+ocRyCTJw067dLSwr/nalx6YMMA0GCSqGSIb3DQEBBQUAA4GBAMaQzt+zaj1GU77yzlr8iiMBXgdQrwsZZWJo5exnAucJAEYQZmOfyLiMD6oYq+ZnfvM0n8G/Y79q8nhwvuxpYOnRSAXFp6xSkrIOeZtJMY1h00LKp/JX3Ng1svZ2agE126JHsQ0bhzN5TKsYfbwfTwfjdWAGy6Vf1nYi/rO+ryMO"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

```sh

$ pulumi import snowflake:index/samlIntegration:SamlIntegration example name

```

func GetSamlIntegration added in v0.4.1

func GetSamlIntegration(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *SamlIntegrationState, opts ...pulumi.ResourceOption) (*SamlIntegration, error)

GetSamlIntegration gets an existing SamlIntegration resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewSamlIntegration added in v0.4.1

func NewSamlIntegration(ctx *pulumi.Context,
	name string, args *SamlIntegrationArgs, opts ...pulumi.ResourceOption) (*SamlIntegration, error)

NewSamlIntegration registers a new resource with the given unique name, arguments, and options.

func (*SamlIntegration) ElementType added in v0.4.1

func (*SamlIntegration) ElementType() reflect.Type

func (*SamlIntegration) ToSamlIntegrationOutput added in v0.4.1

func (i *SamlIntegration) ToSamlIntegrationOutput() SamlIntegrationOutput

func (*SamlIntegration) ToSamlIntegrationOutputWithContext added in v0.4.1

func (i *SamlIntegration) ToSamlIntegrationOutputWithContext(ctx context.Context) SamlIntegrationOutput

type SamlIntegrationArgs added in v0.4.1

type SamlIntegrationArgs struct {
	// Specifies whether this security integration is enabled or disabled.
	Enabled pulumi.BoolPtrInput
	// Specifies the name of the SAML2 integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account.
	Name pulumi.StringPtrInput
	// The Boolean indicating if the Log In With button will be shown on the login page. TRUE: displays the Log in WIth button on the login page.  FALSE: does not display the Log in With button on the login page.
	Saml2EnableSpInitiated pulumi.BoolPtrInput
	// The Boolean indicating whether users, during the initial authentication flow, are forced to authenticate again to access Snowflake. When set to TRUE, Snowflake sets the ForceAuthn SAML parameter to TRUE in the outgoing request from Snowflake to the identity provider. TRUE: forces users to authenticate again to access Snowflake, even if a valid session with the identity provider exists. FALSE: does not force users to authenticate again to access Snowflake.
	Saml2ForceAuthn pulumi.BoolPtrInput
	// The string containing the IdP EntityID / Issuer.
	Saml2Issuer pulumi.StringInput
	// The endpoint to which Snowflake redirects users after clicking the Log Out button in the classic Snowflake web interface. Snowflake terminates the Snowflake session upon redirecting to the specified endpoint.
	Saml2PostLogoutRedirectUrl pulumi.StringPtrInput
	// The string describing the IdP. One of the following: OKTA, ADFS, Custom.
	Saml2Provider pulumi.StringInput
	// The SAML NameID format allows Snowflake to set an expectation of the identifying attribute of the user (i.e. SAML Subject) in the SAML assertion from the IdP to ensure a valid authentication to Snowflake. If a value is not specified, Snowflake sends the urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress value in the authentication request to the IdP. NameID must be one of the following values: urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified, urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress, urn:oasis:names:tc:SAML:1.1:nameid-format:X509SubjectName, urn:oasis:names:tc:SAML:1.1:nameid-format:WindowsDomainQualifiedName, urn:oasis:names:tc:SAML:2.0:nameid-format:kerberos, urn:oasis:names:tc:SAML:2.0:nameid-format:persistent, urn:oasis:names:tc:SAML:2.0:nameid-format:transient .
	Saml2RequestedNameidFormat pulumi.StringPtrInput
	// The Boolean indicating whether SAML requests are signed. TRUE: allows SAML requests to be signed. FALSE: does not allow SAML requests to be signed.
	Saml2SignRequest pulumi.BoolPtrInput
	// The string containing the Snowflake Assertion Consumer Service URL to which the IdP will send its SAML authentication response back to Snowflake. This property will be set in the SAML authentication request generated by Snowflake when initiating a SAML SSO operation with the IdP. If an incorrect value is specified, Snowflake returns an error message indicating the acceptable values to use. Default: https://\n\n.\n\n.snowflakecomputing.com/fed/login
	Saml2SnowflakeAcsUrl pulumi.StringPtrInput
	// The string containing the EntityID / Issuer for the Snowflake service provider. If an incorrect value is specified, Snowflake returns an error message indicating the acceptable values to use.
	Saml2SnowflakeIssuerUrl pulumi.StringPtrInput
	// The Base64 encoded self-signed certificate generated by Snowflake for use with Encrypting SAML Assertions and Signed SAML Requests. You must have at least one of these features (encrypted SAML assertions or signed SAML responses) enabled in your Snowflake account to access the certificate value.
	Saml2SnowflakeX509Cert pulumi.StringPtrInput
	// The string containing the label to display after the Log In With button on the login page.
	Saml2SpInitiatedLoginPageLabel pulumi.StringPtrInput
	// The string containing the IdP SSO URL, where the user should be redirected by Snowflake (the Service Provider) with a SAML AuthnRequest message.
	Saml2SsoUrl pulumi.StringInput
	// The Base64 encoded IdP signing certificate on a single line without the leading -----BEGIN CERTIFICATE----- and ending -----END CERTIFICATE----- markers.
	Saml2X509Cert pulumi.StringInput
}

The set of arguments for constructing a SamlIntegration resource.

func (SamlIntegrationArgs) ElementType added in v0.4.1

func (SamlIntegrationArgs) ElementType() reflect.Type

type SamlIntegrationArray added in v0.4.1

type SamlIntegrationArray []SamlIntegrationInput

func (SamlIntegrationArray) ElementType added in v0.4.1

func (SamlIntegrationArray) ElementType() reflect.Type

func (SamlIntegrationArray) ToSamlIntegrationArrayOutput added in v0.4.1

func (i SamlIntegrationArray) ToSamlIntegrationArrayOutput() SamlIntegrationArrayOutput

func (SamlIntegrationArray) ToSamlIntegrationArrayOutputWithContext added in v0.4.1

func (i SamlIntegrationArray) ToSamlIntegrationArrayOutputWithContext(ctx context.Context) SamlIntegrationArrayOutput

type SamlIntegrationArrayInput added in v0.4.1

type SamlIntegrationArrayInput interface {
	pulumi.Input

	ToSamlIntegrationArrayOutput() SamlIntegrationArrayOutput
	ToSamlIntegrationArrayOutputWithContext(context.Context) SamlIntegrationArrayOutput
}

SamlIntegrationArrayInput is an input type that accepts SamlIntegrationArray and SamlIntegrationArrayOutput values. You can construct a concrete instance of `SamlIntegrationArrayInput` via:

SamlIntegrationArray{ SamlIntegrationArgs{...} }

type SamlIntegrationArrayOutput added in v0.4.1

type SamlIntegrationArrayOutput struct{ *pulumi.OutputState }

func (SamlIntegrationArrayOutput) ElementType added in v0.4.1

func (SamlIntegrationArrayOutput) ElementType() reflect.Type

func (SamlIntegrationArrayOutput) Index added in v0.4.1

func (SamlIntegrationArrayOutput) ToSamlIntegrationArrayOutput added in v0.4.1

func (o SamlIntegrationArrayOutput) ToSamlIntegrationArrayOutput() SamlIntegrationArrayOutput

func (SamlIntegrationArrayOutput) ToSamlIntegrationArrayOutputWithContext added in v0.4.1

func (o SamlIntegrationArrayOutput) ToSamlIntegrationArrayOutputWithContext(ctx context.Context) SamlIntegrationArrayOutput

type SamlIntegrationInput added in v0.4.1

type SamlIntegrationInput interface {
	pulumi.Input

	ToSamlIntegrationOutput() SamlIntegrationOutput
	ToSamlIntegrationOutputWithContext(ctx context.Context) SamlIntegrationOutput
}

type SamlIntegrationMap added in v0.4.1

type SamlIntegrationMap map[string]SamlIntegrationInput

func (SamlIntegrationMap) ElementType added in v0.4.1

func (SamlIntegrationMap) ElementType() reflect.Type

func (SamlIntegrationMap) ToSamlIntegrationMapOutput added in v0.4.1

func (i SamlIntegrationMap) ToSamlIntegrationMapOutput() SamlIntegrationMapOutput

func (SamlIntegrationMap) ToSamlIntegrationMapOutputWithContext added in v0.4.1

func (i SamlIntegrationMap) ToSamlIntegrationMapOutputWithContext(ctx context.Context) SamlIntegrationMapOutput

type SamlIntegrationMapInput added in v0.4.1

type SamlIntegrationMapInput interface {
	pulumi.Input

	ToSamlIntegrationMapOutput() SamlIntegrationMapOutput
	ToSamlIntegrationMapOutputWithContext(context.Context) SamlIntegrationMapOutput
}

SamlIntegrationMapInput is an input type that accepts SamlIntegrationMap and SamlIntegrationMapOutput values. You can construct a concrete instance of `SamlIntegrationMapInput` via:

SamlIntegrationMap{ "key": SamlIntegrationArgs{...} }

type SamlIntegrationMapOutput added in v0.4.1

type SamlIntegrationMapOutput struct{ *pulumi.OutputState }

func (SamlIntegrationMapOutput) ElementType added in v0.4.1

func (SamlIntegrationMapOutput) ElementType() reflect.Type

func (SamlIntegrationMapOutput) MapIndex added in v0.4.1

func (SamlIntegrationMapOutput) ToSamlIntegrationMapOutput added in v0.4.1

func (o SamlIntegrationMapOutput) ToSamlIntegrationMapOutput() SamlIntegrationMapOutput

func (SamlIntegrationMapOutput) ToSamlIntegrationMapOutputWithContext added in v0.4.1

func (o SamlIntegrationMapOutput) ToSamlIntegrationMapOutputWithContext(ctx context.Context) SamlIntegrationMapOutput

type SamlIntegrationOutput added in v0.4.1

type SamlIntegrationOutput struct{ *pulumi.OutputState }

func (SamlIntegrationOutput) CreatedOn added in v0.9.0

Date and time when the SAML integration was created.

func (SamlIntegrationOutput) ElementType added in v0.4.1

func (SamlIntegrationOutput) ElementType() reflect.Type

func (SamlIntegrationOutput) Enabled added in v0.9.0

Specifies whether this security integration is enabled or disabled.

func (SamlIntegrationOutput) Name added in v0.9.0

Specifies the name of the SAML2 integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account.

func (SamlIntegrationOutput) Saml2DigestMethodsUsed added in v0.9.0

func (o SamlIntegrationOutput) Saml2DigestMethodsUsed() pulumi.StringOutput

func (SamlIntegrationOutput) Saml2EnableSpInitiated added in v0.9.0

func (o SamlIntegrationOutput) Saml2EnableSpInitiated() pulumi.BoolPtrOutput

The Boolean indicating if the Log In With button will be shown on the login page. TRUE: displays the Log in WIth button on the login page. FALSE: does not display the Log in With button on the login page.

func (SamlIntegrationOutput) Saml2ForceAuthn added in v0.9.0

func (o SamlIntegrationOutput) Saml2ForceAuthn() pulumi.BoolPtrOutput

The Boolean indicating whether users, during the initial authentication flow, are forced to authenticate again to access Snowflake. When set to TRUE, Snowflake sets the ForceAuthn SAML parameter to TRUE in the outgoing request from Snowflake to the identity provider. TRUE: forces users to authenticate again to access Snowflake, even if a valid session with the identity provider exists. FALSE: does not force users to authenticate again to access Snowflake.

func (SamlIntegrationOutput) Saml2Issuer added in v0.9.0

func (o SamlIntegrationOutput) Saml2Issuer() pulumi.StringOutput

The string containing the IdP EntityID / Issuer.

func (SamlIntegrationOutput) Saml2PostLogoutRedirectUrl added in v0.9.0

func (o SamlIntegrationOutput) Saml2PostLogoutRedirectUrl() pulumi.StringPtrOutput

The endpoint to which Snowflake redirects users after clicking the Log Out button in the classic Snowflake web interface. Snowflake terminates the Snowflake session upon redirecting to the specified endpoint.

func (SamlIntegrationOutput) Saml2Provider added in v0.9.0

func (o SamlIntegrationOutput) Saml2Provider() pulumi.StringOutput

The string describing the IdP. One of the following: OKTA, ADFS, Custom.

func (SamlIntegrationOutput) Saml2RequestedNameidFormat added in v0.9.0

func (o SamlIntegrationOutput) Saml2RequestedNameidFormat() pulumi.StringPtrOutput

The SAML NameID format allows Snowflake to set an expectation of the identifying attribute of the user (i.e. SAML Subject) in the SAML assertion from the IdP to ensure a valid authentication to Snowflake. If a value is not specified, Snowflake sends the urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress value in the authentication request to the IdP. NameID must be one of the following values: urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified, urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress, urn:oasis:names:tc:SAML:1.1:nameid-format:X509SubjectName, urn:oasis:names:tc:SAML:1.1:nameid-format:WindowsDomainQualifiedName, urn:oasis:names:tc:SAML:2.0:nameid-format:kerberos, urn:oasis:names:tc:SAML:2.0:nameid-format:persistent, urn:oasis:names:tc:SAML:2.0:nameid-format:transient .

func (SamlIntegrationOutput) Saml2SignRequest added in v0.9.0

func (o SamlIntegrationOutput) Saml2SignRequest() pulumi.BoolPtrOutput

The Boolean indicating whether SAML requests are signed. TRUE: allows SAML requests to be signed. FALSE: does not allow SAML requests to be signed.

func (SamlIntegrationOutput) Saml2SignatureMethodsUsed added in v0.9.0

func (o SamlIntegrationOutput) Saml2SignatureMethodsUsed() pulumi.StringOutput

func (SamlIntegrationOutput) Saml2SnowflakeAcsUrl added in v0.9.0

func (o SamlIntegrationOutput) Saml2SnowflakeAcsUrl() pulumi.StringOutput

The string containing the Snowflake Assertion Consumer Service URL to which the IdP will send its SAML authentication response back to Snowflake. This property will be set in the SAML authentication request generated by Snowflake when initiating a SAML SSO operation with the IdP. If an incorrect value is specified, Snowflake returns an error message indicating the acceptable values to use. Default: https://\n\n.\n\n.snowflakecomputing.com/fed/login

func (SamlIntegrationOutput) Saml2SnowflakeIssuerUrl added in v0.9.0

func (o SamlIntegrationOutput) Saml2SnowflakeIssuerUrl() pulumi.StringOutput

The string containing the EntityID / Issuer for the Snowflake service provider. If an incorrect value is specified, Snowflake returns an error message indicating the acceptable values to use.

func (SamlIntegrationOutput) Saml2SnowflakeMetadata added in v0.9.0

func (o SamlIntegrationOutput) Saml2SnowflakeMetadata() pulumi.StringOutput

Metadata created by Snowflake to provide to SAML2 provider.

func (SamlIntegrationOutput) Saml2SnowflakeX509Cert added in v0.9.0

func (o SamlIntegrationOutput) Saml2SnowflakeX509Cert() pulumi.StringOutput

The Base64 encoded self-signed certificate generated by Snowflake for use with Encrypting SAML Assertions and Signed SAML Requests. You must have at least one of these features (encrypted SAML assertions or signed SAML responses) enabled in your Snowflake account to access the certificate value.

func (SamlIntegrationOutput) Saml2SpInitiatedLoginPageLabel added in v0.9.0

func (o SamlIntegrationOutput) Saml2SpInitiatedLoginPageLabel() pulumi.StringPtrOutput

The string containing the label to display after the Log In With button on the login page.

func (SamlIntegrationOutput) Saml2SsoUrl added in v0.9.0

func (o SamlIntegrationOutput) Saml2SsoUrl() pulumi.StringOutput

The string containing the IdP SSO URL, where the user should be redirected by Snowflake (the Service Provider) with a SAML AuthnRequest message.

func (SamlIntegrationOutput) Saml2X509Cert added in v0.9.0

func (o SamlIntegrationOutput) Saml2X509Cert() pulumi.StringOutput

The Base64 encoded IdP signing certificate on a single line without the leading -----BEGIN CERTIFICATE----- and ending -----END CERTIFICATE----- markers.

func (SamlIntegrationOutput) ToSamlIntegrationOutput added in v0.4.1

func (o SamlIntegrationOutput) ToSamlIntegrationOutput() SamlIntegrationOutput

func (SamlIntegrationOutput) ToSamlIntegrationOutputWithContext added in v0.4.1

func (o SamlIntegrationOutput) ToSamlIntegrationOutputWithContext(ctx context.Context) SamlIntegrationOutput

type SamlIntegrationState added in v0.4.1

type SamlIntegrationState struct {
	// Date and time when the SAML integration was created.
	CreatedOn pulumi.StringPtrInput
	// Specifies whether this security integration is enabled or disabled.
	Enabled pulumi.BoolPtrInput
	// Specifies the name of the SAML2 integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account.
	Name                   pulumi.StringPtrInput
	Saml2DigestMethodsUsed pulumi.StringPtrInput
	// The Boolean indicating if the Log In With button will be shown on the login page. TRUE: displays the Log in WIth button on the login page.  FALSE: does not display the Log in With button on the login page.
	Saml2EnableSpInitiated pulumi.BoolPtrInput
	// The Boolean indicating whether users, during the initial authentication flow, are forced to authenticate again to access Snowflake. When set to TRUE, Snowflake sets the ForceAuthn SAML parameter to TRUE in the outgoing request from Snowflake to the identity provider. TRUE: forces users to authenticate again to access Snowflake, even if a valid session with the identity provider exists. FALSE: does not force users to authenticate again to access Snowflake.
	Saml2ForceAuthn pulumi.BoolPtrInput
	// The string containing the IdP EntityID / Issuer.
	Saml2Issuer pulumi.StringPtrInput
	// The endpoint to which Snowflake redirects users after clicking the Log Out button in the classic Snowflake web interface. Snowflake terminates the Snowflake session upon redirecting to the specified endpoint.
	Saml2PostLogoutRedirectUrl pulumi.StringPtrInput
	// The string describing the IdP. One of the following: OKTA, ADFS, Custom.
	Saml2Provider pulumi.StringPtrInput
	// The SAML NameID format allows Snowflake to set an expectation of the identifying attribute of the user (i.e. SAML Subject) in the SAML assertion from the IdP to ensure a valid authentication to Snowflake. If a value is not specified, Snowflake sends the urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress value in the authentication request to the IdP. NameID must be one of the following values: urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified, urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress, urn:oasis:names:tc:SAML:1.1:nameid-format:X509SubjectName, urn:oasis:names:tc:SAML:1.1:nameid-format:WindowsDomainQualifiedName, urn:oasis:names:tc:SAML:2.0:nameid-format:kerberos, urn:oasis:names:tc:SAML:2.0:nameid-format:persistent, urn:oasis:names:tc:SAML:2.0:nameid-format:transient .
	Saml2RequestedNameidFormat pulumi.StringPtrInput
	// The Boolean indicating whether SAML requests are signed. TRUE: allows SAML requests to be signed. FALSE: does not allow SAML requests to be signed.
	Saml2SignRequest          pulumi.BoolPtrInput
	Saml2SignatureMethodsUsed pulumi.StringPtrInput
	// The string containing the Snowflake Assertion Consumer Service URL to which the IdP will send its SAML authentication response back to Snowflake. This property will be set in the SAML authentication request generated by Snowflake when initiating a SAML SSO operation with the IdP. If an incorrect value is specified, Snowflake returns an error message indicating the acceptable values to use. Default: https://\n\n.\n\n.snowflakecomputing.com/fed/login
	Saml2SnowflakeAcsUrl pulumi.StringPtrInput
	// The string containing the EntityID / Issuer for the Snowflake service provider. If an incorrect value is specified, Snowflake returns an error message indicating the acceptable values to use.
	Saml2SnowflakeIssuerUrl pulumi.StringPtrInput
	// Metadata created by Snowflake to provide to SAML2 provider.
	Saml2SnowflakeMetadata pulumi.StringPtrInput
	// The Base64 encoded self-signed certificate generated by Snowflake for use with Encrypting SAML Assertions and Signed SAML Requests. You must have at least one of these features (encrypted SAML assertions or signed SAML responses) enabled in your Snowflake account to access the certificate value.
	Saml2SnowflakeX509Cert pulumi.StringPtrInput
	// The string containing the label to display after the Log In With button on the login page.
	Saml2SpInitiatedLoginPageLabel pulumi.StringPtrInput
	// The string containing the IdP SSO URL, where the user should be redirected by Snowflake (the Service Provider) with a SAML AuthnRequest message.
	Saml2SsoUrl pulumi.StringPtrInput
	// The Base64 encoded IdP signing certificate on a single line without the leading -----BEGIN CERTIFICATE----- and ending -----END CERTIFICATE----- markers.
	Saml2X509Cert pulumi.StringPtrInput
}

func (SamlIntegrationState) ElementType added in v0.4.1

func (SamlIntegrationState) ElementType() reflect.Type

type Schema

type Schema struct {
	pulumi.CustomResourceState

	// Specifies a comment for the schema.
	Comment pulumi.StringPtrOutput `pulumi:"comment"`
	// Specifies the number of days for which Time Travel actions (CLONE and UNDROP) can be performed on the schema, as well as specifying the default Time Travel retention time for all tables created in the schema.
	DataRetentionDays pulumi.IntPtrOutput `pulumi:"dataRetentionDays"`
	// The database in which to create the schema.
	Database pulumi.StringOutput `pulumi:"database"`
	// Specifies a managed schema. Managed access schemas centralize privilege management with the schema owner.
	IsManaged pulumi.BoolPtrOutput `pulumi:"isManaged"`
	// Specifies a schema as transient. Transient schemas do not have a Fail-safe period so they do not incur additional storage costs once they leave Time Travel; however, this means they are also not protected by Fail-safe in the event of a data loss.
	IsTransient pulumi.BoolPtrOutput `pulumi:"isTransient"`
	// Specifies the identifier for the schema; must be unique for the database in which the schema is created.
	Name pulumi.StringOutput `pulumi:"name"`
	// Definitions of a tag to associate with the resource.
	//
	// Deprecated: Use the 'snowflake_tag_association' resource instead.
	Tags SchemaTagArrayOutput `pulumi:"tags"`
}

## Example Usage

```go 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.NewSchema(ctx, "schema", &snowflake.SchemaArgs{
			Comment:           pulumi.String("A schema."),
			DataRetentionDays: pulumi.Int(1),
			Database:          pulumi.String("database"),
			IsManaged:         pulumi.Bool(false),
			IsTransient:       pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

format is dbName | schemaName

```sh

$ pulumi import snowflake:index/schema:Schema example 'dbName|schemaName'

```

func GetSchema

func GetSchema(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *SchemaState, opts ...pulumi.ResourceOption) (*Schema, error)

GetSchema gets an existing Schema resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewSchema

func NewSchema(ctx *pulumi.Context,
	name string, args *SchemaArgs, opts ...pulumi.ResourceOption) (*Schema, error)

NewSchema registers a new resource with the given unique name, arguments, and options.

func (*Schema) ElementType

func (*Schema) ElementType() reflect.Type

func (*Schema) ToSchemaOutput

func (i *Schema) ToSchemaOutput() SchemaOutput

func (*Schema) ToSchemaOutputWithContext

func (i *Schema) ToSchemaOutputWithContext(ctx context.Context) SchemaOutput

type SchemaArgs

type SchemaArgs struct {
	// Specifies a comment for the schema.
	Comment pulumi.StringPtrInput
	// Specifies the number of days for which Time Travel actions (CLONE and UNDROP) can be performed on the schema, as well as specifying the default Time Travel retention time for all tables created in the schema.
	DataRetentionDays pulumi.IntPtrInput
	// The database in which to create the schema.
	Database pulumi.StringInput
	// Specifies a managed schema. Managed access schemas centralize privilege management with the schema owner.
	IsManaged pulumi.BoolPtrInput
	// Specifies a schema as transient. Transient schemas do not have a Fail-safe period so they do not incur additional storage costs once they leave Time Travel; however, this means they are also not protected by Fail-safe in the event of a data loss.
	IsTransient pulumi.BoolPtrInput
	// Specifies the identifier for the schema; must be unique for the database in which the schema is created.
	Name pulumi.StringPtrInput
	// Definitions of a tag to associate with the resource.
	//
	// Deprecated: Use the 'snowflake_tag_association' resource instead.
	Tags SchemaTagArrayInput
}

The set of arguments for constructing a Schema resource.

func (SchemaArgs) ElementType

func (SchemaArgs) ElementType() reflect.Type

type SchemaArray

type SchemaArray []SchemaInput

func (SchemaArray) ElementType

func (SchemaArray) ElementType() reflect.Type

func (SchemaArray) ToSchemaArrayOutput

func (i SchemaArray) ToSchemaArrayOutput() SchemaArrayOutput

func (SchemaArray) ToSchemaArrayOutputWithContext

func (i SchemaArray) ToSchemaArrayOutputWithContext(ctx context.Context) SchemaArrayOutput

type SchemaArrayInput

type SchemaArrayInput interface {
	pulumi.Input

	ToSchemaArrayOutput() SchemaArrayOutput
	ToSchemaArrayOutputWithContext(context.Context) SchemaArrayOutput
}

SchemaArrayInput is an input type that accepts SchemaArray and SchemaArrayOutput values. You can construct a concrete instance of `SchemaArrayInput` via:

SchemaArray{ SchemaArgs{...} }

type SchemaArrayOutput

type SchemaArrayOutput struct{ *pulumi.OutputState }

func (SchemaArrayOutput) ElementType

func (SchemaArrayOutput) ElementType() reflect.Type

func (SchemaArrayOutput) Index

func (SchemaArrayOutput) ToSchemaArrayOutput

func (o SchemaArrayOutput) ToSchemaArrayOutput() SchemaArrayOutput

func (SchemaArrayOutput) ToSchemaArrayOutputWithContext

func (o SchemaArrayOutput) ToSchemaArrayOutputWithContext(ctx context.Context) SchemaArrayOutput

type SchemaGrant

type SchemaGrant struct {
	pulumi.CustomResourceState

	// The name of the database containing the schema on which to grant privileges.
	DatabaseName pulumi.StringOutput `pulumi:"databaseName"`
	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrOutput `pulumi:"enableMultipleGrants"`
	// When this is set to true, apply this grant on all schemas in the given database. The schema*name and shares fields must be unset in order to use on*all. Cannot be used together with on_future.
	OnAll pulumi.BoolPtrOutput `pulumi:"onAll"`
	// When this is set to true, apply this grant on all future schemas in the given database. The schema*name and shares fields must be unset in order to use on*future. Cannot be used together with on_all.
	OnFuture pulumi.BoolPtrOutput `pulumi:"onFuture"`
	// The privilege to grant on the current or future schema. Note that if "OWNERSHIP" is specified, ensure that the role that
	// terraform is using is granted access. To grant all privileges, use the value `ALL PRIVILEGES`
	Privilege pulumi.StringPtrOutput `pulumi:"privilege"`
	// The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
	RevertOwnershipToRoleName pulumi.StringPtrOutput `pulumi:"revertOwnershipToRoleName"`
	// Grants privilege to these roles.
	Roles pulumi.StringArrayOutput `pulumi:"roles"`
	// The name of the schema on which to grant privileges.
	SchemaName pulumi.StringPtrOutput `pulumi:"schemaName"`
	// Grants privilege to these shares (only valid if on*future and on*all are unset).
	Shares pulumi.StringArrayOutput `pulumi:"shares"`
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrOutput `pulumi:"withGrantOption"`
}

## Example Usage

```go 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.NewSchemaGrant(ctx, "grant", &snowflake.SchemaGrantArgs{
			DatabaseName: pulumi.String("database"),
			OnFuture:     pulumi.Bool(false),
			Privilege:    pulumi.String("USAGE"),
			Roles: pulumi.StringArray{
				pulumi.String("role1"),
				pulumi.String("role2"),
			},
			SchemaName: pulumi.String("schema"),
			Shares: pulumi.StringArray{
				pulumi.String("share1"),
				pulumi.String("share2"),
			},
			WithGrantOption: pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

format is database_name|schema_name|privilege|with_grant_option|on_future|on_all|roles|shares

```sh

$ pulumi import snowflake:index/schemaGrant:SchemaGrant example "MY_DATABASE|MY_SCHEMA|USAGE|false|false|false|role1,role2|share1,share2"

```

func GetSchemaGrant

func GetSchemaGrant(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *SchemaGrantState, opts ...pulumi.ResourceOption) (*SchemaGrant, error)

GetSchemaGrant gets an existing SchemaGrant resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewSchemaGrant

func NewSchemaGrant(ctx *pulumi.Context,
	name string, args *SchemaGrantArgs, opts ...pulumi.ResourceOption) (*SchemaGrant, error)

NewSchemaGrant registers a new resource with the given unique name, arguments, and options.

func (*SchemaGrant) ElementType

func (*SchemaGrant) ElementType() reflect.Type

func (*SchemaGrant) ToSchemaGrantOutput

func (i *SchemaGrant) ToSchemaGrantOutput() SchemaGrantOutput

func (*SchemaGrant) ToSchemaGrantOutputWithContext

func (i *SchemaGrant) ToSchemaGrantOutputWithContext(ctx context.Context) SchemaGrantOutput

type SchemaGrantArgs

type SchemaGrantArgs struct {
	// The name of the database containing the schema on which to grant privileges.
	DatabaseName pulumi.StringInput
	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrInput
	// When this is set to true, apply this grant on all schemas in the given database. The schema*name and shares fields must be unset in order to use on*all. Cannot be used together with on_future.
	OnAll pulumi.BoolPtrInput
	// When this is set to true, apply this grant on all future schemas in the given database. The schema*name and shares fields must be unset in order to use on*future. Cannot be used together with on_all.
	OnFuture pulumi.BoolPtrInput
	// The privilege to grant on the current or future schema. Note that if "OWNERSHIP" is specified, ensure that the role that
	// terraform is using is granted access. To grant all privileges, use the value `ALL PRIVILEGES`
	Privilege pulumi.StringPtrInput
	// The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
	RevertOwnershipToRoleName pulumi.StringPtrInput
	// Grants privilege to these roles.
	Roles pulumi.StringArrayInput
	// The name of the schema on which to grant privileges.
	SchemaName pulumi.StringPtrInput
	// Grants privilege to these shares (only valid if on*future and on*all are unset).
	Shares pulumi.StringArrayInput
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrInput
}

The set of arguments for constructing a SchemaGrant resource.

func (SchemaGrantArgs) ElementType

func (SchemaGrantArgs) ElementType() reflect.Type

type SchemaGrantArray

type SchemaGrantArray []SchemaGrantInput

func (SchemaGrantArray) ElementType

func (SchemaGrantArray) ElementType() reflect.Type

func (SchemaGrantArray) ToSchemaGrantArrayOutput

func (i SchemaGrantArray) ToSchemaGrantArrayOutput() SchemaGrantArrayOutput

func (SchemaGrantArray) ToSchemaGrantArrayOutputWithContext

func (i SchemaGrantArray) ToSchemaGrantArrayOutputWithContext(ctx context.Context) SchemaGrantArrayOutput

type SchemaGrantArrayInput

type SchemaGrantArrayInput interface {
	pulumi.Input

	ToSchemaGrantArrayOutput() SchemaGrantArrayOutput
	ToSchemaGrantArrayOutputWithContext(context.Context) SchemaGrantArrayOutput
}

SchemaGrantArrayInput is an input type that accepts SchemaGrantArray and SchemaGrantArrayOutput values. You can construct a concrete instance of `SchemaGrantArrayInput` via:

SchemaGrantArray{ SchemaGrantArgs{...} }

type SchemaGrantArrayOutput

type SchemaGrantArrayOutput struct{ *pulumi.OutputState }

func (SchemaGrantArrayOutput) ElementType

func (SchemaGrantArrayOutput) ElementType() reflect.Type

func (SchemaGrantArrayOutput) Index

func (SchemaGrantArrayOutput) ToSchemaGrantArrayOutput

func (o SchemaGrantArrayOutput) ToSchemaGrantArrayOutput() SchemaGrantArrayOutput

func (SchemaGrantArrayOutput) ToSchemaGrantArrayOutputWithContext

func (o SchemaGrantArrayOutput) ToSchemaGrantArrayOutputWithContext(ctx context.Context) SchemaGrantArrayOutput

type SchemaGrantInput

type SchemaGrantInput interface {
	pulumi.Input

	ToSchemaGrantOutput() SchemaGrantOutput
	ToSchemaGrantOutputWithContext(ctx context.Context) SchemaGrantOutput
}

type SchemaGrantMap

type SchemaGrantMap map[string]SchemaGrantInput

func (SchemaGrantMap) ElementType

func (SchemaGrantMap) ElementType() reflect.Type

func (SchemaGrantMap) ToSchemaGrantMapOutput

func (i SchemaGrantMap) ToSchemaGrantMapOutput() SchemaGrantMapOutput

func (SchemaGrantMap) ToSchemaGrantMapOutputWithContext

func (i SchemaGrantMap) ToSchemaGrantMapOutputWithContext(ctx context.Context) SchemaGrantMapOutput

type SchemaGrantMapInput

type SchemaGrantMapInput interface {
	pulumi.Input

	ToSchemaGrantMapOutput() SchemaGrantMapOutput
	ToSchemaGrantMapOutputWithContext(context.Context) SchemaGrantMapOutput
}

SchemaGrantMapInput is an input type that accepts SchemaGrantMap and SchemaGrantMapOutput values. You can construct a concrete instance of `SchemaGrantMapInput` via:

SchemaGrantMap{ "key": SchemaGrantArgs{...} }

type SchemaGrantMapOutput

type SchemaGrantMapOutput struct{ *pulumi.OutputState }

func (SchemaGrantMapOutput) ElementType

func (SchemaGrantMapOutput) ElementType() reflect.Type

func (SchemaGrantMapOutput) MapIndex

func (SchemaGrantMapOutput) ToSchemaGrantMapOutput

func (o SchemaGrantMapOutput) ToSchemaGrantMapOutput() SchemaGrantMapOutput

func (SchemaGrantMapOutput) ToSchemaGrantMapOutputWithContext

func (o SchemaGrantMapOutput) ToSchemaGrantMapOutputWithContext(ctx context.Context) SchemaGrantMapOutput

type SchemaGrantOutput

type SchemaGrantOutput struct{ *pulumi.OutputState }

func (SchemaGrantOutput) DatabaseName added in v0.9.0

func (o SchemaGrantOutput) DatabaseName() pulumi.StringOutput

The name of the database containing the schema on which to grant privileges.

func (SchemaGrantOutput) ElementType

func (SchemaGrantOutput) ElementType() reflect.Type

func (SchemaGrantOutput) EnableMultipleGrants added in v0.9.0

func (o SchemaGrantOutput) EnableMultipleGrants() pulumi.BoolPtrOutput

When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke grants applied to roles and objects outside Terraform.

func (SchemaGrantOutput) OnAll added in v0.23.0

When this is set to true, apply this grant on all schemas in the given database. The schema*name and shares fields must be unset in order to use on*all. Cannot be used together with on_future.

func (SchemaGrantOutput) OnFuture added in v0.9.0

func (o SchemaGrantOutput) OnFuture() pulumi.BoolPtrOutput

When this is set to true, apply this grant on all future schemas in the given database. The schema*name and shares fields must be unset in order to use on*future. Cannot be used together with on_all.

func (SchemaGrantOutput) Privilege added in v0.9.0

The privilege to grant on the current or future schema. Note that if "OWNERSHIP" is specified, ensure that the role that terraform is using is granted access. To grant all privileges, use the value `ALL PRIVILEGES`

func (SchemaGrantOutput) RevertOwnershipToRoleName added in v0.26.0

func (o SchemaGrantOutput) RevertOwnershipToRoleName() pulumi.StringPtrOutput

The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`

func (SchemaGrantOutput) Roles added in v0.9.0

Grants privilege to these roles.

func (SchemaGrantOutput) SchemaName added in v0.9.0

func (o SchemaGrantOutput) SchemaName() pulumi.StringPtrOutput

The name of the schema on which to grant privileges.

func (SchemaGrantOutput) Shares added in v0.9.0

Grants privilege to these shares (only valid if on*future and on*all are unset).

func (SchemaGrantOutput) ToSchemaGrantOutput

func (o SchemaGrantOutput) ToSchemaGrantOutput() SchemaGrantOutput

func (SchemaGrantOutput) ToSchemaGrantOutputWithContext

func (o SchemaGrantOutput) ToSchemaGrantOutputWithContext(ctx context.Context) SchemaGrantOutput

func (SchemaGrantOutput) WithGrantOption added in v0.9.0

func (o SchemaGrantOutput) WithGrantOption() pulumi.BoolPtrOutput

When this is set to true, allows the recipient role to grant the privileges to other roles.

type SchemaGrantState

type SchemaGrantState struct {
	// The name of the database containing the schema on which to grant privileges.
	DatabaseName pulumi.StringPtrInput
	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrInput
	// When this is set to true, apply this grant on all schemas in the given database. The schema*name and shares fields must be unset in order to use on*all. Cannot be used together with on_future.
	OnAll pulumi.BoolPtrInput
	// When this is set to true, apply this grant on all future schemas in the given database. The schema*name and shares fields must be unset in order to use on*future. Cannot be used together with on_all.
	OnFuture pulumi.BoolPtrInput
	// The privilege to grant on the current or future schema. Note that if "OWNERSHIP" is specified, ensure that the role that
	// terraform is using is granted access. To grant all privileges, use the value `ALL PRIVILEGES`
	Privilege pulumi.StringPtrInput
	// The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
	RevertOwnershipToRoleName pulumi.StringPtrInput
	// Grants privilege to these roles.
	Roles pulumi.StringArrayInput
	// The name of the schema on which to grant privileges.
	SchemaName pulumi.StringPtrInput
	// Grants privilege to these shares (only valid if on*future and on*all are unset).
	Shares pulumi.StringArrayInput
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrInput
}

func (SchemaGrantState) ElementType

func (SchemaGrantState) ElementType() reflect.Type

type SchemaInput

type SchemaInput interface {
	pulumi.Input

	ToSchemaOutput() SchemaOutput
	ToSchemaOutputWithContext(ctx context.Context) SchemaOutput
}

type SchemaMap

type SchemaMap map[string]SchemaInput

func (SchemaMap) ElementType

func (SchemaMap) ElementType() reflect.Type

func (SchemaMap) ToSchemaMapOutput

func (i SchemaMap) ToSchemaMapOutput() SchemaMapOutput

func (SchemaMap) ToSchemaMapOutputWithContext

func (i SchemaMap) ToSchemaMapOutputWithContext(ctx context.Context) SchemaMapOutput

type SchemaMapInput

type SchemaMapInput interface {
	pulumi.Input

	ToSchemaMapOutput() SchemaMapOutput
	ToSchemaMapOutputWithContext(context.Context) SchemaMapOutput
}

SchemaMapInput is an input type that accepts SchemaMap and SchemaMapOutput values. You can construct a concrete instance of `SchemaMapInput` via:

SchemaMap{ "key": SchemaArgs{...} }

type SchemaMapOutput

type SchemaMapOutput struct{ *pulumi.OutputState }

func (SchemaMapOutput) ElementType

func (SchemaMapOutput) ElementType() reflect.Type

func (SchemaMapOutput) MapIndex

func (SchemaMapOutput) ToSchemaMapOutput

func (o SchemaMapOutput) ToSchemaMapOutput() SchemaMapOutput

func (SchemaMapOutput) ToSchemaMapOutputWithContext

func (o SchemaMapOutput) ToSchemaMapOutputWithContext(ctx context.Context) SchemaMapOutput

type SchemaOutput

type SchemaOutput struct{ *pulumi.OutputState }

func (SchemaOutput) Comment added in v0.9.0

func (o SchemaOutput) Comment() pulumi.StringPtrOutput

Specifies a comment for the schema.

func (SchemaOutput) DataRetentionDays added in v0.9.0

func (o SchemaOutput) DataRetentionDays() pulumi.IntPtrOutput

Specifies the number of days for which Time Travel actions (CLONE and UNDROP) can be performed on the schema, as well as specifying the default Time Travel retention time for all tables created in the schema.

func (SchemaOutput) Database added in v0.9.0

func (o SchemaOutput) Database() pulumi.StringOutput

The database in which to create the schema.

func (SchemaOutput) ElementType

func (SchemaOutput) ElementType() reflect.Type

func (SchemaOutput) IsManaged added in v0.9.0

func (o SchemaOutput) IsManaged() pulumi.BoolPtrOutput

Specifies a managed schema. Managed access schemas centralize privilege management with the schema owner.

func (SchemaOutput) IsTransient added in v0.9.0

func (o SchemaOutput) IsTransient() pulumi.BoolPtrOutput

Specifies a schema as transient. Transient schemas do not have a Fail-safe period so they do not incur additional storage costs once they leave Time Travel; however, this means they are also not protected by Fail-safe in the event of a data loss.

func (SchemaOutput) Name added in v0.9.0

func (o SchemaOutput) Name() pulumi.StringOutput

Specifies the identifier for the schema; must be unique for the database in which the schema is created.

func (SchemaOutput) Tags deprecated added in v0.9.0

Definitions of a tag to associate with the resource.

Deprecated: Use the 'snowflake_tag_association' resource instead.

func (SchemaOutput) ToSchemaOutput

func (o SchemaOutput) ToSchemaOutput() SchemaOutput

func (SchemaOutput) ToSchemaOutputWithContext

func (o SchemaOutput) ToSchemaOutputWithContext(ctx context.Context) SchemaOutput

type SchemaState

type SchemaState struct {
	// Specifies a comment for the schema.
	Comment pulumi.StringPtrInput
	// Specifies the number of days for which Time Travel actions (CLONE and UNDROP) can be performed on the schema, as well as specifying the default Time Travel retention time for all tables created in the schema.
	DataRetentionDays pulumi.IntPtrInput
	// The database in which to create the schema.
	Database pulumi.StringPtrInput
	// Specifies a managed schema. Managed access schemas centralize privilege management with the schema owner.
	IsManaged pulumi.BoolPtrInput
	// Specifies a schema as transient. Transient schemas do not have a Fail-safe period so they do not incur additional storage costs once they leave Time Travel; however, this means they are also not protected by Fail-safe in the event of a data loss.
	IsTransient pulumi.BoolPtrInput
	// Specifies the identifier for the schema; must be unique for the database in which the schema is created.
	Name pulumi.StringPtrInput
	// Definitions of a tag to associate with the resource.
	//
	// Deprecated: Use the 'snowflake_tag_association' resource instead.
	Tags SchemaTagArrayInput
}

func (SchemaState) ElementType

func (SchemaState) ElementType() reflect.Type

type SchemaTag added in v0.3.0

type SchemaTag struct {
	// Name of the database that the tag was created in.
	Database *string `pulumi:"database"`
	// Tag name, e.g. department.
	Name string `pulumi:"name"`
	// Name of the schema that the tag was created in.
	Schema *string `pulumi:"schema"`
	// Tag value, e.g. marketing_info.
	Value string `pulumi:"value"`
}

type SchemaTagArgs added in v0.3.0

type SchemaTagArgs struct {
	// Name of the database that the tag was created in.
	Database pulumi.StringPtrInput `pulumi:"database"`
	// Tag name, e.g. department.
	Name pulumi.StringInput `pulumi:"name"`
	// Name of the schema that the tag was created in.
	Schema pulumi.StringPtrInput `pulumi:"schema"`
	// Tag value, e.g. marketing_info.
	Value pulumi.StringInput `pulumi:"value"`
}

func (SchemaTagArgs) ElementType added in v0.3.0

func (SchemaTagArgs) ElementType() reflect.Type

func (SchemaTagArgs) ToSchemaTagOutput added in v0.3.0

func (i SchemaTagArgs) ToSchemaTagOutput() SchemaTagOutput

func (SchemaTagArgs) ToSchemaTagOutputWithContext added in v0.3.0

func (i SchemaTagArgs) ToSchemaTagOutputWithContext(ctx context.Context) SchemaTagOutput

type SchemaTagArray added in v0.3.0

type SchemaTagArray []SchemaTagInput

func (SchemaTagArray) ElementType added in v0.3.0

func (SchemaTagArray) ElementType() reflect.Type

func (SchemaTagArray) ToSchemaTagArrayOutput added in v0.3.0

func (i SchemaTagArray) ToSchemaTagArrayOutput() SchemaTagArrayOutput

func (SchemaTagArray) ToSchemaTagArrayOutputWithContext added in v0.3.0

func (i SchemaTagArray) ToSchemaTagArrayOutputWithContext(ctx context.Context) SchemaTagArrayOutput

type SchemaTagArrayInput added in v0.3.0

type SchemaTagArrayInput interface {
	pulumi.Input

	ToSchemaTagArrayOutput() SchemaTagArrayOutput
	ToSchemaTagArrayOutputWithContext(context.Context) SchemaTagArrayOutput
}

SchemaTagArrayInput is an input type that accepts SchemaTagArray and SchemaTagArrayOutput values. You can construct a concrete instance of `SchemaTagArrayInput` via:

SchemaTagArray{ SchemaTagArgs{...} }

type SchemaTagArrayOutput added in v0.3.0

type SchemaTagArrayOutput struct{ *pulumi.OutputState }

func (SchemaTagArrayOutput) ElementType added in v0.3.0

func (SchemaTagArrayOutput) ElementType() reflect.Type

func (SchemaTagArrayOutput) Index added in v0.3.0

func (SchemaTagArrayOutput) ToSchemaTagArrayOutput added in v0.3.0

func (o SchemaTagArrayOutput) ToSchemaTagArrayOutput() SchemaTagArrayOutput

func (SchemaTagArrayOutput) ToSchemaTagArrayOutputWithContext added in v0.3.0

func (o SchemaTagArrayOutput) ToSchemaTagArrayOutputWithContext(ctx context.Context) SchemaTagArrayOutput

type SchemaTagInput added in v0.3.0

type SchemaTagInput interface {
	pulumi.Input

	ToSchemaTagOutput() SchemaTagOutput
	ToSchemaTagOutputWithContext(context.Context) SchemaTagOutput
}

SchemaTagInput is an input type that accepts SchemaTagArgs and SchemaTagOutput values. You can construct a concrete instance of `SchemaTagInput` via:

SchemaTagArgs{...}

type SchemaTagOutput added in v0.3.0

type SchemaTagOutput struct{ *pulumi.OutputState }

func (SchemaTagOutput) Database added in v0.3.0

func (o SchemaTagOutput) Database() pulumi.StringPtrOutput

Name of the database that the tag was created in.

func (SchemaTagOutput) ElementType added in v0.3.0

func (SchemaTagOutput) ElementType() reflect.Type

func (SchemaTagOutput) Name added in v0.3.0

Tag name, e.g. department.

func (SchemaTagOutput) Schema added in v0.3.0

Name of the schema that the tag was created in.

func (SchemaTagOutput) ToSchemaTagOutput added in v0.3.0

func (o SchemaTagOutput) ToSchemaTagOutput() SchemaTagOutput

func (SchemaTagOutput) ToSchemaTagOutputWithContext added in v0.3.0

func (o SchemaTagOutput) ToSchemaTagOutputWithContext(ctx context.Context) SchemaTagOutput

func (SchemaTagOutput) Value added in v0.3.0

Tag value, e.g. marketing_info.

type ScimIntegration

type ScimIntegration struct {
	pulumi.CustomResourceState

	// Date and time when the SCIM integration was created.
	CreatedOn pulumi.StringOutput `pulumi:"createdOn"`
	// Specifies the name of the SCIM integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account.
	Name pulumi.StringOutput `pulumi:"name"`
	// Specifies an existing network policy active for your account. The network policy restricts the list of user IP addresses when exchanging an authorization code for an access or refresh token and when using a refresh token to obtain a new access token. If this parameter is not set, the network policy for the account (if any) is used instead.
	NetworkPolicy pulumi.StringPtrOutput `pulumi:"networkPolicy"`
	// Specify the SCIM role in Snowflake that owns any users and roles that are imported from the identity provider into Snowflake using SCIM.
	ProvisionerRole pulumi.StringOutput `pulumi:"provisionerRole"`
	// Specifies the client type for the scim integration
	ScimClient pulumi.StringOutput `pulumi:"scimClient"`
}

## Example Usage

```go 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.NewScimIntegration(ctx, "aad", &snowflake.ScimIntegrationArgs{
			NetworkPolicy:   pulumi.String("AAD_NETWORK_POLICY"),
			ProvisionerRole: pulumi.String("AAD_PROVISIONER"),
			ScimClient:      pulumi.String("AZURE"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

```sh

$ pulumi import snowflake:index/scimIntegration:ScimIntegration example name

```

func GetScimIntegration

func GetScimIntegration(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ScimIntegrationState, opts ...pulumi.ResourceOption) (*ScimIntegration, error)

GetScimIntegration gets an existing ScimIntegration resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewScimIntegration

func NewScimIntegration(ctx *pulumi.Context,
	name string, args *ScimIntegrationArgs, opts ...pulumi.ResourceOption) (*ScimIntegration, error)

NewScimIntegration registers a new resource with the given unique name, arguments, and options.

func (*ScimIntegration) ElementType

func (*ScimIntegration) ElementType() reflect.Type

func (*ScimIntegration) ToScimIntegrationOutput

func (i *ScimIntegration) ToScimIntegrationOutput() ScimIntegrationOutput

func (*ScimIntegration) ToScimIntegrationOutputWithContext

func (i *ScimIntegration) ToScimIntegrationOutputWithContext(ctx context.Context) ScimIntegrationOutput

type ScimIntegrationArgs

type ScimIntegrationArgs struct {
	// Specifies the name of the SCIM integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account.
	Name pulumi.StringPtrInput
	// Specifies an existing network policy active for your account. The network policy restricts the list of user IP addresses when exchanging an authorization code for an access or refresh token and when using a refresh token to obtain a new access token. If this parameter is not set, the network policy for the account (if any) is used instead.
	NetworkPolicy pulumi.StringPtrInput
	// Specify the SCIM role in Snowflake that owns any users and roles that are imported from the identity provider into Snowflake using SCIM.
	ProvisionerRole pulumi.StringInput
	// Specifies the client type for the scim integration
	ScimClient pulumi.StringInput
}

The set of arguments for constructing a ScimIntegration resource.

func (ScimIntegrationArgs) ElementType

func (ScimIntegrationArgs) ElementType() reflect.Type

type ScimIntegrationArray

type ScimIntegrationArray []ScimIntegrationInput

func (ScimIntegrationArray) ElementType

func (ScimIntegrationArray) ElementType() reflect.Type

func (ScimIntegrationArray) ToScimIntegrationArrayOutput

func (i ScimIntegrationArray) ToScimIntegrationArrayOutput() ScimIntegrationArrayOutput

func (ScimIntegrationArray) ToScimIntegrationArrayOutputWithContext

func (i ScimIntegrationArray) ToScimIntegrationArrayOutputWithContext(ctx context.Context) ScimIntegrationArrayOutput

type ScimIntegrationArrayInput

type ScimIntegrationArrayInput interface {
	pulumi.Input

	ToScimIntegrationArrayOutput() ScimIntegrationArrayOutput
	ToScimIntegrationArrayOutputWithContext(context.Context) ScimIntegrationArrayOutput
}

ScimIntegrationArrayInput is an input type that accepts ScimIntegrationArray and ScimIntegrationArrayOutput values. You can construct a concrete instance of `ScimIntegrationArrayInput` via:

ScimIntegrationArray{ ScimIntegrationArgs{...} }

type ScimIntegrationArrayOutput

type ScimIntegrationArrayOutput struct{ *pulumi.OutputState }

func (ScimIntegrationArrayOutput) ElementType

func (ScimIntegrationArrayOutput) ElementType() reflect.Type

func (ScimIntegrationArrayOutput) Index

func (ScimIntegrationArrayOutput) ToScimIntegrationArrayOutput

func (o ScimIntegrationArrayOutput) ToScimIntegrationArrayOutput() ScimIntegrationArrayOutput

func (ScimIntegrationArrayOutput) ToScimIntegrationArrayOutputWithContext

func (o ScimIntegrationArrayOutput) ToScimIntegrationArrayOutputWithContext(ctx context.Context) ScimIntegrationArrayOutput

type ScimIntegrationInput

type ScimIntegrationInput interface {
	pulumi.Input

	ToScimIntegrationOutput() ScimIntegrationOutput
	ToScimIntegrationOutputWithContext(ctx context.Context) ScimIntegrationOutput
}

type ScimIntegrationMap

type ScimIntegrationMap map[string]ScimIntegrationInput

func (ScimIntegrationMap) ElementType

func (ScimIntegrationMap) ElementType() reflect.Type

func (ScimIntegrationMap) ToScimIntegrationMapOutput

func (i ScimIntegrationMap) ToScimIntegrationMapOutput() ScimIntegrationMapOutput

func (ScimIntegrationMap) ToScimIntegrationMapOutputWithContext

func (i ScimIntegrationMap) ToScimIntegrationMapOutputWithContext(ctx context.Context) ScimIntegrationMapOutput

type ScimIntegrationMapInput

type ScimIntegrationMapInput interface {
	pulumi.Input

	ToScimIntegrationMapOutput() ScimIntegrationMapOutput
	ToScimIntegrationMapOutputWithContext(context.Context) ScimIntegrationMapOutput
}

ScimIntegrationMapInput is an input type that accepts ScimIntegrationMap and ScimIntegrationMapOutput values. You can construct a concrete instance of `ScimIntegrationMapInput` via:

ScimIntegrationMap{ "key": ScimIntegrationArgs{...} }

type ScimIntegrationMapOutput

type ScimIntegrationMapOutput struct{ *pulumi.OutputState }

func (ScimIntegrationMapOutput) ElementType

func (ScimIntegrationMapOutput) ElementType() reflect.Type

func (ScimIntegrationMapOutput) MapIndex

func (ScimIntegrationMapOutput) ToScimIntegrationMapOutput

func (o ScimIntegrationMapOutput) ToScimIntegrationMapOutput() ScimIntegrationMapOutput

func (ScimIntegrationMapOutput) ToScimIntegrationMapOutputWithContext

func (o ScimIntegrationMapOutput) ToScimIntegrationMapOutputWithContext(ctx context.Context) ScimIntegrationMapOutput

type ScimIntegrationOutput

type ScimIntegrationOutput struct{ *pulumi.OutputState }

func (ScimIntegrationOutput) CreatedOn added in v0.9.0

Date and time when the SCIM integration was created.

func (ScimIntegrationOutput) ElementType

func (ScimIntegrationOutput) ElementType() reflect.Type

func (ScimIntegrationOutput) Name added in v0.9.0

Specifies the name of the SCIM integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account.

func (ScimIntegrationOutput) NetworkPolicy added in v0.9.0

func (o ScimIntegrationOutput) NetworkPolicy() pulumi.StringPtrOutput

Specifies an existing network policy active for your account. The network policy restricts the list of user IP addresses when exchanging an authorization code for an access or refresh token and when using a refresh token to obtain a new access token. If this parameter is not set, the network policy for the account (if any) is used instead.

func (ScimIntegrationOutput) ProvisionerRole added in v0.9.0

func (o ScimIntegrationOutput) ProvisionerRole() pulumi.StringOutput

Specify the SCIM role in Snowflake that owns any users and roles that are imported from the identity provider into Snowflake using SCIM.

func (ScimIntegrationOutput) ScimClient added in v0.9.0

func (o ScimIntegrationOutput) ScimClient() pulumi.StringOutput

Specifies the client type for the scim integration

func (ScimIntegrationOutput) ToScimIntegrationOutput

func (o ScimIntegrationOutput) ToScimIntegrationOutput() ScimIntegrationOutput

func (ScimIntegrationOutput) ToScimIntegrationOutputWithContext

func (o ScimIntegrationOutput) ToScimIntegrationOutputWithContext(ctx context.Context) ScimIntegrationOutput

type ScimIntegrationState

type ScimIntegrationState struct {
	// Date and time when the SCIM integration was created.
	CreatedOn pulumi.StringPtrInput
	// Specifies the name of the SCIM integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account.
	Name pulumi.StringPtrInput
	// Specifies an existing network policy active for your account. The network policy restricts the list of user IP addresses when exchanging an authorization code for an access or refresh token and when using a refresh token to obtain a new access token. If this parameter is not set, the network policy for the account (if any) is used instead.
	NetworkPolicy pulumi.StringPtrInput
	// Specify the SCIM role in Snowflake that owns any users and roles that are imported from the identity provider into Snowflake using SCIM.
	ProvisionerRole pulumi.StringPtrInput
	// Specifies the client type for the scim integration
	ScimClient pulumi.StringPtrInput
}

func (ScimIntegrationState) ElementType

func (ScimIntegrationState) ElementType() reflect.Type

type Sequence

type Sequence struct {
	pulumi.CustomResourceState

	// Specifies a comment for the sequence.
	Comment pulumi.StringPtrOutput `pulumi:"comment"`
	// The database in which to create the sequence. Don't use the | character.
	Database pulumi.StringOutput `pulumi:"database"`
	// The fully qualified name of the sequence.
	FullyQualifiedName pulumi.StringOutput `pulumi:"fullyQualifiedName"`
	// The amount the sequence will increase by each time it is used
	Increment pulumi.IntPtrOutput `pulumi:"increment"`
	// Specifies the name for the sequence.
	Name pulumi.StringOutput `pulumi:"name"`
	// The next value the sequence will provide.
	NextValue pulumi.IntOutput `pulumi:"nextValue"`
	// The schema in which to create the sequence. Don't use the | character.
	Schema pulumi.StringOutput `pulumi:"schema"`
}

## Example Usage

```go 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.NewDatabase(ctx, "database", nil)
		if err != nil {
			return err
		}
		testSchema, err := snowflake.NewSchema(ctx, "testSchema", &snowflake.SchemaArgs{
			Database: pulumi.Any(snowflake_database.Test_database.Name),
		})
		if err != nil {
			return err
		}
		_, err = snowflake.NewSequence(ctx, "testSequence", &snowflake.SequenceArgs{
			Database: pulumi.Any(snowflake_database.Test_database.Name),
			Schema:   testSchema.Name,
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

format is database name | schema name | sequence name

```sh

$ pulumi import snowflake:index/sequence:Sequence example 'dbName|schemaName|sequenceName'

```

func GetSequence

func GetSequence(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *SequenceState, opts ...pulumi.ResourceOption) (*Sequence, error)

GetSequence gets an existing Sequence resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewSequence

func NewSequence(ctx *pulumi.Context,
	name string, args *SequenceArgs, opts ...pulumi.ResourceOption) (*Sequence, error)

NewSequence registers a new resource with the given unique name, arguments, and options.

func (*Sequence) ElementType

func (*Sequence) ElementType() reflect.Type

func (*Sequence) ToSequenceOutput

func (i *Sequence) ToSequenceOutput() SequenceOutput

func (*Sequence) ToSequenceOutputWithContext

func (i *Sequence) ToSequenceOutputWithContext(ctx context.Context) SequenceOutput

type SequenceArgs

type SequenceArgs struct {
	// Specifies a comment for the sequence.
	Comment pulumi.StringPtrInput
	// The database in which to create the sequence. Don't use the | character.
	Database pulumi.StringInput
	// The amount the sequence will increase by each time it is used
	Increment pulumi.IntPtrInput
	// Specifies the name for the sequence.
	Name pulumi.StringPtrInput
	// The schema in which to create the sequence. Don't use the | character.
	Schema pulumi.StringInput
}

The set of arguments for constructing a Sequence resource.

func (SequenceArgs) ElementType

func (SequenceArgs) ElementType() reflect.Type

type SequenceArray

type SequenceArray []SequenceInput

func (SequenceArray) ElementType

func (SequenceArray) ElementType() reflect.Type

func (SequenceArray) ToSequenceArrayOutput

func (i SequenceArray) ToSequenceArrayOutput() SequenceArrayOutput

func (SequenceArray) ToSequenceArrayOutputWithContext

func (i SequenceArray) ToSequenceArrayOutputWithContext(ctx context.Context) SequenceArrayOutput

type SequenceArrayInput

type SequenceArrayInput interface {
	pulumi.Input

	ToSequenceArrayOutput() SequenceArrayOutput
	ToSequenceArrayOutputWithContext(context.Context) SequenceArrayOutput
}

SequenceArrayInput is an input type that accepts SequenceArray and SequenceArrayOutput values. You can construct a concrete instance of `SequenceArrayInput` via:

SequenceArray{ SequenceArgs{...} }

type SequenceArrayOutput

type SequenceArrayOutput struct{ *pulumi.OutputState }

func (SequenceArrayOutput) ElementType

func (SequenceArrayOutput) ElementType() reflect.Type

func (SequenceArrayOutput) Index

func (SequenceArrayOutput) ToSequenceArrayOutput

func (o SequenceArrayOutput) ToSequenceArrayOutput() SequenceArrayOutput

func (SequenceArrayOutput) ToSequenceArrayOutputWithContext

func (o SequenceArrayOutput) ToSequenceArrayOutputWithContext(ctx context.Context) SequenceArrayOutput

type SequenceGrant

type SequenceGrant struct {
	pulumi.CustomResourceState

	// The name of the database containing the current or future sequences on which to grant privileges.
	DatabaseName pulumi.StringOutput `pulumi:"databaseName"`
	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrOutput `pulumi:"enableMultipleGrants"`
	// When this is set to true and a schema*name is provided, apply this grant on all sequences in the given schema. When this is true and no schema*name is provided apply this grant on all sequences in the given database. The sequence*name field must be unset in order to use on*all. Cannot be used together with on_future.
	OnAll pulumi.BoolPtrOutput `pulumi:"onAll"`
	// When this is set to true and a schema*name is provided, apply this grant on all future sequences in the given schema. When this is true and no schema*name is provided apply this grant on all future sequences in the given database. The sequence*name field must be unset in order to use on*future. Cannot be used together with on_all.
	OnFuture pulumi.BoolPtrOutput `pulumi:"onFuture"`
	// The privilege to grant on the current or future sequence. To grant all privileges, use the value `ALL PRIVILEGES`
	Privilege pulumi.StringPtrOutput `pulumi:"privilege"`
	// The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
	RevertOwnershipToRoleName pulumi.StringPtrOutput `pulumi:"revertOwnershipToRoleName"`
	// Grants privilege to these roles.
	Roles pulumi.StringArrayOutput `pulumi:"roles"`
	// The name of the schema containing the current or future sequences on which to grant privileges.
	SchemaName pulumi.StringPtrOutput `pulumi:"schemaName"`
	// The name of the sequence on which to grant privileges immediately (only valid if onFuture is false).
	SequenceName pulumi.StringPtrOutput `pulumi:"sequenceName"`
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrOutput `pulumi:"withGrantOption"`
}

## Example Usage

```go 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.NewSequenceGrant(ctx, "grant", &snowflake.SequenceGrantArgs{
			DatabaseName: pulumi.String("database"),
			OnFuture:     pulumi.Bool(false),
			Privilege:    pulumi.String("SELECT"),
			Roles: pulumi.StringArray{
				pulumi.String("role1"),
				pulumi.String("role2"),
			},
			SchemaName:      pulumi.String("schema"),
			SequenceName:    pulumi.String("sequence"),
			WithGrantOption: pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

format is database_name|schema_name|sequence_name|privilege|with_grant_option|on_future|roles

```sh

$ pulumi import snowflake:index/sequenceGrant:SequenceGrant example "MY_DATABASE|MY_SCHEMA|MY_SEQUENCE|USAGE|false|false|role1,role2"

```

func GetSequenceGrant

func GetSequenceGrant(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *SequenceGrantState, opts ...pulumi.ResourceOption) (*SequenceGrant, error)

GetSequenceGrant gets an existing SequenceGrant resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewSequenceGrant

func NewSequenceGrant(ctx *pulumi.Context,
	name string, args *SequenceGrantArgs, opts ...pulumi.ResourceOption) (*SequenceGrant, error)

NewSequenceGrant registers a new resource with the given unique name, arguments, and options.

func (*SequenceGrant) ElementType

func (*SequenceGrant) ElementType() reflect.Type

func (*SequenceGrant) ToSequenceGrantOutput

func (i *SequenceGrant) ToSequenceGrantOutput() SequenceGrantOutput

func (*SequenceGrant) ToSequenceGrantOutputWithContext

func (i *SequenceGrant) ToSequenceGrantOutputWithContext(ctx context.Context) SequenceGrantOutput

type SequenceGrantArgs

type SequenceGrantArgs struct {
	// The name of the database containing the current or future sequences on which to grant privileges.
	DatabaseName pulumi.StringInput
	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrInput
	// When this is set to true and a schema*name is provided, apply this grant on all sequences in the given schema. When this is true and no schema*name is provided apply this grant on all sequences in the given database. The sequence*name field must be unset in order to use on*all. Cannot be used together with on_future.
	OnAll pulumi.BoolPtrInput
	// When this is set to true and a schema*name is provided, apply this grant on all future sequences in the given schema. When this is true and no schema*name is provided apply this grant on all future sequences in the given database. The sequence*name field must be unset in order to use on*future. Cannot be used together with on_all.
	OnFuture pulumi.BoolPtrInput
	// The privilege to grant on the current or future sequence. To grant all privileges, use the value `ALL PRIVILEGES`
	Privilege pulumi.StringPtrInput
	// The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
	RevertOwnershipToRoleName pulumi.StringPtrInput
	// Grants privilege to these roles.
	Roles pulumi.StringArrayInput
	// The name of the schema containing the current or future sequences on which to grant privileges.
	SchemaName pulumi.StringPtrInput
	// The name of the sequence on which to grant privileges immediately (only valid if onFuture is false).
	SequenceName pulumi.StringPtrInput
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrInput
}

The set of arguments for constructing a SequenceGrant resource.

func (SequenceGrantArgs) ElementType

func (SequenceGrantArgs) ElementType() reflect.Type

type SequenceGrantArray

type SequenceGrantArray []SequenceGrantInput

func (SequenceGrantArray) ElementType

func (SequenceGrantArray) ElementType() reflect.Type

func (SequenceGrantArray) ToSequenceGrantArrayOutput

func (i SequenceGrantArray) ToSequenceGrantArrayOutput() SequenceGrantArrayOutput

func (SequenceGrantArray) ToSequenceGrantArrayOutputWithContext

func (i SequenceGrantArray) ToSequenceGrantArrayOutputWithContext(ctx context.Context) SequenceGrantArrayOutput

type SequenceGrantArrayInput

type SequenceGrantArrayInput interface {
	pulumi.Input

	ToSequenceGrantArrayOutput() SequenceGrantArrayOutput
	ToSequenceGrantArrayOutputWithContext(context.Context) SequenceGrantArrayOutput
}

SequenceGrantArrayInput is an input type that accepts SequenceGrantArray and SequenceGrantArrayOutput values. You can construct a concrete instance of `SequenceGrantArrayInput` via:

SequenceGrantArray{ SequenceGrantArgs{...} }

type SequenceGrantArrayOutput

type SequenceGrantArrayOutput struct{ *pulumi.OutputState }

func (SequenceGrantArrayOutput) ElementType

func (SequenceGrantArrayOutput) ElementType() reflect.Type

func (SequenceGrantArrayOutput) Index

func (SequenceGrantArrayOutput) ToSequenceGrantArrayOutput

func (o SequenceGrantArrayOutput) ToSequenceGrantArrayOutput() SequenceGrantArrayOutput

func (SequenceGrantArrayOutput) ToSequenceGrantArrayOutputWithContext

func (o SequenceGrantArrayOutput) ToSequenceGrantArrayOutputWithContext(ctx context.Context) SequenceGrantArrayOutput

type SequenceGrantInput

type SequenceGrantInput interface {
	pulumi.Input

	ToSequenceGrantOutput() SequenceGrantOutput
	ToSequenceGrantOutputWithContext(ctx context.Context) SequenceGrantOutput
}

type SequenceGrantMap

type SequenceGrantMap map[string]SequenceGrantInput

func (SequenceGrantMap) ElementType

func (SequenceGrantMap) ElementType() reflect.Type

func (SequenceGrantMap) ToSequenceGrantMapOutput

func (i SequenceGrantMap) ToSequenceGrantMapOutput() SequenceGrantMapOutput

func (SequenceGrantMap) ToSequenceGrantMapOutputWithContext

func (i SequenceGrantMap) ToSequenceGrantMapOutputWithContext(ctx context.Context) SequenceGrantMapOutput

type SequenceGrantMapInput

type SequenceGrantMapInput interface {
	pulumi.Input

	ToSequenceGrantMapOutput() SequenceGrantMapOutput
	ToSequenceGrantMapOutputWithContext(context.Context) SequenceGrantMapOutput
}

SequenceGrantMapInput is an input type that accepts SequenceGrantMap and SequenceGrantMapOutput values. You can construct a concrete instance of `SequenceGrantMapInput` via:

SequenceGrantMap{ "key": SequenceGrantArgs{...} }

type SequenceGrantMapOutput

type SequenceGrantMapOutput struct{ *pulumi.OutputState }

func (SequenceGrantMapOutput) ElementType

func (SequenceGrantMapOutput) ElementType() reflect.Type

func (SequenceGrantMapOutput) MapIndex

func (SequenceGrantMapOutput) ToSequenceGrantMapOutput

func (o SequenceGrantMapOutput) ToSequenceGrantMapOutput() SequenceGrantMapOutput

func (SequenceGrantMapOutput) ToSequenceGrantMapOutputWithContext

func (o SequenceGrantMapOutput) ToSequenceGrantMapOutputWithContext(ctx context.Context) SequenceGrantMapOutput

type SequenceGrantOutput

type SequenceGrantOutput struct{ *pulumi.OutputState }

func (SequenceGrantOutput) DatabaseName added in v0.9.0

func (o SequenceGrantOutput) DatabaseName() pulumi.StringOutput

The name of the database containing the current or future sequences on which to grant privileges.

func (SequenceGrantOutput) ElementType

func (SequenceGrantOutput) ElementType() reflect.Type

func (SequenceGrantOutput) EnableMultipleGrants added in v0.9.0

func (o SequenceGrantOutput) EnableMultipleGrants() pulumi.BoolPtrOutput

When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke grants applied to roles and objects outside Terraform.

func (SequenceGrantOutput) OnAll added in v0.25.0

When this is set to true and a schema*name is provided, apply this grant on all sequences in the given schema. When this is true and no schema*name is provided apply this grant on all sequences in the given database. The sequence*name field must be unset in order to use on*all. Cannot be used together with on_future.

func (SequenceGrantOutput) OnFuture added in v0.9.0

When this is set to true and a schema*name is provided, apply this grant on all future sequences in the given schema. When this is true and no schema*name is provided apply this grant on all future sequences in the given database. The sequence*name field must be unset in order to use on*future. Cannot be used together with on_all.

func (SequenceGrantOutput) Privilege added in v0.9.0

The privilege to grant on the current or future sequence. To grant all privileges, use the value `ALL PRIVILEGES`

func (SequenceGrantOutput) RevertOwnershipToRoleName added in v0.26.0

func (o SequenceGrantOutput) RevertOwnershipToRoleName() pulumi.StringPtrOutput

The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`

func (SequenceGrantOutput) Roles added in v0.9.0

Grants privilege to these roles.

func (SequenceGrantOutput) SchemaName added in v0.9.0

The name of the schema containing the current or future sequences on which to grant privileges.

func (SequenceGrantOutput) SequenceName added in v0.9.0

func (o SequenceGrantOutput) SequenceName() pulumi.StringPtrOutput

The name of the sequence on which to grant privileges immediately (only valid if onFuture is false).

func (SequenceGrantOutput) ToSequenceGrantOutput

func (o SequenceGrantOutput) ToSequenceGrantOutput() SequenceGrantOutput

func (SequenceGrantOutput) ToSequenceGrantOutputWithContext

func (o SequenceGrantOutput) ToSequenceGrantOutputWithContext(ctx context.Context) SequenceGrantOutput

func (SequenceGrantOutput) WithGrantOption added in v0.9.0

func (o SequenceGrantOutput) WithGrantOption() pulumi.BoolPtrOutput

When this is set to true, allows the recipient role to grant the privileges to other roles.

type SequenceGrantState

type SequenceGrantState struct {
	// The name of the database containing the current or future sequences on which to grant privileges.
	DatabaseName pulumi.StringPtrInput
	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrInput
	// When this is set to true and a schema*name is provided, apply this grant on all sequences in the given schema. When this is true and no schema*name is provided apply this grant on all sequences in the given database. The sequence*name field must be unset in order to use on*all. Cannot be used together with on_future.
	OnAll pulumi.BoolPtrInput
	// When this is set to true and a schema*name is provided, apply this grant on all future sequences in the given schema. When this is true and no schema*name is provided apply this grant on all future sequences in the given database. The sequence*name field must be unset in order to use on*future. Cannot be used together with on_all.
	OnFuture pulumi.BoolPtrInput
	// The privilege to grant on the current or future sequence. To grant all privileges, use the value `ALL PRIVILEGES`
	Privilege pulumi.StringPtrInput
	// The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
	RevertOwnershipToRoleName pulumi.StringPtrInput
	// Grants privilege to these roles.
	Roles pulumi.StringArrayInput
	// The name of the schema containing the current or future sequences on which to grant privileges.
	SchemaName pulumi.StringPtrInput
	// The name of the sequence on which to grant privileges immediately (only valid if onFuture is false).
	SequenceName pulumi.StringPtrInput
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrInput
}

func (SequenceGrantState) ElementType

func (SequenceGrantState) ElementType() reflect.Type

type SequenceInput

type SequenceInput interface {
	pulumi.Input

	ToSequenceOutput() SequenceOutput
	ToSequenceOutputWithContext(ctx context.Context) SequenceOutput
}

type SequenceMap

type SequenceMap map[string]SequenceInput

func (SequenceMap) ElementType

func (SequenceMap) ElementType() reflect.Type

func (SequenceMap) ToSequenceMapOutput

func (i SequenceMap) ToSequenceMapOutput() SequenceMapOutput

func (SequenceMap) ToSequenceMapOutputWithContext

func (i SequenceMap) ToSequenceMapOutputWithContext(ctx context.Context) SequenceMapOutput

type SequenceMapInput

type SequenceMapInput interface {
	pulumi.Input

	ToSequenceMapOutput() SequenceMapOutput
	ToSequenceMapOutputWithContext(context.Context) SequenceMapOutput
}

SequenceMapInput is an input type that accepts SequenceMap and SequenceMapOutput values. You can construct a concrete instance of `SequenceMapInput` via:

SequenceMap{ "key": SequenceArgs{...} }

type SequenceMapOutput

type SequenceMapOutput struct{ *pulumi.OutputState }

func (SequenceMapOutput) ElementType

func (SequenceMapOutput) ElementType() reflect.Type

func (SequenceMapOutput) MapIndex

func (SequenceMapOutput) ToSequenceMapOutput

func (o SequenceMapOutput) ToSequenceMapOutput() SequenceMapOutput

func (SequenceMapOutput) ToSequenceMapOutputWithContext

func (o SequenceMapOutput) ToSequenceMapOutputWithContext(ctx context.Context) SequenceMapOutput

type SequenceOutput

type SequenceOutput struct{ *pulumi.OutputState }

func (SequenceOutput) Comment added in v0.9.0

Specifies a comment for the sequence.

func (SequenceOutput) Database added in v0.9.0

func (o SequenceOutput) Database() pulumi.StringOutput

The database in which to create the sequence. Don't use the | character.

func (SequenceOutput) ElementType

func (SequenceOutput) ElementType() reflect.Type

func (SequenceOutput) FullyQualifiedName added in v0.9.0

func (o SequenceOutput) FullyQualifiedName() pulumi.StringOutput

The fully qualified name of the sequence.

func (SequenceOutput) Increment added in v0.9.0

func (o SequenceOutput) Increment() pulumi.IntPtrOutput

The amount the sequence will increase by each time it is used

func (SequenceOutput) Name added in v0.9.0

Specifies the name for the sequence.

func (SequenceOutput) NextValue added in v0.9.0

func (o SequenceOutput) NextValue() pulumi.IntOutput

The next value the sequence will provide.

func (SequenceOutput) Schema added in v0.9.0

func (o SequenceOutput) Schema() pulumi.StringOutput

The schema in which to create the sequence. Don't use the | character.

func (SequenceOutput) ToSequenceOutput

func (o SequenceOutput) ToSequenceOutput() SequenceOutput

func (SequenceOutput) ToSequenceOutputWithContext

func (o SequenceOutput) ToSequenceOutputWithContext(ctx context.Context) SequenceOutput

type SequenceState

type SequenceState struct {
	// Specifies a comment for the sequence.
	Comment pulumi.StringPtrInput
	// The database in which to create the sequence. Don't use the | character.
	Database pulumi.StringPtrInput
	// The fully qualified name of the sequence.
	FullyQualifiedName pulumi.StringPtrInput
	// The amount the sequence will increase by each time it is used
	Increment pulumi.IntPtrInput
	// Specifies the name for the sequence.
	Name pulumi.StringPtrInput
	// The next value the sequence will provide.
	NextValue pulumi.IntPtrInput
	// The schema in which to create the sequence. Don't use the | character.
	Schema pulumi.StringPtrInput
}

func (SequenceState) ElementType

func (SequenceState) ElementType() reflect.Type

type SessionParameter added in v0.16.0

type SessionParameter struct {
	pulumi.CustomResourceState

	// Name of session parameter. Valid values are those in [session parameters](https://docs.snowflake.com/en/sql-reference/parameters.html#session-parameters).
	Key pulumi.StringOutput `pulumi:"key"`
	// If true, the session parameter will be set on the account level.
	OnAccount pulumi.BoolPtrOutput `pulumi:"onAccount"`
	// The user to set the session parameter for. Required if onAccount is false
	User pulumi.StringPtrOutput `pulumi:"user"`
	// Value of session parameter, as a string. Constraints are the same as those for the parameters in Snowflake documentation.
	Value pulumi.StringOutput `pulumi:"value"`
}

## Example Usage

```go 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.NewSessionParameter(ctx, "sessionParameter", &snowflake.SessionParameterArgs{
			Key:   pulumi.String("AUTOCOMMIT"),
			User:  pulumi.String("TEST_USER"),
			Value: pulumi.String("false"),
		})
		if err != nil {
			return err
		}
		_, err = snowflake.NewSessionParameter(ctx, "s2", &snowflake.SessionParameterArgs{
			Key:       pulumi.String("BINARY_OUTPUT_FORMAT"),
			OnAccount: pulumi.Bool(true),
			Value:     pulumi.String("BASE64"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

```sh

$ pulumi import snowflake:index/sessionParameter:SessionParameter s <parameter_name>

```

func GetSessionParameter added in v0.16.0

func GetSessionParameter(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *SessionParameterState, opts ...pulumi.ResourceOption) (*SessionParameter, error)

GetSessionParameter gets an existing SessionParameter resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewSessionParameter added in v0.16.0

func NewSessionParameter(ctx *pulumi.Context,
	name string, args *SessionParameterArgs, opts ...pulumi.ResourceOption) (*SessionParameter, error)

NewSessionParameter registers a new resource with the given unique name, arguments, and options.

func (*SessionParameter) ElementType added in v0.16.0

func (*SessionParameter) ElementType() reflect.Type

func (*SessionParameter) ToSessionParameterOutput added in v0.16.0

func (i *SessionParameter) ToSessionParameterOutput() SessionParameterOutput

func (*SessionParameter) ToSessionParameterOutputWithContext added in v0.16.0

func (i *SessionParameter) ToSessionParameterOutputWithContext(ctx context.Context) SessionParameterOutput

type SessionParameterArgs added in v0.16.0

type SessionParameterArgs struct {
	// Name of session parameter. Valid values are those in [session parameters](https://docs.snowflake.com/en/sql-reference/parameters.html#session-parameters).
	Key pulumi.StringInput
	// If true, the session parameter will be set on the account level.
	OnAccount pulumi.BoolPtrInput
	// The user to set the session parameter for. Required if onAccount is false
	User pulumi.StringPtrInput
	// Value of session parameter, as a string. Constraints are the same as those for the parameters in Snowflake documentation.
	Value pulumi.StringInput
}

The set of arguments for constructing a SessionParameter resource.

func (SessionParameterArgs) ElementType added in v0.16.0

func (SessionParameterArgs) ElementType() reflect.Type

type SessionParameterArray added in v0.16.0

type SessionParameterArray []SessionParameterInput

func (SessionParameterArray) ElementType added in v0.16.0

func (SessionParameterArray) ElementType() reflect.Type

func (SessionParameterArray) ToSessionParameterArrayOutput added in v0.16.0

func (i SessionParameterArray) ToSessionParameterArrayOutput() SessionParameterArrayOutput

func (SessionParameterArray) ToSessionParameterArrayOutputWithContext added in v0.16.0

func (i SessionParameterArray) ToSessionParameterArrayOutputWithContext(ctx context.Context) SessionParameterArrayOutput

type SessionParameterArrayInput added in v0.16.0

type SessionParameterArrayInput interface {
	pulumi.Input

	ToSessionParameterArrayOutput() SessionParameterArrayOutput
	ToSessionParameterArrayOutputWithContext(context.Context) SessionParameterArrayOutput
}

SessionParameterArrayInput is an input type that accepts SessionParameterArray and SessionParameterArrayOutput values. You can construct a concrete instance of `SessionParameterArrayInput` via:

SessionParameterArray{ SessionParameterArgs{...} }

type SessionParameterArrayOutput added in v0.16.0

type SessionParameterArrayOutput struct{ *pulumi.OutputState }

func (SessionParameterArrayOutput) ElementType added in v0.16.0

func (SessionParameterArrayOutput) Index added in v0.16.0

func (SessionParameterArrayOutput) ToSessionParameterArrayOutput added in v0.16.0

func (o SessionParameterArrayOutput) ToSessionParameterArrayOutput() SessionParameterArrayOutput

func (SessionParameterArrayOutput) ToSessionParameterArrayOutputWithContext added in v0.16.0

func (o SessionParameterArrayOutput) ToSessionParameterArrayOutputWithContext(ctx context.Context) SessionParameterArrayOutput

type SessionParameterInput added in v0.16.0

type SessionParameterInput interface {
	pulumi.Input

	ToSessionParameterOutput() SessionParameterOutput
	ToSessionParameterOutputWithContext(ctx context.Context) SessionParameterOutput
}

type SessionParameterMap added in v0.16.0

type SessionParameterMap map[string]SessionParameterInput

func (SessionParameterMap) ElementType added in v0.16.0

func (SessionParameterMap) ElementType() reflect.Type

func (SessionParameterMap) ToSessionParameterMapOutput added in v0.16.0

func (i SessionParameterMap) ToSessionParameterMapOutput() SessionParameterMapOutput

func (SessionParameterMap) ToSessionParameterMapOutputWithContext added in v0.16.0

func (i SessionParameterMap) ToSessionParameterMapOutputWithContext(ctx context.Context) SessionParameterMapOutput

type SessionParameterMapInput added in v0.16.0

type SessionParameterMapInput interface {
	pulumi.Input

	ToSessionParameterMapOutput() SessionParameterMapOutput
	ToSessionParameterMapOutputWithContext(context.Context) SessionParameterMapOutput
}

SessionParameterMapInput is an input type that accepts SessionParameterMap and SessionParameterMapOutput values. You can construct a concrete instance of `SessionParameterMapInput` via:

SessionParameterMap{ "key": SessionParameterArgs{...} }

type SessionParameterMapOutput added in v0.16.0

type SessionParameterMapOutput struct{ *pulumi.OutputState }

func (SessionParameterMapOutput) ElementType added in v0.16.0

func (SessionParameterMapOutput) ElementType() reflect.Type

func (SessionParameterMapOutput) MapIndex added in v0.16.0

func (SessionParameterMapOutput) ToSessionParameterMapOutput added in v0.16.0

func (o SessionParameterMapOutput) ToSessionParameterMapOutput() SessionParameterMapOutput

func (SessionParameterMapOutput) ToSessionParameterMapOutputWithContext added in v0.16.0

func (o SessionParameterMapOutput) ToSessionParameterMapOutputWithContext(ctx context.Context) SessionParameterMapOutput

type SessionParameterOutput added in v0.16.0

type SessionParameterOutput struct{ *pulumi.OutputState }

func (SessionParameterOutput) ElementType added in v0.16.0

func (SessionParameterOutput) ElementType() reflect.Type

func (SessionParameterOutput) Key added in v0.16.0

Name of session parameter. Valid values are those in [session parameters](https://docs.snowflake.com/en/sql-reference/parameters.html#session-parameters).

func (SessionParameterOutput) OnAccount added in v0.21.0

If true, the session parameter will be set on the account level.

func (SessionParameterOutput) ToSessionParameterOutput added in v0.16.0

func (o SessionParameterOutput) ToSessionParameterOutput() SessionParameterOutput

func (SessionParameterOutput) ToSessionParameterOutputWithContext added in v0.16.0

func (o SessionParameterOutput) ToSessionParameterOutputWithContext(ctx context.Context) SessionParameterOutput

func (SessionParameterOutput) User added in v0.21.0

The user to set the session parameter for. Required if onAccount is false

func (SessionParameterOutput) Value added in v0.16.0

Value of session parameter, as a string. Constraints are the same as those for the parameters in Snowflake documentation.

type SessionParameterState added in v0.16.0

type SessionParameterState struct {
	// Name of session parameter. Valid values are those in [session parameters](https://docs.snowflake.com/en/sql-reference/parameters.html#session-parameters).
	Key pulumi.StringPtrInput
	// If true, the session parameter will be set on the account level.
	OnAccount pulumi.BoolPtrInput
	// The user to set the session parameter for. Required if onAccount is false
	User pulumi.StringPtrInput
	// Value of session parameter, as a string. Constraints are the same as those for the parameters in Snowflake documentation.
	Value pulumi.StringPtrInput
}

func (SessionParameterState) ElementType added in v0.16.0

func (SessionParameterState) ElementType() reflect.Type

type Share

type Share struct {
	pulumi.CustomResourceState

	// A list of accounts to be added to the share. Values should not be the account locator, but in the form of 'organization*name.account*name
	Accounts pulumi.StringArrayOutput `pulumi:"accounts"`
	// Specifies a comment for the managed account.
	Comment pulumi.StringPtrOutput `pulumi:"comment"`
	// Specifies the identifier for the share; must be unique for the account in which the share is created.
	Name pulumi.StringOutput `pulumi:"name"`
}

## Example Usage

```go 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{
			Accounts: pulumi.StringArray{
				pulumi.String("organizationName.accountName"),
			},
			Comment: pulumi.String("cool comment"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

```sh

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

```

func GetShare

func GetShare(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ShareState, opts ...pulumi.ResourceOption) (*Share, error)

GetShare gets an existing Share resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewShare

func NewShare(ctx *pulumi.Context,
	name string, args *ShareArgs, opts ...pulumi.ResourceOption) (*Share, error)

NewShare registers a new resource with the given unique name, arguments, and options.

func (*Share) ElementType

func (*Share) ElementType() reflect.Type

func (*Share) ToShareOutput

func (i *Share) ToShareOutput() ShareOutput

func (*Share) ToShareOutputWithContext

func (i *Share) ToShareOutputWithContext(ctx context.Context) ShareOutput

type ShareArgs

type ShareArgs struct {
	// A list of accounts to be added to the share. Values should not be the account locator, but in the form of 'organization*name.account*name
	Accounts pulumi.StringArrayInput
	// Specifies a comment for the managed account.
	Comment pulumi.StringPtrInput
	// Specifies the identifier for the share; must be unique for the account in which the share is created.
	Name pulumi.StringPtrInput
}

The set of arguments for constructing a Share resource.

func (ShareArgs) ElementType

func (ShareArgs) ElementType() reflect.Type

type ShareArray

type ShareArray []ShareInput

func (ShareArray) ElementType

func (ShareArray) ElementType() reflect.Type

func (ShareArray) ToShareArrayOutput

func (i ShareArray) ToShareArrayOutput() ShareArrayOutput

func (ShareArray) ToShareArrayOutputWithContext

func (i ShareArray) ToShareArrayOutputWithContext(ctx context.Context) ShareArrayOutput

type ShareArrayInput

type ShareArrayInput interface {
	pulumi.Input

	ToShareArrayOutput() ShareArrayOutput
	ToShareArrayOutputWithContext(context.Context) ShareArrayOutput
}

ShareArrayInput is an input type that accepts ShareArray and ShareArrayOutput values. You can construct a concrete instance of `ShareArrayInput` via:

ShareArray{ ShareArgs{...} }

type ShareArrayOutput

type ShareArrayOutput struct{ *pulumi.OutputState }

func (ShareArrayOutput) ElementType

func (ShareArrayOutput) ElementType() reflect.Type

func (ShareArrayOutput) Index

func (ShareArrayOutput) ToShareArrayOutput

func (o ShareArrayOutput) ToShareArrayOutput() ShareArrayOutput

func (ShareArrayOutput) ToShareArrayOutputWithContext

func (o ShareArrayOutput) ToShareArrayOutputWithContext(ctx context.Context) ShareArrayOutput

type ShareInput

type ShareInput interface {
	pulumi.Input

	ToShareOutput() ShareOutput
	ToShareOutputWithContext(ctx context.Context) ShareOutput
}

type ShareMap

type ShareMap map[string]ShareInput

func (ShareMap) ElementType

func (ShareMap) ElementType() reflect.Type

func (ShareMap) ToShareMapOutput

func (i ShareMap) ToShareMapOutput() ShareMapOutput

func (ShareMap) ToShareMapOutputWithContext

func (i ShareMap) ToShareMapOutputWithContext(ctx context.Context) ShareMapOutput

type ShareMapInput

type ShareMapInput interface {
	pulumi.Input

	ToShareMapOutput() ShareMapOutput
	ToShareMapOutputWithContext(context.Context) ShareMapOutput
}

ShareMapInput is an input type that accepts ShareMap and ShareMapOutput values. You can construct a concrete instance of `ShareMapInput` via:

ShareMap{ "key": ShareArgs{...} }

type ShareMapOutput

type ShareMapOutput struct{ *pulumi.OutputState }

func (ShareMapOutput) ElementType

func (ShareMapOutput) ElementType() reflect.Type

func (ShareMapOutput) MapIndex

func (ShareMapOutput) ToShareMapOutput

func (o ShareMapOutput) ToShareMapOutput() ShareMapOutput

func (ShareMapOutput) ToShareMapOutputWithContext

func (o ShareMapOutput) ToShareMapOutputWithContext(ctx context.Context) ShareMapOutput

type ShareOutput

type ShareOutput struct{ *pulumi.OutputState }

func (ShareOutput) Accounts added in v0.9.0

func (o ShareOutput) Accounts() pulumi.StringArrayOutput

A list of accounts to be added to the share. Values should not be the account locator, but in the form of 'organization*name.account*name

func (ShareOutput) Comment added in v0.9.0

func (o ShareOutput) Comment() pulumi.StringPtrOutput

Specifies a comment for the managed account.

func (ShareOutput) ElementType

func (ShareOutput) ElementType() reflect.Type

func (ShareOutput) Name added in v0.9.0

func (o ShareOutput) Name() pulumi.StringOutput

Specifies the identifier for the share; must be unique for the account in which the share is created.

func (ShareOutput) ToShareOutput

func (o ShareOutput) ToShareOutput() ShareOutput

func (ShareOutput) ToShareOutputWithContext

func (o ShareOutput) ToShareOutputWithContext(ctx context.Context) ShareOutput

type ShareState

type ShareState struct {
	// A list of accounts to be added to the share. Values should not be the account locator, but in the form of 'organization*name.account*name
	Accounts pulumi.StringArrayInput
	// Specifies a comment for the managed account.
	Comment pulumi.StringPtrInput
	// Specifies the identifier for the share; must be unique for the account in which the share is created.
	Name pulumi.StringPtrInput
}

func (ShareState) ElementType

func (ShareState) ElementType() reflect.Type

type Stage

type Stage struct {
	pulumi.CustomResourceState

	AwsExternalId pulumi.StringOutput `pulumi:"awsExternalId"`
	// Specifies a comment for the stage.
	Comment pulumi.StringPtrOutput `pulumi:"comment"`
	// Specifies the copy options for the stage.
	CopyOptions pulumi.StringPtrOutput `pulumi:"copyOptions"`
	// Specifies the credentials for the stage.
	Credentials pulumi.StringPtrOutput `pulumi:"credentials"`
	// The database in which to create the stage.
	Database pulumi.StringOutput `pulumi:"database"`
	// Specifies the directory settings for the stage.
	Directory pulumi.StringPtrOutput `pulumi:"directory"`
	// Specifies the encryption settings for the stage.
	Encryption pulumi.StringPtrOutput `pulumi:"encryption"`
	// Specifies the file format for the stage.
	FileFormat pulumi.StringPtrOutput `pulumi:"fileFormat"`
	// Specifies the identifier for the stage; must be unique for the database and schema in which the stage is created.
	Name pulumi.StringOutput `pulumi:"name"`
	// The schema in which to create the stage.
	Schema           pulumi.StringOutput `pulumi:"schema"`
	SnowflakeIamUser pulumi.StringOutput `pulumi:"snowflakeIamUser"`
	// Specifies the name of the storage integration used to delegate authentication responsibility for external cloud storage to a Snowflake identity and access management (IAM) entity.
	StorageIntegration pulumi.StringPtrOutput `pulumi:"storageIntegration"`
	// Definitions of a tag to associate with the resource.
	//
	// Deprecated: Use the 'snowflake_tag_association' resource instead.
	Tags StageTagArrayOutput `pulumi:"tags"`
	// Specifies the URL for the stage.
	Url pulumi.StringPtrOutput `pulumi:"url"`
}

## Example Usage

```go package main

import (

"fmt"

"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 {
		exampleStage, err := snowflake.NewStage(ctx, "exampleStage", &snowflake.StageArgs{
			Url:         pulumi.String("s3://com.example.bucket/prefix"),
			Database:    pulumi.String("EXAMPLE_DB"),
			Schema:      pulumi.String("EXAMPLE_SCHEMA"),
			Credentials: pulumi.String(fmt.Sprintf("AWS_KEY_ID='%v' AWS_SECRET_KEY='%v'", _var.Example_aws_key_id, _var.Example_aws_secret_key)),
		})
		if err != nil {
			return err
		}
		_, err = snowflake.NewStageGrant(ctx, "grantExampleStage", &snowflake.StageGrantArgs{
			DatabaseName: exampleStage.Database,
			SchemaName:   exampleStage.Schema,
			Roles: pulumi.StringArray{
				pulumi.String("LOADER"),
			},
			Privilege: pulumi.String("OWNERSHIP"),
			StageName: exampleStage.Name,
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

format is database name | schema name | stage name

```sh

$ pulumi import snowflake:index/stage:Stage example 'dbName|schemaName|stageName'

```

func GetStage

func GetStage(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *StageState, opts ...pulumi.ResourceOption) (*Stage, error)

GetStage gets an existing Stage resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewStage

func NewStage(ctx *pulumi.Context,
	name string, args *StageArgs, opts ...pulumi.ResourceOption) (*Stage, error)

NewStage registers a new resource with the given unique name, arguments, and options.

func (*Stage) ElementType

func (*Stage) ElementType() reflect.Type

func (*Stage) ToStageOutput

func (i *Stage) ToStageOutput() StageOutput

func (*Stage) ToStageOutputWithContext

func (i *Stage) ToStageOutputWithContext(ctx context.Context) StageOutput

type StageArgs

type StageArgs struct {
	AwsExternalId pulumi.StringPtrInput
	// Specifies a comment for the stage.
	Comment pulumi.StringPtrInput
	// Specifies the copy options for the stage.
	CopyOptions pulumi.StringPtrInput
	// Specifies the credentials for the stage.
	Credentials pulumi.StringPtrInput
	// The database in which to create the stage.
	Database pulumi.StringInput
	// Specifies the directory settings for the stage.
	Directory pulumi.StringPtrInput
	// Specifies the encryption settings for the stage.
	Encryption pulumi.StringPtrInput
	// Specifies the file format for the stage.
	FileFormat pulumi.StringPtrInput
	// Specifies the identifier for the stage; must be unique for the database and schema in which the stage is created.
	Name pulumi.StringPtrInput
	// The schema in which to create the stage.
	Schema           pulumi.StringInput
	SnowflakeIamUser pulumi.StringPtrInput
	// Specifies the name of the storage integration used to delegate authentication responsibility for external cloud storage to a Snowflake identity and access management (IAM) entity.
	StorageIntegration pulumi.StringPtrInput
	// Definitions of a tag to associate with the resource.
	//
	// Deprecated: Use the 'snowflake_tag_association' resource instead.
	Tags StageTagArrayInput
	// Specifies the URL for the stage.
	Url pulumi.StringPtrInput
}

The set of arguments for constructing a Stage resource.

func (StageArgs) ElementType

func (StageArgs) ElementType() reflect.Type

type StageArray

type StageArray []StageInput

func (StageArray) ElementType

func (StageArray) ElementType() reflect.Type

func (StageArray) ToStageArrayOutput

func (i StageArray) ToStageArrayOutput() StageArrayOutput

func (StageArray) ToStageArrayOutputWithContext

func (i StageArray) ToStageArrayOutputWithContext(ctx context.Context) StageArrayOutput

type StageArrayInput

type StageArrayInput interface {
	pulumi.Input

	ToStageArrayOutput() StageArrayOutput
	ToStageArrayOutputWithContext(context.Context) StageArrayOutput
}

StageArrayInput is an input type that accepts StageArray and StageArrayOutput values. You can construct a concrete instance of `StageArrayInput` via:

StageArray{ StageArgs{...} }

type StageArrayOutput

type StageArrayOutput struct{ *pulumi.OutputState }

func (StageArrayOutput) ElementType

func (StageArrayOutput) ElementType() reflect.Type

func (StageArrayOutput) Index

func (StageArrayOutput) ToStageArrayOutput

func (o StageArrayOutput) ToStageArrayOutput() StageArrayOutput

func (StageArrayOutput) ToStageArrayOutputWithContext

func (o StageArrayOutput) ToStageArrayOutputWithContext(ctx context.Context) StageArrayOutput

type StageGrant

type StageGrant struct {
	pulumi.CustomResourceState

	// The name of the database containing the current stage on which to grant privileges.
	DatabaseName pulumi.StringOutput `pulumi:"databaseName"`
	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrOutput `pulumi:"enableMultipleGrants"`
	// When this is set to true and a schema*name is provided, apply this grant on all stages in the given schema. When this is true and no schema*name is provided apply this grant on all stages in the given database. The stage*name field must be unset in order to use on*all. Cannot be used together with on_future.
	OnAll pulumi.BoolPtrOutput `pulumi:"onAll"`
	// When this is set to true and a schema*name is provided, apply this grant on all future stages in the given schema. When this is true and no schema*name is provided apply this grant on all future stages in the given database. The stage*name field must be unset in order to use on*future. Cannot be used together with on_all.
	OnFuture pulumi.BoolPtrOutput `pulumi:"onFuture"`
	// The privilege to grant on the stage. To grant all privileges, use the value `ALL PRIVILEGES`.
	Privilege pulumi.StringPtrOutput `pulumi:"privilege"`
	// The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
	RevertOwnershipToRoleName pulumi.StringPtrOutput `pulumi:"revertOwnershipToRoleName"`
	// Grants privilege to these roles.
	Roles pulumi.StringArrayOutput `pulumi:"roles"`
	// The name of the schema containing the current stage on which to grant privileges.
	SchemaName pulumi.StringPtrOutput `pulumi:"schemaName"`
	// The name of the stage on which to grant privilege (only valid if on*future and on*all are false).
	StageName pulumi.StringPtrOutput `pulumi:"stageName"`
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrOutput `pulumi:"withGrantOption"`
}

## Example Usage

```go 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.NewStageGrant(ctx, "grant", &snowflake.StageGrantArgs{
			DatabaseName: pulumi.String("database"),
			OnFuture:     pulumi.Bool(false),
			Privilege:    pulumi.String("USAGE"),
			Roles: pulumi.StringArray{
				pulumi.String("role1"),
				pulumi.String("role2"),
			},
			SchemaName:      pulumi.String("schema"),
			StageName:       pulumi.String("stage"),
			WithGrantOption: pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

format is database_name|schema_name|stage_name|privilege|with_grant_option|on_future|on_all|roles

```sh

$ pulumi import snowflake:index/stageGrant:StageGrant example "MY_DATABASE|MY_SCHEMA|MY_STAGE|USAGE|false|false|false|role1,role2"

```

func GetStageGrant

func GetStageGrant(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *StageGrantState, opts ...pulumi.ResourceOption) (*StageGrant, error)

GetStageGrant gets an existing StageGrant resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewStageGrant

func NewStageGrant(ctx *pulumi.Context,
	name string, args *StageGrantArgs, opts ...pulumi.ResourceOption) (*StageGrant, error)

NewStageGrant registers a new resource with the given unique name, arguments, and options.

func (*StageGrant) ElementType

func (*StageGrant) ElementType() reflect.Type

func (*StageGrant) ToStageGrantOutput

func (i *StageGrant) ToStageGrantOutput() StageGrantOutput

func (*StageGrant) ToStageGrantOutputWithContext

func (i *StageGrant) ToStageGrantOutputWithContext(ctx context.Context) StageGrantOutput

type StageGrantArgs

type StageGrantArgs struct {
	// The name of the database containing the current stage on which to grant privileges.
	DatabaseName pulumi.StringInput
	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrInput
	// When this is set to true and a schema*name is provided, apply this grant on all stages in the given schema. When this is true and no schema*name is provided apply this grant on all stages in the given database. The stage*name field must be unset in order to use on*all. Cannot be used together with on_future.
	OnAll pulumi.BoolPtrInput
	// When this is set to true and a schema*name is provided, apply this grant on all future stages in the given schema. When this is true and no schema*name is provided apply this grant on all future stages in the given database. The stage*name field must be unset in order to use on*future. Cannot be used together with on_all.
	OnFuture pulumi.BoolPtrInput
	// The privilege to grant on the stage. To grant all privileges, use the value `ALL PRIVILEGES`.
	Privilege pulumi.StringPtrInput
	// The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
	RevertOwnershipToRoleName pulumi.StringPtrInput
	// Grants privilege to these roles.
	Roles pulumi.StringArrayInput
	// The name of the schema containing the current stage on which to grant privileges.
	SchemaName pulumi.StringPtrInput
	// The name of the stage on which to grant privilege (only valid if on*future and on*all are false).
	StageName pulumi.StringPtrInput
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrInput
}

The set of arguments for constructing a StageGrant resource.

func (StageGrantArgs) ElementType

func (StageGrantArgs) ElementType() reflect.Type

type StageGrantArray

type StageGrantArray []StageGrantInput

func (StageGrantArray) ElementType

func (StageGrantArray) ElementType() reflect.Type

func (StageGrantArray) ToStageGrantArrayOutput

func (i StageGrantArray) ToStageGrantArrayOutput() StageGrantArrayOutput

func (StageGrantArray) ToStageGrantArrayOutputWithContext

func (i StageGrantArray) ToStageGrantArrayOutputWithContext(ctx context.Context) StageGrantArrayOutput

type StageGrantArrayInput

type StageGrantArrayInput interface {
	pulumi.Input

	ToStageGrantArrayOutput() StageGrantArrayOutput
	ToStageGrantArrayOutputWithContext(context.Context) StageGrantArrayOutput
}

StageGrantArrayInput is an input type that accepts StageGrantArray and StageGrantArrayOutput values. You can construct a concrete instance of `StageGrantArrayInput` via:

StageGrantArray{ StageGrantArgs{...} }

type StageGrantArrayOutput

type StageGrantArrayOutput struct{ *pulumi.OutputState }

func (StageGrantArrayOutput) ElementType

func (StageGrantArrayOutput) ElementType() reflect.Type

func (StageGrantArrayOutput) Index

func (StageGrantArrayOutput) ToStageGrantArrayOutput

func (o StageGrantArrayOutput) ToStageGrantArrayOutput() StageGrantArrayOutput

func (StageGrantArrayOutput) ToStageGrantArrayOutputWithContext

func (o StageGrantArrayOutput) ToStageGrantArrayOutputWithContext(ctx context.Context) StageGrantArrayOutput

type StageGrantInput

type StageGrantInput interface {
	pulumi.Input

	ToStageGrantOutput() StageGrantOutput
	ToStageGrantOutputWithContext(ctx context.Context) StageGrantOutput
}

type StageGrantMap

type StageGrantMap map[string]StageGrantInput

func (StageGrantMap) ElementType

func (StageGrantMap) ElementType() reflect.Type

func (StageGrantMap) ToStageGrantMapOutput

func (i StageGrantMap) ToStageGrantMapOutput() StageGrantMapOutput

func (StageGrantMap) ToStageGrantMapOutputWithContext

func (i StageGrantMap) ToStageGrantMapOutputWithContext(ctx context.Context) StageGrantMapOutput

type StageGrantMapInput

type StageGrantMapInput interface {
	pulumi.Input

	ToStageGrantMapOutput() StageGrantMapOutput
	ToStageGrantMapOutputWithContext(context.Context) StageGrantMapOutput
}

StageGrantMapInput is an input type that accepts StageGrantMap and StageGrantMapOutput values. You can construct a concrete instance of `StageGrantMapInput` via:

StageGrantMap{ "key": StageGrantArgs{...} }

type StageGrantMapOutput

type StageGrantMapOutput struct{ *pulumi.OutputState }

func (StageGrantMapOutput) ElementType

func (StageGrantMapOutput) ElementType() reflect.Type

func (StageGrantMapOutput) MapIndex

func (StageGrantMapOutput) ToStageGrantMapOutput

func (o StageGrantMapOutput) ToStageGrantMapOutput() StageGrantMapOutput

func (StageGrantMapOutput) ToStageGrantMapOutputWithContext

func (o StageGrantMapOutput) ToStageGrantMapOutputWithContext(ctx context.Context) StageGrantMapOutput

type StageGrantOutput

type StageGrantOutput struct{ *pulumi.OutputState }

func (StageGrantOutput) DatabaseName added in v0.9.0

func (o StageGrantOutput) DatabaseName() pulumi.StringOutput

The name of the database containing the current stage on which to grant privileges.

func (StageGrantOutput) ElementType

func (StageGrantOutput) ElementType() reflect.Type

func (StageGrantOutput) EnableMultipleGrants added in v0.9.0

func (o StageGrantOutput) EnableMultipleGrants() pulumi.BoolPtrOutput

When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke grants applied to roles and objects outside Terraform.

func (StageGrantOutput) OnAll added in v0.23.0

When this is set to true and a schema*name is provided, apply this grant on all stages in the given schema. When this is true and no schema*name is provided apply this grant on all stages in the given database. The stage*name field must be unset in order to use on*all. Cannot be used together with on_future.

func (StageGrantOutput) OnFuture added in v0.9.0

func (o StageGrantOutput) OnFuture() pulumi.BoolPtrOutput

When this is set to true and a schema*name is provided, apply this grant on all future stages in the given schema. When this is true and no schema*name is provided apply this grant on all future stages in the given database. The stage*name field must be unset in order to use on*future. Cannot be used together with on_all.

func (StageGrantOutput) Privilege added in v0.9.0

func (o StageGrantOutput) Privilege() pulumi.StringPtrOutput

The privilege to grant on the stage. To grant all privileges, use the value `ALL PRIVILEGES`.

func (StageGrantOutput) RevertOwnershipToRoleName added in v0.26.0

func (o StageGrantOutput) RevertOwnershipToRoleName() pulumi.StringPtrOutput

The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`

func (StageGrantOutput) Roles added in v0.9.0

Grants privilege to these roles.

func (StageGrantOutput) SchemaName added in v0.9.0

func (o StageGrantOutput) SchemaName() pulumi.StringPtrOutput

The name of the schema containing the current stage on which to grant privileges.

func (StageGrantOutput) StageName added in v0.9.0

func (o StageGrantOutput) StageName() pulumi.StringPtrOutput

The name of the stage on which to grant privilege (only valid if on*future and on*all are false).

func (StageGrantOutput) ToStageGrantOutput

func (o StageGrantOutput) ToStageGrantOutput() StageGrantOutput

func (StageGrantOutput) ToStageGrantOutputWithContext

func (o StageGrantOutput) ToStageGrantOutputWithContext(ctx context.Context) StageGrantOutput

func (StageGrantOutput) WithGrantOption added in v0.9.0

func (o StageGrantOutput) WithGrantOption() pulumi.BoolPtrOutput

When this is set to true, allows the recipient role to grant the privileges to other roles.

type StageGrantState

type StageGrantState struct {
	// The name of the database containing the current stage on which to grant privileges.
	DatabaseName pulumi.StringPtrInput
	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrInput
	// When this is set to true and a schema*name is provided, apply this grant on all stages in the given schema. When this is true and no schema*name is provided apply this grant on all stages in the given database. The stage*name field must be unset in order to use on*all. Cannot be used together with on_future.
	OnAll pulumi.BoolPtrInput
	// When this is set to true and a schema*name is provided, apply this grant on all future stages in the given schema. When this is true and no schema*name is provided apply this grant on all future stages in the given database. The stage*name field must be unset in order to use on*future. Cannot be used together with on_all.
	OnFuture pulumi.BoolPtrInput
	// The privilege to grant on the stage. To grant all privileges, use the value `ALL PRIVILEGES`.
	Privilege pulumi.StringPtrInput
	// The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
	RevertOwnershipToRoleName pulumi.StringPtrInput
	// Grants privilege to these roles.
	Roles pulumi.StringArrayInput
	// The name of the schema containing the current stage on which to grant privileges.
	SchemaName pulumi.StringPtrInput
	// The name of the stage on which to grant privilege (only valid if on*future and on*all are false).
	StageName pulumi.StringPtrInput
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrInput
}

func (StageGrantState) ElementType

func (StageGrantState) ElementType() reflect.Type

type StageInput

type StageInput interface {
	pulumi.Input

	ToStageOutput() StageOutput
	ToStageOutputWithContext(ctx context.Context) StageOutput
}

type StageMap

type StageMap map[string]StageInput

func (StageMap) ElementType

func (StageMap) ElementType() reflect.Type

func (StageMap) ToStageMapOutput

func (i StageMap) ToStageMapOutput() StageMapOutput

func (StageMap) ToStageMapOutputWithContext

func (i StageMap) ToStageMapOutputWithContext(ctx context.Context) StageMapOutput

type StageMapInput

type StageMapInput interface {
	pulumi.Input

	ToStageMapOutput() StageMapOutput
	ToStageMapOutputWithContext(context.Context) StageMapOutput
}

StageMapInput is an input type that accepts StageMap and StageMapOutput values. You can construct a concrete instance of `StageMapInput` via:

StageMap{ "key": StageArgs{...} }

type StageMapOutput

type StageMapOutput struct{ *pulumi.OutputState }

func (StageMapOutput) ElementType

func (StageMapOutput) ElementType() reflect.Type

func (StageMapOutput) MapIndex

func (StageMapOutput) ToStageMapOutput

func (o StageMapOutput) ToStageMapOutput() StageMapOutput

func (StageMapOutput) ToStageMapOutputWithContext

func (o StageMapOutput) ToStageMapOutputWithContext(ctx context.Context) StageMapOutput

type StageOutput

type StageOutput struct{ *pulumi.OutputState }

func (StageOutput) AwsExternalId added in v0.9.0

func (o StageOutput) AwsExternalId() pulumi.StringOutput

func (StageOutput) Comment added in v0.9.0

func (o StageOutput) Comment() pulumi.StringPtrOutput

Specifies a comment for the stage.

func (StageOutput) CopyOptions added in v0.9.0

func (o StageOutput) CopyOptions() pulumi.StringPtrOutput

Specifies the copy options for the stage.

func (StageOutput) Credentials added in v0.9.0

func (o StageOutput) Credentials() pulumi.StringPtrOutput

Specifies the credentials for the stage.

func (StageOutput) Database added in v0.9.0

func (o StageOutput) Database() pulumi.StringOutput

The database in which to create the stage.

func (StageOutput) Directory added in v0.9.0

func (o StageOutput) Directory() pulumi.StringPtrOutput

Specifies the directory settings for the stage.

func (StageOutput) ElementType

func (StageOutput) ElementType() reflect.Type

func (StageOutput) Encryption added in v0.9.0

func (o StageOutput) Encryption() pulumi.StringPtrOutput

Specifies the encryption settings for the stage.

func (StageOutput) FileFormat added in v0.9.0

func (o StageOutput) FileFormat() pulumi.StringPtrOutput

Specifies the file format for the stage.

func (StageOutput) Name added in v0.9.0

func (o StageOutput) Name() pulumi.StringOutput

Specifies the identifier for the stage; must be unique for the database and schema in which the stage is created.

func (StageOutput) Schema added in v0.9.0

func (o StageOutput) Schema() pulumi.StringOutput

The schema in which to create the stage.

func (StageOutput) SnowflakeIamUser added in v0.9.0

func (o StageOutput) SnowflakeIamUser() pulumi.StringOutput

func (StageOutput) StorageIntegration added in v0.9.0

func (o StageOutput) StorageIntegration() pulumi.StringPtrOutput

Specifies the name of the storage integration used to delegate authentication responsibility for external cloud storage to a Snowflake identity and access management (IAM) entity.

func (StageOutput) Tags deprecated added in v0.9.0

Definitions of a tag to associate with the resource.

Deprecated: Use the 'snowflake_tag_association' resource instead.

func (StageOutput) ToStageOutput

func (o StageOutput) ToStageOutput() StageOutput

func (StageOutput) ToStageOutputWithContext

func (o StageOutput) ToStageOutputWithContext(ctx context.Context) StageOutput

func (StageOutput) Url added in v0.9.0

Specifies the URL for the stage.

type StageState

type StageState struct {
	AwsExternalId pulumi.StringPtrInput
	// Specifies a comment for the stage.
	Comment pulumi.StringPtrInput
	// Specifies the copy options for the stage.
	CopyOptions pulumi.StringPtrInput
	// Specifies the credentials for the stage.
	Credentials pulumi.StringPtrInput
	// The database in which to create the stage.
	Database pulumi.StringPtrInput
	// Specifies the directory settings for the stage.
	Directory pulumi.StringPtrInput
	// Specifies the encryption settings for the stage.
	Encryption pulumi.StringPtrInput
	// Specifies the file format for the stage.
	FileFormat pulumi.StringPtrInput
	// Specifies the identifier for the stage; must be unique for the database and schema in which the stage is created.
	Name pulumi.StringPtrInput
	// The schema in which to create the stage.
	Schema           pulumi.StringPtrInput
	SnowflakeIamUser pulumi.StringPtrInput
	// Specifies the name of the storage integration used to delegate authentication responsibility for external cloud storage to a Snowflake identity and access management (IAM) entity.
	StorageIntegration pulumi.StringPtrInput
	// Definitions of a tag to associate with the resource.
	//
	// Deprecated: Use the 'snowflake_tag_association' resource instead.
	Tags StageTagArrayInput
	// Specifies the URL for the stage.
	Url pulumi.StringPtrInput
}

func (StageState) ElementType

func (StageState) ElementType() reflect.Type

type StageTag added in v0.3.0

type StageTag struct {
	// Name of the database that the tag was created in.
	Database *string `pulumi:"database"`
	// Tag name, e.g. department.
	Name string `pulumi:"name"`
	// Name of the schema that the tag was created in.
	Schema *string `pulumi:"schema"`
	// Tag value, e.g. marketing_info.
	Value string `pulumi:"value"`
}

type StageTagArgs added in v0.3.0

type StageTagArgs struct {
	// Name of the database that the tag was created in.
	Database pulumi.StringPtrInput `pulumi:"database"`
	// Tag name, e.g. department.
	Name pulumi.StringInput `pulumi:"name"`
	// Name of the schema that the tag was created in.
	Schema pulumi.StringPtrInput `pulumi:"schema"`
	// Tag value, e.g. marketing_info.
	Value pulumi.StringInput `pulumi:"value"`
}

func (StageTagArgs) ElementType added in v0.3.0

func (StageTagArgs) ElementType() reflect.Type

func (StageTagArgs) ToStageTagOutput added in v0.3.0

func (i StageTagArgs) ToStageTagOutput() StageTagOutput

func (StageTagArgs) ToStageTagOutputWithContext added in v0.3.0

func (i StageTagArgs) ToStageTagOutputWithContext(ctx context.Context) StageTagOutput

type StageTagArray added in v0.3.0

type StageTagArray []StageTagInput

func (StageTagArray) ElementType added in v0.3.0

func (StageTagArray) ElementType() reflect.Type

func (StageTagArray) ToStageTagArrayOutput added in v0.3.0

func (i StageTagArray) ToStageTagArrayOutput() StageTagArrayOutput

func (StageTagArray) ToStageTagArrayOutputWithContext added in v0.3.0

func (i StageTagArray) ToStageTagArrayOutputWithContext(ctx context.Context) StageTagArrayOutput

type StageTagArrayInput added in v0.3.0

type StageTagArrayInput interface {
	pulumi.Input

	ToStageTagArrayOutput() StageTagArrayOutput
	ToStageTagArrayOutputWithContext(context.Context) StageTagArrayOutput
}

StageTagArrayInput is an input type that accepts StageTagArray and StageTagArrayOutput values. You can construct a concrete instance of `StageTagArrayInput` via:

StageTagArray{ StageTagArgs{...} }

type StageTagArrayOutput added in v0.3.0

type StageTagArrayOutput struct{ *pulumi.OutputState }

func (StageTagArrayOutput) ElementType added in v0.3.0

func (StageTagArrayOutput) ElementType() reflect.Type

func (StageTagArrayOutput) Index added in v0.3.0

func (StageTagArrayOutput) ToStageTagArrayOutput added in v0.3.0

func (o StageTagArrayOutput) ToStageTagArrayOutput() StageTagArrayOutput

func (StageTagArrayOutput) ToStageTagArrayOutputWithContext added in v0.3.0

func (o StageTagArrayOutput) ToStageTagArrayOutputWithContext(ctx context.Context) StageTagArrayOutput

type StageTagInput added in v0.3.0

type StageTagInput interface {
	pulumi.Input

	ToStageTagOutput() StageTagOutput
	ToStageTagOutputWithContext(context.Context) StageTagOutput
}

StageTagInput is an input type that accepts StageTagArgs and StageTagOutput values. You can construct a concrete instance of `StageTagInput` via:

StageTagArgs{...}

type StageTagOutput added in v0.3.0

type StageTagOutput struct{ *pulumi.OutputState }

func (StageTagOutput) Database added in v0.3.0

func (o StageTagOutput) Database() pulumi.StringPtrOutput

Name of the database that the tag was created in.

func (StageTagOutput) ElementType added in v0.3.0

func (StageTagOutput) ElementType() reflect.Type

func (StageTagOutput) Name added in v0.3.0

Tag name, e.g. department.

func (StageTagOutput) Schema added in v0.3.0

Name of the schema that the tag was created in.

func (StageTagOutput) ToStageTagOutput added in v0.3.0

func (o StageTagOutput) ToStageTagOutput() StageTagOutput

func (StageTagOutput) ToStageTagOutputWithContext added in v0.3.0

func (o StageTagOutput) ToStageTagOutputWithContext(ctx context.Context) StageTagOutput

func (StageTagOutput) Value added in v0.3.0

Tag value, e.g. marketing_info.

type StorageIntegration

type StorageIntegration struct {
	pulumi.CustomResourceState

	// The consent URL that is used to create an Azure Snowflake service principle inside your tenant.
	AzureConsentUrl pulumi.StringOutput `pulumi:"azureConsentUrl"`
	// This is the name of the Snowflake client application created for your account.
	AzureMultiTenantAppName pulumi.StringOutput    `pulumi:"azureMultiTenantAppName"`
	AzureTenantId           pulumi.StringPtrOutput `pulumi:"azureTenantId"`
	Comment                 pulumi.StringPtrOutput `pulumi:"comment"`
	// Date and time when the storage integration was created.
	CreatedOn pulumi.StringOutput  `pulumi:"createdOn"`
	Enabled   pulumi.BoolPtrOutput `pulumi:"enabled"`
	Name      pulumi.StringOutput  `pulumi:"name"`
	// Explicitly limits external stages that use the integration to reference one or more storage locations.
	StorageAllowedLocations pulumi.StringArrayOutput `pulumi:"storageAllowedLocations"`
	// The external ID that Snowflake will use when assuming the AWS role.
	StorageAwsExternalId pulumi.StringOutput `pulumi:"storageAwsExternalId"`
	// The Snowflake user that will attempt to assume the AWS role.
	StorageAwsIamUserArn pulumi.StringOutput `pulumi:"storageAwsIamUserArn"`
	// "bucket-owner-full-control" Enables support for AWS access control lists (ACLs) to grant the bucket owner full control.
	StorageAwsObjectAcl pulumi.StringPtrOutput `pulumi:"storageAwsObjectAcl"`
	StorageAwsRoleArn   pulumi.StringPtrOutput `pulumi:"storageAwsRoleArn"`
	// Explicitly prohibits external stages that use the integration from referencing one or more storage locations.
	StorageBlockedLocations pulumi.StringArrayOutput `pulumi:"storageBlockedLocations"`
	// This is the name of the Snowflake Google Service Account created for your account.
	StorageGcpServiceAccount pulumi.StringOutput    `pulumi:"storageGcpServiceAccount"`
	StorageProvider          pulumi.StringOutput    `pulumi:"storageProvider"`
	Type                     pulumi.StringPtrOutput `pulumi:"type"`
}

## Import

```sh

$ pulumi import snowflake:index/storageIntegration:StorageIntegration example name

```

func GetStorageIntegration

func GetStorageIntegration(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *StorageIntegrationState, opts ...pulumi.ResourceOption) (*StorageIntegration, error)

GetStorageIntegration gets an existing StorageIntegration resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewStorageIntegration

func NewStorageIntegration(ctx *pulumi.Context,
	name string, args *StorageIntegrationArgs, opts ...pulumi.ResourceOption) (*StorageIntegration, error)

NewStorageIntegration registers a new resource with the given unique name, arguments, and options.

func (*StorageIntegration) ElementType

func (*StorageIntegration) ElementType() reflect.Type

func (*StorageIntegration) ToStorageIntegrationOutput

func (i *StorageIntegration) ToStorageIntegrationOutput() StorageIntegrationOutput

func (*StorageIntegration) ToStorageIntegrationOutputWithContext

func (i *StorageIntegration) ToStorageIntegrationOutputWithContext(ctx context.Context) StorageIntegrationOutput

type StorageIntegrationArgs

type StorageIntegrationArgs struct {
	AzureTenantId pulumi.StringPtrInput
	Comment       pulumi.StringPtrInput
	Enabled       pulumi.BoolPtrInput
	Name          pulumi.StringPtrInput
	// Explicitly limits external stages that use the integration to reference one or more storage locations.
	StorageAllowedLocations pulumi.StringArrayInput
	// "bucket-owner-full-control" Enables support for AWS access control lists (ACLs) to grant the bucket owner full control.
	StorageAwsObjectAcl pulumi.StringPtrInput
	StorageAwsRoleArn   pulumi.StringPtrInput
	// Explicitly prohibits external stages that use the integration from referencing one or more storage locations.
	StorageBlockedLocations pulumi.StringArrayInput
	StorageProvider         pulumi.StringInput
	Type                    pulumi.StringPtrInput
}

The set of arguments for constructing a StorageIntegration resource.

func (StorageIntegrationArgs) ElementType

func (StorageIntegrationArgs) ElementType() reflect.Type

type StorageIntegrationArray

type StorageIntegrationArray []StorageIntegrationInput

func (StorageIntegrationArray) ElementType

func (StorageIntegrationArray) ElementType() reflect.Type

func (StorageIntegrationArray) ToStorageIntegrationArrayOutput

func (i StorageIntegrationArray) ToStorageIntegrationArrayOutput() StorageIntegrationArrayOutput

func (StorageIntegrationArray) ToStorageIntegrationArrayOutputWithContext

func (i StorageIntegrationArray) ToStorageIntegrationArrayOutputWithContext(ctx context.Context) StorageIntegrationArrayOutput

type StorageIntegrationArrayInput

type StorageIntegrationArrayInput interface {
	pulumi.Input

	ToStorageIntegrationArrayOutput() StorageIntegrationArrayOutput
	ToStorageIntegrationArrayOutputWithContext(context.Context) StorageIntegrationArrayOutput
}

StorageIntegrationArrayInput is an input type that accepts StorageIntegrationArray and StorageIntegrationArrayOutput values. You can construct a concrete instance of `StorageIntegrationArrayInput` via:

StorageIntegrationArray{ StorageIntegrationArgs{...} }

type StorageIntegrationArrayOutput

type StorageIntegrationArrayOutput struct{ *pulumi.OutputState }

func (StorageIntegrationArrayOutput) ElementType

func (StorageIntegrationArrayOutput) Index

func (StorageIntegrationArrayOutput) ToStorageIntegrationArrayOutput

func (o StorageIntegrationArrayOutput) ToStorageIntegrationArrayOutput() StorageIntegrationArrayOutput

func (StorageIntegrationArrayOutput) ToStorageIntegrationArrayOutputWithContext

func (o StorageIntegrationArrayOutput) ToStorageIntegrationArrayOutputWithContext(ctx context.Context) StorageIntegrationArrayOutput

type StorageIntegrationInput

type StorageIntegrationInput interface {
	pulumi.Input

	ToStorageIntegrationOutput() StorageIntegrationOutput
	ToStorageIntegrationOutputWithContext(ctx context.Context) StorageIntegrationOutput
}

type StorageIntegrationMap

type StorageIntegrationMap map[string]StorageIntegrationInput

func (StorageIntegrationMap) ElementType

func (StorageIntegrationMap) ElementType() reflect.Type

func (StorageIntegrationMap) ToStorageIntegrationMapOutput

func (i StorageIntegrationMap) ToStorageIntegrationMapOutput() StorageIntegrationMapOutput

func (StorageIntegrationMap) ToStorageIntegrationMapOutputWithContext

func (i StorageIntegrationMap) ToStorageIntegrationMapOutputWithContext(ctx context.Context) StorageIntegrationMapOutput

type StorageIntegrationMapInput

type StorageIntegrationMapInput interface {
	pulumi.Input

	ToStorageIntegrationMapOutput() StorageIntegrationMapOutput
	ToStorageIntegrationMapOutputWithContext(context.Context) StorageIntegrationMapOutput
}

StorageIntegrationMapInput is an input type that accepts StorageIntegrationMap and StorageIntegrationMapOutput values. You can construct a concrete instance of `StorageIntegrationMapInput` via:

StorageIntegrationMap{ "key": StorageIntegrationArgs{...} }

type StorageIntegrationMapOutput

type StorageIntegrationMapOutput struct{ *pulumi.OutputState }

func (StorageIntegrationMapOutput) ElementType

func (StorageIntegrationMapOutput) MapIndex

func (StorageIntegrationMapOutput) ToStorageIntegrationMapOutput

func (o StorageIntegrationMapOutput) ToStorageIntegrationMapOutput() StorageIntegrationMapOutput

func (StorageIntegrationMapOutput) ToStorageIntegrationMapOutputWithContext

func (o StorageIntegrationMapOutput) ToStorageIntegrationMapOutputWithContext(ctx context.Context) StorageIntegrationMapOutput

type StorageIntegrationOutput

type StorageIntegrationOutput struct{ *pulumi.OutputState }

func (StorageIntegrationOutput) AzureConsentUrl added in v0.9.0

func (o StorageIntegrationOutput) AzureConsentUrl() pulumi.StringOutput

The consent URL that is used to create an Azure Snowflake service principle inside your tenant.

func (StorageIntegrationOutput) AzureMultiTenantAppName added in v0.9.0

func (o StorageIntegrationOutput) AzureMultiTenantAppName() pulumi.StringOutput

This is the name of the Snowflake client application created for your account.

func (StorageIntegrationOutput) AzureTenantId added in v0.9.0

func (StorageIntegrationOutput) Comment added in v0.9.0

func (StorageIntegrationOutput) CreatedOn added in v0.9.0

Date and time when the storage integration was created.

func (StorageIntegrationOutput) ElementType

func (StorageIntegrationOutput) ElementType() reflect.Type

func (StorageIntegrationOutput) Enabled added in v0.9.0

func (StorageIntegrationOutput) Name added in v0.9.0

func (StorageIntegrationOutput) StorageAllowedLocations added in v0.9.0

func (o StorageIntegrationOutput) StorageAllowedLocations() pulumi.StringArrayOutput

Explicitly limits external stages that use the integration to reference one or more storage locations.

func (StorageIntegrationOutput) StorageAwsExternalId added in v0.9.0

func (o StorageIntegrationOutput) StorageAwsExternalId() pulumi.StringOutput

The external ID that Snowflake will use when assuming the AWS role.

func (StorageIntegrationOutput) StorageAwsIamUserArn added in v0.9.0

func (o StorageIntegrationOutput) StorageAwsIamUserArn() pulumi.StringOutput

The Snowflake user that will attempt to assume the AWS role.

func (StorageIntegrationOutput) StorageAwsObjectAcl added in v0.9.0

func (o StorageIntegrationOutput) StorageAwsObjectAcl() pulumi.StringPtrOutput

"bucket-owner-full-control" Enables support for AWS access control lists (ACLs) to grant the bucket owner full control.

func (StorageIntegrationOutput) StorageAwsRoleArn added in v0.9.0

func (o StorageIntegrationOutput) StorageAwsRoleArn() pulumi.StringPtrOutput

func (StorageIntegrationOutput) StorageBlockedLocations added in v0.9.0

func (o StorageIntegrationOutput) StorageBlockedLocations() pulumi.StringArrayOutput

Explicitly prohibits external stages that use the integration from referencing one or more storage locations.

func (StorageIntegrationOutput) StorageGcpServiceAccount added in v0.9.0

func (o StorageIntegrationOutput) StorageGcpServiceAccount() pulumi.StringOutput

This is the name of the Snowflake Google Service Account created for your account.

func (StorageIntegrationOutput) StorageProvider added in v0.9.0

func (o StorageIntegrationOutput) StorageProvider() pulumi.StringOutput

func (StorageIntegrationOutput) ToStorageIntegrationOutput

func (o StorageIntegrationOutput) ToStorageIntegrationOutput() StorageIntegrationOutput

func (StorageIntegrationOutput) ToStorageIntegrationOutputWithContext

func (o StorageIntegrationOutput) ToStorageIntegrationOutputWithContext(ctx context.Context) StorageIntegrationOutput

func (StorageIntegrationOutput) Type added in v0.9.0

type StorageIntegrationState

type StorageIntegrationState struct {
	// The consent URL that is used to create an Azure Snowflake service principle inside your tenant.
	AzureConsentUrl pulumi.StringPtrInput
	// This is the name of the Snowflake client application created for your account.
	AzureMultiTenantAppName pulumi.StringPtrInput
	AzureTenantId           pulumi.StringPtrInput
	Comment                 pulumi.StringPtrInput
	// Date and time when the storage integration was created.
	CreatedOn pulumi.StringPtrInput
	Enabled   pulumi.BoolPtrInput
	Name      pulumi.StringPtrInput
	// Explicitly limits external stages that use the integration to reference one or more storage locations.
	StorageAllowedLocations pulumi.StringArrayInput
	// The external ID that Snowflake will use when assuming the AWS role.
	StorageAwsExternalId pulumi.StringPtrInput
	// The Snowflake user that will attempt to assume the AWS role.
	StorageAwsIamUserArn pulumi.StringPtrInput
	// "bucket-owner-full-control" Enables support for AWS access control lists (ACLs) to grant the bucket owner full control.
	StorageAwsObjectAcl pulumi.StringPtrInput
	StorageAwsRoleArn   pulumi.StringPtrInput
	// Explicitly prohibits external stages that use the integration from referencing one or more storage locations.
	StorageBlockedLocations pulumi.StringArrayInput
	// This is the name of the Snowflake Google Service Account created for your account.
	StorageGcpServiceAccount pulumi.StringPtrInput
	StorageProvider          pulumi.StringPtrInput
	Type                     pulumi.StringPtrInput
}

func (StorageIntegrationState) ElementType

func (StorageIntegrationState) ElementType() reflect.Type

type Stream

type Stream struct {
	pulumi.CustomResourceState

	// Type of the stream that will be created.
	AppendOnly pulumi.BoolPtrOutput `pulumi:"appendOnly"`
	// Specifies a comment for the stream.
	Comment pulumi.StringPtrOutput `pulumi:"comment"`
	// The database in which to create the stream.
	Database pulumi.StringOutput `pulumi:"database"`
	// Create an insert only stream type.
	InsertOnly pulumi.BoolPtrOutput `pulumi:"insertOnly"`
	// Specifies the identifier for the stream; must be unique for the database and schema in which the stream is created.
	Name pulumi.StringOutput `pulumi:"name"`
	// Name of the stage the stream will monitor.
	OnStage pulumi.StringPtrOutput `pulumi:"onStage"`
	// Name of the table the stream will monitor.
	OnTable pulumi.StringPtrOutput `pulumi:"onTable"`
	// Name of the view the stream will monitor.
	OnView pulumi.StringPtrOutput `pulumi:"onView"`
	// Name of the role that owns the stream.
	Owner pulumi.StringOutput `pulumi:"owner"`
	// The schema in which to create the stream.
	Schema pulumi.StringOutput `pulumi:"schema"`
	// Specifies whether to return all existing rows in the source table as row inserts the first time the stream is consumed.
	ShowInitialRows pulumi.BoolPtrOutput `pulumi:"showInitialRows"`
}

## Import

format is database name | schema name | stream name

```sh

$ pulumi import snowflake:index/stream:Stream example 'dbName|schemaName|streamName'

```

func GetStream

func GetStream(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *StreamState, opts ...pulumi.ResourceOption) (*Stream, error)

GetStream gets an existing Stream resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewStream

func NewStream(ctx *pulumi.Context,
	name string, args *StreamArgs, opts ...pulumi.ResourceOption) (*Stream, error)

NewStream registers a new resource with the given unique name, arguments, and options.

func (*Stream) ElementType

func (*Stream) ElementType() reflect.Type

func (*Stream) ToStreamOutput

func (i *Stream) ToStreamOutput() StreamOutput

func (*Stream) ToStreamOutputWithContext

func (i *Stream) ToStreamOutputWithContext(ctx context.Context) StreamOutput

type StreamArgs

type StreamArgs struct {
	// Type of the stream that will be created.
	AppendOnly pulumi.BoolPtrInput
	// Specifies a comment for the stream.
	Comment pulumi.StringPtrInput
	// The database in which to create the stream.
	Database pulumi.StringInput
	// Create an insert only stream type.
	InsertOnly pulumi.BoolPtrInput
	// Specifies the identifier for the stream; must be unique for the database and schema in which the stream is created.
	Name pulumi.StringPtrInput
	// Name of the stage the stream will monitor.
	OnStage pulumi.StringPtrInput
	// Name of the table the stream will monitor.
	OnTable pulumi.StringPtrInput
	// Name of the view the stream will monitor.
	OnView pulumi.StringPtrInput
	// The schema in which to create the stream.
	Schema pulumi.StringInput
	// Specifies whether to return all existing rows in the source table as row inserts the first time the stream is consumed.
	ShowInitialRows pulumi.BoolPtrInput
}

The set of arguments for constructing a Stream resource.

func (StreamArgs) ElementType

func (StreamArgs) ElementType() reflect.Type

type StreamArray

type StreamArray []StreamInput

func (StreamArray) ElementType

func (StreamArray) ElementType() reflect.Type

func (StreamArray) ToStreamArrayOutput

func (i StreamArray) ToStreamArrayOutput() StreamArrayOutput

func (StreamArray) ToStreamArrayOutputWithContext

func (i StreamArray) ToStreamArrayOutputWithContext(ctx context.Context) StreamArrayOutput

type StreamArrayInput

type StreamArrayInput interface {
	pulumi.Input

	ToStreamArrayOutput() StreamArrayOutput
	ToStreamArrayOutputWithContext(context.Context) StreamArrayOutput
}

StreamArrayInput is an input type that accepts StreamArray and StreamArrayOutput values. You can construct a concrete instance of `StreamArrayInput` via:

StreamArray{ StreamArgs{...} }

type StreamArrayOutput

type StreamArrayOutput struct{ *pulumi.OutputState }

func (StreamArrayOutput) ElementType

func (StreamArrayOutput) ElementType() reflect.Type

func (StreamArrayOutput) Index

func (StreamArrayOutput) ToStreamArrayOutput

func (o StreamArrayOutput) ToStreamArrayOutput() StreamArrayOutput

func (StreamArrayOutput) ToStreamArrayOutputWithContext

func (o StreamArrayOutput) ToStreamArrayOutputWithContext(ctx context.Context) StreamArrayOutput

type StreamGrant

type StreamGrant struct {
	pulumi.CustomResourceState

	// The name of the database containing the current or future streams on which to grant privileges.
	DatabaseName pulumi.StringOutput `pulumi:"databaseName"`
	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrOutput `pulumi:"enableMultipleGrants"`
	// When this is set to true and a schema*name is provided, apply this grant on all streams in the given schema. When this is true and no schema*name is provided apply this grant on all streams in the given database. The stream*name field must be unset in order to use on*all. Cannot be used together with on_future.
	OnAll pulumi.BoolPtrOutput `pulumi:"onAll"`
	// When this is set to true and a schema*name is provided, apply this grant on all future streams in the given schema. When this is true and no schema*name is provided apply this grant on all future streams in the given database. The stream*name field must be unset in order to use on*future. Cannot be used together with on_all.
	OnFuture pulumi.BoolPtrOutput `pulumi:"onFuture"`
	// The privilege to grant on the current or future stream. To grant all privileges, use the value `ALL PRIVILEGES`.
	Privilege pulumi.StringPtrOutput `pulumi:"privilege"`
	// The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
	RevertOwnershipToRoleName pulumi.StringPtrOutput `pulumi:"revertOwnershipToRoleName"`
	// Grants privilege to these roles.
	Roles pulumi.StringArrayOutput `pulumi:"roles"`
	// The name of the schema containing the current or future streams on which to grant privileges.
	SchemaName pulumi.StringPtrOutput `pulumi:"schemaName"`
	// The name of the stream on which to grant privileges immediately (only valid if onFuture is false).
	StreamName pulumi.StringPtrOutput `pulumi:"streamName"`
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrOutput `pulumi:"withGrantOption"`
}

## Example Usage

```go 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.NewStreamGrant(ctx, "grant", &snowflake.StreamGrantArgs{
			DatabaseName: pulumi.String("database"),
			OnFuture:     pulumi.Bool(false),
			Privilege:    pulumi.String("SELECT"),
			Roles: pulumi.StringArray{
				pulumi.String("role1"),
				pulumi.String("role2"),
			},
			SchemaName:      pulumi.String("schema"),
			StreamName:      pulumi.String("view"),
			WithGrantOption: pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

format is database_name|schema_name|stream_name|privilege|with_grant_option|on_future|roles"

```sh

$ pulumi import snowflake:index/streamGrant:StreamGrant example "MY_DATABASE|MY_SCHEMA|MY_STREAM|SELECT|false|false|role1,role2"

```

func GetStreamGrant

func GetStreamGrant(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *StreamGrantState, opts ...pulumi.ResourceOption) (*StreamGrant, error)

GetStreamGrant gets an existing StreamGrant resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewStreamGrant

func NewStreamGrant(ctx *pulumi.Context,
	name string, args *StreamGrantArgs, opts ...pulumi.ResourceOption) (*StreamGrant, error)

NewStreamGrant registers a new resource with the given unique name, arguments, and options.

func (*StreamGrant) ElementType

func (*StreamGrant) ElementType() reflect.Type

func (*StreamGrant) ToStreamGrantOutput

func (i *StreamGrant) ToStreamGrantOutput() StreamGrantOutput

func (*StreamGrant) ToStreamGrantOutputWithContext

func (i *StreamGrant) ToStreamGrantOutputWithContext(ctx context.Context) StreamGrantOutput

type StreamGrantArgs

type StreamGrantArgs struct {
	// The name of the database containing the current or future streams on which to grant privileges.
	DatabaseName pulumi.StringInput
	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrInput
	// When this is set to true and a schema*name is provided, apply this grant on all streams in the given schema. When this is true and no schema*name is provided apply this grant on all streams in the given database. The stream*name field must be unset in order to use on*all. Cannot be used together with on_future.
	OnAll pulumi.BoolPtrInput
	// When this is set to true and a schema*name is provided, apply this grant on all future streams in the given schema. When this is true and no schema*name is provided apply this grant on all future streams in the given database. The stream*name field must be unset in order to use on*future. Cannot be used together with on_all.
	OnFuture pulumi.BoolPtrInput
	// The privilege to grant on the current or future stream. To grant all privileges, use the value `ALL PRIVILEGES`.
	Privilege pulumi.StringPtrInput
	// The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
	RevertOwnershipToRoleName pulumi.StringPtrInput
	// Grants privilege to these roles.
	Roles pulumi.StringArrayInput
	// The name of the schema containing the current or future streams on which to grant privileges.
	SchemaName pulumi.StringPtrInput
	// The name of the stream on which to grant privileges immediately (only valid if onFuture is false).
	StreamName pulumi.StringPtrInput
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrInput
}

The set of arguments for constructing a StreamGrant resource.

func (StreamGrantArgs) ElementType

func (StreamGrantArgs) ElementType() reflect.Type

type StreamGrantArray

type StreamGrantArray []StreamGrantInput

func (StreamGrantArray) ElementType

func (StreamGrantArray) ElementType() reflect.Type

func (StreamGrantArray) ToStreamGrantArrayOutput

func (i StreamGrantArray) ToStreamGrantArrayOutput() StreamGrantArrayOutput

func (StreamGrantArray) ToStreamGrantArrayOutputWithContext

func (i StreamGrantArray) ToStreamGrantArrayOutputWithContext(ctx context.Context) StreamGrantArrayOutput

type StreamGrantArrayInput

type StreamGrantArrayInput interface {
	pulumi.Input

	ToStreamGrantArrayOutput() StreamGrantArrayOutput
	ToStreamGrantArrayOutputWithContext(context.Context) StreamGrantArrayOutput
}

StreamGrantArrayInput is an input type that accepts StreamGrantArray and StreamGrantArrayOutput values. You can construct a concrete instance of `StreamGrantArrayInput` via:

StreamGrantArray{ StreamGrantArgs{...} }

type StreamGrantArrayOutput

type StreamGrantArrayOutput struct{ *pulumi.OutputState }

func (StreamGrantArrayOutput) ElementType

func (StreamGrantArrayOutput) ElementType() reflect.Type

func (StreamGrantArrayOutput) Index

func (StreamGrantArrayOutput) ToStreamGrantArrayOutput

func (o StreamGrantArrayOutput) ToStreamGrantArrayOutput() StreamGrantArrayOutput

func (StreamGrantArrayOutput) ToStreamGrantArrayOutputWithContext

func (o StreamGrantArrayOutput) ToStreamGrantArrayOutputWithContext(ctx context.Context) StreamGrantArrayOutput

type StreamGrantInput

type StreamGrantInput interface {
	pulumi.Input

	ToStreamGrantOutput() StreamGrantOutput
	ToStreamGrantOutputWithContext(ctx context.Context) StreamGrantOutput
}

type StreamGrantMap

type StreamGrantMap map[string]StreamGrantInput

func (StreamGrantMap) ElementType

func (StreamGrantMap) ElementType() reflect.Type

func (StreamGrantMap) ToStreamGrantMapOutput

func (i StreamGrantMap) ToStreamGrantMapOutput() StreamGrantMapOutput

func (StreamGrantMap) ToStreamGrantMapOutputWithContext

func (i StreamGrantMap) ToStreamGrantMapOutputWithContext(ctx context.Context) StreamGrantMapOutput

type StreamGrantMapInput

type StreamGrantMapInput interface {
	pulumi.Input

	ToStreamGrantMapOutput() StreamGrantMapOutput
	ToStreamGrantMapOutputWithContext(context.Context) StreamGrantMapOutput
}

StreamGrantMapInput is an input type that accepts StreamGrantMap and StreamGrantMapOutput values. You can construct a concrete instance of `StreamGrantMapInput` via:

StreamGrantMap{ "key": StreamGrantArgs{...} }

type StreamGrantMapOutput

type StreamGrantMapOutput struct{ *pulumi.OutputState }

func (StreamGrantMapOutput) ElementType

func (StreamGrantMapOutput) ElementType() reflect.Type

func (StreamGrantMapOutput) MapIndex

func (StreamGrantMapOutput) ToStreamGrantMapOutput

func (o StreamGrantMapOutput) ToStreamGrantMapOutput() StreamGrantMapOutput

func (StreamGrantMapOutput) ToStreamGrantMapOutputWithContext

func (o StreamGrantMapOutput) ToStreamGrantMapOutputWithContext(ctx context.Context) StreamGrantMapOutput

type StreamGrantOutput

type StreamGrantOutput struct{ *pulumi.OutputState }

func (StreamGrantOutput) DatabaseName added in v0.9.0

func (o StreamGrantOutput) DatabaseName() pulumi.StringOutput

The name of the database containing the current or future streams on which to grant privileges.

func (StreamGrantOutput) ElementType

func (StreamGrantOutput) ElementType() reflect.Type

func (StreamGrantOutput) EnableMultipleGrants added in v0.9.0

func (o StreamGrantOutput) EnableMultipleGrants() pulumi.BoolPtrOutput

When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke grants applied to roles and objects outside Terraform.

func (StreamGrantOutput) OnAll added in v0.25.0

When this is set to true and a schema*name is provided, apply this grant on all streams in the given schema. When this is true and no schema*name is provided apply this grant on all streams in the given database. The stream*name field must be unset in order to use on*all. Cannot be used together with on_future.

func (StreamGrantOutput) OnFuture added in v0.9.0

func (o StreamGrantOutput) OnFuture() pulumi.BoolPtrOutput

When this is set to true and a schema*name is provided, apply this grant on all future streams in the given schema. When this is true and no schema*name is provided apply this grant on all future streams in the given database. The stream*name field must be unset in order to use on*future. Cannot be used together with on_all.

func (StreamGrantOutput) Privilege added in v0.9.0

The privilege to grant on the current or future stream. To grant all privileges, use the value `ALL PRIVILEGES`.

func (StreamGrantOutput) RevertOwnershipToRoleName added in v0.26.0

func (o StreamGrantOutput) RevertOwnershipToRoleName() pulumi.StringPtrOutput

The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`

func (StreamGrantOutput) Roles added in v0.9.0

Grants privilege to these roles.

func (StreamGrantOutput) SchemaName added in v0.9.0

func (o StreamGrantOutput) SchemaName() pulumi.StringPtrOutput

The name of the schema containing the current or future streams on which to grant privileges.

func (StreamGrantOutput) StreamName added in v0.9.0

func (o StreamGrantOutput) StreamName() pulumi.StringPtrOutput

The name of the stream on which to grant privileges immediately (only valid if onFuture is false).

func (StreamGrantOutput) ToStreamGrantOutput

func (o StreamGrantOutput) ToStreamGrantOutput() StreamGrantOutput

func (StreamGrantOutput) ToStreamGrantOutputWithContext

func (o StreamGrantOutput) ToStreamGrantOutputWithContext(ctx context.Context) StreamGrantOutput

func (StreamGrantOutput) WithGrantOption added in v0.9.0

func (o StreamGrantOutput) WithGrantOption() pulumi.BoolPtrOutput

When this is set to true, allows the recipient role to grant the privileges to other roles.

type StreamGrantState

type StreamGrantState struct {
	// The name of the database containing the current or future streams on which to grant privileges.
	DatabaseName pulumi.StringPtrInput
	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrInput
	// When this is set to true and a schema*name is provided, apply this grant on all streams in the given schema. When this is true and no schema*name is provided apply this grant on all streams in the given database. The stream*name field must be unset in order to use on*all. Cannot be used together with on_future.
	OnAll pulumi.BoolPtrInput
	// When this is set to true and a schema*name is provided, apply this grant on all future streams in the given schema. When this is true and no schema*name is provided apply this grant on all future streams in the given database. The stream*name field must be unset in order to use on*future. Cannot be used together with on_all.
	OnFuture pulumi.BoolPtrInput
	// The privilege to grant on the current or future stream. To grant all privileges, use the value `ALL PRIVILEGES`.
	Privilege pulumi.StringPtrInput
	// The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
	RevertOwnershipToRoleName pulumi.StringPtrInput
	// Grants privilege to these roles.
	Roles pulumi.StringArrayInput
	// The name of the schema containing the current or future streams on which to grant privileges.
	SchemaName pulumi.StringPtrInput
	// The name of the stream on which to grant privileges immediately (only valid if onFuture is false).
	StreamName pulumi.StringPtrInput
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrInput
}

func (StreamGrantState) ElementType

func (StreamGrantState) ElementType() reflect.Type

type StreamInput

type StreamInput interface {
	pulumi.Input

	ToStreamOutput() StreamOutput
	ToStreamOutputWithContext(ctx context.Context) StreamOutput
}

type StreamMap

type StreamMap map[string]StreamInput

func (StreamMap) ElementType

func (StreamMap) ElementType() reflect.Type

func (StreamMap) ToStreamMapOutput

func (i StreamMap) ToStreamMapOutput() StreamMapOutput

func (StreamMap) ToStreamMapOutputWithContext

func (i StreamMap) ToStreamMapOutputWithContext(ctx context.Context) StreamMapOutput

type StreamMapInput

type StreamMapInput interface {
	pulumi.Input

	ToStreamMapOutput() StreamMapOutput
	ToStreamMapOutputWithContext(context.Context) StreamMapOutput
}

StreamMapInput is an input type that accepts StreamMap and StreamMapOutput values. You can construct a concrete instance of `StreamMapInput` via:

StreamMap{ "key": StreamArgs{...} }

type StreamMapOutput

type StreamMapOutput struct{ *pulumi.OutputState }

func (StreamMapOutput) ElementType

func (StreamMapOutput) ElementType() reflect.Type

func (StreamMapOutput) MapIndex

func (StreamMapOutput) ToStreamMapOutput

func (o StreamMapOutput) ToStreamMapOutput() StreamMapOutput

func (StreamMapOutput) ToStreamMapOutputWithContext

func (o StreamMapOutput) ToStreamMapOutputWithContext(ctx context.Context) StreamMapOutput

type StreamOutput

type StreamOutput struct{ *pulumi.OutputState }

func (StreamOutput) AppendOnly added in v0.9.0

func (o StreamOutput) AppendOnly() pulumi.BoolPtrOutput

Type of the stream that will be created.

func (StreamOutput) Comment added in v0.9.0

func (o StreamOutput) Comment() pulumi.StringPtrOutput

Specifies a comment for the stream.

func (StreamOutput) Database added in v0.9.0

func (o StreamOutput) Database() pulumi.StringOutput

The database in which to create the stream.

func (StreamOutput) ElementType

func (StreamOutput) ElementType() reflect.Type

func (StreamOutput) InsertOnly added in v0.9.0

func (o StreamOutput) InsertOnly() pulumi.BoolPtrOutput

Create an insert only stream type.

func (StreamOutput) Name added in v0.9.0

func (o StreamOutput) Name() pulumi.StringOutput

Specifies the identifier for the stream; must be unique for the database and schema in which the stream is created.

func (StreamOutput) OnStage added in v0.19.0

func (o StreamOutput) OnStage() pulumi.StringPtrOutput

Name of the stage the stream will monitor.

func (StreamOutput) OnTable added in v0.9.0

func (o StreamOutput) OnTable() pulumi.StringPtrOutput

Name of the table the stream will monitor.

func (StreamOutput) OnView added in v0.12.0

func (o StreamOutput) OnView() pulumi.StringPtrOutput

Name of the view the stream will monitor.

func (StreamOutput) Owner added in v0.9.0

func (o StreamOutput) Owner() pulumi.StringOutput

Name of the role that owns the stream.

func (StreamOutput) Schema added in v0.9.0

func (o StreamOutput) Schema() pulumi.StringOutput

The schema in which to create the stream.

func (StreamOutput) ShowInitialRows added in v0.9.0

func (o StreamOutput) ShowInitialRows() pulumi.BoolPtrOutput

Specifies whether to return all existing rows in the source table as row inserts the first time the stream is consumed.

func (StreamOutput) ToStreamOutput

func (o StreamOutput) ToStreamOutput() StreamOutput

func (StreamOutput) ToStreamOutputWithContext

func (o StreamOutput) ToStreamOutputWithContext(ctx context.Context) StreamOutput

type StreamState

type StreamState struct {
	// Type of the stream that will be created.
	AppendOnly pulumi.BoolPtrInput
	// Specifies a comment for the stream.
	Comment pulumi.StringPtrInput
	// The database in which to create the stream.
	Database pulumi.StringPtrInput
	// Create an insert only stream type.
	InsertOnly pulumi.BoolPtrInput
	// Specifies the identifier for the stream; must be unique for the database and schema in which the stream is created.
	Name pulumi.StringPtrInput
	// Name of the stage the stream will monitor.
	OnStage pulumi.StringPtrInput
	// Name of the table the stream will monitor.
	OnTable pulumi.StringPtrInput
	// Name of the view the stream will monitor.
	OnView pulumi.StringPtrInput
	// Name of the role that owns the stream.
	Owner pulumi.StringPtrInput
	// The schema in which to create the stream.
	Schema pulumi.StringPtrInput
	// Specifies whether to return all existing rows in the source table as row inserts the first time the stream is consumed.
	ShowInitialRows pulumi.BoolPtrInput
}

func (StreamState) ElementType

func (StreamState) ElementType() reflect.Type

type Table

type Table struct {
	pulumi.CustomResourceState

	// Specifies whether to enable change tracking on the table. Default false.
	ChangeTracking pulumi.BoolPtrOutput `pulumi:"changeTracking"`
	// A list of one or more table columns/expressions to be used as clustering key(s) for the table
	ClusterBies pulumi.StringArrayOutput `pulumi:"clusterBies"`
	// Definitions of a column to create in the table. Minimum one required.
	Columns TableColumnArrayOutput `pulumi:"columns"`
	// Specifies a comment for the table.
	Comment pulumi.StringPtrOutput `pulumi:"comment"`
	// Specifies the retention period for the table so that Time Travel actions (SELECT, CLONE, UNDROP) can be performed on historical data in the table. Default value is 1, if you wish to inherit the parent schema setting then pass in the schema attribute to this argument.
	//
	// Deprecated: Use snowflake_object_parameter instead
	DataRetentionDays pulumi.IntPtrOutput `pulumi:"dataRetentionDays"`
	// The database in which to create the table.
	Database pulumi.StringOutput `pulumi:"database"`
	// Specifies the identifier for the table; must be unique for the database and schema in which the table is created.
	Name pulumi.StringOutput `pulumi:"name"`
	// Name of the role that owns the table.
	Owner pulumi.StringOutput `pulumi:"owner"`
	// Definitions of primary key constraint to create on table
	//
	// Deprecated: Use snowflake_table_constraint instead
	PrimaryKey TablePrimaryKeyPtrOutput `pulumi:"primaryKey"`
	// Qualified name of the table.
	QualifiedName pulumi.StringOutput `pulumi:"qualifiedName"`
	// The schema in which to create the table.
	Schema pulumi.StringOutput `pulumi:"schema"`
	// Definitions of a tag to associate with the resource.
	//
	// Deprecated: Use the 'snowflake_tag_association' resource instead.
	Tags TableTagArrayOutput `pulumi:"tags"`
}

## Example Usage

```go 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 {
		schema, err := snowflake.NewSchema(ctx, "schema", &snowflake.SchemaArgs{
			Database:          pulumi.String("database"),
			DataRetentionDays: pulumi.Int(1),
		})
		if err != nil {
			return err
		}
		sequence, err := snowflake.NewSequence(ctx, "sequence", &snowflake.SequenceArgs{
			Database: schema.Database,
			Schema:   schema.Name,
		})
		if err != nil {
			return err
		}
		_, err = snowflake.NewTable(ctx, "table", &snowflake.TableArgs{
			Database: schema.Database,
			Schema:   schema.Name,
			Comment:  pulumi.String("A table."),
			ClusterBies: pulumi.StringArray{
				pulumi.String("to_date(DATE)"),
			},
			DataRetentionDays: schema.DataRetentionDays,
			ChangeTracking:    pulumi.Bool(false),
			Columns: snowflake.TableColumnArray{
				&snowflake.TableColumnArgs{
					Name:     pulumi.String("id"),
					Type:     pulumi.String("int"),
					Nullable: pulumi.Bool(true),
					Default: &snowflake.TableColumnDefaultArgs{
						Sequence: sequence.FullyQualifiedName,
					},
				},
				&snowflake.TableColumnArgs{
					Name:     pulumi.String("identity"),
					Type:     pulumi.String("NUMBER(38,0)"),
					Nullable: pulumi.Bool(true),
					Identity: &snowflake.TableColumnIdentityArgs{
						StartNum: pulumi.Int(1),
						StepNum:  pulumi.Int(3),
					},
				},
				&snowflake.TableColumnArgs{
					Name:     pulumi.String("data"),
					Type:     pulumi.String("text"),
					Nullable: pulumi.Bool(false),
				},
				&snowflake.TableColumnArgs{
					Name: pulumi.String("DATE"),
					Type: pulumi.String("TIMESTAMP_NTZ(9)"),
				},
				&snowflake.TableColumnArgs{
					Name:    pulumi.String("extra"),
					Type:    pulumi.String("VARIANT"),
					Comment: pulumi.String("extra data"),
				},
			},
			PrimaryKey: &snowflake.TablePrimaryKeyArgs{
				Name: pulumi.String("my_key"),
				Keys: pulumi.StringArray{
					pulumi.String("data"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

format is database name | schema name | table name

```sh

$ pulumi import snowflake:index/table:Table example 'databaseName|schemaName|tableName'

```

func GetTable

func GetTable(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *TableState, opts ...pulumi.ResourceOption) (*Table, error)

GetTable gets an existing Table resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewTable

func NewTable(ctx *pulumi.Context,
	name string, args *TableArgs, opts ...pulumi.ResourceOption) (*Table, error)

NewTable registers a new resource with the given unique name, arguments, and options.

func (*Table) ElementType

func (*Table) ElementType() reflect.Type

func (*Table) ToTableOutput

func (i *Table) ToTableOutput() TableOutput

func (*Table) ToTableOutputWithContext

func (i *Table) ToTableOutputWithContext(ctx context.Context) TableOutput

type TableArgs

type TableArgs struct {
	// Specifies whether to enable change tracking on the table. Default false.
	ChangeTracking pulumi.BoolPtrInput
	// A list of one or more table columns/expressions to be used as clustering key(s) for the table
	ClusterBies pulumi.StringArrayInput
	// Definitions of a column to create in the table. Minimum one required.
	Columns TableColumnArrayInput
	// Specifies a comment for the table.
	Comment pulumi.StringPtrInput
	// Specifies the retention period for the table so that Time Travel actions (SELECT, CLONE, UNDROP) can be performed on historical data in the table. Default value is 1, if you wish to inherit the parent schema setting then pass in the schema attribute to this argument.
	//
	// Deprecated: Use snowflake_object_parameter instead
	DataRetentionDays pulumi.IntPtrInput
	// The database in which to create the table.
	Database pulumi.StringInput
	// Specifies the identifier for the table; must be unique for the database and schema in which the table is created.
	Name pulumi.StringPtrInput
	// Definitions of primary key constraint to create on table
	//
	// Deprecated: Use snowflake_table_constraint instead
	PrimaryKey TablePrimaryKeyPtrInput
	// The schema in which to create the table.
	Schema pulumi.StringInput
	// Definitions of a tag to associate with the resource.
	//
	// Deprecated: Use the 'snowflake_tag_association' resource instead.
	Tags TableTagArrayInput
}

The set of arguments for constructing a Table resource.

func (TableArgs) ElementType

func (TableArgs) ElementType() reflect.Type

type TableArray

type TableArray []TableInput

func (TableArray) ElementType

func (TableArray) ElementType() reflect.Type

func (TableArray) ToTableArrayOutput

func (i TableArray) ToTableArrayOutput() TableArrayOutput

func (TableArray) ToTableArrayOutputWithContext

func (i TableArray) ToTableArrayOutputWithContext(ctx context.Context) TableArrayOutput

type TableArrayInput

type TableArrayInput interface {
	pulumi.Input

	ToTableArrayOutput() TableArrayOutput
	ToTableArrayOutputWithContext(context.Context) TableArrayOutput
}

TableArrayInput is an input type that accepts TableArray and TableArrayOutput values. You can construct a concrete instance of `TableArrayInput` via:

TableArray{ TableArgs{...} }

type TableArrayOutput

type TableArrayOutput struct{ *pulumi.OutputState }

func (TableArrayOutput) ElementType

func (TableArrayOutput) ElementType() reflect.Type

func (TableArrayOutput) Index

func (TableArrayOutput) ToTableArrayOutput

func (o TableArrayOutput) ToTableArrayOutput() TableArrayOutput

func (TableArrayOutput) ToTableArrayOutputWithContext

func (o TableArrayOutput) ToTableArrayOutputWithContext(ctx context.Context) TableArrayOutput

type TableColumn

type TableColumn struct {
	// Column comment
	Comment *string `pulumi:"comment"`
	// Defines the column default value; note due to limitations of Snowflake's ALTER TABLE ADD/MODIFY COLUMN updates to default will not be applied
	Default *TableColumnDefault `pulumi:"default"`
	// Defines the identity start/step values for a column. **Note** Identity/default are mutually exclusive.
	Identity *TableColumnIdentity `pulumi:"identity"`
	// Masking policy to apply on column
	MaskingPolicy *string `pulumi:"maskingPolicy"`
	// Column name
	Name string `pulumi:"name"`
	// Whether this column can contain null values. **Note**: Depending on your Snowflake version, the default value will not suffice if this column is used in a primary key constraint.
	Nullable *bool `pulumi:"nullable"`
	// Column type, e.g. VARIANT
	Type string `pulumi:"type"`
}

type TableColumnArgs

type TableColumnArgs struct {
	// Column comment
	Comment pulumi.StringPtrInput `pulumi:"comment"`
	// Defines the column default value; note due to limitations of Snowflake's ALTER TABLE ADD/MODIFY COLUMN updates to default will not be applied
	Default TableColumnDefaultPtrInput `pulumi:"default"`
	// Defines the identity start/step values for a column. **Note** Identity/default are mutually exclusive.
	Identity TableColumnIdentityPtrInput `pulumi:"identity"`
	// Masking policy to apply on column
	MaskingPolicy pulumi.StringPtrInput `pulumi:"maskingPolicy"`
	// Column name
	Name pulumi.StringInput `pulumi:"name"`
	// Whether this column can contain null values. **Note**: Depending on your Snowflake version, the default value will not suffice if this column is used in a primary key constraint.
	Nullable pulumi.BoolPtrInput `pulumi:"nullable"`
	// Column type, e.g. VARIANT
	Type pulumi.StringInput `pulumi:"type"`
}

func (TableColumnArgs) ElementType

func (TableColumnArgs) ElementType() reflect.Type

func (TableColumnArgs) ToTableColumnOutput

func (i TableColumnArgs) ToTableColumnOutput() TableColumnOutput

func (TableColumnArgs) ToTableColumnOutputWithContext

func (i TableColumnArgs) ToTableColumnOutputWithContext(ctx context.Context) TableColumnOutput

type TableColumnArray

type TableColumnArray []TableColumnInput

func (TableColumnArray) ElementType

func (TableColumnArray) ElementType() reflect.Type

func (TableColumnArray) ToTableColumnArrayOutput

func (i TableColumnArray) ToTableColumnArrayOutput() TableColumnArrayOutput

func (TableColumnArray) ToTableColumnArrayOutputWithContext

func (i TableColumnArray) ToTableColumnArrayOutputWithContext(ctx context.Context) TableColumnArrayOutput

type TableColumnArrayInput

type TableColumnArrayInput interface {
	pulumi.Input

	ToTableColumnArrayOutput() TableColumnArrayOutput
	ToTableColumnArrayOutputWithContext(context.Context) TableColumnArrayOutput
}

TableColumnArrayInput is an input type that accepts TableColumnArray and TableColumnArrayOutput values. You can construct a concrete instance of `TableColumnArrayInput` via:

TableColumnArray{ TableColumnArgs{...} }

type TableColumnArrayOutput

type TableColumnArrayOutput struct{ *pulumi.OutputState }

func (TableColumnArrayOutput) ElementType

func (TableColumnArrayOutput) ElementType() reflect.Type

func (TableColumnArrayOutput) Index

func (TableColumnArrayOutput) ToTableColumnArrayOutput

func (o TableColumnArrayOutput) ToTableColumnArrayOutput() TableColumnArrayOutput

func (TableColumnArrayOutput) ToTableColumnArrayOutputWithContext

func (o TableColumnArrayOutput) ToTableColumnArrayOutputWithContext(ctx context.Context) TableColumnArrayOutput

type TableColumnDefault added in v0.1.3

type TableColumnDefault struct {
	Constant   *string `pulumi:"constant"`
	Expression *string `pulumi:"expression"`
	Sequence   *string `pulumi:"sequence"`
}

type TableColumnDefaultArgs added in v0.1.3

type TableColumnDefaultArgs struct {
	Constant   pulumi.StringPtrInput `pulumi:"constant"`
	Expression pulumi.StringPtrInput `pulumi:"expression"`
	Sequence   pulumi.StringPtrInput `pulumi:"sequence"`
}

func (TableColumnDefaultArgs) ElementType added in v0.1.3

func (TableColumnDefaultArgs) ElementType() reflect.Type

func (TableColumnDefaultArgs) ToTableColumnDefaultOutput added in v0.1.3

func (i TableColumnDefaultArgs) ToTableColumnDefaultOutput() TableColumnDefaultOutput

func (TableColumnDefaultArgs) ToTableColumnDefaultOutputWithContext added in v0.1.3

func (i TableColumnDefaultArgs) ToTableColumnDefaultOutputWithContext(ctx context.Context) TableColumnDefaultOutput

func (TableColumnDefaultArgs) ToTableColumnDefaultPtrOutput added in v0.1.3

func (i TableColumnDefaultArgs) ToTableColumnDefaultPtrOutput() TableColumnDefaultPtrOutput

func (TableColumnDefaultArgs) ToTableColumnDefaultPtrOutputWithContext added in v0.1.3

func (i TableColumnDefaultArgs) ToTableColumnDefaultPtrOutputWithContext(ctx context.Context) TableColumnDefaultPtrOutput

type TableColumnDefaultInput added in v0.1.3

type TableColumnDefaultInput interface {
	pulumi.Input

	ToTableColumnDefaultOutput() TableColumnDefaultOutput
	ToTableColumnDefaultOutputWithContext(context.Context) TableColumnDefaultOutput
}

TableColumnDefaultInput is an input type that accepts TableColumnDefaultArgs and TableColumnDefaultOutput values. You can construct a concrete instance of `TableColumnDefaultInput` via:

TableColumnDefaultArgs{...}

type TableColumnDefaultOutput added in v0.1.3

type TableColumnDefaultOutput struct{ *pulumi.OutputState }

func (TableColumnDefaultOutput) Constant added in v0.1.3

func (TableColumnDefaultOutput) ElementType added in v0.1.3

func (TableColumnDefaultOutput) ElementType() reflect.Type

func (TableColumnDefaultOutput) Expression added in v0.1.3

func (TableColumnDefaultOutput) Sequence added in v0.1.3

func (TableColumnDefaultOutput) ToTableColumnDefaultOutput added in v0.1.3

func (o TableColumnDefaultOutput) ToTableColumnDefaultOutput() TableColumnDefaultOutput

func (TableColumnDefaultOutput) ToTableColumnDefaultOutputWithContext added in v0.1.3

func (o TableColumnDefaultOutput) ToTableColumnDefaultOutputWithContext(ctx context.Context) TableColumnDefaultOutput

func (TableColumnDefaultOutput) ToTableColumnDefaultPtrOutput added in v0.1.3

func (o TableColumnDefaultOutput) ToTableColumnDefaultPtrOutput() TableColumnDefaultPtrOutput

func (TableColumnDefaultOutput) ToTableColumnDefaultPtrOutputWithContext added in v0.1.3

func (o TableColumnDefaultOutput) ToTableColumnDefaultPtrOutputWithContext(ctx context.Context) TableColumnDefaultPtrOutput

type TableColumnDefaultPtrInput added in v0.1.3

type TableColumnDefaultPtrInput interface {
	pulumi.Input

	ToTableColumnDefaultPtrOutput() TableColumnDefaultPtrOutput
	ToTableColumnDefaultPtrOutputWithContext(context.Context) TableColumnDefaultPtrOutput
}

TableColumnDefaultPtrInput is an input type that accepts TableColumnDefaultArgs, TableColumnDefaultPtr and TableColumnDefaultPtrOutput values. You can construct a concrete instance of `TableColumnDefaultPtrInput` via:

        TableColumnDefaultArgs{...}

or:

        nil

func TableColumnDefaultPtr added in v0.1.3

func TableColumnDefaultPtr(v *TableColumnDefaultArgs) TableColumnDefaultPtrInput

type TableColumnDefaultPtrOutput added in v0.1.3

type TableColumnDefaultPtrOutput struct{ *pulumi.OutputState }

func (TableColumnDefaultPtrOutput) Constant added in v0.1.3

func (TableColumnDefaultPtrOutput) Elem added in v0.1.3

func (TableColumnDefaultPtrOutput) ElementType added in v0.1.3

func (TableColumnDefaultPtrOutput) Expression added in v0.1.3

func (TableColumnDefaultPtrOutput) Sequence added in v0.1.3

func (TableColumnDefaultPtrOutput) ToTableColumnDefaultPtrOutput added in v0.1.3

func (o TableColumnDefaultPtrOutput) ToTableColumnDefaultPtrOutput() TableColumnDefaultPtrOutput

func (TableColumnDefaultPtrOutput) ToTableColumnDefaultPtrOutputWithContext added in v0.1.3

func (o TableColumnDefaultPtrOutput) ToTableColumnDefaultPtrOutputWithContext(ctx context.Context) TableColumnDefaultPtrOutput

type TableColumnIdentity added in v0.3.0

type TableColumnIdentity struct {
	StartNum *int `pulumi:"startNum"`
	StepNum  *int `pulumi:"stepNum"`
}

type TableColumnIdentityArgs added in v0.3.0

type TableColumnIdentityArgs struct {
	StartNum pulumi.IntPtrInput `pulumi:"startNum"`
	StepNum  pulumi.IntPtrInput `pulumi:"stepNum"`
}

func (TableColumnIdentityArgs) ElementType added in v0.3.0

func (TableColumnIdentityArgs) ElementType() reflect.Type

func (TableColumnIdentityArgs) ToTableColumnIdentityOutput added in v0.3.0

func (i TableColumnIdentityArgs) ToTableColumnIdentityOutput() TableColumnIdentityOutput

func (TableColumnIdentityArgs) ToTableColumnIdentityOutputWithContext added in v0.3.0

func (i TableColumnIdentityArgs) ToTableColumnIdentityOutputWithContext(ctx context.Context) TableColumnIdentityOutput

func (TableColumnIdentityArgs) ToTableColumnIdentityPtrOutput added in v0.3.0

func (i TableColumnIdentityArgs) ToTableColumnIdentityPtrOutput() TableColumnIdentityPtrOutput

func (TableColumnIdentityArgs) ToTableColumnIdentityPtrOutputWithContext added in v0.3.0

func (i TableColumnIdentityArgs) ToTableColumnIdentityPtrOutputWithContext(ctx context.Context) TableColumnIdentityPtrOutput

type TableColumnIdentityInput added in v0.3.0

type TableColumnIdentityInput interface {
	pulumi.Input

	ToTableColumnIdentityOutput() TableColumnIdentityOutput
	ToTableColumnIdentityOutputWithContext(context.Context) TableColumnIdentityOutput
}

TableColumnIdentityInput is an input type that accepts TableColumnIdentityArgs and TableColumnIdentityOutput values. You can construct a concrete instance of `TableColumnIdentityInput` via:

TableColumnIdentityArgs{...}

type TableColumnIdentityOutput added in v0.3.0

type TableColumnIdentityOutput struct{ *pulumi.OutputState }

func (TableColumnIdentityOutput) ElementType added in v0.3.0

func (TableColumnIdentityOutput) ElementType() reflect.Type

func (TableColumnIdentityOutput) StartNum added in v0.3.0

func (TableColumnIdentityOutput) StepNum added in v0.3.0

func (TableColumnIdentityOutput) ToTableColumnIdentityOutput added in v0.3.0

func (o TableColumnIdentityOutput) ToTableColumnIdentityOutput() TableColumnIdentityOutput

func (TableColumnIdentityOutput) ToTableColumnIdentityOutputWithContext added in v0.3.0

func (o TableColumnIdentityOutput) ToTableColumnIdentityOutputWithContext(ctx context.Context) TableColumnIdentityOutput

func (TableColumnIdentityOutput) ToTableColumnIdentityPtrOutput added in v0.3.0

func (o TableColumnIdentityOutput) ToTableColumnIdentityPtrOutput() TableColumnIdentityPtrOutput

func (TableColumnIdentityOutput) ToTableColumnIdentityPtrOutputWithContext added in v0.3.0

func (o TableColumnIdentityOutput) ToTableColumnIdentityPtrOutputWithContext(ctx context.Context) TableColumnIdentityPtrOutput

type TableColumnIdentityPtrInput added in v0.3.0

type TableColumnIdentityPtrInput interface {
	pulumi.Input

	ToTableColumnIdentityPtrOutput() TableColumnIdentityPtrOutput
	ToTableColumnIdentityPtrOutputWithContext(context.Context) TableColumnIdentityPtrOutput
}

TableColumnIdentityPtrInput is an input type that accepts TableColumnIdentityArgs, TableColumnIdentityPtr and TableColumnIdentityPtrOutput values. You can construct a concrete instance of `TableColumnIdentityPtrInput` via:

        TableColumnIdentityArgs{...}

or:

        nil

func TableColumnIdentityPtr added in v0.3.0

func TableColumnIdentityPtr(v *TableColumnIdentityArgs) TableColumnIdentityPtrInput

type TableColumnIdentityPtrOutput added in v0.3.0

type TableColumnIdentityPtrOutput struct{ *pulumi.OutputState }

func (TableColumnIdentityPtrOutput) Elem added in v0.3.0

func (TableColumnIdentityPtrOutput) ElementType added in v0.3.0

func (TableColumnIdentityPtrOutput) StartNum added in v0.3.0

func (TableColumnIdentityPtrOutput) StepNum added in v0.3.0

func (TableColumnIdentityPtrOutput) ToTableColumnIdentityPtrOutput added in v0.3.0

func (o TableColumnIdentityPtrOutput) ToTableColumnIdentityPtrOutput() TableColumnIdentityPtrOutput

func (TableColumnIdentityPtrOutput) ToTableColumnIdentityPtrOutputWithContext added in v0.3.0

func (o TableColumnIdentityPtrOutput) ToTableColumnIdentityPtrOutputWithContext(ctx context.Context) TableColumnIdentityPtrOutput

type TableColumnInput

type TableColumnInput interface {
	pulumi.Input

	ToTableColumnOutput() TableColumnOutput
	ToTableColumnOutputWithContext(context.Context) TableColumnOutput
}

TableColumnInput is an input type that accepts TableColumnArgs and TableColumnOutput values. You can construct a concrete instance of `TableColumnInput` via:

TableColumnArgs{...}

type TableColumnMaskingPolicyApplication added in v0.25.0

type TableColumnMaskingPolicyApplication struct {
	pulumi.CustomResourceState

	// The column to apply the masking policy to.
	Column pulumi.StringOutput `pulumi:"column"`
	// Fully qualified name (`database.schema.policyname`) of the policy to apply.
	MaskingPolicy pulumi.StringOutput `pulumi:"maskingPolicy"`
	// The fully qualified name (`database.schema.table`) of the table to apply the masking policy to.
	Table pulumi.StringOutput `pulumi:"table"`
}

Applies a masking policy to a table column.

Only one masking policy may be applied per table column, hence only one `TableColumnMaskingPolicyApplication` resources may be present per table column. Using two or more `TableColumnMaskingPolicyApplication` resources for the same table column will result in the last one overriding any previously applied masking policies and unresolvable diffs in pulumi preview.

When using this resource to manage a table column's masking policy make sure to ignore changes to the column's masking policy in the table definition, otherwise the two resources would conflict. See example below.

func GetTableColumnMaskingPolicyApplication added in v0.25.0

func GetTableColumnMaskingPolicyApplication(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *TableColumnMaskingPolicyApplicationState, opts ...pulumi.ResourceOption) (*TableColumnMaskingPolicyApplication, error)

GetTableColumnMaskingPolicyApplication gets an existing TableColumnMaskingPolicyApplication resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewTableColumnMaskingPolicyApplication added in v0.25.0

func NewTableColumnMaskingPolicyApplication(ctx *pulumi.Context,
	name string, args *TableColumnMaskingPolicyApplicationArgs, opts ...pulumi.ResourceOption) (*TableColumnMaskingPolicyApplication, error)

NewTableColumnMaskingPolicyApplication registers a new resource with the given unique name, arguments, and options.

func (*TableColumnMaskingPolicyApplication) ElementType added in v0.25.0

func (*TableColumnMaskingPolicyApplication) ToTableColumnMaskingPolicyApplicationOutput added in v0.25.0

func (i *TableColumnMaskingPolicyApplication) ToTableColumnMaskingPolicyApplicationOutput() TableColumnMaskingPolicyApplicationOutput

func (*TableColumnMaskingPolicyApplication) ToTableColumnMaskingPolicyApplicationOutputWithContext added in v0.25.0

func (i *TableColumnMaskingPolicyApplication) ToTableColumnMaskingPolicyApplicationOutputWithContext(ctx context.Context) TableColumnMaskingPolicyApplicationOutput

type TableColumnMaskingPolicyApplicationArgs added in v0.25.0

type TableColumnMaskingPolicyApplicationArgs struct {
	// The column to apply the masking policy to.
	Column pulumi.StringInput
	// Fully qualified name (`database.schema.policyname`) of the policy to apply.
	MaskingPolicy pulumi.StringInput
	// The fully qualified name (`database.schema.table`) of the table to apply the masking policy to.
	Table pulumi.StringInput
}

The set of arguments for constructing a TableColumnMaskingPolicyApplication resource.

func (TableColumnMaskingPolicyApplicationArgs) ElementType added in v0.25.0

type TableColumnMaskingPolicyApplicationArray added in v0.25.0

type TableColumnMaskingPolicyApplicationArray []TableColumnMaskingPolicyApplicationInput

func (TableColumnMaskingPolicyApplicationArray) ElementType added in v0.25.0

func (TableColumnMaskingPolicyApplicationArray) ToTableColumnMaskingPolicyApplicationArrayOutput added in v0.25.0

func (i TableColumnMaskingPolicyApplicationArray) ToTableColumnMaskingPolicyApplicationArrayOutput() TableColumnMaskingPolicyApplicationArrayOutput

func (TableColumnMaskingPolicyApplicationArray) ToTableColumnMaskingPolicyApplicationArrayOutputWithContext added in v0.25.0

func (i TableColumnMaskingPolicyApplicationArray) ToTableColumnMaskingPolicyApplicationArrayOutputWithContext(ctx context.Context) TableColumnMaskingPolicyApplicationArrayOutput

type TableColumnMaskingPolicyApplicationArrayInput added in v0.25.0

type TableColumnMaskingPolicyApplicationArrayInput interface {
	pulumi.Input

	ToTableColumnMaskingPolicyApplicationArrayOutput() TableColumnMaskingPolicyApplicationArrayOutput
	ToTableColumnMaskingPolicyApplicationArrayOutputWithContext(context.Context) TableColumnMaskingPolicyApplicationArrayOutput
}

TableColumnMaskingPolicyApplicationArrayInput is an input type that accepts TableColumnMaskingPolicyApplicationArray and TableColumnMaskingPolicyApplicationArrayOutput values. You can construct a concrete instance of `TableColumnMaskingPolicyApplicationArrayInput` via:

TableColumnMaskingPolicyApplicationArray{ TableColumnMaskingPolicyApplicationArgs{...} }

type TableColumnMaskingPolicyApplicationArrayOutput added in v0.25.0

type TableColumnMaskingPolicyApplicationArrayOutput struct{ *pulumi.OutputState }

func (TableColumnMaskingPolicyApplicationArrayOutput) ElementType added in v0.25.0

func (TableColumnMaskingPolicyApplicationArrayOutput) Index added in v0.25.0

func (TableColumnMaskingPolicyApplicationArrayOutput) ToTableColumnMaskingPolicyApplicationArrayOutput added in v0.25.0

func (o TableColumnMaskingPolicyApplicationArrayOutput) ToTableColumnMaskingPolicyApplicationArrayOutput() TableColumnMaskingPolicyApplicationArrayOutput

func (TableColumnMaskingPolicyApplicationArrayOutput) ToTableColumnMaskingPolicyApplicationArrayOutputWithContext added in v0.25.0

func (o TableColumnMaskingPolicyApplicationArrayOutput) ToTableColumnMaskingPolicyApplicationArrayOutputWithContext(ctx context.Context) TableColumnMaskingPolicyApplicationArrayOutput

type TableColumnMaskingPolicyApplicationInput added in v0.25.0

type TableColumnMaskingPolicyApplicationInput interface {
	pulumi.Input

	ToTableColumnMaskingPolicyApplicationOutput() TableColumnMaskingPolicyApplicationOutput
	ToTableColumnMaskingPolicyApplicationOutputWithContext(ctx context.Context) TableColumnMaskingPolicyApplicationOutput
}

type TableColumnMaskingPolicyApplicationMap added in v0.25.0

type TableColumnMaskingPolicyApplicationMap map[string]TableColumnMaskingPolicyApplicationInput

func (TableColumnMaskingPolicyApplicationMap) ElementType added in v0.25.0

func (TableColumnMaskingPolicyApplicationMap) ToTableColumnMaskingPolicyApplicationMapOutput added in v0.25.0

func (i TableColumnMaskingPolicyApplicationMap) ToTableColumnMaskingPolicyApplicationMapOutput() TableColumnMaskingPolicyApplicationMapOutput

func (TableColumnMaskingPolicyApplicationMap) ToTableColumnMaskingPolicyApplicationMapOutputWithContext added in v0.25.0

func (i TableColumnMaskingPolicyApplicationMap) ToTableColumnMaskingPolicyApplicationMapOutputWithContext(ctx context.Context) TableColumnMaskingPolicyApplicationMapOutput

type TableColumnMaskingPolicyApplicationMapInput added in v0.25.0

type TableColumnMaskingPolicyApplicationMapInput interface {
	pulumi.Input

	ToTableColumnMaskingPolicyApplicationMapOutput() TableColumnMaskingPolicyApplicationMapOutput
	ToTableColumnMaskingPolicyApplicationMapOutputWithContext(context.Context) TableColumnMaskingPolicyApplicationMapOutput
}

TableColumnMaskingPolicyApplicationMapInput is an input type that accepts TableColumnMaskingPolicyApplicationMap and TableColumnMaskingPolicyApplicationMapOutput values. You can construct a concrete instance of `TableColumnMaskingPolicyApplicationMapInput` via:

TableColumnMaskingPolicyApplicationMap{ "key": TableColumnMaskingPolicyApplicationArgs{...} }

type TableColumnMaskingPolicyApplicationMapOutput added in v0.25.0

type TableColumnMaskingPolicyApplicationMapOutput struct{ *pulumi.OutputState }

func (TableColumnMaskingPolicyApplicationMapOutput) ElementType added in v0.25.0

func (TableColumnMaskingPolicyApplicationMapOutput) MapIndex added in v0.25.0

func (TableColumnMaskingPolicyApplicationMapOutput) ToTableColumnMaskingPolicyApplicationMapOutput added in v0.25.0

func (o TableColumnMaskingPolicyApplicationMapOutput) ToTableColumnMaskingPolicyApplicationMapOutput() TableColumnMaskingPolicyApplicationMapOutput

func (TableColumnMaskingPolicyApplicationMapOutput) ToTableColumnMaskingPolicyApplicationMapOutputWithContext added in v0.25.0

func (o TableColumnMaskingPolicyApplicationMapOutput) ToTableColumnMaskingPolicyApplicationMapOutputWithContext(ctx context.Context) TableColumnMaskingPolicyApplicationMapOutput

type TableColumnMaskingPolicyApplicationOutput added in v0.25.0

type TableColumnMaskingPolicyApplicationOutput struct{ *pulumi.OutputState }

func (TableColumnMaskingPolicyApplicationOutput) Column added in v0.25.0

The column to apply the masking policy to.

func (TableColumnMaskingPolicyApplicationOutput) ElementType added in v0.25.0

func (TableColumnMaskingPolicyApplicationOutput) MaskingPolicy added in v0.25.0

Fully qualified name (`database.schema.policyname`) of the policy to apply.

func (TableColumnMaskingPolicyApplicationOutput) Table added in v0.25.0

The fully qualified name (`database.schema.table`) of the table to apply the masking policy to.

func (TableColumnMaskingPolicyApplicationOutput) ToTableColumnMaskingPolicyApplicationOutput added in v0.25.0

func (o TableColumnMaskingPolicyApplicationOutput) ToTableColumnMaskingPolicyApplicationOutput() TableColumnMaskingPolicyApplicationOutput

func (TableColumnMaskingPolicyApplicationOutput) ToTableColumnMaskingPolicyApplicationOutputWithContext added in v0.25.0

func (o TableColumnMaskingPolicyApplicationOutput) ToTableColumnMaskingPolicyApplicationOutputWithContext(ctx context.Context) TableColumnMaskingPolicyApplicationOutput

type TableColumnMaskingPolicyApplicationState added in v0.25.0

type TableColumnMaskingPolicyApplicationState struct {
	// The column to apply the masking policy to.
	Column pulumi.StringPtrInput
	// Fully qualified name (`database.schema.policyname`) of the policy to apply.
	MaskingPolicy pulumi.StringPtrInput
	// The fully qualified name (`database.schema.table`) of the table to apply the masking policy to.
	Table pulumi.StringPtrInput
}

func (TableColumnMaskingPolicyApplicationState) ElementType added in v0.25.0

type TableColumnOutput

type TableColumnOutput struct{ *pulumi.OutputState }

func (TableColumnOutput) Comment added in v0.1.3

Column comment

func (TableColumnOutput) Default added in v0.1.3

Defines the column default value; note due to limitations of Snowflake's ALTER TABLE ADD/MODIFY COLUMN updates to default will not be applied

func (TableColumnOutput) ElementType

func (TableColumnOutput) ElementType() reflect.Type

func (TableColumnOutput) Identity added in v0.3.0

Defines the identity start/step values for a column. **Note** Identity/default are mutually exclusive.

func (TableColumnOutput) MaskingPolicy added in v0.15.0

func (o TableColumnOutput) MaskingPolicy() pulumi.StringPtrOutput

Masking policy to apply on column

func (TableColumnOutput) Name

Column name

func (TableColumnOutput) Nullable added in v0.1.2

func (o TableColumnOutput) Nullable() pulumi.BoolPtrOutput

Whether this column can contain null values. **Note**: Depending on your Snowflake version, the default value will not suffice if this column is used in a primary key constraint.

func (TableColumnOutput) ToTableColumnOutput

func (o TableColumnOutput) ToTableColumnOutput() TableColumnOutput

func (TableColumnOutput) ToTableColumnOutputWithContext

func (o TableColumnOutput) ToTableColumnOutputWithContext(ctx context.Context) TableColumnOutput

func (TableColumnOutput) Type

Column type, e.g. VARIANT

type TableConstraint added in v0.15.0

type TableConstraint struct {
	pulumi.CustomResourceState

	// Columns to use in constraint key
	Columns pulumi.StringArrayOutput `pulumi:"columns"`
	// Comment for the table constraint
	Comment pulumi.StringPtrOutput `pulumi:"comment"`
	// Whether the constraint is deferrable
	Deferrable pulumi.BoolPtrOutput `pulumi:"deferrable"`
	// Specifies whether the constraint is enabled or disabled. These properties are provided for compatibility with Oracle.
	Enable pulumi.BoolPtrOutput `pulumi:"enable"`
	// Whether the constraint is enforced
	Enforced pulumi.BoolPtrOutput `pulumi:"enforced"`
	// Additional properties when type is set to foreign key. Not applicable for primary/unique keys
	ForeignKeyProperties TableConstraintForeignKeyPropertiesPtrOutput `pulumi:"foreignKeyProperties"`
	// Whether the constraint is initially deferred or immediate
	Initially pulumi.StringPtrOutput `pulumi:"initially"`
	// Name of constraint
	Name pulumi.StringOutput `pulumi:"name"`
	// Specifies whether a constraint in NOVALIDATE mode is taken into account during query rewrite.
	Rely pulumi.BoolPtrOutput `pulumi:"rely"`
	// Idenfifier for table to create constraint on. Must be of the form Note: format must follow: "\n\n"."\n\n"."\n\n" or "\n\n.\n\n.\n\n" or "\n\n|\n\n.\n\n" (snowflake*table.my*table.id)
	TableId pulumi.StringOutput `pulumi:"tableId"`
	// Type of constraint, one of 'UNIQUE', 'PRIMARY KEY', 'FOREIGN KEY', or 'NOT NULL'
	Type pulumi.StringOutput `pulumi:"type"`
	// Specifies whether to validate existing data on the table when a constraint is created. Only used in conjunction with the ENABLE property.
	Validate pulumi.BoolPtrOutput `pulumi:"validate"`
}

## Example Usage

```go 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 {
		database, err := snowflake.NewDatabase(ctx, "database", nil)
		if err != nil {
			return err
		}
		schema, err := snowflake.NewSchema(ctx, "schema", &snowflake.SchemaArgs{
			Database: database.Name,
		})
		if err != nil {
			return err
		}
		table, err := snowflake.NewTable(ctx, "table", &snowflake.TableArgs{
			Database: database.Name,
			Schema:   schema.Name,
			Columns: snowflake.TableColumnArray{
				&snowflake.TableColumnArgs{
					Name:     pulumi.String("col1"),
					Type:     pulumi.String("text"),
					Nullable: pulumi.Bool(false),
				},
				&snowflake.TableColumnArgs{
					Name:     pulumi.String("col2"),
					Type:     pulumi.String("text"),
					Nullable: pulumi.Bool(false),
				},
				&snowflake.TableColumnArgs{
					Name:     pulumi.String("col3"),
					Type:     pulumi.String("text"),
					Nullable: pulumi.Bool(false),
				},
			},
		})
		if err != nil {
			return err
		}
		fkT, err := snowflake.NewTable(ctx, "fkT", &snowflake.TableArgs{
			Database: database.Name,
			Schema:   schema.Name,
			Columns: snowflake.TableColumnArray{
				&snowflake.TableColumnArgs{
					Name:     pulumi.String("fk_col1"),
					Type:     pulumi.String("text"),
					Nullable: pulumi.Bool(false),
				},
				&snowflake.TableColumnArgs{
					Name:     pulumi.String("fk_col2"),
					Type:     pulumi.String("text"),
					Nullable: pulumi.Bool(false),
				},
			},
		})
		if err != nil {
			return err
		}
		_, err = snowflake.NewTableConstraint(ctx, "primaryKey", &snowflake.TableConstraintArgs{
			Type:    pulumi.String("PRIMARY KEY"),
			TableId: table.ID(),
			Columns: pulumi.StringArray{
				pulumi.String("col1"),
			},
			Comment: pulumi.String("hello world"),
		})
		if err != nil {
			return err
		}
		_, err = snowflake.NewTableConstraint(ctx, "foreignKey", &snowflake.TableConstraintArgs{
			Type:    pulumi.String("FOREIGN KEY"),
			TableId: table.ID(),
			Columns: pulumi.StringArray{
				pulumi.String("col2"),
			},
			ForeignKeyProperties: &snowflake.TableConstraintForeignKeyPropertiesArgs{
				References: &snowflake.TableConstraintForeignKeyPropertiesReferencesArgs{
					TableId: fkT.ID(),
					Columns: pulumi.StringArray{
						pulumi.String("fk_col1"),
					},
				},
			},
			Enforced:   pulumi.Bool(false),
			Deferrable: pulumi.Bool(false),
			Initially:  pulumi.String("IMMEDIATE"),
			Comment:    pulumi.String("hello fk"),
		})
		if err != nil {
			return err
		}
		_, err = snowflake.NewTableConstraint(ctx, "unique", &snowflake.TableConstraintArgs{
			Type:    pulumi.String("UNIQUE"),
			TableId: table.ID(),
			Columns: pulumi.StringArray{
				pulumi.String("col3"),
			},
			Comment: pulumi.String("hello unique"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

```sh

$ pulumi import snowflake:index/tableConstraint:TableConstraint example 'myconstraintfk❄️FOREIGN KEY❄️test|test|table'

```

func GetTableConstraint added in v0.15.0

func GetTableConstraint(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *TableConstraintState, opts ...pulumi.ResourceOption) (*TableConstraint, error)

GetTableConstraint gets an existing TableConstraint resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewTableConstraint added in v0.15.0

func NewTableConstraint(ctx *pulumi.Context,
	name string, args *TableConstraintArgs, opts ...pulumi.ResourceOption) (*TableConstraint, error)

NewTableConstraint registers a new resource with the given unique name, arguments, and options.

func (*TableConstraint) ElementType added in v0.15.0

func (*TableConstraint) ElementType() reflect.Type

func (*TableConstraint) ToTableConstraintOutput added in v0.15.0

func (i *TableConstraint) ToTableConstraintOutput() TableConstraintOutput

func (*TableConstraint) ToTableConstraintOutputWithContext added in v0.15.0

func (i *TableConstraint) ToTableConstraintOutputWithContext(ctx context.Context) TableConstraintOutput

type TableConstraintArgs added in v0.15.0

type TableConstraintArgs struct {
	// Columns to use in constraint key
	Columns pulumi.StringArrayInput
	// Comment for the table constraint
	Comment pulumi.StringPtrInput
	// Whether the constraint is deferrable
	Deferrable pulumi.BoolPtrInput
	// Specifies whether the constraint is enabled or disabled. These properties are provided for compatibility with Oracle.
	Enable pulumi.BoolPtrInput
	// Whether the constraint is enforced
	Enforced pulumi.BoolPtrInput
	// Additional properties when type is set to foreign key. Not applicable for primary/unique keys
	ForeignKeyProperties TableConstraintForeignKeyPropertiesPtrInput
	// Whether the constraint is initially deferred or immediate
	Initially pulumi.StringPtrInput
	// Name of constraint
	Name pulumi.StringPtrInput
	// Specifies whether a constraint in NOVALIDATE mode is taken into account during query rewrite.
	Rely pulumi.BoolPtrInput
	// Idenfifier for table to create constraint on. Must be of the form Note: format must follow: "\n\n"."\n\n"."\n\n" or "\n\n.\n\n.\n\n" or "\n\n|\n\n.\n\n" (snowflake*table.my*table.id)
	TableId pulumi.StringInput
	// Type of constraint, one of 'UNIQUE', 'PRIMARY KEY', 'FOREIGN KEY', or 'NOT NULL'
	Type pulumi.StringInput
	// Specifies whether to validate existing data on the table when a constraint is created. Only used in conjunction with the ENABLE property.
	Validate pulumi.BoolPtrInput
}

The set of arguments for constructing a TableConstraint resource.

func (TableConstraintArgs) ElementType added in v0.15.0

func (TableConstraintArgs) ElementType() reflect.Type

type TableConstraintArray added in v0.15.0

type TableConstraintArray []TableConstraintInput

func (TableConstraintArray) ElementType added in v0.15.0

func (TableConstraintArray) ElementType() reflect.Type

func (TableConstraintArray) ToTableConstraintArrayOutput added in v0.15.0

func (i TableConstraintArray) ToTableConstraintArrayOutput() TableConstraintArrayOutput

func (TableConstraintArray) ToTableConstraintArrayOutputWithContext added in v0.15.0

func (i TableConstraintArray) ToTableConstraintArrayOutputWithContext(ctx context.Context) TableConstraintArrayOutput

type TableConstraintArrayInput added in v0.15.0

type TableConstraintArrayInput interface {
	pulumi.Input

	ToTableConstraintArrayOutput() TableConstraintArrayOutput
	ToTableConstraintArrayOutputWithContext(context.Context) TableConstraintArrayOutput
}

TableConstraintArrayInput is an input type that accepts TableConstraintArray and TableConstraintArrayOutput values. You can construct a concrete instance of `TableConstraintArrayInput` via:

TableConstraintArray{ TableConstraintArgs{...} }

type TableConstraintArrayOutput added in v0.15.0

type TableConstraintArrayOutput struct{ *pulumi.OutputState }

func (TableConstraintArrayOutput) ElementType added in v0.15.0

func (TableConstraintArrayOutput) ElementType() reflect.Type

func (TableConstraintArrayOutput) Index added in v0.15.0

func (TableConstraintArrayOutput) ToTableConstraintArrayOutput added in v0.15.0

func (o TableConstraintArrayOutput) ToTableConstraintArrayOutput() TableConstraintArrayOutput

func (TableConstraintArrayOutput) ToTableConstraintArrayOutputWithContext added in v0.15.0

func (o TableConstraintArrayOutput) ToTableConstraintArrayOutputWithContext(ctx context.Context) TableConstraintArrayOutput

type TableConstraintForeignKeyProperties added in v0.15.0

type TableConstraintForeignKeyProperties struct {
	// The match type for the foreign key. Not applicable for primary/unique keys
	Match *string `pulumi:"match"`
	// Specifies the action performed when the primary/unique key for the foreign key is deleted. Not applicable for primary/unique keys
	OnDelete *string `pulumi:"onDelete"`
	// Specifies the action performed when the primary/unique key for the foreign key is updated. Not applicable for primary/unique keys
	OnUpdate *string `pulumi:"onUpdate"`
	// The table and columns that the foreign key references. Not applicable for primary/unique keys
	References *TableConstraintForeignKeyPropertiesReferences `pulumi:"references"`
}

type TableConstraintForeignKeyPropertiesArgs added in v0.15.0

type TableConstraintForeignKeyPropertiesArgs struct {
	// The match type for the foreign key. Not applicable for primary/unique keys
	Match pulumi.StringPtrInput `pulumi:"match"`
	// Specifies the action performed when the primary/unique key for the foreign key is deleted. Not applicable for primary/unique keys
	OnDelete pulumi.StringPtrInput `pulumi:"onDelete"`
	// Specifies the action performed when the primary/unique key for the foreign key is updated. Not applicable for primary/unique keys
	OnUpdate pulumi.StringPtrInput `pulumi:"onUpdate"`
	// The table and columns that the foreign key references. Not applicable for primary/unique keys
	References TableConstraintForeignKeyPropertiesReferencesPtrInput `pulumi:"references"`
}

func (TableConstraintForeignKeyPropertiesArgs) ElementType added in v0.15.0

func (TableConstraintForeignKeyPropertiesArgs) ToTableConstraintForeignKeyPropertiesOutput added in v0.15.0

func (i TableConstraintForeignKeyPropertiesArgs) ToTableConstraintForeignKeyPropertiesOutput() TableConstraintForeignKeyPropertiesOutput

func (TableConstraintForeignKeyPropertiesArgs) ToTableConstraintForeignKeyPropertiesOutputWithContext added in v0.15.0

func (i TableConstraintForeignKeyPropertiesArgs) ToTableConstraintForeignKeyPropertiesOutputWithContext(ctx context.Context) TableConstraintForeignKeyPropertiesOutput

func (TableConstraintForeignKeyPropertiesArgs) ToTableConstraintForeignKeyPropertiesPtrOutput added in v0.15.0

func (i TableConstraintForeignKeyPropertiesArgs) ToTableConstraintForeignKeyPropertiesPtrOutput() TableConstraintForeignKeyPropertiesPtrOutput

func (TableConstraintForeignKeyPropertiesArgs) ToTableConstraintForeignKeyPropertiesPtrOutputWithContext added in v0.15.0

func (i TableConstraintForeignKeyPropertiesArgs) ToTableConstraintForeignKeyPropertiesPtrOutputWithContext(ctx context.Context) TableConstraintForeignKeyPropertiesPtrOutput

type TableConstraintForeignKeyPropertiesInput added in v0.15.0

type TableConstraintForeignKeyPropertiesInput interface {
	pulumi.Input

	ToTableConstraintForeignKeyPropertiesOutput() TableConstraintForeignKeyPropertiesOutput
	ToTableConstraintForeignKeyPropertiesOutputWithContext(context.Context) TableConstraintForeignKeyPropertiesOutput
}

TableConstraintForeignKeyPropertiesInput is an input type that accepts TableConstraintForeignKeyPropertiesArgs and TableConstraintForeignKeyPropertiesOutput values. You can construct a concrete instance of `TableConstraintForeignKeyPropertiesInput` via:

TableConstraintForeignKeyPropertiesArgs{...}

type TableConstraintForeignKeyPropertiesOutput added in v0.15.0

type TableConstraintForeignKeyPropertiesOutput struct{ *pulumi.OutputState }

func (TableConstraintForeignKeyPropertiesOutput) ElementType added in v0.15.0

func (TableConstraintForeignKeyPropertiesOutput) Match added in v0.15.0

The match type for the foreign key. Not applicable for primary/unique keys

func (TableConstraintForeignKeyPropertiesOutput) OnDelete added in v0.15.0

Specifies the action performed when the primary/unique key for the foreign key is deleted. Not applicable for primary/unique keys

func (TableConstraintForeignKeyPropertiesOutput) OnUpdate added in v0.15.0

Specifies the action performed when the primary/unique key for the foreign key is updated. Not applicable for primary/unique keys

func (TableConstraintForeignKeyPropertiesOutput) References added in v0.15.0

The table and columns that the foreign key references. Not applicable for primary/unique keys

func (TableConstraintForeignKeyPropertiesOutput) ToTableConstraintForeignKeyPropertiesOutput added in v0.15.0

func (o TableConstraintForeignKeyPropertiesOutput) ToTableConstraintForeignKeyPropertiesOutput() TableConstraintForeignKeyPropertiesOutput

func (TableConstraintForeignKeyPropertiesOutput) ToTableConstraintForeignKeyPropertiesOutputWithContext added in v0.15.0

func (o TableConstraintForeignKeyPropertiesOutput) ToTableConstraintForeignKeyPropertiesOutputWithContext(ctx context.Context) TableConstraintForeignKeyPropertiesOutput

func (TableConstraintForeignKeyPropertiesOutput) ToTableConstraintForeignKeyPropertiesPtrOutput added in v0.15.0

func (o TableConstraintForeignKeyPropertiesOutput) ToTableConstraintForeignKeyPropertiesPtrOutput() TableConstraintForeignKeyPropertiesPtrOutput

func (TableConstraintForeignKeyPropertiesOutput) ToTableConstraintForeignKeyPropertiesPtrOutputWithContext added in v0.15.0

func (o TableConstraintForeignKeyPropertiesOutput) ToTableConstraintForeignKeyPropertiesPtrOutputWithContext(ctx context.Context) TableConstraintForeignKeyPropertiesPtrOutput

type TableConstraintForeignKeyPropertiesPtrInput added in v0.15.0

type TableConstraintForeignKeyPropertiesPtrInput interface {
	pulumi.Input

	ToTableConstraintForeignKeyPropertiesPtrOutput() TableConstraintForeignKeyPropertiesPtrOutput
	ToTableConstraintForeignKeyPropertiesPtrOutputWithContext(context.Context) TableConstraintForeignKeyPropertiesPtrOutput
}

TableConstraintForeignKeyPropertiesPtrInput is an input type that accepts TableConstraintForeignKeyPropertiesArgs, TableConstraintForeignKeyPropertiesPtr and TableConstraintForeignKeyPropertiesPtrOutput values. You can construct a concrete instance of `TableConstraintForeignKeyPropertiesPtrInput` via:

        TableConstraintForeignKeyPropertiesArgs{...}

or:

        nil

type TableConstraintForeignKeyPropertiesPtrOutput added in v0.15.0

type TableConstraintForeignKeyPropertiesPtrOutput struct{ *pulumi.OutputState }

func (TableConstraintForeignKeyPropertiesPtrOutput) Elem added in v0.15.0

func (TableConstraintForeignKeyPropertiesPtrOutput) ElementType added in v0.15.0

func (TableConstraintForeignKeyPropertiesPtrOutput) Match added in v0.15.0

The match type for the foreign key. Not applicable for primary/unique keys

func (TableConstraintForeignKeyPropertiesPtrOutput) OnDelete added in v0.15.0

Specifies the action performed when the primary/unique key for the foreign key is deleted. Not applicable for primary/unique keys

func (TableConstraintForeignKeyPropertiesPtrOutput) OnUpdate added in v0.15.0

Specifies the action performed when the primary/unique key for the foreign key is updated. Not applicable for primary/unique keys

func (TableConstraintForeignKeyPropertiesPtrOutput) References added in v0.15.0

The table and columns that the foreign key references. Not applicable for primary/unique keys

func (TableConstraintForeignKeyPropertiesPtrOutput) ToTableConstraintForeignKeyPropertiesPtrOutput added in v0.15.0

func (o TableConstraintForeignKeyPropertiesPtrOutput) ToTableConstraintForeignKeyPropertiesPtrOutput() TableConstraintForeignKeyPropertiesPtrOutput

func (TableConstraintForeignKeyPropertiesPtrOutput) ToTableConstraintForeignKeyPropertiesPtrOutputWithContext added in v0.15.0

func (o TableConstraintForeignKeyPropertiesPtrOutput) ToTableConstraintForeignKeyPropertiesPtrOutputWithContext(ctx context.Context) TableConstraintForeignKeyPropertiesPtrOutput

type TableConstraintForeignKeyPropertiesReferences added in v0.15.0

type TableConstraintForeignKeyPropertiesReferences struct {
	// Columns to use in constraint key
	Columns []string `pulumi:"columns"`
	// Idenfifier for table to create constraint on. Must be of the form Note: format must follow: "\n\n"."\n\n"."\n\n" or "\n\n.\n\n.\n\n" or "\n\n|\n\n.\n\n" (snowflake*table.my*table.id)
	TableId string `pulumi:"tableId"`
}

type TableConstraintForeignKeyPropertiesReferencesArgs added in v0.15.0

type TableConstraintForeignKeyPropertiesReferencesArgs struct {
	// Columns to use in constraint key
	Columns pulumi.StringArrayInput `pulumi:"columns"`
	// Idenfifier for table to create constraint on. Must be of the form Note: format must follow: "\n\n"."\n\n"."\n\n" or "\n\n.\n\n.\n\n" or "\n\n|\n\n.\n\n" (snowflake*table.my*table.id)
	TableId pulumi.StringInput `pulumi:"tableId"`
}

func (TableConstraintForeignKeyPropertiesReferencesArgs) ElementType added in v0.15.0

func (TableConstraintForeignKeyPropertiesReferencesArgs) ToTableConstraintForeignKeyPropertiesReferencesOutput added in v0.15.0

func (i TableConstraintForeignKeyPropertiesReferencesArgs) ToTableConstraintForeignKeyPropertiesReferencesOutput() TableConstraintForeignKeyPropertiesReferencesOutput

func (TableConstraintForeignKeyPropertiesReferencesArgs) ToTableConstraintForeignKeyPropertiesReferencesOutputWithContext added in v0.15.0

func (i TableConstraintForeignKeyPropertiesReferencesArgs) ToTableConstraintForeignKeyPropertiesReferencesOutputWithContext(ctx context.Context) TableConstraintForeignKeyPropertiesReferencesOutput

func (TableConstraintForeignKeyPropertiesReferencesArgs) ToTableConstraintForeignKeyPropertiesReferencesPtrOutput added in v0.15.0

func (i TableConstraintForeignKeyPropertiesReferencesArgs) ToTableConstraintForeignKeyPropertiesReferencesPtrOutput() TableConstraintForeignKeyPropertiesReferencesPtrOutput

func (TableConstraintForeignKeyPropertiesReferencesArgs) ToTableConstraintForeignKeyPropertiesReferencesPtrOutputWithContext added in v0.15.0

func (i TableConstraintForeignKeyPropertiesReferencesArgs) ToTableConstraintForeignKeyPropertiesReferencesPtrOutputWithContext(ctx context.Context) TableConstraintForeignKeyPropertiesReferencesPtrOutput

type TableConstraintForeignKeyPropertiesReferencesInput added in v0.15.0

type TableConstraintForeignKeyPropertiesReferencesInput interface {
	pulumi.Input

	ToTableConstraintForeignKeyPropertiesReferencesOutput() TableConstraintForeignKeyPropertiesReferencesOutput
	ToTableConstraintForeignKeyPropertiesReferencesOutputWithContext(context.Context) TableConstraintForeignKeyPropertiesReferencesOutput
}

TableConstraintForeignKeyPropertiesReferencesInput is an input type that accepts TableConstraintForeignKeyPropertiesReferencesArgs and TableConstraintForeignKeyPropertiesReferencesOutput values. You can construct a concrete instance of `TableConstraintForeignKeyPropertiesReferencesInput` via:

TableConstraintForeignKeyPropertiesReferencesArgs{...}

type TableConstraintForeignKeyPropertiesReferencesOutput added in v0.15.0

type TableConstraintForeignKeyPropertiesReferencesOutput struct{ *pulumi.OutputState }

func (TableConstraintForeignKeyPropertiesReferencesOutput) Columns added in v0.15.0

Columns to use in constraint key

func (TableConstraintForeignKeyPropertiesReferencesOutput) ElementType added in v0.15.0

func (TableConstraintForeignKeyPropertiesReferencesOutput) TableId added in v0.15.0

Idenfifier for table to create constraint on. Must be of the form Note: format must follow: "\n\n"."\n\n"."\n\n" or "\n\n.\n\n.\n\n" or "\n\n|\n\n.\n\n" (snowflake*table.my*table.id)

func (TableConstraintForeignKeyPropertiesReferencesOutput) ToTableConstraintForeignKeyPropertiesReferencesOutput added in v0.15.0

func (o TableConstraintForeignKeyPropertiesReferencesOutput) ToTableConstraintForeignKeyPropertiesReferencesOutput() TableConstraintForeignKeyPropertiesReferencesOutput

func (TableConstraintForeignKeyPropertiesReferencesOutput) ToTableConstraintForeignKeyPropertiesReferencesOutputWithContext added in v0.15.0

func (o TableConstraintForeignKeyPropertiesReferencesOutput) ToTableConstraintForeignKeyPropertiesReferencesOutputWithContext(ctx context.Context) TableConstraintForeignKeyPropertiesReferencesOutput

func (TableConstraintForeignKeyPropertiesReferencesOutput) ToTableConstraintForeignKeyPropertiesReferencesPtrOutput added in v0.15.0

func (o TableConstraintForeignKeyPropertiesReferencesOutput) ToTableConstraintForeignKeyPropertiesReferencesPtrOutput() TableConstraintForeignKeyPropertiesReferencesPtrOutput

func (TableConstraintForeignKeyPropertiesReferencesOutput) ToTableConstraintForeignKeyPropertiesReferencesPtrOutputWithContext added in v0.15.0

func (o TableConstraintForeignKeyPropertiesReferencesOutput) ToTableConstraintForeignKeyPropertiesReferencesPtrOutputWithContext(ctx context.Context) TableConstraintForeignKeyPropertiesReferencesPtrOutput

type TableConstraintForeignKeyPropertiesReferencesPtrInput added in v0.15.0

type TableConstraintForeignKeyPropertiesReferencesPtrInput interface {
	pulumi.Input

	ToTableConstraintForeignKeyPropertiesReferencesPtrOutput() TableConstraintForeignKeyPropertiesReferencesPtrOutput
	ToTableConstraintForeignKeyPropertiesReferencesPtrOutputWithContext(context.Context) TableConstraintForeignKeyPropertiesReferencesPtrOutput
}

TableConstraintForeignKeyPropertiesReferencesPtrInput is an input type that accepts TableConstraintForeignKeyPropertiesReferencesArgs, TableConstraintForeignKeyPropertiesReferencesPtr and TableConstraintForeignKeyPropertiesReferencesPtrOutput values. You can construct a concrete instance of `TableConstraintForeignKeyPropertiesReferencesPtrInput` via:

        TableConstraintForeignKeyPropertiesReferencesArgs{...}

or:

        nil

type TableConstraintForeignKeyPropertiesReferencesPtrOutput added in v0.15.0

type TableConstraintForeignKeyPropertiesReferencesPtrOutput struct{ *pulumi.OutputState }

func (TableConstraintForeignKeyPropertiesReferencesPtrOutput) Columns added in v0.15.0

Columns to use in constraint key

func (TableConstraintForeignKeyPropertiesReferencesPtrOutput) Elem added in v0.15.0

func (TableConstraintForeignKeyPropertiesReferencesPtrOutput) ElementType added in v0.15.0

func (TableConstraintForeignKeyPropertiesReferencesPtrOutput) TableId added in v0.15.0

Idenfifier for table to create constraint on. Must be of the form Note: format must follow: "\n\n"."\n\n"."\n\n" or "\n\n.\n\n.\n\n" or "\n\n|\n\n.\n\n" (snowflake*table.my*table.id)

func (TableConstraintForeignKeyPropertiesReferencesPtrOutput) ToTableConstraintForeignKeyPropertiesReferencesPtrOutput added in v0.15.0

func (TableConstraintForeignKeyPropertiesReferencesPtrOutput) ToTableConstraintForeignKeyPropertiesReferencesPtrOutputWithContext added in v0.15.0

func (o TableConstraintForeignKeyPropertiesReferencesPtrOutput) ToTableConstraintForeignKeyPropertiesReferencesPtrOutputWithContext(ctx context.Context) TableConstraintForeignKeyPropertiesReferencesPtrOutput

type TableConstraintInput added in v0.15.0

type TableConstraintInput interface {
	pulumi.Input

	ToTableConstraintOutput() TableConstraintOutput
	ToTableConstraintOutputWithContext(ctx context.Context) TableConstraintOutput
}

type TableConstraintMap added in v0.15.0

type TableConstraintMap map[string]TableConstraintInput

func (TableConstraintMap) ElementType added in v0.15.0

func (TableConstraintMap) ElementType() reflect.Type

func (TableConstraintMap) ToTableConstraintMapOutput added in v0.15.0

func (i TableConstraintMap) ToTableConstraintMapOutput() TableConstraintMapOutput

func (TableConstraintMap) ToTableConstraintMapOutputWithContext added in v0.15.0

func (i TableConstraintMap) ToTableConstraintMapOutputWithContext(ctx context.Context) TableConstraintMapOutput

type TableConstraintMapInput added in v0.15.0

type TableConstraintMapInput interface {
	pulumi.Input

	ToTableConstraintMapOutput() TableConstraintMapOutput
	ToTableConstraintMapOutputWithContext(context.Context) TableConstraintMapOutput
}

TableConstraintMapInput is an input type that accepts TableConstraintMap and TableConstraintMapOutput values. You can construct a concrete instance of `TableConstraintMapInput` via:

TableConstraintMap{ "key": TableConstraintArgs{...} }

type TableConstraintMapOutput added in v0.15.0

type TableConstraintMapOutput struct{ *pulumi.OutputState }

func (TableConstraintMapOutput) ElementType added in v0.15.0

func (TableConstraintMapOutput) ElementType() reflect.Type

func (TableConstraintMapOutput) MapIndex added in v0.15.0

func (TableConstraintMapOutput) ToTableConstraintMapOutput added in v0.15.0

func (o TableConstraintMapOutput) ToTableConstraintMapOutput() TableConstraintMapOutput

func (TableConstraintMapOutput) ToTableConstraintMapOutputWithContext added in v0.15.0

func (o TableConstraintMapOutput) ToTableConstraintMapOutputWithContext(ctx context.Context) TableConstraintMapOutput

type TableConstraintOutput added in v0.15.0

type TableConstraintOutput struct{ *pulumi.OutputState }

func (TableConstraintOutput) Columns added in v0.15.0

Columns to use in constraint key

func (TableConstraintOutput) Comment added in v0.15.0

Comment for the table constraint

func (TableConstraintOutput) Deferrable added in v0.15.0

Whether the constraint is deferrable

func (TableConstraintOutput) ElementType added in v0.15.0

func (TableConstraintOutput) ElementType() reflect.Type

func (TableConstraintOutput) Enable added in v0.15.0

Specifies whether the constraint is enabled or disabled. These properties are provided for compatibility with Oracle.

func (TableConstraintOutput) Enforced added in v0.15.0

Whether the constraint is enforced

func (TableConstraintOutput) ForeignKeyProperties added in v0.15.0

Additional properties when type is set to foreign key. Not applicable for primary/unique keys

func (TableConstraintOutput) Initially added in v0.15.0

Whether the constraint is initially deferred or immediate

func (TableConstraintOutput) Name added in v0.15.0

Name of constraint

func (TableConstraintOutput) Rely added in v0.15.0

Specifies whether a constraint in NOVALIDATE mode is taken into account during query rewrite.

func (TableConstraintOutput) TableId added in v0.15.0

Idenfifier for table to create constraint on. Must be of the form Note: format must follow: "\n\n"."\n\n"."\n\n" or "\n\n.\n\n.\n\n" or "\n\n|\n\n.\n\n" (snowflake*table.my*table.id)

func (TableConstraintOutput) ToTableConstraintOutput added in v0.15.0

func (o TableConstraintOutput) ToTableConstraintOutput() TableConstraintOutput

func (TableConstraintOutput) ToTableConstraintOutputWithContext added in v0.15.0

func (o TableConstraintOutput) ToTableConstraintOutputWithContext(ctx context.Context) TableConstraintOutput

func (TableConstraintOutput) Type added in v0.15.0

Type of constraint, one of 'UNIQUE', 'PRIMARY KEY', 'FOREIGN KEY', or 'NOT NULL'

func (TableConstraintOutput) Validate added in v0.15.0

Specifies whether to validate existing data on the table when a constraint is created. Only used in conjunction with the ENABLE property.

type TableConstraintState added in v0.15.0

type TableConstraintState struct {
	// Columns to use in constraint key
	Columns pulumi.StringArrayInput
	// Comment for the table constraint
	Comment pulumi.StringPtrInput
	// Whether the constraint is deferrable
	Deferrable pulumi.BoolPtrInput
	// Specifies whether the constraint is enabled or disabled. These properties are provided for compatibility with Oracle.
	Enable pulumi.BoolPtrInput
	// Whether the constraint is enforced
	Enforced pulumi.BoolPtrInput
	// Additional properties when type is set to foreign key. Not applicable for primary/unique keys
	ForeignKeyProperties TableConstraintForeignKeyPropertiesPtrInput
	// Whether the constraint is initially deferred or immediate
	Initially pulumi.StringPtrInput
	// Name of constraint
	Name pulumi.StringPtrInput
	// Specifies whether a constraint in NOVALIDATE mode is taken into account during query rewrite.
	Rely pulumi.BoolPtrInput
	// Idenfifier for table to create constraint on. Must be of the form Note: format must follow: "\n\n"."\n\n"."\n\n" or "\n\n.\n\n.\n\n" or "\n\n|\n\n.\n\n" (snowflake*table.my*table.id)
	TableId pulumi.StringPtrInput
	// Type of constraint, one of 'UNIQUE', 'PRIMARY KEY', 'FOREIGN KEY', or 'NOT NULL'
	Type pulumi.StringPtrInput
	// Specifies whether to validate existing data on the table when a constraint is created. Only used in conjunction with the ENABLE property.
	Validate pulumi.BoolPtrInput
}

func (TableConstraintState) ElementType added in v0.15.0

func (TableConstraintState) ElementType() reflect.Type

type TableGrant

type TableGrant struct {
	pulumi.CustomResourceState

	// The name of the database containing the current or future tables on which to grant privileges.
	DatabaseName pulumi.StringOutput `pulumi:"databaseName"`
	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrOutput `pulumi:"enableMultipleGrants"`
	// When this is set to true and a schema*name is provided, apply this grant on all tables in the given schema. When this is true and no schema*name is provided apply this grant on all tables in the given database. The table*name and shares fields must be unset in order to use on*all. Cannot be used together with on_future.
	OnAll pulumi.BoolPtrOutput `pulumi:"onAll"`
	// When this is set to true and a schema*name is provided, apply this grant on all future tables in the given schema. When this is true and no schema*name is provided apply this grant on all future tables in the given database. The table*name and shares fields must be unset in order to use on*future. Cannot be used together with on_all.
	OnFuture pulumi.BoolPtrOutput `pulumi:"onFuture"`
	// The privilege to grant on the current or future table. To grant all privileges, use the value `ALL PRIVILEGES`.
	Privilege pulumi.StringPtrOutput `pulumi:"privilege"`
	// The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
	RevertOwnershipToRoleName pulumi.StringPtrOutput `pulumi:"revertOwnershipToRoleName"`
	// Grants privilege to these roles.
	Roles pulumi.StringArrayOutput `pulumi:"roles"`
	// The name of the schema containing the current or future tables on which to grant privileges.
	SchemaName pulumi.StringPtrOutput `pulumi:"schemaName"`
	// Grants privilege to these shares (only valid if on*future or on*all are unset).
	Shares pulumi.StringArrayOutput `pulumi:"shares"`
	// The name of the table on which to grant privileges immediately (only valid if on*future or on*all are unset).
	TableName pulumi.StringPtrOutput `pulumi:"tableName"`
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrOutput `pulumi:"withGrantOption"`
}

## Example Usage

```go 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.NewTableGrant(ctx, "grant", &snowflake.TableGrantArgs{
			DatabaseName: pulumi.String("database"),
			OnFuture:     pulumi.Bool(false),
			Privilege:    pulumi.String("SELECT"),
			Roles: pulumi.StringArray{
				pulumi.String("role1"),
			},
			SchemaName: pulumi.String("schema"),
			Shares: pulumi.StringArray{
				pulumi.String("share1"),
			},
			TableName:       pulumi.String("table"),
			WithGrantOption: pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

format is database_name|schema_name|table_name|privilege|with_grant_option|on_future|on_all|roles|shares

```sh

$ pulumi import snowflake:index/tableGrant:TableGrant example "MY_DATABASE|MY_SCHEMA|MY_TABLE|USAGE|false|false|false|role1,role2|share1,share2"

```

func GetTableGrant

func GetTableGrant(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *TableGrantState, opts ...pulumi.ResourceOption) (*TableGrant, error)

GetTableGrant gets an existing TableGrant resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewTableGrant

func NewTableGrant(ctx *pulumi.Context,
	name string, args *TableGrantArgs, opts ...pulumi.ResourceOption) (*TableGrant, error)

NewTableGrant registers a new resource with the given unique name, arguments, and options.

func (*TableGrant) ElementType

func (*TableGrant) ElementType() reflect.Type

func (*TableGrant) ToTableGrantOutput

func (i *TableGrant) ToTableGrantOutput() TableGrantOutput

func (*TableGrant) ToTableGrantOutputWithContext

func (i *TableGrant) ToTableGrantOutputWithContext(ctx context.Context) TableGrantOutput

type TableGrantArgs

type TableGrantArgs struct {
	// The name of the database containing the current or future tables on which to grant privileges.
	DatabaseName pulumi.StringInput
	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrInput
	// When this is set to true and a schema*name is provided, apply this grant on all tables in the given schema. When this is true and no schema*name is provided apply this grant on all tables in the given database. The table*name and shares fields must be unset in order to use on*all. Cannot be used together with on_future.
	OnAll pulumi.BoolPtrInput
	// When this is set to true and a schema*name is provided, apply this grant on all future tables in the given schema. When this is true and no schema*name is provided apply this grant on all future tables in the given database. The table*name and shares fields must be unset in order to use on*future. Cannot be used together with on_all.
	OnFuture pulumi.BoolPtrInput
	// The privilege to grant on the current or future table. To grant all privileges, use the value `ALL PRIVILEGES`.
	Privilege pulumi.StringPtrInput
	// The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
	RevertOwnershipToRoleName pulumi.StringPtrInput
	// Grants privilege to these roles.
	Roles pulumi.StringArrayInput
	// The name of the schema containing the current or future tables on which to grant privileges.
	SchemaName pulumi.StringPtrInput
	// Grants privilege to these shares (only valid if on*future or on*all are unset).
	Shares pulumi.StringArrayInput
	// The name of the table on which to grant privileges immediately (only valid if on*future or on*all are unset).
	TableName pulumi.StringPtrInput
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrInput
}

The set of arguments for constructing a TableGrant resource.

func (TableGrantArgs) ElementType

func (TableGrantArgs) ElementType() reflect.Type

type TableGrantArray

type TableGrantArray []TableGrantInput

func (TableGrantArray) ElementType

func (TableGrantArray) ElementType() reflect.Type

func (TableGrantArray) ToTableGrantArrayOutput

func (i TableGrantArray) ToTableGrantArrayOutput() TableGrantArrayOutput

func (TableGrantArray) ToTableGrantArrayOutputWithContext

func (i TableGrantArray) ToTableGrantArrayOutputWithContext(ctx context.Context) TableGrantArrayOutput

type TableGrantArrayInput

type TableGrantArrayInput interface {
	pulumi.Input

	ToTableGrantArrayOutput() TableGrantArrayOutput
	ToTableGrantArrayOutputWithContext(context.Context) TableGrantArrayOutput
}

TableGrantArrayInput is an input type that accepts TableGrantArray and TableGrantArrayOutput values. You can construct a concrete instance of `TableGrantArrayInput` via:

TableGrantArray{ TableGrantArgs{...} }

type TableGrantArrayOutput

type TableGrantArrayOutput struct{ *pulumi.OutputState }

func (TableGrantArrayOutput) ElementType

func (TableGrantArrayOutput) ElementType() reflect.Type

func (TableGrantArrayOutput) Index

func (TableGrantArrayOutput) ToTableGrantArrayOutput

func (o TableGrantArrayOutput) ToTableGrantArrayOutput() TableGrantArrayOutput

func (TableGrantArrayOutput) ToTableGrantArrayOutputWithContext

func (o TableGrantArrayOutput) ToTableGrantArrayOutputWithContext(ctx context.Context) TableGrantArrayOutput

type TableGrantInput

type TableGrantInput interface {
	pulumi.Input

	ToTableGrantOutput() TableGrantOutput
	ToTableGrantOutputWithContext(ctx context.Context) TableGrantOutput
}

type TableGrantMap

type TableGrantMap map[string]TableGrantInput

func (TableGrantMap) ElementType

func (TableGrantMap) ElementType() reflect.Type

func (TableGrantMap) ToTableGrantMapOutput

func (i TableGrantMap) ToTableGrantMapOutput() TableGrantMapOutput

func (TableGrantMap) ToTableGrantMapOutputWithContext

func (i TableGrantMap) ToTableGrantMapOutputWithContext(ctx context.Context) TableGrantMapOutput

type TableGrantMapInput

type TableGrantMapInput interface {
	pulumi.Input

	ToTableGrantMapOutput() TableGrantMapOutput
	ToTableGrantMapOutputWithContext(context.Context) TableGrantMapOutput
}

TableGrantMapInput is an input type that accepts TableGrantMap and TableGrantMapOutput values. You can construct a concrete instance of `TableGrantMapInput` via:

TableGrantMap{ "key": TableGrantArgs{...} }

type TableGrantMapOutput

type TableGrantMapOutput struct{ *pulumi.OutputState }

func (TableGrantMapOutput) ElementType

func (TableGrantMapOutput) ElementType() reflect.Type

func (TableGrantMapOutput) MapIndex

func (TableGrantMapOutput) ToTableGrantMapOutput

func (o TableGrantMapOutput) ToTableGrantMapOutput() TableGrantMapOutput

func (TableGrantMapOutput) ToTableGrantMapOutputWithContext

func (o TableGrantMapOutput) ToTableGrantMapOutputWithContext(ctx context.Context) TableGrantMapOutput

type TableGrantOutput

type TableGrantOutput struct{ *pulumi.OutputState }

func (TableGrantOutput) DatabaseName added in v0.9.0

func (o TableGrantOutput) DatabaseName() pulumi.StringOutput

The name of the database containing the current or future tables on which to grant privileges.

func (TableGrantOutput) ElementType

func (TableGrantOutput) ElementType() reflect.Type

func (TableGrantOutput) EnableMultipleGrants added in v0.9.0

func (o TableGrantOutput) EnableMultipleGrants() pulumi.BoolPtrOutput

When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke grants applied to roles and objects outside Terraform.

func (TableGrantOutput) OnAll added in v0.21.0

When this is set to true and a schema*name is provided, apply this grant on all tables in the given schema. When this is true and no schema*name is provided apply this grant on all tables in the given database. The table*name and shares fields must be unset in order to use on*all. Cannot be used together with on_future.

func (TableGrantOutput) OnFuture added in v0.9.0

func (o TableGrantOutput) OnFuture() pulumi.BoolPtrOutput

When this is set to true and a schema*name is provided, apply this grant on all future tables in the given schema. When this is true and no schema*name is provided apply this grant on all future tables in the given database. The table*name and shares fields must be unset in order to use on*future. Cannot be used together with on_all.

func (TableGrantOutput) Privilege added in v0.9.0

func (o TableGrantOutput) Privilege() pulumi.StringPtrOutput

The privilege to grant on the current or future table. To grant all privileges, use the value `ALL PRIVILEGES`.

func (TableGrantOutput) RevertOwnershipToRoleName added in v0.26.0

func (o TableGrantOutput) RevertOwnershipToRoleName() pulumi.StringPtrOutput

The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`

func (TableGrantOutput) Roles added in v0.9.0

Grants privilege to these roles.

func (TableGrantOutput) SchemaName added in v0.9.0

func (o TableGrantOutput) SchemaName() pulumi.StringPtrOutput

The name of the schema containing the current or future tables on which to grant privileges.

func (TableGrantOutput) Shares added in v0.9.0

Grants privilege to these shares (only valid if on*future or on*all are unset).

func (TableGrantOutput) TableName added in v0.9.0

func (o TableGrantOutput) TableName() pulumi.StringPtrOutput

The name of the table on which to grant privileges immediately (only valid if on*future or on*all are unset).

func (TableGrantOutput) ToTableGrantOutput

func (o TableGrantOutput) ToTableGrantOutput() TableGrantOutput

func (TableGrantOutput) ToTableGrantOutputWithContext

func (o TableGrantOutput) ToTableGrantOutputWithContext(ctx context.Context) TableGrantOutput

func (TableGrantOutput) WithGrantOption added in v0.9.0

func (o TableGrantOutput) WithGrantOption() pulumi.BoolPtrOutput

When this is set to true, allows the recipient role to grant the privileges to other roles.

type TableGrantState

type TableGrantState struct {
	// The name of the database containing the current or future tables on which to grant privileges.
	DatabaseName pulumi.StringPtrInput
	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrInput
	// When this is set to true and a schema*name is provided, apply this grant on all tables in the given schema. When this is true and no schema*name is provided apply this grant on all tables in the given database. The table*name and shares fields must be unset in order to use on*all. Cannot be used together with on_future.
	OnAll pulumi.BoolPtrInput
	// When this is set to true and a schema*name is provided, apply this grant on all future tables in the given schema. When this is true and no schema*name is provided apply this grant on all future tables in the given database. The table*name and shares fields must be unset in order to use on*future. Cannot be used together with on_all.
	OnFuture pulumi.BoolPtrInput
	// The privilege to grant on the current or future table. To grant all privileges, use the value `ALL PRIVILEGES`.
	Privilege pulumi.StringPtrInput
	// The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
	RevertOwnershipToRoleName pulumi.StringPtrInput
	// Grants privilege to these roles.
	Roles pulumi.StringArrayInput
	// The name of the schema containing the current or future tables on which to grant privileges.
	SchemaName pulumi.StringPtrInput
	// Grants privilege to these shares (only valid if on*future or on*all are unset).
	Shares pulumi.StringArrayInput
	// The name of the table on which to grant privileges immediately (only valid if on*future or on*all are unset).
	TableName pulumi.StringPtrInput
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrInput
}

func (TableGrantState) ElementType

func (TableGrantState) ElementType() reflect.Type

type TableInput

type TableInput interface {
	pulumi.Input

	ToTableOutput() TableOutput
	ToTableOutputWithContext(ctx context.Context) TableOutput
}

type TableMap

type TableMap map[string]TableInput

func (TableMap) ElementType

func (TableMap) ElementType() reflect.Type

func (TableMap) ToTableMapOutput

func (i TableMap) ToTableMapOutput() TableMapOutput

func (TableMap) ToTableMapOutputWithContext

func (i TableMap) ToTableMapOutputWithContext(ctx context.Context) TableMapOutput

type TableMapInput

type TableMapInput interface {
	pulumi.Input

	ToTableMapOutput() TableMapOutput
	ToTableMapOutputWithContext(context.Context) TableMapOutput
}

TableMapInput is an input type that accepts TableMap and TableMapOutput values. You can construct a concrete instance of `TableMapInput` via:

TableMap{ "key": TableArgs{...} }

type TableMapOutput

type TableMapOutput struct{ *pulumi.OutputState }

func (TableMapOutput) ElementType

func (TableMapOutput) ElementType() reflect.Type

func (TableMapOutput) MapIndex

func (TableMapOutput) ToTableMapOutput

func (o TableMapOutput) ToTableMapOutput() TableMapOutput

func (TableMapOutput) ToTableMapOutputWithContext

func (o TableMapOutput) ToTableMapOutputWithContext(ctx context.Context) TableMapOutput

type TableOutput

type TableOutput struct{ *pulumi.OutputState }

func (TableOutput) ChangeTracking added in v0.9.0

func (o TableOutput) ChangeTracking() pulumi.BoolPtrOutput

Specifies whether to enable change tracking on the table. Default false.

func (TableOutput) ClusterBies added in v0.9.0

func (o TableOutput) ClusterBies() pulumi.StringArrayOutput

A list of one or more table columns/expressions to be used as clustering key(s) for the table

func (TableOutput) Columns added in v0.9.0

func (o TableOutput) Columns() TableColumnArrayOutput

Definitions of a column to create in the table. Minimum one required.

func (TableOutput) Comment added in v0.9.0

func (o TableOutput) Comment() pulumi.StringPtrOutput

Specifies a comment for the table.

func (TableOutput) DataRetentionDays deprecated added in v0.9.0

func (o TableOutput) DataRetentionDays() pulumi.IntPtrOutput

Specifies the retention period for the table so that Time Travel actions (SELECT, CLONE, UNDROP) can be performed on historical data in the table. Default value is 1, if you wish to inherit the parent schema setting then pass in the schema attribute to this argument.

Deprecated: Use snowflake_object_parameter instead

func (TableOutput) Database added in v0.9.0

func (o TableOutput) Database() pulumi.StringOutput

The database in which to create the table.

func (TableOutput) ElementType

func (TableOutput) ElementType() reflect.Type

func (TableOutput) Name added in v0.9.0

func (o TableOutput) Name() pulumi.StringOutput

Specifies the identifier for the table; must be unique for the database and schema in which the table is created.

func (TableOutput) Owner added in v0.9.0

func (o TableOutput) Owner() pulumi.StringOutput

Name of the role that owns the table.

func (TableOutput) PrimaryKey deprecated added in v0.9.0

func (o TableOutput) PrimaryKey() TablePrimaryKeyPtrOutput

Definitions of primary key constraint to create on table

Deprecated: Use snowflake_table_constraint instead

func (TableOutput) QualifiedName added in v0.25.0

func (o TableOutput) QualifiedName() pulumi.StringOutput

Qualified name of the table.

func (TableOutput) Schema added in v0.9.0

func (o TableOutput) Schema() pulumi.StringOutput

The schema in which to create the table.

func (TableOutput) Tags deprecated added in v0.9.0

Definitions of a tag to associate with the resource.

Deprecated: Use the 'snowflake_tag_association' resource instead.

func (TableOutput) ToTableOutput

func (o TableOutput) ToTableOutput() TableOutput

func (TableOutput) ToTableOutputWithContext

func (o TableOutput) ToTableOutputWithContext(ctx context.Context) TableOutput

type TablePrimaryKey added in v0.1.2

type TablePrimaryKey struct {
	// Columns to use in primary key
	Keys []string `pulumi:"keys"`
	// Name of constraint
	Name *string `pulumi:"name"`
}

type TablePrimaryKeyArgs added in v0.1.2

type TablePrimaryKeyArgs struct {
	// Columns to use in primary key
	Keys pulumi.StringArrayInput `pulumi:"keys"`
	// Name of constraint
	Name pulumi.StringPtrInput `pulumi:"name"`
}

func (TablePrimaryKeyArgs) ElementType added in v0.1.2

func (TablePrimaryKeyArgs) ElementType() reflect.Type

func (TablePrimaryKeyArgs) ToTablePrimaryKeyOutput added in v0.1.2

func (i TablePrimaryKeyArgs) ToTablePrimaryKeyOutput() TablePrimaryKeyOutput

func (TablePrimaryKeyArgs) ToTablePrimaryKeyOutputWithContext added in v0.1.2

func (i TablePrimaryKeyArgs) ToTablePrimaryKeyOutputWithContext(ctx context.Context) TablePrimaryKeyOutput

func (TablePrimaryKeyArgs) ToTablePrimaryKeyPtrOutput added in v0.1.2

func (i TablePrimaryKeyArgs) ToTablePrimaryKeyPtrOutput() TablePrimaryKeyPtrOutput

func (TablePrimaryKeyArgs) ToTablePrimaryKeyPtrOutputWithContext added in v0.1.2

func (i TablePrimaryKeyArgs) ToTablePrimaryKeyPtrOutputWithContext(ctx context.Context) TablePrimaryKeyPtrOutput

type TablePrimaryKeyInput added in v0.1.2

type TablePrimaryKeyInput interface {
	pulumi.Input

	ToTablePrimaryKeyOutput() TablePrimaryKeyOutput
	ToTablePrimaryKeyOutputWithContext(context.Context) TablePrimaryKeyOutput
}

TablePrimaryKeyInput is an input type that accepts TablePrimaryKeyArgs and TablePrimaryKeyOutput values. You can construct a concrete instance of `TablePrimaryKeyInput` via:

TablePrimaryKeyArgs{...}

type TablePrimaryKeyOutput added in v0.1.2

type TablePrimaryKeyOutput struct{ *pulumi.OutputState }

func (TablePrimaryKeyOutput) ElementType added in v0.1.2

func (TablePrimaryKeyOutput) ElementType() reflect.Type

func (TablePrimaryKeyOutput) Keys added in v0.1.2

Columns to use in primary key

func (TablePrimaryKeyOutput) Name added in v0.1.2

Name of constraint

func (TablePrimaryKeyOutput) ToTablePrimaryKeyOutput added in v0.1.2

func (o TablePrimaryKeyOutput) ToTablePrimaryKeyOutput() TablePrimaryKeyOutput

func (TablePrimaryKeyOutput) ToTablePrimaryKeyOutputWithContext added in v0.1.2

func (o TablePrimaryKeyOutput) ToTablePrimaryKeyOutputWithContext(ctx context.Context) TablePrimaryKeyOutput

func (TablePrimaryKeyOutput) ToTablePrimaryKeyPtrOutput added in v0.1.2

func (o TablePrimaryKeyOutput) ToTablePrimaryKeyPtrOutput() TablePrimaryKeyPtrOutput

func (TablePrimaryKeyOutput) ToTablePrimaryKeyPtrOutputWithContext added in v0.1.2

func (o TablePrimaryKeyOutput) ToTablePrimaryKeyPtrOutputWithContext(ctx context.Context) TablePrimaryKeyPtrOutput

type TablePrimaryKeyPtrInput added in v0.1.2

type TablePrimaryKeyPtrInput interface {
	pulumi.Input

	ToTablePrimaryKeyPtrOutput() TablePrimaryKeyPtrOutput
	ToTablePrimaryKeyPtrOutputWithContext(context.Context) TablePrimaryKeyPtrOutput
}

TablePrimaryKeyPtrInput is an input type that accepts TablePrimaryKeyArgs, TablePrimaryKeyPtr and TablePrimaryKeyPtrOutput values. You can construct a concrete instance of `TablePrimaryKeyPtrInput` via:

        TablePrimaryKeyArgs{...}

or:

        nil

func TablePrimaryKeyPtr added in v0.1.2

func TablePrimaryKeyPtr(v *TablePrimaryKeyArgs) TablePrimaryKeyPtrInput

type TablePrimaryKeyPtrOutput added in v0.1.2

type TablePrimaryKeyPtrOutput struct{ *pulumi.OutputState }

func (TablePrimaryKeyPtrOutput) Elem added in v0.1.2

func (TablePrimaryKeyPtrOutput) ElementType added in v0.1.2

func (TablePrimaryKeyPtrOutput) ElementType() reflect.Type

func (TablePrimaryKeyPtrOutput) Keys added in v0.1.2

Columns to use in primary key

func (TablePrimaryKeyPtrOutput) Name added in v0.1.2

Name of constraint

func (TablePrimaryKeyPtrOutput) ToTablePrimaryKeyPtrOutput added in v0.1.2

func (o TablePrimaryKeyPtrOutput) ToTablePrimaryKeyPtrOutput() TablePrimaryKeyPtrOutput

func (TablePrimaryKeyPtrOutput) ToTablePrimaryKeyPtrOutputWithContext added in v0.1.2

func (o TablePrimaryKeyPtrOutput) ToTablePrimaryKeyPtrOutputWithContext(ctx context.Context) TablePrimaryKeyPtrOutput

type TableState

type TableState struct {
	// Specifies whether to enable change tracking on the table. Default false.
	ChangeTracking pulumi.BoolPtrInput
	// A list of one or more table columns/expressions to be used as clustering key(s) for the table
	ClusterBies pulumi.StringArrayInput
	// Definitions of a column to create in the table. Minimum one required.
	Columns TableColumnArrayInput
	// Specifies a comment for the table.
	Comment pulumi.StringPtrInput
	// Specifies the retention period for the table so that Time Travel actions (SELECT, CLONE, UNDROP) can be performed on historical data in the table. Default value is 1, if you wish to inherit the parent schema setting then pass in the schema attribute to this argument.
	//
	// Deprecated: Use snowflake_object_parameter instead
	DataRetentionDays pulumi.IntPtrInput
	// The database in which to create the table.
	Database pulumi.StringPtrInput
	// Specifies the identifier for the table; must be unique for the database and schema in which the table is created.
	Name pulumi.StringPtrInput
	// Name of the role that owns the table.
	Owner pulumi.StringPtrInput
	// Definitions of primary key constraint to create on table
	//
	// Deprecated: Use snowflake_table_constraint instead
	PrimaryKey TablePrimaryKeyPtrInput
	// Qualified name of the table.
	QualifiedName pulumi.StringPtrInput
	// The schema in which to create the table.
	Schema pulumi.StringPtrInput
	// Definitions of a tag to associate with the resource.
	//
	// Deprecated: Use the 'snowflake_tag_association' resource instead.
	Tags TableTagArrayInput
}

func (TableState) ElementType

func (TableState) ElementType() reflect.Type

type TableTag added in v0.3.0

type TableTag struct {
	// Name of the database that the tag was created in.
	Database *string `pulumi:"database"`
	// Tag name, e.g. department.
	Name string `pulumi:"name"`
	// Name of the schema that the tag was created in.
	Schema *string `pulumi:"schema"`
	// Tag value, e.g. marketing_info.
	Value string `pulumi:"value"`
}

type TableTagArgs added in v0.3.0

type TableTagArgs struct {
	// Name of the database that the tag was created in.
	Database pulumi.StringPtrInput `pulumi:"database"`
	// Tag name, e.g. department.
	Name pulumi.StringInput `pulumi:"name"`
	// Name of the schema that the tag was created in.
	Schema pulumi.StringPtrInput `pulumi:"schema"`
	// Tag value, e.g. marketing_info.
	Value pulumi.StringInput `pulumi:"value"`
}

func (TableTagArgs) ElementType added in v0.3.0

func (TableTagArgs) ElementType() reflect.Type

func (TableTagArgs) ToTableTagOutput added in v0.3.0

func (i TableTagArgs) ToTableTagOutput() TableTagOutput

func (TableTagArgs) ToTableTagOutputWithContext added in v0.3.0

func (i TableTagArgs) ToTableTagOutputWithContext(ctx context.Context) TableTagOutput

type TableTagArray added in v0.3.0

type TableTagArray []TableTagInput

func (TableTagArray) ElementType added in v0.3.0

func (TableTagArray) ElementType() reflect.Type

func (TableTagArray) ToTableTagArrayOutput added in v0.3.0

func (i TableTagArray) ToTableTagArrayOutput() TableTagArrayOutput

func (TableTagArray) ToTableTagArrayOutputWithContext added in v0.3.0

func (i TableTagArray) ToTableTagArrayOutputWithContext(ctx context.Context) TableTagArrayOutput

type TableTagArrayInput added in v0.3.0

type TableTagArrayInput interface {
	pulumi.Input

	ToTableTagArrayOutput() TableTagArrayOutput
	ToTableTagArrayOutputWithContext(context.Context) TableTagArrayOutput
}

TableTagArrayInput is an input type that accepts TableTagArray and TableTagArrayOutput values. You can construct a concrete instance of `TableTagArrayInput` via:

TableTagArray{ TableTagArgs{...} }

type TableTagArrayOutput added in v0.3.0

type TableTagArrayOutput struct{ *pulumi.OutputState }

func (TableTagArrayOutput) ElementType added in v0.3.0

func (TableTagArrayOutput) ElementType() reflect.Type

func (TableTagArrayOutput) Index added in v0.3.0

func (TableTagArrayOutput) ToTableTagArrayOutput added in v0.3.0

func (o TableTagArrayOutput) ToTableTagArrayOutput() TableTagArrayOutput

func (TableTagArrayOutput) ToTableTagArrayOutputWithContext added in v0.3.0

func (o TableTagArrayOutput) ToTableTagArrayOutputWithContext(ctx context.Context) TableTagArrayOutput

type TableTagInput added in v0.3.0

type TableTagInput interface {
	pulumi.Input

	ToTableTagOutput() TableTagOutput
	ToTableTagOutputWithContext(context.Context) TableTagOutput
}

TableTagInput is an input type that accepts TableTagArgs and TableTagOutput values. You can construct a concrete instance of `TableTagInput` via:

TableTagArgs{...}

type TableTagOutput added in v0.3.0

type TableTagOutput struct{ *pulumi.OutputState }

func (TableTagOutput) Database added in v0.3.0

func (o TableTagOutput) Database() pulumi.StringPtrOutput

Name of the database that the tag was created in.

func (TableTagOutput) ElementType added in v0.3.0

func (TableTagOutput) ElementType() reflect.Type

func (TableTagOutput) Name added in v0.3.0

Tag name, e.g. department.

func (TableTagOutput) Schema added in v0.3.0

Name of the schema that the tag was created in.

func (TableTagOutput) ToTableTagOutput added in v0.3.0

func (o TableTagOutput) ToTableTagOutput() TableTagOutput

func (TableTagOutput) ToTableTagOutputWithContext added in v0.3.0

func (o TableTagOutput) ToTableTagOutputWithContext(ctx context.Context) TableTagOutput

func (TableTagOutput) Value added in v0.3.0

Tag value, e.g. marketing_info.

type Tag added in v0.3.0

type Tag struct {
	pulumi.CustomResourceState

	// List of allowed values for the tag.
	AllowedValues pulumi.StringArrayOutput `pulumi:"allowedValues"`
	// Specifies a comment for the tag.
	Comment pulumi.StringPtrOutput `pulumi:"comment"`
	// The database in which to create the tag.
	Database pulumi.StringOutput `pulumi:"database"`
	// Specifies the identifier for the tag; must be unique for the database in which the tag is created.
	Name pulumi.StringOutput `pulumi:"name"`
	// The schema in which to create the tag.
	Schema pulumi.StringOutput `pulumi:"schema"`
}

## Example Usage

```go 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 {
		database, err := snowflake.NewDatabase(ctx, "database", nil)
		if err != nil {
			return err
		}
		schema, err := snowflake.NewSchema(ctx, "schema", &snowflake.SchemaArgs{
			Database: database.Name,
		})
		if err != nil {
			return err
		}
		_, err = snowflake.NewTag(ctx, "tag", &snowflake.TagArgs{
			Database: database.Name,
			Schema:   schema.Name,
			AllowedValues: pulumi.StringArray{
				pulumi.String("finance"),
				pulumi.String("engineering"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

format is database name | schema name | tag name

```sh

$ pulumi import snowflake:index/tag:Tag example 'dbName|schemaName|tagName'

```

func GetTag added in v0.3.0

func GetTag(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *TagState, opts ...pulumi.ResourceOption) (*Tag, error)

GetTag gets an existing Tag resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewTag added in v0.3.0

func NewTag(ctx *pulumi.Context,
	name string, args *TagArgs, opts ...pulumi.ResourceOption) (*Tag, error)

NewTag registers a new resource with the given unique name, arguments, and options.

func (*Tag) ElementType added in v0.3.0

func (*Tag) ElementType() reflect.Type

func (*Tag) ToTagOutput added in v0.3.0

func (i *Tag) ToTagOutput() TagOutput

func (*Tag) ToTagOutputWithContext added in v0.3.0

func (i *Tag) ToTagOutputWithContext(ctx context.Context) TagOutput

type TagArgs added in v0.3.0

type TagArgs struct {
	// List of allowed values for the tag.
	AllowedValues pulumi.StringArrayInput
	// Specifies a comment for the tag.
	Comment pulumi.StringPtrInput
	// The database in which to create the tag.
	Database pulumi.StringInput
	// Specifies the identifier for the tag; must be unique for the database in which the tag is created.
	Name pulumi.StringPtrInput
	// The schema in which to create the tag.
	Schema pulumi.StringInput
}

The set of arguments for constructing a Tag resource.

func (TagArgs) ElementType added in v0.3.0

func (TagArgs) ElementType() reflect.Type

type TagArray added in v0.3.0

type TagArray []TagInput

func (TagArray) ElementType added in v0.3.0

func (TagArray) ElementType() reflect.Type

func (TagArray) ToTagArrayOutput added in v0.3.0

func (i TagArray) ToTagArrayOutput() TagArrayOutput

func (TagArray) ToTagArrayOutputWithContext added in v0.3.0

func (i TagArray) ToTagArrayOutputWithContext(ctx context.Context) TagArrayOutput

type TagArrayInput added in v0.3.0

type TagArrayInput interface {
	pulumi.Input

	ToTagArrayOutput() TagArrayOutput
	ToTagArrayOutputWithContext(context.Context) TagArrayOutput
}

TagArrayInput is an input type that accepts TagArray and TagArrayOutput values. You can construct a concrete instance of `TagArrayInput` via:

TagArray{ TagArgs{...} }

type TagArrayOutput added in v0.3.0

type TagArrayOutput struct{ *pulumi.OutputState }

func (TagArrayOutput) ElementType added in v0.3.0

func (TagArrayOutput) ElementType() reflect.Type

func (TagArrayOutput) Index added in v0.3.0

func (TagArrayOutput) ToTagArrayOutput added in v0.3.0

func (o TagArrayOutput) ToTagArrayOutput() TagArrayOutput

func (TagArrayOutput) ToTagArrayOutputWithContext added in v0.3.0

func (o TagArrayOutput) ToTagArrayOutputWithContext(ctx context.Context) TagArrayOutput

type TagAssociation added in v0.14.0

type TagAssociation struct {
	pulumi.CustomResourceState

	// Specifies the object identifier for the tag association.
	ObjectIdentifiers TagAssociationObjectIdentifierArrayOutput `pulumi:"objectIdentifiers"`
	// Specifies the object identifier for the tag association.
	//
	// Deprecated: Use `object_identifier` instead
	ObjectName pulumi.StringPtrOutput `pulumi:"objectName"`
	// Specifies the type of object to add a tag to. ex: 'ACCOUNT', 'COLUMN', 'DATABASE', etc. For more information: https://docs.snowflake.com/en/user-guide/object-tagging.html#supported-objects
	ObjectType pulumi.StringOutput `pulumi:"objectType"`
	// If true, skips validation of the tag association.
	SkipValidation pulumi.BoolPtrOutput `pulumi:"skipValidation"`
	// Specifies the identifier for the tag. Note: format must follow: "databaseName"."schemaName"."tagName" or "databaseName.schemaName.tagName" or "databaseName|schemaName.tagName" (snowflake_tag.tag.id)
	TagId pulumi.StringOutput `pulumi:"tagId"`
	// Specifies the value of the tag, (e.g. 'finance' or 'engineering')
	TagValue pulumi.StringOutput `pulumi:"tagValue"`
}

## Example Usage

```go 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 {
		database, err := snowflake.NewDatabase(ctx, "database", nil)
		if err != nil {
			return err
		}
		schema, err := snowflake.NewSchema(ctx, "schema", &snowflake.SchemaArgs{
			Database: database.Name,
		})
		if err != nil {
			return err
		}
		tag, err := snowflake.NewTag(ctx, "tag", &snowflake.TagArgs{
			Database: database.Name,
			Schema:   schema.Name,
			AllowedValues: pulumi.StringArray{
				pulumi.String("finance"),
				pulumi.String("engineering"),
			},
		})
		if err != nil {
			return err
		}
		_, err = snowflake.NewTagAssociation(ctx, "dbAssociation", &snowflake.TagAssociationArgs{
			ObjectIdentifiers: snowflake.TagAssociationObjectIdentifierArray{
				&snowflake.TagAssociationObjectIdentifierArgs{
					Name: database.Name,
				},
			},
			ObjectType: pulumi.String("DATABASE"),
			TagId:      tag.ID(),
			TagValue:   pulumi.String("finance"),
		})
		if err != nil {
			return err
		}
		test, err := snowflake.NewTable(ctx, "test", &snowflake.TableArgs{
			Database: pulumi.Any(snowflake_database.Test.Name),
			Schema:   pulumi.Any(snowflake_schema.Test.Name),
			Comment:  pulumi.String("Terraform example table"),
			Columns: snowflake.TableColumnArray{
				&snowflake.TableColumnArgs{
					Name: pulumi.String("column1"),
					Type: pulumi.String("VARIANT"),
				},
				&snowflake.TableColumnArgs{
					Name: pulumi.String("column2"),
					Type: pulumi.String("VARCHAR(16)"),
				},
			},
		})
		if err != nil {
			return err
		}
		_, err = snowflake.NewTagAssociation(ctx, "tableAssociation", &snowflake.TagAssociationArgs{
			ObjectIdentifiers: snowflake.TagAssociationObjectIdentifierArray{
				&snowflake.TagAssociationObjectIdentifierArgs{
					Name:     test.Name,
					Database: pulumi.Any(snowflake_database.Test.Name),
					Schema:   pulumi.Any(snowflake_schema.Test.Name),
				},
			},
			ObjectType: pulumi.String("TABLE"),
			TagId:      pulumi.Any(snowflake_tag.Test.Id),
			TagValue:   pulumi.String("engineering"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

format is dbName.schemaName.tagName or dbName.schemaName.tagName

```sh

$ pulumi import snowflake:index/tagAssociation:TagAssociation example 'dbName.schemaName.tagName'

```

func GetTagAssociation added in v0.14.0

func GetTagAssociation(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *TagAssociationState, opts ...pulumi.ResourceOption) (*TagAssociation, error)

GetTagAssociation gets an existing TagAssociation resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewTagAssociation added in v0.14.0

func NewTagAssociation(ctx *pulumi.Context,
	name string, args *TagAssociationArgs, opts ...pulumi.ResourceOption) (*TagAssociation, error)

NewTagAssociation registers a new resource with the given unique name, arguments, and options.

func (*TagAssociation) ElementType added in v0.14.0

func (*TagAssociation) ElementType() reflect.Type

func (*TagAssociation) ToTagAssociationOutput added in v0.14.0

func (i *TagAssociation) ToTagAssociationOutput() TagAssociationOutput

func (*TagAssociation) ToTagAssociationOutputWithContext added in v0.14.0

func (i *TagAssociation) ToTagAssociationOutputWithContext(ctx context.Context) TagAssociationOutput

type TagAssociationArgs added in v0.14.0

type TagAssociationArgs struct {
	// Specifies the object identifier for the tag association.
	ObjectIdentifiers TagAssociationObjectIdentifierArrayInput
	// Specifies the object identifier for the tag association.
	//
	// Deprecated: Use `object_identifier` instead
	ObjectName pulumi.StringPtrInput
	// Specifies the type of object to add a tag to. ex: 'ACCOUNT', 'COLUMN', 'DATABASE', etc. For more information: https://docs.snowflake.com/en/user-guide/object-tagging.html#supported-objects
	ObjectType pulumi.StringInput
	// If true, skips validation of the tag association.
	SkipValidation pulumi.BoolPtrInput
	// Specifies the identifier for the tag. Note: format must follow: "databaseName"."schemaName"."tagName" or "databaseName.schemaName.tagName" or "databaseName|schemaName.tagName" (snowflake_tag.tag.id)
	TagId pulumi.StringInput
	// Specifies the value of the tag, (e.g. 'finance' or 'engineering')
	TagValue pulumi.StringInput
}

The set of arguments for constructing a TagAssociation resource.

func (TagAssociationArgs) ElementType added in v0.14.0

func (TagAssociationArgs) ElementType() reflect.Type

type TagAssociationArray added in v0.14.0

type TagAssociationArray []TagAssociationInput

func (TagAssociationArray) ElementType added in v0.14.0

func (TagAssociationArray) ElementType() reflect.Type

func (TagAssociationArray) ToTagAssociationArrayOutput added in v0.14.0

func (i TagAssociationArray) ToTagAssociationArrayOutput() TagAssociationArrayOutput

func (TagAssociationArray) ToTagAssociationArrayOutputWithContext added in v0.14.0

func (i TagAssociationArray) ToTagAssociationArrayOutputWithContext(ctx context.Context) TagAssociationArrayOutput

type TagAssociationArrayInput added in v0.14.0

type TagAssociationArrayInput interface {
	pulumi.Input

	ToTagAssociationArrayOutput() TagAssociationArrayOutput
	ToTagAssociationArrayOutputWithContext(context.Context) TagAssociationArrayOutput
}

TagAssociationArrayInput is an input type that accepts TagAssociationArray and TagAssociationArrayOutput values. You can construct a concrete instance of `TagAssociationArrayInput` via:

TagAssociationArray{ TagAssociationArgs{...} }

type TagAssociationArrayOutput added in v0.14.0

type TagAssociationArrayOutput struct{ *pulumi.OutputState }

func (TagAssociationArrayOutput) ElementType added in v0.14.0

func (TagAssociationArrayOutput) ElementType() reflect.Type

func (TagAssociationArrayOutput) Index added in v0.14.0

func (TagAssociationArrayOutput) ToTagAssociationArrayOutput added in v0.14.0

func (o TagAssociationArrayOutput) ToTagAssociationArrayOutput() TagAssociationArrayOutput

func (TagAssociationArrayOutput) ToTagAssociationArrayOutputWithContext added in v0.14.0

func (o TagAssociationArrayOutput) ToTagAssociationArrayOutputWithContext(ctx context.Context) TagAssociationArrayOutput

type TagAssociationInput added in v0.14.0

type TagAssociationInput interface {
	pulumi.Input

	ToTagAssociationOutput() TagAssociationOutput
	ToTagAssociationOutputWithContext(ctx context.Context) TagAssociationOutput
}

type TagAssociationMap added in v0.14.0

type TagAssociationMap map[string]TagAssociationInput

func (TagAssociationMap) ElementType added in v0.14.0

func (TagAssociationMap) ElementType() reflect.Type

func (TagAssociationMap) ToTagAssociationMapOutput added in v0.14.0

func (i TagAssociationMap) ToTagAssociationMapOutput() TagAssociationMapOutput

func (TagAssociationMap) ToTagAssociationMapOutputWithContext added in v0.14.0

func (i TagAssociationMap) ToTagAssociationMapOutputWithContext(ctx context.Context) TagAssociationMapOutput

type TagAssociationMapInput added in v0.14.0

type TagAssociationMapInput interface {
	pulumi.Input

	ToTagAssociationMapOutput() TagAssociationMapOutput
	ToTagAssociationMapOutputWithContext(context.Context) TagAssociationMapOutput
}

TagAssociationMapInput is an input type that accepts TagAssociationMap and TagAssociationMapOutput values. You can construct a concrete instance of `TagAssociationMapInput` via:

TagAssociationMap{ "key": TagAssociationArgs{...} }

type TagAssociationMapOutput added in v0.14.0

type TagAssociationMapOutput struct{ *pulumi.OutputState }

func (TagAssociationMapOutput) ElementType added in v0.14.0

func (TagAssociationMapOutput) ElementType() reflect.Type

func (TagAssociationMapOutput) MapIndex added in v0.14.0

func (TagAssociationMapOutput) ToTagAssociationMapOutput added in v0.14.0

func (o TagAssociationMapOutput) ToTagAssociationMapOutput() TagAssociationMapOutput

func (TagAssociationMapOutput) ToTagAssociationMapOutputWithContext added in v0.14.0

func (o TagAssociationMapOutput) ToTagAssociationMapOutputWithContext(ctx context.Context) TagAssociationMapOutput

type TagAssociationObjectIdentifier added in v0.15.0

type TagAssociationObjectIdentifier struct {
	// Name of the database that the object was created in.
	Database *string `pulumi:"database"`
	// Name of the object to associate the tag with.
	Name string `pulumi:"name"`
	// Name of the schema that the object was created in.
	Schema *string `pulumi:"schema"`
}

type TagAssociationObjectIdentifierArgs added in v0.15.0

type TagAssociationObjectIdentifierArgs struct {
	// Name of the database that the object was created in.
	Database pulumi.StringPtrInput `pulumi:"database"`
	// Name of the object to associate the tag with.
	Name pulumi.StringInput `pulumi:"name"`
	// Name of the schema that the object was created in.
	Schema pulumi.StringPtrInput `pulumi:"schema"`
}

func (TagAssociationObjectIdentifierArgs) ElementType added in v0.15.0

func (TagAssociationObjectIdentifierArgs) ToTagAssociationObjectIdentifierOutput added in v0.15.0

func (i TagAssociationObjectIdentifierArgs) ToTagAssociationObjectIdentifierOutput() TagAssociationObjectIdentifierOutput

func (TagAssociationObjectIdentifierArgs) ToTagAssociationObjectIdentifierOutputWithContext added in v0.15.0

func (i TagAssociationObjectIdentifierArgs) ToTagAssociationObjectIdentifierOutputWithContext(ctx context.Context) TagAssociationObjectIdentifierOutput

type TagAssociationObjectIdentifierArray added in v0.15.0

type TagAssociationObjectIdentifierArray []TagAssociationObjectIdentifierInput

func (TagAssociationObjectIdentifierArray) ElementType added in v0.15.0

func (TagAssociationObjectIdentifierArray) ToTagAssociationObjectIdentifierArrayOutput added in v0.15.0

func (i TagAssociationObjectIdentifierArray) ToTagAssociationObjectIdentifierArrayOutput() TagAssociationObjectIdentifierArrayOutput

func (TagAssociationObjectIdentifierArray) ToTagAssociationObjectIdentifierArrayOutputWithContext added in v0.15.0

func (i TagAssociationObjectIdentifierArray) ToTagAssociationObjectIdentifierArrayOutputWithContext(ctx context.Context) TagAssociationObjectIdentifierArrayOutput

type TagAssociationObjectIdentifierArrayInput added in v0.15.0

type TagAssociationObjectIdentifierArrayInput interface {
	pulumi.Input

	ToTagAssociationObjectIdentifierArrayOutput() TagAssociationObjectIdentifierArrayOutput
	ToTagAssociationObjectIdentifierArrayOutputWithContext(context.Context) TagAssociationObjectIdentifierArrayOutput
}

TagAssociationObjectIdentifierArrayInput is an input type that accepts TagAssociationObjectIdentifierArray and TagAssociationObjectIdentifierArrayOutput values. You can construct a concrete instance of `TagAssociationObjectIdentifierArrayInput` via:

TagAssociationObjectIdentifierArray{ TagAssociationObjectIdentifierArgs{...} }

type TagAssociationObjectIdentifierArrayOutput added in v0.15.0

type TagAssociationObjectIdentifierArrayOutput struct{ *pulumi.OutputState }

func (TagAssociationObjectIdentifierArrayOutput) ElementType added in v0.15.0

func (TagAssociationObjectIdentifierArrayOutput) Index added in v0.15.0

func (TagAssociationObjectIdentifierArrayOutput) ToTagAssociationObjectIdentifierArrayOutput added in v0.15.0

func (o TagAssociationObjectIdentifierArrayOutput) ToTagAssociationObjectIdentifierArrayOutput() TagAssociationObjectIdentifierArrayOutput

func (TagAssociationObjectIdentifierArrayOutput) ToTagAssociationObjectIdentifierArrayOutputWithContext added in v0.15.0

func (o TagAssociationObjectIdentifierArrayOutput) ToTagAssociationObjectIdentifierArrayOutputWithContext(ctx context.Context) TagAssociationObjectIdentifierArrayOutput

type TagAssociationObjectIdentifierInput added in v0.15.0

type TagAssociationObjectIdentifierInput interface {
	pulumi.Input

	ToTagAssociationObjectIdentifierOutput() TagAssociationObjectIdentifierOutput
	ToTagAssociationObjectIdentifierOutputWithContext(context.Context) TagAssociationObjectIdentifierOutput
}

TagAssociationObjectIdentifierInput is an input type that accepts TagAssociationObjectIdentifierArgs and TagAssociationObjectIdentifierOutput values. You can construct a concrete instance of `TagAssociationObjectIdentifierInput` via:

TagAssociationObjectIdentifierArgs{...}

type TagAssociationObjectIdentifierOutput added in v0.15.0

type TagAssociationObjectIdentifierOutput struct{ *pulumi.OutputState }

func (TagAssociationObjectIdentifierOutput) Database added in v0.15.0

Name of the database that the object was created in.

func (TagAssociationObjectIdentifierOutput) ElementType added in v0.15.0

func (TagAssociationObjectIdentifierOutput) Name added in v0.15.0

Name of the object to associate the tag with.

func (TagAssociationObjectIdentifierOutput) Schema added in v0.15.0

Name of the schema that the object was created in.

func (TagAssociationObjectIdentifierOutput) ToTagAssociationObjectIdentifierOutput added in v0.15.0

func (o TagAssociationObjectIdentifierOutput) ToTagAssociationObjectIdentifierOutput() TagAssociationObjectIdentifierOutput

func (TagAssociationObjectIdentifierOutput) ToTagAssociationObjectIdentifierOutputWithContext added in v0.15.0

func (o TagAssociationObjectIdentifierOutput) ToTagAssociationObjectIdentifierOutputWithContext(ctx context.Context) TagAssociationObjectIdentifierOutput

type TagAssociationOutput added in v0.14.0

type TagAssociationOutput struct{ *pulumi.OutputState }

func (TagAssociationOutput) ElementType added in v0.14.0

func (TagAssociationOutput) ElementType() reflect.Type

func (TagAssociationOutput) ObjectIdentifiers added in v0.15.0

Specifies the object identifier for the tag association.

func (TagAssociationOutput) ObjectName deprecated added in v0.14.0

Specifies the object identifier for the tag association.

Deprecated: Use `object_identifier` instead

func (TagAssociationOutput) ObjectType added in v0.14.0

func (o TagAssociationOutput) ObjectType() pulumi.StringOutput

Specifies the type of object to add a tag to. ex: 'ACCOUNT', 'COLUMN', 'DATABASE', etc. For more information: https://docs.snowflake.com/en/user-guide/object-tagging.html#supported-objects

func (TagAssociationOutput) SkipValidation added in v0.14.0

func (o TagAssociationOutput) SkipValidation() pulumi.BoolPtrOutput

If true, skips validation of the tag association.

func (TagAssociationOutput) TagId added in v0.14.0

Specifies the identifier for the tag. Note: format must follow: "databaseName"."schemaName"."tagName" or "databaseName.schemaName.tagName" or "databaseName|schemaName.tagName" (snowflake_tag.tag.id)

func (TagAssociationOutput) TagValue added in v0.14.0

Specifies the value of the tag, (e.g. 'finance' or 'engineering')

func (TagAssociationOutput) ToTagAssociationOutput added in v0.14.0

func (o TagAssociationOutput) ToTagAssociationOutput() TagAssociationOutput

func (TagAssociationOutput) ToTagAssociationOutputWithContext added in v0.14.0

func (o TagAssociationOutput) ToTagAssociationOutputWithContext(ctx context.Context) TagAssociationOutput

type TagAssociationState added in v0.14.0

type TagAssociationState struct {
	// Specifies the object identifier for the tag association.
	ObjectIdentifiers TagAssociationObjectIdentifierArrayInput
	// Specifies the object identifier for the tag association.
	//
	// Deprecated: Use `object_identifier` instead
	ObjectName pulumi.StringPtrInput
	// Specifies the type of object to add a tag to. ex: 'ACCOUNT', 'COLUMN', 'DATABASE', etc. For more information: https://docs.snowflake.com/en/user-guide/object-tagging.html#supported-objects
	ObjectType pulumi.StringPtrInput
	// If true, skips validation of the tag association.
	SkipValidation pulumi.BoolPtrInput
	// Specifies the identifier for the tag. Note: format must follow: "databaseName"."schemaName"."tagName" or "databaseName.schemaName.tagName" or "databaseName|schemaName.tagName" (snowflake_tag.tag.id)
	TagId pulumi.StringPtrInput
	// Specifies the value of the tag, (e.g. 'finance' or 'engineering')
	TagValue pulumi.StringPtrInput
}

func (TagAssociationState) ElementType added in v0.14.0

func (TagAssociationState) ElementType() reflect.Type

type TagGrant added in v0.13.0

type TagGrant struct {
	pulumi.CustomResourceState

	// The name of the database containing the tag on which to grant privileges.
	DatabaseName pulumi.StringOutput `pulumi:"databaseName"`
	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrOutput `pulumi:"enableMultipleGrants"`
	// The privilege to grant on the tag. To grant all privileges, use the value `ALL PRIVILEGES`.
	Privilege pulumi.StringPtrOutput `pulumi:"privilege"`
	// The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
	RevertOwnershipToRoleName pulumi.StringPtrOutput `pulumi:"revertOwnershipToRoleName"`
	// Grants privilege to these roles.
	Roles pulumi.StringArrayOutput `pulumi:"roles"`
	// The name of the schema containing the tag on which to grant privileges.
	SchemaName pulumi.StringOutput `pulumi:"schemaName"`
	// The name of the tag on which to grant privileges.
	TagName pulumi.StringOutput `pulumi:"tagName"`
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrOutput `pulumi:"withGrantOption"`
}

## Example Usage

```go 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.NewTagGrant(ctx, "example", &snowflake.TagGrantArgs{
			DatabaseName: pulumi.String("database"),
			Privilege:    pulumi.String("OWNERSHIP"),
			Roles: pulumi.StringArray{
				pulumi.String("TEST_ROLE"),
			},
			SchemaName: pulumi.String("schema"),
			TagName:    pulumi.String("tag"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

format is database|schema|tag|privilege|with_grant_option|roles

```sh

$ pulumi import snowflake:index/tagGrant:TagGrant example "MY_DATABASE|MY_SCHEMA|MY_TAG|USAGE|false|role1,role2"

```

func GetTagGrant added in v0.13.0

func GetTagGrant(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *TagGrantState, opts ...pulumi.ResourceOption) (*TagGrant, error)

GetTagGrant gets an existing TagGrant resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewTagGrant added in v0.13.0

func NewTagGrant(ctx *pulumi.Context,
	name string, args *TagGrantArgs, opts ...pulumi.ResourceOption) (*TagGrant, error)

NewTagGrant registers a new resource with the given unique name, arguments, and options.

func (*TagGrant) ElementType added in v0.13.0

func (*TagGrant) ElementType() reflect.Type

func (*TagGrant) ToTagGrantOutput added in v0.13.0

func (i *TagGrant) ToTagGrantOutput() TagGrantOutput

func (*TagGrant) ToTagGrantOutputWithContext added in v0.13.0

func (i *TagGrant) ToTagGrantOutputWithContext(ctx context.Context) TagGrantOutput

type TagGrantArgs added in v0.13.0

type TagGrantArgs struct {
	// The name of the database containing the tag on which to grant privileges.
	DatabaseName pulumi.StringInput
	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrInput
	// The privilege to grant on the tag. To grant all privileges, use the value `ALL PRIVILEGES`.
	Privilege pulumi.StringPtrInput
	// The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
	RevertOwnershipToRoleName pulumi.StringPtrInput
	// Grants privilege to these roles.
	Roles pulumi.StringArrayInput
	// The name of the schema containing the tag on which to grant privileges.
	SchemaName pulumi.StringInput
	// The name of the tag on which to grant privileges.
	TagName pulumi.StringInput
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrInput
}

The set of arguments for constructing a TagGrant resource.

func (TagGrantArgs) ElementType added in v0.13.0

func (TagGrantArgs) ElementType() reflect.Type

type TagGrantArray added in v0.13.0

type TagGrantArray []TagGrantInput

func (TagGrantArray) ElementType added in v0.13.0

func (TagGrantArray) ElementType() reflect.Type

func (TagGrantArray) ToTagGrantArrayOutput added in v0.13.0

func (i TagGrantArray) ToTagGrantArrayOutput() TagGrantArrayOutput

func (TagGrantArray) ToTagGrantArrayOutputWithContext added in v0.13.0

func (i TagGrantArray) ToTagGrantArrayOutputWithContext(ctx context.Context) TagGrantArrayOutput

type TagGrantArrayInput added in v0.13.0

type TagGrantArrayInput interface {
	pulumi.Input

	ToTagGrantArrayOutput() TagGrantArrayOutput
	ToTagGrantArrayOutputWithContext(context.Context) TagGrantArrayOutput
}

TagGrantArrayInput is an input type that accepts TagGrantArray and TagGrantArrayOutput values. You can construct a concrete instance of `TagGrantArrayInput` via:

TagGrantArray{ TagGrantArgs{...} }

type TagGrantArrayOutput added in v0.13.0

type TagGrantArrayOutput struct{ *pulumi.OutputState }

func (TagGrantArrayOutput) ElementType added in v0.13.0

func (TagGrantArrayOutput) ElementType() reflect.Type

func (TagGrantArrayOutput) Index added in v0.13.0

func (TagGrantArrayOutput) ToTagGrantArrayOutput added in v0.13.0

func (o TagGrantArrayOutput) ToTagGrantArrayOutput() TagGrantArrayOutput

func (TagGrantArrayOutput) ToTagGrantArrayOutputWithContext added in v0.13.0

func (o TagGrantArrayOutput) ToTagGrantArrayOutputWithContext(ctx context.Context) TagGrantArrayOutput

type TagGrantInput added in v0.13.0

type TagGrantInput interface {
	pulumi.Input

	ToTagGrantOutput() TagGrantOutput
	ToTagGrantOutputWithContext(ctx context.Context) TagGrantOutput
}

type TagGrantMap added in v0.13.0

type TagGrantMap map[string]TagGrantInput

func (TagGrantMap) ElementType added in v0.13.0

func (TagGrantMap) ElementType() reflect.Type

func (TagGrantMap) ToTagGrantMapOutput added in v0.13.0

func (i TagGrantMap) ToTagGrantMapOutput() TagGrantMapOutput

func (TagGrantMap) ToTagGrantMapOutputWithContext added in v0.13.0

func (i TagGrantMap) ToTagGrantMapOutputWithContext(ctx context.Context) TagGrantMapOutput

type TagGrantMapInput added in v0.13.0

type TagGrantMapInput interface {
	pulumi.Input

	ToTagGrantMapOutput() TagGrantMapOutput
	ToTagGrantMapOutputWithContext(context.Context) TagGrantMapOutput
}

TagGrantMapInput is an input type that accepts TagGrantMap and TagGrantMapOutput values. You can construct a concrete instance of `TagGrantMapInput` via:

TagGrantMap{ "key": TagGrantArgs{...} }

type TagGrantMapOutput added in v0.13.0

type TagGrantMapOutput struct{ *pulumi.OutputState }

func (TagGrantMapOutput) ElementType added in v0.13.0

func (TagGrantMapOutput) ElementType() reflect.Type

func (TagGrantMapOutput) MapIndex added in v0.13.0

func (TagGrantMapOutput) ToTagGrantMapOutput added in v0.13.0

func (o TagGrantMapOutput) ToTagGrantMapOutput() TagGrantMapOutput

func (TagGrantMapOutput) ToTagGrantMapOutputWithContext added in v0.13.0

func (o TagGrantMapOutput) ToTagGrantMapOutputWithContext(ctx context.Context) TagGrantMapOutput

type TagGrantOutput added in v0.13.0

type TagGrantOutput struct{ *pulumi.OutputState }

func (TagGrantOutput) DatabaseName added in v0.13.0

func (o TagGrantOutput) DatabaseName() pulumi.StringOutput

The name of the database containing the tag on which to grant privileges.

func (TagGrantOutput) ElementType added in v0.13.0

func (TagGrantOutput) ElementType() reflect.Type

func (TagGrantOutput) EnableMultipleGrants added in v0.13.0

func (o TagGrantOutput) EnableMultipleGrants() pulumi.BoolPtrOutput

When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke grants applied to roles and objects outside Terraform.

func (TagGrantOutput) Privilege added in v0.13.0

func (o TagGrantOutput) Privilege() pulumi.StringPtrOutput

The privilege to grant on the tag. To grant all privileges, use the value `ALL PRIVILEGES`.

func (TagGrantOutput) RevertOwnershipToRoleName added in v0.26.0

func (o TagGrantOutput) RevertOwnershipToRoleName() pulumi.StringPtrOutput

The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`

func (TagGrantOutput) Roles added in v0.13.0

Grants privilege to these roles.

func (TagGrantOutput) SchemaName added in v0.13.0

func (o TagGrantOutput) SchemaName() pulumi.StringOutput

The name of the schema containing the tag on which to grant privileges.

func (TagGrantOutput) TagName added in v0.13.0

func (o TagGrantOutput) TagName() pulumi.StringOutput

The name of the tag on which to grant privileges.

func (TagGrantOutput) ToTagGrantOutput added in v0.13.0

func (o TagGrantOutput) ToTagGrantOutput() TagGrantOutput

func (TagGrantOutput) ToTagGrantOutputWithContext added in v0.13.0

func (o TagGrantOutput) ToTagGrantOutputWithContext(ctx context.Context) TagGrantOutput

func (TagGrantOutput) WithGrantOption added in v0.13.0

func (o TagGrantOutput) WithGrantOption() pulumi.BoolPtrOutput

When this is set to true, allows the recipient role to grant the privileges to other roles.

type TagGrantState added in v0.13.0

type TagGrantState struct {
	// The name of the database containing the tag on which to grant privileges.
	DatabaseName pulumi.StringPtrInput
	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrInput
	// The privilege to grant on the tag. To grant all privileges, use the value `ALL PRIVILEGES`.
	Privilege pulumi.StringPtrInput
	// The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
	RevertOwnershipToRoleName pulumi.StringPtrInput
	// Grants privilege to these roles.
	Roles pulumi.StringArrayInput
	// The name of the schema containing the tag on which to grant privileges.
	SchemaName pulumi.StringPtrInput
	// The name of the tag on which to grant privileges.
	TagName pulumi.StringPtrInput
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrInput
}

func (TagGrantState) ElementType added in v0.13.0

func (TagGrantState) ElementType() reflect.Type

type TagInput added in v0.3.0

type TagInput interface {
	pulumi.Input

	ToTagOutput() TagOutput
	ToTagOutputWithContext(ctx context.Context) TagOutput
}

type TagMap added in v0.3.0

type TagMap map[string]TagInput

func (TagMap) ElementType added in v0.3.0

func (TagMap) ElementType() reflect.Type

func (TagMap) ToTagMapOutput added in v0.3.0

func (i TagMap) ToTagMapOutput() TagMapOutput

func (TagMap) ToTagMapOutputWithContext added in v0.3.0

func (i TagMap) ToTagMapOutputWithContext(ctx context.Context) TagMapOutput

type TagMapInput added in v0.3.0

type TagMapInput interface {
	pulumi.Input

	ToTagMapOutput() TagMapOutput
	ToTagMapOutputWithContext(context.Context) TagMapOutput
}

TagMapInput is an input type that accepts TagMap and TagMapOutput values. You can construct a concrete instance of `TagMapInput` via:

TagMap{ "key": TagArgs{...} }

type TagMapOutput added in v0.3.0

type TagMapOutput struct{ *pulumi.OutputState }

func (TagMapOutput) ElementType added in v0.3.0

func (TagMapOutput) ElementType() reflect.Type

func (TagMapOutput) MapIndex added in v0.3.0

func (o TagMapOutput) MapIndex(k pulumi.StringInput) TagOutput

func (TagMapOutput) ToTagMapOutput added in v0.3.0

func (o TagMapOutput) ToTagMapOutput() TagMapOutput

func (TagMapOutput) ToTagMapOutputWithContext added in v0.3.0

func (o TagMapOutput) ToTagMapOutputWithContext(ctx context.Context) TagMapOutput

type TagMaskingPolicyAssociation added in v0.14.0

type TagMaskingPolicyAssociation struct {
	pulumi.CustomResourceState

	// The resource id of the masking policy
	MaskingPolicyId pulumi.StringOutput `pulumi:"maskingPolicyId"`
	// Specifies the identifier for the tag. Note: format must follow: "databaseName"."schemaName"."tagName" or "databaseName.schemaName.tagName" or "databaseName|schemaName.tagName" (snowflake_tag.tag.id)
	TagId pulumi.StringOutput `pulumi:"tagId"`
}

Attach a masking policy to a tag. Requires a current warehouse to be set. Either with SNOWFLAKE_WAREHOUSE env variable or in current session. If no warehouse is provided, a temporary warehouse will be created.

## Import

format is tag database name | tag schema name | tag name | masking policy database | masking policy schema | masking policy name

```sh

$ pulumi import snowflake:index/tagMaskingPolicyAssociation:TagMaskingPolicyAssociation example 'tag_db|tag_schema|tag_name|mp_db|mp_schema|mp_name'

```

func GetTagMaskingPolicyAssociation added in v0.14.0

func GetTagMaskingPolicyAssociation(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *TagMaskingPolicyAssociationState, opts ...pulumi.ResourceOption) (*TagMaskingPolicyAssociation, error)

GetTagMaskingPolicyAssociation gets an existing TagMaskingPolicyAssociation resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewTagMaskingPolicyAssociation added in v0.14.0

func NewTagMaskingPolicyAssociation(ctx *pulumi.Context,
	name string, args *TagMaskingPolicyAssociationArgs, opts ...pulumi.ResourceOption) (*TagMaskingPolicyAssociation, error)

NewTagMaskingPolicyAssociation registers a new resource with the given unique name, arguments, and options.

func (*TagMaskingPolicyAssociation) ElementType added in v0.14.0

func (*TagMaskingPolicyAssociation) ElementType() reflect.Type

func (*TagMaskingPolicyAssociation) ToTagMaskingPolicyAssociationOutput added in v0.14.0

func (i *TagMaskingPolicyAssociation) ToTagMaskingPolicyAssociationOutput() TagMaskingPolicyAssociationOutput

func (*TagMaskingPolicyAssociation) ToTagMaskingPolicyAssociationOutputWithContext added in v0.14.0

func (i *TagMaskingPolicyAssociation) ToTagMaskingPolicyAssociationOutputWithContext(ctx context.Context) TagMaskingPolicyAssociationOutput

type TagMaskingPolicyAssociationArgs added in v0.14.0

type TagMaskingPolicyAssociationArgs struct {
	// The resource id of the masking policy
	MaskingPolicyId pulumi.StringInput
	// Specifies the identifier for the tag. Note: format must follow: "databaseName"."schemaName"."tagName" or "databaseName.schemaName.tagName" or "databaseName|schemaName.tagName" (snowflake_tag.tag.id)
	TagId pulumi.StringInput
}

The set of arguments for constructing a TagMaskingPolicyAssociation resource.

func (TagMaskingPolicyAssociationArgs) ElementType added in v0.14.0

type TagMaskingPolicyAssociationArray added in v0.14.0

type TagMaskingPolicyAssociationArray []TagMaskingPolicyAssociationInput

func (TagMaskingPolicyAssociationArray) ElementType added in v0.14.0

func (TagMaskingPolicyAssociationArray) ToTagMaskingPolicyAssociationArrayOutput added in v0.14.0

func (i TagMaskingPolicyAssociationArray) ToTagMaskingPolicyAssociationArrayOutput() TagMaskingPolicyAssociationArrayOutput

func (TagMaskingPolicyAssociationArray) ToTagMaskingPolicyAssociationArrayOutputWithContext added in v0.14.0

func (i TagMaskingPolicyAssociationArray) ToTagMaskingPolicyAssociationArrayOutputWithContext(ctx context.Context) TagMaskingPolicyAssociationArrayOutput

type TagMaskingPolicyAssociationArrayInput added in v0.14.0

type TagMaskingPolicyAssociationArrayInput interface {
	pulumi.Input

	ToTagMaskingPolicyAssociationArrayOutput() TagMaskingPolicyAssociationArrayOutput
	ToTagMaskingPolicyAssociationArrayOutputWithContext(context.Context) TagMaskingPolicyAssociationArrayOutput
}

TagMaskingPolicyAssociationArrayInput is an input type that accepts TagMaskingPolicyAssociationArray and TagMaskingPolicyAssociationArrayOutput values. You can construct a concrete instance of `TagMaskingPolicyAssociationArrayInput` via:

TagMaskingPolicyAssociationArray{ TagMaskingPolicyAssociationArgs{...} }

type TagMaskingPolicyAssociationArrayOutput added in v0.14.0

type TagMaskingPolicyAssociationArrayOutput struct{ *pulumi.OutputState }

func (TagMaskingPolicyAssociationArrayOutput) ElementType added in v0.14.0

func (TagMaskingPolicyAssociationArrayOutput) Index added in v0.14.0

func (TagMaskingPolicyAssociationArrayOutput) ToTagMaskingPolicyAssociationArrayOutput added in v0.14.0

func (o TagMaskingPolicyAssociationArrayOutput) ToTagMaskingPolicyAssociationArrayOutput() TagMaskingPolicyAssociationArrayOutput

func (TagMaskingPolicyAssociationArrayOutput) ToTagMaskingPolicyAssociationArrayOutputWithContext added in v0.14.0

func (o TagMaskingPolicyAssociationArrayOutput) ToTagMaskingPolicyAssociationArrayOutputWithContext(ctx context.Context) TagMaskingPolicyAssociationArrayOutput

type TagMaskingPolicyAssociationInput added in v0.14.0

type TagMaskingPolicyAssociationInput interface {
	pulumi.Input

	ToTagMaskingPolicyAssociationOutput() TagMaskingPolicyAssociationOutput
	ToTagMaskingPolicyAssociationOutputWithContext(ctx context.Context) TagMaskingPolicyAssociationOutput
}

type TagMaskingPolicyAssociationMap added in v0.14.0

type TagMaskingPolicyAssociationMap map[string]TagMaskingPolicyAssociationInput

func (TagMaskingPolicyAssociationMap) ElementType added in v0.14.0

func (TagMaskingPolicyAssociationMap) ToTagMaskingPolicyAssociationMapOutput added in v0.14.0

func (i TagMaskingPolicyAssociationMap) ToTagMaskingPolicyAssociationMapOutput() TagMaskingPolicyAssociationMapOutput

func (TagMaskingPolicyAssociationMap) ToTagMaskingPolicyAssociationMapOutputWithContext added in v0.14.0

func (i TagMaskingPolicyAssociationMap) ToTagMaskingPolicyAssociationMapOutputWithContext(ctx context.Context) TagMaskingPolicyAssociationMapOutput

type TagMaskingPolicyAssociationMapInput added in v0.14.0

type TagMaskingPolicyAssociationMapInput interface {
	pulumi.Input

	ToTagMaskingPolicyAssociationMapOutput() TagMaskingPolicyAssociationMapOutput
	ToTagMaskingPolicyAssociationMapOutputWithContext(context.Context) TagMaskingPolicyAssociationMapOutput
}

TagMaskingPolicyAssociationMapInput is an input type that accepts TagMaskingPolicyAssociationMap and TagMaskingPolicyAssociationMapOutput values. You can construct a concrete instance of `TagMaskingPolicyAssociationMapInput` via:

TagMaskingPolicyAssociationMap{ "key": TagMaskingPolicyAssociationArgs{...} }

type TagMaskingPolicyAssociationMapOutput added in v0.14.0

type TagMaskingPolicyAssociationMapOutput struct{ *pulumi.OutputState }

func (TagMaskingPolicyAssociationMapOutput) ElementType added in v0.14.0

func (TagMaskingPolicyAssociationMapOutput) MapIndex added in v0.14.0

func (TagMaskingPolicyAssociationMapOutput) ToTagMaskingPolicyAssociationMapOutput added in v0.14.0

func (o TagMaskingPolicyAssociationMapOutput) ToTagMaskingPolicyAssociationMapOutput() TagMaskingPolicyAssociationMapOutput

func (TagMaskingPolicyAssociationMapOutput) ToTagMaskingPolicyAssociationMapOutputWithContext added in v0.14.0

func (o TagMaskingPolicyAssociationMapOutput) ToTagMaskingPolicyAssociationMapOutputWithContext(ctx context.Context) TagMaskingPolicyAssociationMapOutput

type TagMaskingPolicyAssociationOutput added in v0.14.0

type TagMaskingPolicyAssociationOutput struct{ *pulumi.OutputState }

func (TagMaskingPolicyAssociationOutput) ElementType added in v0.14.0

func (TagMaskingPolicyAssociationOutput) MaskingPolicyId added in v0.14.0

The resource id of the masking policy

func (TagMaskingPolicyAssociationOutput) TagId added in v0.14.0

Specifies the identifier for the tag. Note: format must follow: "databaseName"."schemaName"."tagName" or "databaseName.schemaName.tagName" or "databaseName|schemaName.tagName" (snowflake_tag.tag.id)

func (TagMaskingPolicyAssociationOutput) ToTagMaskingPolicyAssociationOutput added in v0.14.0

func (o TagMaskingPolicyAssociationOutput) ToTagMaskingPolicyAssociationOutput() TagMaskingPolicyAssociationOutput

func (TagMaskingPolicyAssociationOutput) ToTagMaskingPolicyAssociationOutputWithContext added in v0.14.0

func (o TagMaskingPolicyAssociationOutput) ToTagMaskingPolicyAssociationOutputWithContext(ctx context.Context) TagMaskingPolicyAssociationOutput

type TagMaskingPolicyAssociationState added in v0.14.0

type TagMaskingPolicyAssociationState struct {
	// The resource id of the masking policy
	MaskingPolicyId pulumi.StringPtrInput
	// Specifies the identifier for the tag. Note: format must follow: "databaseName"."schemaName"."tagName" or "databaseName.schemaName.tagName" or "databaseName|schemaName.tagName" (snowflake_tag.tag.id)
	TagId pulumi.StringPtrInput
}

func (TagMaskingPolicyAssociationState) ElementType added in v0.14.0

type TagOutput added in v0.3.0

type TagOutput struct{ *pulumi.OutputState }

func (TagOutput) AllowedValues added in v0.10.0

func (o TagOutput) AllowedValues() pulumi.StringArrayOutput

List of allowed values for the tag.

func (TagOutput) Comment added in v0.9.0

func (o TagOutput) Comment() pulumi.StringPtrOutput

Specifies a comment for the tag.

func (TagOutput) Database added in v0.9.0

func (o TagOutput) Database() pulumi.StringOutput

The database in which to create the tag.

func (TagOutput) ElementType added in v0.3.0

func (TagOutput) ElementType() reflect.Type

func (TagOutput) Name added in v0.9.0

func (o TagOutput) Name() pulumi.StringOutput

Specifies the identifier for the tag; must be unique for the database in which the tag is created.

func (TagOutput) Schema added in v0.9.0

func (o TagOutput) Schema() pulumi.StringOutput

The schema in which to create the tag.

func (TagOutput) ToTagOutput added in v0.3.0

func (o TagOutput) ToTagOutput() TagOutput

func (TagOutput) ToTagOutputWithContext added in v0.3.0

func (o TagOutput) ToTagOutputWithContext(ctx context.Context) TagOutput

type TagState added in v0.3.0

type TagState struct {
	// List of allowed values for the tag.
	AllowedValues pulumi.StringArrayInput
	// Specifies a comment for the tag.
	Comment pulumi.StringPtrInput
	// The database in which to create the tag.
	Database pulumi.StringPtrInput
	// Specifies the identifier for the tag; must be unique for the database in which the tag is created.
	Name pulumi.StringPtrInput
	// The schema in which to create the tag.
	Schema pulumi.StringPtrInput
}

func (TagState) ElementType added in v0.3.0

func (TagState) ElementType() reflect.Type

type Task

type Task struct {
	pulumi.CustomResourceState

	// Specifies one or more predecessor tasks for the current task. Use this option to create a DAG of tasks or add this task to an existing DAG. A DAG is a series of tasks that starts with a scheduled root task and is linked together by dependencies.
	Afters pulumi.StringArrayOutput `pulumi:"afters"`
	// By default, Snowflake ensures that only one instance of a particular DAG is allowed to run at a time, setting the parameter value to TRUE permits DAG runs to overlap.
	AllowOverlappingExecution pulumi.BoolPtrOutput `pulumi:"allowOverlappingExecution"`
	// Specifies a comment for the task.
	Comment pulumi.StringPtrOutput `pulumi:"comment"`
	// The database in which to create the task.
	Database pulumi.StringOutput `pulumi:"database"`
	// Specifies if the task should be started (enabled) after creation or should remain suspended (default).
	Enabled pulumi.BoolPtrOutput `pulumi:"enabled"`
	// Specifies the name of the notification integration used for error notifications.
	ErrorIntegration pulumi.StringPtrOutput `pulumi:"errorIntegration"`
	// Specifies the identifier for the task; must be unique for the database and schema in which the task is created.
	Name pulumi.StringOutput `pulumi:"name"`
	// The schedule for periodically running the task. This can be a cron or interval in minutes. (Conflict with after)
	Schedule pulumi.StringPtrOutput `pulumi:"schedule"`
	// The schema in which to create the task.
	Schema pulumi.StringOutput `pulumi:"schema"`
	// Specifies session parameters to set for the session when the task runs. A task supports all session parameters.
	SessionParameters pulumi.StringMapOutput `pulumi:"sessionParameters"`
	// Any single SQL statement, or a call to a stored procedure, executed when the task runs.
	SqlStatement pulumi.StringOutput `pulumi:"sqlStatement"`
	// Specifies the size of the compute resources to provision for the first run of the task, before a task history is available for Snowflake to determine an ideal size. Once a task has successfully completed a few runs, Snowflake ignores this parameter setting. (Conflicts with warehouse)
	UserTaskManagedInitialWarehouseSize pulumi.StringPtrOutput `pulumi:"userTaskManagedInitialWarehouseSize"`
	// Specifies the time limit on a single run of the task before it times out (in milliseconds).
	UserTaskTimeoutMs pulumi.IntPtrOutput `pulumi:"userTaskTimeoutMs"`
	// The warehouse the task will use. Omit this parameter to use Snowflake-managed compute resources for runs of this task. (Conflicts with user*task*managed*initial*warehouse_size)
	Warehouse pulumi.StringPtrOutput `pulumi:"warehouse"`
	// Specifies a Boolean SQL expression; multiple conditions joined with AND/OR are supported.
	When pulumi.StringPtrOutput `pulumi:"when"`
}

## Example Usage

```go 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 {
		task, err := snowflake.NewTask(ctx, "task", &snowflake.TaskArgs{
			Comment:      pulumi.String("my task"),
			Database:     pulumi.String("database"),
			Schema:       pulumi.String("schema"),
			Warehouse:    pulumi.String("warehouse"),
			Schedule:     pulumi.String("10 MINUTE"),
			SqlStatement: pulumi.String("select * from foo;"),
			SessionParameters: pulumi.StringMap{
				"foo": pulumi.String("bar"),
			},
			UserTaskTimeoutMs: pulumi.Int(10000),
			Afters:            pulumi.StringArray("preceding_task"),
			When:              pulumi.String("foo AND bar"),
			Enabled:           pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		_, err = snowflake.NewTask(ctx, "serverlessTask", &snowflake.TaskArgs{
			Comment:      pulumi.String("my serverless task"),
			Database:     pulumi.String("db"),
			Schema:       pulumi.String("schema"),
			Schedule:     pulumi.String("10 MINUTE"),
			SqlStatement: pulumi.String("select * from foo;"),
			SessionParameters: pulumi.StringMap{
				"foo": pulumi.String("bar"),
			},
			UserTaskTimeoutMs:                   pulumi.Int(10000),
			UserTaskManagedInitialWarehouseSize: pulumi.String("XSMALL"),
			Afters: pulumi.StringArray{
				task.Name,
			},
			When:    pulumi.String("foo AND bar"),
			Enabled: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		_, err = snowflake.NewTask(ctx, "testTask", &snowflake.TaskArgs{
			Comment:                   pulumi.String("task with allow_overlapping_execution"),
			Database:                  pulumi.String("database"),
			Schema:                    pulumi.String("schema"),
			SqlStatement:              pulumi.String("select 1 as c;"),
			AllowOverlappingExecution: pulumi.Bool(true),
			Enabled:                   pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

format is database name | schema name | task name

```sh

$ pulumi import snowflake:index/task:Task example 'dbName|schemaName|taskName'

```

func GetTask

func GetTask(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *TaskState, opts ...pulumi.ResourceOption) (*Task, error)

GetTask gets an existing Task resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewTask

func NewTask(ctx *pulumi.Context,
	name string, args *TaskArgs, opts ...pulumi.ResourceOption) (*Task, error)

NewTask registers a new resource with the given unique name, arguments, and options.

func (*Task) ElementType

func (*Task) ElementType() reflect.Type

func (*Task) ToTaskOutput

func (i *Task) ToTaskOutput() TaskOutput

func (*Task) ToTaskOutputWithContext

func (i *Task) ToTaskOutputWithContext(ctx context.Context) TaskOutput

type TaskArgs

type TaskArgs struct {
	// Specifies one or more predecessor tasks for the current task. Use this option to create a DAG of tasks or add this task to an existing DAG. A DAG is a series of tasks that starts with a scheduled root task and is linked together by dependencies.
	Afters pulumi.StringArrayInput
	// By default, Snowflake ensures that only one instance of a particular DAG is allowed to run at a time, setting the parameter value to TRUE permits DAG runs to overlap.
	AllowOverlappingExecution pulumi.BoolPtrInput
	// Specifies a comment for the task.
	Comment pulumi.StringPtrInput
	// The database in which to create the task.
	Database pulumi.StringInput
	// Specifies if the task should be started (enabled) after creation or should remain suspended (default).
	Enabled pulumi.BoolPtrInput
	// Specifies the name of the notification integration used for error notifications.
	ErrorIntegration pulumi.StringPtrInput
	// Specifies the identifier for the task; must be unique for the database and schema in which the task is created.
	Name pulumi.StringPtrInput
	// The schedule for periodically running the task. This can be a cron or interval in minutes. (Conflict with after)
	Schedule pulumi.StringPtrInput
	// The schema in which to create the task.
	Schema pulumi.StringInput
	// Specifies session parameters to set for the session when the task runs. A task supports all session parameters.
	SessionParameters pulumi.StringMapInput
	// Any single SQL statement, or a call to a stored procedure, executed when the task runs.
	SqlStatement pulumi.StringInput
	// Specifies the size of the compute resources to provision for the first run of the task, before a task history is available for Snowflake to determine an ideal size. Once a task has successfully completed a few runs, Snowflake ignores this parameter setting. (Conflicts with warehouse)
	UserTaskManagedInitialWarehouseSize pulumi.StringPtrInput
	// Specifies the time limit on a single run of the task before it times out (in milliseconds).
	UserTaskTimeoutMs pulumi.IntPtrInput
	// The warehouse the task will use. Omit this parameter to use Snowflake-managed compute resources for runs of this task. (Conflicts with user*task*managed*initial*warehouse_size)
	Warehouse pulumi.StringPtrInput
	// Specifies a Boolean SQL expression; multiple conditions joined with AND/OR are supported.
	When pulumi.StringPtrInput
}

The set of arguments for constructing a Task resource.

func (TaskArgs) ElementType

func (TaskArgs) ElementType() reflect.Type

type TaskArray

type TaskArray []TaskInput

func (TaskArray) ElementType

func (TaskArray) ElementType() reflect.Type

func (TaskArray) ToTaskArrayOutput

func (i TaskArray) ToTaskArrayOutput() TaskArrayOutput

func (TaskArray) ToTaskArrayOutputWithContext

func (i TaskArray) ToTaskArrayOutputWithContext(ctx context.Context) TaskArrayOutput

type TaskArrayInput

type TaskArrayInput interface {
	pulumi.Input

	ToTaskArrayOutput() TaskArrayOutput
	ToTaskArrayOutputWithContext(context.Context) TaskArrayOutput
}

TaskArrayInput is an input type that accepts TaskArray and TaskArrayOutput values. You can construct a concrete instance of `TaskArrayInput` via:

TaskArray{ TaskArgs{...} }

type TaskArrayOutput

type TaskArrayOutput struct{ *pulumi.OutputState }

func (TaskArrayOutput) ElementType

func (TaskArrayOutput) ElementType() reflect.Type

func (TaskArrayOutput) Index

func (TaskArrayOutput) ToTaskArrayOutput

func (o TaskArrayOutput) ToTaskArrayOutput() TaskArrayOutput

func (TaskArrayOutput) ToTaskArrayOutputWithContext

func (o TaskArrayOutput) ToTaskArrayOutputWithContext(ctx context.Context) TaskArrayOutput

type TaskGrant added in v0.1.2

type TaskGrant struct {
	pulumi.CustomResourceState

	// The name of the database containing the current or future tasks on which to grant privileges.
	DatabaseName pulumi.StringOutput `pulumi:"databaseName"`
	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrOutput `pulumi:"enableMultipleGrants"`
	// When this is set to true and a schema*name is provided, apply this grant on all tasks in the given schema. When this is true and no schema*name is provided apply this grant on all tasks in the given database. The task*name field must be unset in order to use on*all. Cannot be used together with on_future.
	OnAll pulumi.BoolPtrOutput `pulumi:"onAll"`
	// When this is set to true and a schema*name is provided, apply this grant on all future tasks in the given schema. When this is true and no schema*name is provided apply this grant on all future tasks in the given database. The task*name field must be unset in order to use on*future. Cannot be used together with on_all.
	OnFuture pulumi.BoolPtrOutput `pulumi:"onFuture"`
	// The privilege to grant on the current or future task. To grant all privileges, use the value `ALL PRIVILEGES`.
	Privilege pulumi.StringPtrOutput `pulumi:"privilege"`
	// The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
	RevertOwnershipToRoleName pulumi.StringPtrOutput `pulumi:"revertOwnershipToRoleName"`
	// Grants privilege to these roles.
	Roles pulumi.StringArrayOutput `pulumi:"roles"`
	// The name of the schema containing the current or future tasks on which to grant privileges.
	SchemaName pulumi.StringPtrOutput `pulumi:"schemaName"`
	// The name of the task on which to grant privileges immediately (only valid if onFuture is false).
	TaskName pulumi.StringPtrOutput `pulumi:"taskName"`
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrOutput `pulumi:"withGrantOption"`
}

## Example Usage

```go 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.NewTaskGrant(ctx, "grant", &snowflake.TaskGrantArgs{
			DatabaseName: pulumi.String("database"),
			OnFuture:     pulumi.Bool(false),
			Privilege:    pulumi.String("OPERATE"),
			Roles: pulumi.StringArray{
				pulumi.String("role1"),
				pulumi.String("role2"),
			},
			SchemaName:      pulumi.String("schema"),
			TaskName:        pulumi.String("task"),
			WithGrantOption: pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

format is database_name|schema_name|task_name|privilege|with_grant_option|on_future|roles"

```sh

$ pulumi import snowflake:index/taskGrant:TaskGrant example "MY_DATABASE|MY_SCHEMA|MY_TASK|OPERATE|false|false|role1,role2"

```

func GetTaskGrant added in v0.1.2

func GetTaskGrant(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *TaskGrantState, opts ...pulumi.ResourceOption) (*TaskGrant, error)

GetTaskGrant gets an existing TaskGrant resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewTaskGrant added in v0.1.2

func NewTaskGrant(ctx *pulumi.Context,
	name string, args *TaskGrantArgs, opts ...pulumi.ResourceOption) (*TaskGrant, error)

NewTaskGrant registers a new resource with the given unique name, arguments, and options.

func (*TaskGrant) ElementType added in v0.1.2

func (*TaskGrant) ElementType() reflect.Type

func (*TaskGrant) ToTaskGrantOutput added in v0.1.2

func (i *TaskGrant) ToTaskGrantOutput() TaskGrantOutput

func (*TaskGrant) ToTaskGrantOutputWithContext added in v0.1.2

func (i *TaskGrant) ToTaskGrantOutputWithContext(ctx context.Context) TaskGrantOutput

type TaskGrantArgs added in v0.1.2

type TaskGrantArgs struct {
	// The name of the database containing the current or future tasks on which to grant privileges.
	DatabaseName pulumi.StringInput
	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrInput
	// When this is set to true and a schema*name is provided, apply this grant on all tasks in the given schema. When this is true and no schema*name is provided apply this grant on all tasks in the given database. The task*name field must be unset in order to use on*all. Cannot be used together with on_future.
	OnAll pulumi.BoolPtrInput
	// When this is set to true and a schema*name is provided, apply this grant on all future tasks in the given schema. When this is true and no schema*name is provided apply this grant on all future tasks in the given database. The task*name field must be unset in order to use on*future. Cannot be used together with on_all.
	OnFuture pulumi.BoolPtrInput
	// The privilege to grant on the current or future task. To grant all privileges, use the value `ALL PRIVILEGES`.
	Privilege pulumi.StringPtrInput
	// The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
	RevertOwnershipToRoleName pulumi.StringPtrInput
	// Grants privilege to these roles.
	Roles pulumi.StringArrayInput
	// The name of the schema containing the current or future tasks on which to grant privileges.
	SchemaName pulumi.StringPtrInput
	// The name of the task on which to grant privileges immediately (only valid if onFuture is false).
	TaskName pulumi.StringPtrInput
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrInput
}

The set of arguments for constructing a TaskGrant resource.

func (TaskGrantArgs) ElementType added in v0.1.2

func (TaskGrantArgs) ElementType() reflect.Type

type TaskGrantArray added in v0.1.2

type TaskGrantArray []TaskGrantInput

func (TaskGrantArray) ElementType added in v0.1.2

func (TaskGrantArray) ElementType() reflect.Type

func (TaskGrantArray) ToTaskGrantArrayOutput added in v0.1.2

func (i TaskGrantArray) ToTaskGrantArrayOutput() TaskGrantArrayOutput

func (TaskGrantArray) ToTaskGrantArrayOutputWithContext added in v0.1.2

func (i TaskGrantArray) ToTaskGrantArrayOutputWithContext(ctx context.Context) TaskGrantArrayOutput

type TaskGrantArrayInput added in v0.1.2

type TaskGrantArrayInput interface {
	pulumi.Input

	ToTaskGrantArrayOutput() TaskGrantArrayOutput
	ToTaskGrantArrayOutputWithContext(context.Context) TaskGrantArrayOutput
}

TaskGrantArrayInput is an input type that accepts TaskGrantArray and TaskGrantArrayOutput values. You can construct a concrete instance of `TaskGrantArrayInput` via:

TaskGrantArray{ TaskGrantArgs{...} }

type TaskGrantArrayOutput added in v0.1.2

type TaskGrantArrayOutput struct{ *pulumi.OutputState }

func (TaskGrantArrayOutput) ElementType added in v0.1.2

func (TaskGrantArrayOutput) ElementType() reflect.Type

func (TaskGrantArrayOutput) Index added in v0.1.2

func (TaskGrantArrayOutput) ToTaskGrantArrayOutput added in v0.1.2

func (o TaskGrantArrayOutput) ToTaskGrantArrayOutput() TaskGrantArrayOutput

func (TaskGrantArrayOutput) ToTaskGrantArrayOutputWithContext added in v0.1.2

func (o TaskGrantArrayOutput) ToTaskGrantArrayOutputWithContext(ctx context.Context) TaskGrantArrayOutput

type TaskGrantInput added in v0.1.2

type TaskGrantInput interface {
	pulumi.Input

	ToTaskGrantOutput() TaskGrantOutput
	ToTaskGrantOutputWithContext(ctx context.Context) TaskGrantOutput
}

type TaskGrantMap added in v0.1.2

type TaskGrantMap map[string]TaskGrantInput

func (TaskGrantMap) ElementType added in v0.1.2

func (TaskGrantMap) ElementType() reflect.Type

func (TaskGrantMap) ToTaskGrantMapOutput added in v0.1.2

func (i TaskGrantMap) ToTaskGrantMapOutput() TaskGrantMapOutput

func (TaskGrantMap) ToTaskGrantMapOutputWithContext added in v0.1.2

func (i TaskGrantMap) ToTaskGrantMapOutputWithContext(ctx context.Context) TaskGrantMapOutput

type TaskGrantMapInput added in v0.1.2

type TaskGrantMapInput interface {
	pulumi.Input

	ToTaskGrantMapOutput() TaskGrantMapOutput
	ToTaskGrantMapOutputWithContext(context.Context) TaskGrantMapOutput
}

TaskGrantMapInput is an input type that accepts TaskGrantMap and TaskGrantMapOutput values. You can construct a concrete instance of `TaskGrantMapInput` via:

TaskGrantMap{ "key": TaskGrantArgs{...} }

type TaskGrantMapOutput added in v0.1.2

type TaskGrantMapOutput struct{ *pulumi.OutputState }

func (TaskGrantMapOutput) ElementType added in v0.1.2

func (TaskGrantMapOutput) ElementType() reflect.Type

func (TaskGrantMapOutput) MapIndex added in v0.1.2

func (TaskGrantMapOutput) ToTaskGrantMapOutput added in v0.1.2

func (o TaskGrantMapOutput) ToTaskGrantMapOutput() TaskGrantMapOutput

func (TaskGrantMapOutput) ToTaskGrantMapOutputWithContext added in v0.1.2

func (o TaskGrantMapOutput) ToTaskGrantMapOutputWithContext(ctx context.Context) TaskGrantMapOutput

type TaskGrantOutput added in v0.1.2

type TaskGrantOutput struct{ *pulumi.OutputState }

func (TaskGrantOutput) DatabaseName added in v0.9.0

func (o TaskGrantOutput) DatabaseName() pulumi.StringOutput

The name of the database containing the current or future tasks on which to grant privileges.

func (TaskGrantOutput) ElementType added in v0.1.2

func (TaskGrantOutput) ElementType() reflect.Type

func (TaskGrantOutput) EnableMultipleGrants added in v0.9.0

func (o TaskGrantOutput) EnableMultipleGrants() pulumi.BoolPtrOutput

When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke grants applied to roles and objects outside Terraform.

func (TaskGrantOutput) OnAll added in v0.25.0

When this is set to true and a schema*name is provided, apply this grant on all tasks in the given schema. When this is true and no schema*name is provided apply this grant on all tasks in the given database. The task*name field must be unset in order to use on*all. Cannot be used together with on_future.

func (TaskGrantOutput) OnFuture added in v0.9.0

func (o TaskGrantOutput) OnFuture() pulumi.BoolPtrOutput

When this is set to true and a schema*name is provided, apply this grant on all future tasks in the given schema. When this is true and no schema*name is provided apply this grant on all future tasks in the given database. The task*name field must be unset in order to use on*future. Cannot be used together with on_all.

func (TaskGrantOutput) Privilege added in v0.9.0

func (o TaskGrantOutput) Privilege() pulumi.StringPtrOutput

The privilege to grant on the current or future task. To grant all privileges, use the value `ALL PRIVILEGES`.

func (TaskGrantOutput) RevertOwnershipToRoleName added in v0.26.0

func (o TaskGrantOutput) RevertOwnershipToRoleName() pulumi.StringPtrOutput

The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`

func (TaskGrantOutput) Roles added in v0.9.0

Grants privilege to these roles.

func (TaskGrantOutput) SchemaName added in v0.9.0

func (o TaskGrantOutput) SchemaName() pulumi.StringPtrOutput

The name of the schema containing the current or future tasks on which to grant privileges.

func (TaskGrantOutput) TaskName added in v0.9.0

func (o TaskGrantOutput) TaskName() pulumi.StringPtrOutput

The name of the task on which to grant privileges immediately (only valid if onFuture is false).

func (TaskGrantOutput) ToTaskGrantOutput added in v0.1.2

func (o TaskGrantOutput) ToTaskGrantOutput() TaskGrantOutput

func (TaskGrantOutput) ToTaskGrantOutputWithContext added in v0.1.2

func (o TaskGrantOutput) ToTaskGrantOutputWithContext(ctx context.Context) TaskGrantOutput

func (TaskGrantOutput) WithGrantOption added in v0.9.0

func (o TaskGrantOutput) WithGrantOption() pulumi.BoolPtrOutput

When this is set to true, allows the recipient role to grant the privileges to other roles.

type TaskGrantState added in v0.1.2

type TaskGrantState struct {
	// The name of the database containing the current or future tasks on which to grant privileges.
	DatabaseName pulumi.StringPtrInput
	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrInput
	// When this is set to true and a schema*name is provided, apply this grant on all tasks in the given schema. When this is true and no schema*name is provided apply this grant on all tasks in the given database. The task*name field must be unset in order to use on*all. Cannot be used together with on_future.
	OnAll pulumi.BoolPtrInput
	// When this is set to true and a schema*name is provided, apply this grant on all future tasks in the given schema. When this is true and no schema*name is provided apply this grant on all future tasks in the given database. The task*name field must be unset in order to use on*future. Cannot be used together with on_all.
	OnFuture pulumi.BoolPtrInput
	// The privilege to grant on the current or future task. To grant all privileges, use the value `ALL PRIVILEGES`.
	Privilege pulumi.StringPtrInput
	// The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
	RevertOwnershipToRoleName pulumi.StringPtrInput
	// Grants privilege to these roles.
	Roles pulumi.StringArrayInput
	// The name of the schema containing the current or future tasks on which to grant privileges.
	SchemaName pulumi.StringPtrInput
	// The name of the task on which to grant privileges immediately (only valid if onFuture is false).
	TaskName pulumi.StringPtrInput
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrInput
}

func (TaskGrantState) ElementType added in v0.1.2

func (TaskGrantState) ElementType() reflect.Type

type TaskInput

type TaskInput interface {
	pulumi.Input

	ToTaskOutput() TaskOutput
	ToTaskOutputWithContext(ctx context.Context) TaskOutput
}

type TaskMap

type TaskMap map[string]TaskInput

func (TaskMap) ElementType

func (TaskMap) ElementType() reflect.Type

func (TaskMap) ToTaskMapOutput

func (i TaskMap) ToTaskMapOutput() TaskMapOutput

func (TaskMap) ToTaskMapOutputWithContext

func (i TaskMap) ToTaskMapOutputWithContext(ctx context.Context) TaskMapOutput

type TaskMapInput

type TaskMapInput interface {
	pulumi.Input

	ToTaskMapOutput() TaskMapOutput
	ToTaskMapOutputWithContext(context.Context) TaskMapOutput
}

TaskMapInput is an input type that accepts TaskMap and TaskMapOutput values. You can construct a concrete instance of `TaskMapInput` via:

TaskMap{ "key": TaskArgs{...} }

type TaskMapOutput

type TaskMapOutput struct{ *pulumi.OutputState }

func (TaskMapOutput) ElementType

func (TaskMapOutput) ElementType() reflect.Type

func (TaskMapOutput) MapIndex

func (TaskMapOutput) ToTaskMapOutput

func (o TaskMapOutput) ToTaskMapOutput() TaskMapOutput

func (TaskMapOutput) ToTaskMapOutputWithContext

func (o TaskMapOutput) ToTaskMapOutputWithContext(ctx context.Context) TaskMapOutput

type TaskOutput

type TaskOutput struct{ *pulumi.OutputState }

func (TaskOutput) Afters added in v0.15.0

func (o TaskOutput) Afters() pulumi.StringArrayOutput

Specifies one or more predecessor tasks for the current task. Use this option to create a DAG of tasks or add this task to an existing DAG. A DAG is a series of tasks that starts with a scheduled root task and is linked together by dependencies.

func (TaskOutput) AllowOverlappingExecution added in v0.15.0

func (o TaskOutput) AllowOverlappingExecution() pulumi.BoolPtrOutput

By default, Snowflake ensures that only one instance of a particular DAG is allowed to run at a time, setting the parameter value to TRUE permits DAG runs to overlap.

func (TaskOutput) Comment added in v0.9.0

func (o TaskOutput) Comment() pulumi.StringPtrOutput

Specifies a comment for the task.

func (TaskOutput) Database added in v0.9.0

func (o TaskOutput) Database() pulumi.StringOutput

The database in which to create the task.

func (TaskOutput) ElementType

func (TaskOutput) ElementType() reflect.Type

func (TaskOutput) Enabled added in v0.9.0

func (o TaskOutput) Enabled() pulumi.BoolPtrOutput

Specifies if the task should be started (enabled) after creation or should remain suspended (default).

func (TaskOutput) ErrorIntegration added in v0.9.0

func (o TaskOutput) ErrorIntegration() pulumi.StringPtrOutput

Specifies the name of the notification integration used for error notifications.

func (TaskOutput) Name added in v0.9.0

func (o TaskOutput) Name() pulumi.StringOutput

Specifies the identifier for the task; must be unique for the database and schema in which the task is created.

func (TaskOutput) Schedule added in v0.9.0

func (o TaskOutput) Schedule() pulumi.StringPtrOutput

The schedule for periodically running the task. This can be a cron or interval in minutes. (Conflict with after)

func (TaskOutput) Schema added in v0.9.0

func (o TaskOutput) Schema() pulumi.StringOutput

The schema in which to create the task.

func (TaskOutput) SessionParameters added in v0.9.0

func (o TaskOutput) SessionParameters() pulumi.StringMapOutput

Specifies session parameters to set for the session when the task runs. A task supports all session parameters.

func (TaskOutput) SqlStatement added in v0.9.0

func (o TaskOutput) SqlStatement() pulumi.StringOutput

Any single SQL statement, or a call to a stored procedure, executed when the task runs.

func (TaskOutput) ToTaskOutput

func (o TaskOutput) ToTaskOutput() TaskOutput

func (TaskOutput) ToTaskOutputWithContext

func (o TaskOutput) ToTaskOutputWithContext(ctx context.Context) TaskOutput

func (TaskOutput) UserTaskManagedInitialWarehouseSize added in v0.9.0

func (o TaskOutput) UserTaskManagedInitialWarehouseSize() pulumi.StringPtrOutput

Specifies the size of the compute resources to provision for the first run of the task, before a task history is available for Snowflake to determine an ideal size. Once a task has successfully completed a few runs, Snowflake ignores this parameter setting. (Conflicts with warehouse)

func (TaskOutput) UserTaskTimeoutMs added in v0.9.0

func (o TaskOutput) UserTaskTimeoutMs() pulumi.IntPtrOutput

Specifies the time limit on a single run of the task before it times out (in milliseconds).

func (TaskOutput) Warehouse added in v0.9.0

func (o TaskOutput) Warehouse() pulumi.StringPtrOutput

The warehouse the task will use. Omit this parameter to use Snowflake-managed compute resources for runs of this task. (Conflicts with user*task*managed*initial*warehouse_size)

func (TaskOutput) When added in v0.9.0

Specifies a Boolean SQL expression; multiple conditions joined with AND/OR are supported.

type TaskState

type TaskState struct {
	// Specifies one or more predecessor tasks for the current task. Use this option to create a DAG of tasks or add this task to an existing DAG. A DAG is a series of tasks that starts with a scheduled root task and is linked together by dependencies.
	Afters pulumi.StringArrayInput
	// By default, Snowflake ensures that only one instance of a particular DAG is allowed to run at a time, setting the parameter value to TRUE permits DAG runs to overlap.
	AllowOverlappingExecution pulumi.BoolPtrInput
	// Specifies a comment for the task.
	Comment pulumi.StringPtrInput
	// The database in which to create the task.
	Database pulumi.StringPtrInput
	// Specifies if the task should be started (enabled) after creation or should remain suspended (default).
	Enabled pulumi.BoolPtrInput
	// Specifies the name of the notification integration used for error notifications.
	ErrorIntegration pulumi.StringPtrInput
	// Specifies the identifier for the task; must be unique for the database and schema in which the task is created.
	Name pulumi.StringPtrInput
	// The schedule for periodically running the task. This can be a cron or interval in minutes. (Conflict with after)
	Schedule pulumi.StringPtrInput
	// The schema in which to create the task.
	Schema pulumi.StringPtrInput
	// Specifies session parameters to set for the session when the task runs. A task supports all session parameters.
	SessionParameters pulumi.StringMapInput
	// Any single SQL statement, or a call to a stored procedure, executed when the task runs.
	SqlStatement pulumi.StringPtrInput
	// Specifies the size of the compute resources to provision for the first run of the task, before a task history is available for Snowflake to determine an ideal size. Once a task has successfully completed a few runs, Snowflake ignores this parameter setting. (Conflicts with warehouse)
	UserTaskManagedInitialWarehouseSize pulumi.StringPtrInput
	// Specifies the time limit on a single run of the task before it times out (in milliseconds).
	UserTaskTimeoutMs pulumi.IntPtrInput
	// The warehouse the task will use. Omit this parameter to use Snowflake-managed compute resources for runs of this task. (Conflicts with user*task*managed*initial*warehouse_size)
	Warehouse pulumi.StringPtrInput
	// Specifies a Boolean SQL expression; multiple conditions joined with AND/OR are supported.
	When pulumi.StringPtrInput
}

func (TaskState) ElementType

func (TaskState) ElementType() reflect.Type

type User

type User struct {
	pulumi.CustomResourceState

	Comment pulumi.StringPtrOutput `pulumi:"comment"`
	// Specifies the namespace (database only or database and schema) that is active by default for the user’s session upon login.
	DefaultNamespace pulumi.StringPtrOutput `pulumi:"defaultNamespace"`
	// Specifies the role that is active by default for the user’s session upon login.
	DefaultRole pulumi.StringOutput `pulumi:"defaultRole"`
	// Specifies the set of secondary roles that are active for the user’s session upon login. Currently only ["ALL"] value is supported - more information can be found in [doc](https://docs.snowflake.com/en/sql-reference/sql/create-user#optional-object-properties-objectproperties)
	DefaultSecondaryRoles pulumi.StringArrayOutput `pulumi:"defaultSecondaryRoles"`
	// Specifies the virtual warehouse that is active by default for the user’s session upon login.
	DefaultWarehouse pulumi.StringPtrOutput `pulumi:"defaultWarehouse"`
	Disabled         pulumi.BoolOutput      `pulumi:"disabled"`
	// Name displayed for the user in the Snowflake web interface.
	DisplayName pulumi.StringOutput `pulumi:"displayName"`
	// Email address for the user.
	Email pulumi.StringPtrOutput `pulumi:"email"`
	// First name of the user.
	FirstName pulumi.StringPtrOutput `pulumi:"firstName"`
	// Will be true if user as an RSA key set.
	HasRsaPublicKey pulumi.BoolOutput `pulumi:"hasRsaPublicKey"`
	// Last name of the user.
	LastName pulumi.StringPtrOutput `pulumi:"lastName"`
	// The name users use to log in. If not supplied, snowflake will use name instead.
	LoginName pulumi.StringOutput `pulumi:"loginName"`
	// Specifies whether the user is forced to change their password on next login (including their first/initial login) into the system.
	MustChangePassword pulumi.BoolPtrOutput `pulumi:"mustChangePassword"`
	// Name of the user. Note that if you do not supply login*name this will be used as login*name. [doc](https://docs.snowflake.net/manuals/sql-reference/sql/create-user.html#required-parameters)
	Name pulumi.StringOutput `pulumi:"name"`
	// **WARNING:** this will put the password in the terraform state file. Use carefully.
	Password pulumi.StringPtrOutput `pulumi:"password"`
	// Specifies the user’s RSA public key; used for key-pair authentication. Must be on 1 line without header and trailer.
	RsaPublicKey pulumi.StringPtrOutput `pulumi:"rsaPublicKey"`
	// Specifies the user’s second RSA public key; used to rotate the public and private keys for key-pair authentication based on an expiration schedule set by your organization. Must be on 1 line without header and trailer.
	RsaPublicKey2 pulumi.StringPtrOutput `pulumi:"rsaPublicKey2"`
	// Definitions of a tag to associate with the resource.
	//
	// Deprecated: Use the 'snowflake_tag_association' resource instead.
	Tags UserTagArrayOutput `pulumi:"tags"`
}

## Example Usage

```go 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.NewUser(ctx, "user", &snowflake.UserArgs{
			Comment:     pulumi.String("A user of snowflake."),
			DefaultRole: pulumi.String("role1"),
			DefaultSecondaryRoles: pulumi.StringArray{
				pulumi.String("ALL"),
			},
			DefaultWarehouse:   pulumi.String("warehouse"),
			Disabled:           pulumi.Bool(false),
			DisplayName:        pulumi.String("Snowflake User"),
			Email:              pulumi.String("user@snowflake.example"),
			FirstName:          pulumi.String("Snowflake"),
			LastName:           pulumi.String("User"),
			LoginName:          pulumi.String("snowflake_user"),
			MustChangePassword: pulumi.Bool(false),
			Password:           pulumi.String("secret"),
			RsaPublicKey:       pulumi.String("..."),
			RsaPublicKey2:      pulumi.String("..."),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

```sh

$ pulumi import snowflake:index/user:User example userName

```

func GetUser

func GetUser(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *UserState, opts ...pulumi.ResourceOption) (*User, error)

GetUser gets an existing User resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewUser

func NewUser(ctx *pulumi.Context,
	name string, args *UserArgs, opts ...pulumi.ResourceOption) (*User, error)

NewUser registers a new resource with the given unique name, arguments, and options.

func (*User) ElementType

func (*User) ElementType() reflect.Type

func (*User) ToUserOutput

func (i *User) ToUserOutput() UserOutput

func (*User) ToUserOutputWithContext

func (i *User) ToUserOutputWithContext(ctx context.Context) UserOutput

type UserArgs

type UserArgs struct {
	Comment pulumi.StringPtrInput
	// Specifies the namespace (database only or database and schema) that is active by default for the user’s session upon login.
	DefaultNamespace pulumi.StringPtrInput
	// Specifies the role that is active by default for the user’s session upon login.
	DefaultRole pulumi.StringPtrInput
	// Specifies the set of secondary roles that are active for the user’s session upon login. Currently only ["ALL"] value is supported - more information can be found in [doc](https://docs.snowflake.com/en/sql-reference/sql/create-user#optional-object-properties-objectproperties)
	DefaultSecondaryRoles pulumi.StringArrayInput
	// Specifies the virtual warehouse that is active by default for the user’s session upon login.
	DefaultWarehouse pulumi.StringPtrInput
	Disabled         pulumi.BoolPtrInput
	// Name displayed for the user in the Snowflake web interface.
	DisplayName pulumi.StringPtrInput
	// Email address for the user.
	Email pulumi.StringPtrInput
	// First name of the user.
	FirstName pulumi.StringPtrInput
	// Last name of the user.
	LastName pulumi.StringPtrInput
	// The name users use to log in. If not supplied, snowflake will use name instead.
	LoginName pulumi.StringPtrInput
	// Specifies whether the user is forced to change their password on next login (including their first/initial login) into the system.
	MustChangePassword pulumi.BoolPtrInput
	// Name of the user. Note that if you do not supply login*name this will be used as login*name. [doc](https://docs.snowflake.net/manuals/sql-reference/sql/create-user.html#required-parameters)
	Name pulumi.StringPtrInput
	// **WARNING:** this will put the password in the terraform state file. Use carefully.
	Password pulumi.StringPtrInput
	// Specifies the user’s RSA public key; used for key-pair authentication. Must be on 1 line without header and trailer.
	RsaPublicKey pulumi.StringPtrInput
	// Specifies the user’s second RSA public key; used to rotate the public and private keys for key-pair authentication based on an expiration schedule set by your organization. Must be on 1 line without header and trailer.
	RsaPublicKey2 pulumi.StringPtrInput
	// Definitions of a tag to associate with the resource.
	//
	// Deprecated: Use the 'snowflake_tag_association' resource instead.
	Tags UserTagArrayInput
}

The set of arguments for constructing a User resource.

func (UserArgs) ElementType

func (UserArgs) ElementType() reflect.Type

type UserArray

type UserArray []UserInput

func (UserArray) ElementType

func (UserArray) ElementType() reflect.Type

func (UserArray) ToUserArrayOutput

func (i UserArray) ToUserArrayOutput() UserArrayOutput

func (UserArray) ToUserArrayOutputWithContext

func (i UserArray) ToUserArrayOutputWithContext(ctx context.Context) UserArrayOutput

type UserArrayInput

type UserArrayInput interface {
	pulumi.Input

	ToUserArrayOutput() UserArrayOutput
	ToUserArrayOutputWithContext(context.Context) UserArrayOutput
}

UserArrayInput is an input type that accepts UserArray and UserArrayOutput values. You can construct a concrete instance of `UserArrayInput` via:

UserArray{ UserArgs{...} }

type UserArrayOutput

type UserArrayOutput struct{ *pulumi.OutputState }

func (UserArrayOutput) ElementType

func (UserArrayOutput) ElementType() reflect.Type

func (UserArrayOutput) Index

func (UserArrayOutput) ToUserArrayOutput

func (o UserArrayOutput) ToUserArrayOutput() UserArrayOutput

func (UserArrayOutput) ToUserArrayOutputWithContext

func (o UserArrayOutput) ToUserArrayOutputWithContext(ctx context.Context) UserArrayOutput

type UserGrant added in v0.14.0

type UserGrant struct {
	pulumi.CustomResourceState

	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrOutput `pulumi:"enableMultipleGrants"`
	// The privilege to grant on the user. To grant all privileges, use the value `ALL PRIVILEGES`.
	Privilege pulumi.StringOutput `pulumi:"privilege"`
	// Grants privilege to these roles.
	Roles pulumi.StringArrayOutput `pulumi:"roles"`
	// The name of the user on which to grant privileges.
	UserName pulumi.StringOutput `pulumi:"userName"`
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrOutput `pulumi:"withGrantOption"`
}

## Example Usage

```go 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.NewUserGrant(ctx, "grant", &snowflake.UserGrantArgs{
			Privilege: pulumi.String("MONITOR"),
			Roles: pulumi.StringArray{
				pulumi.String("role1"),
				pulumi.String("role2"),
			},
			UserName:        pulumi.String("user"),
			WithGrantOption: pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

format is user_name|privilege|with_grant_option|roles

```sh

$ pulumi import snowflake:index/userGrant:UserGrant example "USERNAME|MONITOR|false|role1,role2"

```

func GetUserGrant added in v0.14.0

func GetUserGrant(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *UserGrantState, opts ...pulumi.ResourceOption) (*UserGrant, error)

GetUserGrant gets an existing UserGrant resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewUserGrant added in v0.14.0

func NewUserGrant(ctx *pulumi.Context,
	name string, args *UserGrantArgs, opts ...pulumi.ResourceOption) (*UserGrant, error)

NewUserGrant registers a new resource with the given unique name, arguments, and options.

func (*UserGrant) ElementType added in v0.14.0

func (*UserGrant) ElementType() reflect.Type

func (*UserGrant) ToUserGrantOutput added in v0.14.0

func (i *UserGrant) ToUserGrantOutput() UserGrantOutput

func (*UserGrant) ToUserGrantOutputWithContext added in v0.14.0

func (i *UserGrant) ToUserGrantOutputWithContext(ctx context.Context) UserGrantOutput

type UserGrantArgs added in v0.14.0

type UserGrantArgs struct {
	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrInput
	// The privilege to grant on the user. To grant all privileges, use the value `ALL PRIVILEGES`.
	Privilege pulumi.StringInput
	// Grants privilege to these roles.
	Roles pulumi.StringArrayInput
	// The name of the user on which to grant privileges.
	UserName pulumi.StringInput
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrInput
}

The set of arguments for constructing a UserGrant resource.

func (UserGrantArgs) ElementType added in v0.14.0

func (UserGrantArgs) ElementType() reflect.Type

type UserGrantArray added in v0.14.0

type UserGrantArray []UserGrantInput

func (UserGrantArray) ElementType added in v0.14.0

func (UserGrantArray) ElementType() reflect.Type

func (UserGrantArray) ToUserGrantArrayOutput added in v0.14.0

func (i UserGrantArray) ToUserGrantArrayOutput() UserGrantArrayOutput

func (UserGrantArray) ToUserGrantArrayOutputWithContext added in v0.14.0

func (i UserGrantArray) ToUserGrantArrayOutputWithContext(ctx context.Context) UserGrantArrayOutput

type UserGrantArrayInput added in v0.14.0

type UserGrantArrayInput interface {
	pulumi.Input

	ToUserGrantArrayOutput() UserGrantArrayOutput
	ToUserGrantArrayOutputWithContext(context.Context) UserGrantArrayOutput
}

UserGrantArrayInput is an input type that accepts UserGrantArray and UserGrantArrayOutput values. You can construct a concrete instance of `UserGrantArrayInput` via:

UserGrantArray{ UserGrantArgs{...} }

type UserGrantArrayOutput added in v0.14.0

type UserGrantArrayOutput struct{ *pulumi.OutputState }

func (UserGrantArrayOutput) ElementType added in v0.14.0

func (UserGrantArrayOutput) ElementType() reflect.Type

func (UserGrantArrayOutput) Index added in v0.14.0

func (UserGrantArrayOutput) ToUserGrantArrayOutput added in v0.14.0

func (o UserGrantArrayOutput) ToUserGrantArrayOutput() UserGrantArrayOutput

func (UserGrantArrayOutput) ToUserGrantArrayOutputWithContext added in v0.14.0

func (o UserGrantArrayOutput) ToUserGrantArrayOutputWithContext(ctx context.Context) UserGrantArrayOutput

type UserGrantInput added in v0.14.0

type UserGrantInput interface {
	pulumi.Input

	ToUserGrantOutput() UserGrantOutput
	ToUserGrantOutputWithContext(ctx context.Context) UserGrantOutput
}

type UserGrantMap added in v0.14.0

type UserGrantMap map[string]UserGrantInput

func (UserGrantMap) ElementType added in v0.14.0

func (UserGrantMap) ElementType() reflect.Type

func (UserGrantMap) ToUserGrantMapOutput added in v0.14.0

func (i UserGrantMap) ToUserGrantMapOutput() UserGrantMapOutput

func (UserGrantMap) ToUserGrantMapOutputWithContext added in v0.14.0

func (i UserGrantMap) ToUserGrantMapOutputWithContext(ctx context.Context) UserGrantMapOutput

type UserGrantMapInput added in v0.14.0

type UserGrantMapInput interface {
	pulumi.Input

	ToUserGrantMapOutput() UserGrantMapOutput
	ToUserGrantMapOutputWithContext(context.Context) UserGrantMapOutput
}

UserGrantMapInput is an input type that accepts UserGrantMap and UserGrantMapOutput values. You can construct a concrete instance of `UserGrantMapInput` via:

UserGrantMap{ "key": UserGrantArgs{...} }

type UserGrantMapOutput added in v0.14.0

type UserGrantMapOutput struct{ *pulumi.OutputState }

func (UserGrantMapOutput) ElementType added in v0.14.0

func (UserGrantMapOutput) ElementType() reflect.Type

func (UserGrantMapOutput) MapIndex added in v0.14.0

func (UserGrantMapOutput) ToUserGrantMapOutput added in v0.14.0

func (o UserGrantMapOutput) ToUserGrantMapOutput() UserGrantMapOutput

func (UserGrantMapOutput) ToUserGrantMapOutputWithContext added in v0.14.0

func (o UserGrantMapOutput) ToUserGrantMapOutputWithContext(ctx context.Context) UserGrantMapOutput

type UserGrantOutput added in v0.14.0

type UserGrantOutput struct{ *pulumi.OutputState }

func (UserGrantOutput) ElementType added in v0.14.0

func (UserGrantOutput) ElementType() reflect.Type

func (UserGrantOutput) EnableMultipleGrants added in v0.14.0

func (o UserGrantOutput) EnableMultipleGrants() pulumi.BoolPtrOutput

When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke grants applied to roles and objects outside Terraform.

func (UserGrantOutput) Privilege added in v0.14.0

func (o UserGrantOutput) Privilege() pulumi.StringOutput

The privilege to grant on the user. To grant all privileges, use the value `ALL PRIVILEGES`.

func (UserGrantOutput) Roles added in v0.14.0

Grants privilege to these roles.

func (UserGrantOutput) ToUserGrantOutput added in v0.14.0

func (o UserGrantOutput) ToUserGrantOutput() UserGrantOutput

func (UserGrantOutput) ToUserGrantOutputWithContext added in v0.14.0

func (o UserGrantOutput) ToUserGrantOutputWithContext(ctx context.Context) UserGrantOutput

func (UserGrantOutput) UserName added in v0.14.0

func (o UserGrantOutput) UserName() pulumi.StringOutput

The name of the user on which to grant privileges.

func (UserGrantOutput) WithGrantOption added in v0.14.0

func (o UserGrantOutput) WithGrantOption() pulumi.BoolPtrOutput

When this is set to true, allows the recipient role to grant the privileges to other roles.

type UserGrantState added in v0.14.0

type UserGrantState struct {
	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrInput
	// The privilege to grant on the user. To grant all privileges, use the value `ALL PRIVILEGES`.
	Privilege pulumi.StringPtrInput
	// Grants privilege to these roles.
	Roles pulumi.StringArrayInput
	// The name of the user on which to grant privileges.
	UserName pulumi.StringPtrInput
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrInput
}

func (UserGrantState) ElementType added in v0.14.0

func (UserGrantState) ElementType() reflect.Type

type UserInput

type UserInput interface {
	pulumi.Input

	ToUserOutput() UserOutput
	ToUserOutputWithContext(ctx context.Context) UserOutput
}

type UserMap

type UserMap map[string]UserInput

func (UserMap) ElementType

func (UserMap) ElementType() reflect.Type

func (UserMap) ToUserMapOutput

func (i UserMap) ToUserMapOutput() UserMapOutput

func (UserMap) ToUserMapOutputWithContext

func (i UserMap) ToUserMapOutputWithContext(ctx context.Context) UserMapOutput

type UserMapInput

type UserMapInput interface {
	pulumi.Input

	ToUserMapOutput() UserMapOutput
	ToUserMapOutputWithContext(context.Context) UserMapOutput
}

UserMapInput is an input type that accepts UserMap and UserMapOutput values. You can construct a concrete instance of `UserMapInput` via:

UserMap{ "key": UserArgs{...} }

type UserMapOutput

type UserMapOutput struct{ *pulumi.OutputState }

func (UserMapOutput) ElementType

func (UserMapOutput) ElementType() reflect.Type

func (UserMapOutput) MapIndex

func (UserMapOutput) ToUserMapOutput

func (o UserMapOutput) ToUserMapOutput() UserMapOutput

func (UserMapOutput) ToUserMapOutputWithContext

func (o UserMapOutput) ToUserMapOutputWithContext(ctx context.Context) UserMapOutput

type UserOutput

type UserOutput struct{ *pulumi.OutputState }

func (UserOutput) Comment added in v0.9.0

func (o UserOutput) Comment() pulumi.StringPtrOutput

func (UserOutput) DefaultNamespace added in v0.9.0

func (o UserOutput) DefaultNamespace() pulumi.StringPtrOutput

Specifies the namespace (database only or database and schema) that is active by default for the user’s session upon login.

func (UserOutput) DefaultRole added in v0.9.0

func (o UserOutput) DefaultRole() pulumi.StringOutput

Specifies the role that is active by default for the user’s session upon login.

func (UserOutput) DefaultSecondaryRoles added in v0.10.0

func (o UserOutput) DefaultSecondaryRoles() pulumi.StringArrayOutput

Specifies the set of secondary roles that are active for the user’s session upon login. Currently only ["ALL"] value is supported - more information can be found in [doc](https://docs.snowflake.com/en/sql-reference/sql/create-user#optional-object-properties-objectproperties)

func (UserOutput) DefaultWarehouse added in v0.9.0

func (o UserOutput) DefaultWarehouse() pulumi.StringPtrOutput

Specifies the virtual warehouse that is active by default for the user’s session upon login.

func (UserOutput) Disabled added in v0.9.0

func (o UserOutput) Disabled() pulumi.BoolOutput

func (UserOutput) DisplayName added in v0.9.0

func (o UserOutput) DisplayName() pulumi.StringOutput

Name displayed for the user in the Snowflake web interface.

func (UserOutput) ElementType

func (UserOutput) ElementType() reflect.Type

func (UserOutput) Email added in v0.9.0

func (o UserOutput) Email() pulumi.StringPtrOutput

Email address for the user.

func (UserOutput) FirstName added in v0.9.0

func (o UserOutput) FirstName() pulumi.StringPtrOutput

First name of the user.

func (UserOutput) HasRsaPublicKey added in v0.9.0

func (o UserOutput) HasRsaPublicKey() pulumi.BoolOutput

Will be true if user as an RSA key set.

func (UserOutput) LastName added in v0.9.0

func (o UserOutput) LastName() pulumi.StringPtrOutput

Last name of the user.

func (UserOutput) LoginName added in v0.9.0

func (o UserOutput) LoginName() pulumi.StringOutput

The name users use to log in. If not supplied, snowflake will use name instead.

func (UserOutput) MustChangePassword added in v0.9.0

func (o UserOutput) MustChangePassword() pulumi.BoolPtrOutput

Specifies whether the user is forced to change their password on next login (including their first/initial login) into the system.

func (UserOutput) Name added in v0.9.0

func (o UserOutput) Name() pulumi.StringOutput

Name of the user. Note that if you do not supply login*name this will be used as login*name. [doc](https://docs.snowflake.net/manuals/sql-reference/sql/create-user.html#required-parameters)

func (UserOutput) Password added in v0.9.0

func (o UserOutput) Password() pulumi.StringPtrOutput

**WARNING:** this will put the password in the terraform state file. Use carefully.

func (UserOutput) RsaPublicKey added in v0.9.0

func (o UserOutput) RsaPublicKey() pulumi.StringPtrOutput

Specifies the user’s RSA public key; used for key-pair authentication. Must be on 1 line without header and trailer.

func (UserOutput) RsaPublicKey2 added in v0.9.0

func (o UserOutput) RsaPublicKey2() pulumi.StringPtrOutput

Specifies the user’s second RSA public key; used to rotate the public and private keys for key-pair authentication based on an expiration schedule set by your organization. Must be on 1 line without header and trailer.

func (UserOutput) Tags deprecated added in v0.9.0

func (o UserOutput) Tags() UserTagArrayOutput

Definitions of a tag to associate with the resource.

Deprecated: Use the 'snowflake_tag_association' resource instead.

func (UserOutput) ToUserOutput

func (o UserOutput) ToUserOutput() UserOutput

func (UserOutput) ToUserOutputWithContext

func (o UserOutput) ToUserOutputWithContext(ctx context.Context) UserOutput

type UserOwnershipGrant added in v0.8.0

type UserOwnershipGrant struct {
	pulumi.CustomResourceState

	// Specifies whether to remove or transfer all existing outbound privileges on the object when ownership is transferred to a new role.
	CurrentGrants pulumi.StringPtrOutput `pulumi:"currentGrants"`
	// The name of the user ownership is granted on.
	OnUserName pulumi.StringOutput `pulumi:"onUserName"`
	// The name of the role to revert ownership to on destroy.
	RevertOwnershipToRoleName pulumi.StringPtrOutput `pulumi:"revertOwnershipToRoleName"`
	// The name of the role to grant ownership. Please ensure that the role that terraform is using is granted access.
	ToRoleName pulumi.StringOutput `pulumi:"toRoleName"`
}

func GetUserOwnershipGrant added in v0.8.0

func GetUserOwnershipGrant(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *UserOwnershipGrantState, opts ...pulumi.ResourceOption) (*UserOwnershipGrant, error)

GetUserOwnershipGrant gets an existing UserOwnershipGrant resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewUserOwnershipGrant added in v0.8.0

func NewUserOwnershipGrant(ctx *pulumi.Context,
	name string, args *UserOwnershipGrantArgs, opts ...pulumi.ResourceOption) (*UserOwnershipGrant, error)

NewUserOwnershipGrant registers a new resource with the given unique name, arguments, and options.

func (*UserOwnershipGrant) ElementType added in v0.8.0

func (*UserOwnershipGrant) ElementType() reflect.Type

func (*UserOwnershipGrant) ToUserOwnershipGrantOutput added in v0.8.0

func (i *UserOwnershipGrant) ToUserOwnershipGrantOutput() UserOwnershipGrantOutput

func (*UserOwnershipGrant) ToUserOwnershipGrantOutputWithContext added in v0.8.0

func (i *UserOwnershipGrant) ToUserOwnershipGrantOutputWithContext(ctx context.Context) UserOwnershipGrantOutput

type UserOwnershipGrantArgs added in v0.8.0

type UserOwnershipGrantArgs struct {
	// Specifies whether to remove or transfer all existing outbound privileges on the object when ownership is transferred to a new role.
	CurrentGrants pulumi.StringPtrInput
	// The name of the user ownership is granted on.
	OnUserName pulumi.StringInput
	// The name of the role to revert ownership to on destroy.
	RevertOwnershipToRoleName pulumi.StringPtrInput
	// The name of the role to grant ownership. Please ensure that the role that terraform is using is granted access.
	ToRoleName pulumi.StringInput
}

The set of arguments for constructing a UserOwnershipGrant resource.

func (UserOwnershipGrantArgs) ElementType added in v0.8.0

func (UserOwnershipGrantArgs) ElementType() reflect.Type

type UserOwnershipGrantArray added in v0.8.0

type UserOwnershipGrantArray []UserOwnershipGrantInput

func (UserOwnershipGrantArray) ElementType added in v0.8.0

func (UserOwnershipGrantArray) ElementType() reflect.Type

func (UserOwnershipGrantArray) ToUserOwnershipGrantArrayOutput added in v0.8.0

func (i UserOwnershipGrantArray) ToUserOwnershipGrantArrayOutput() UserOwnershipGrantArrayOutput

func (UserOwnershipGrantArray) ToUserOwnershipGrantArrayOutputWithContext added in v0.8.0

func (i UserOwnershipGrantArray) ToUserOwnershipGrantArrayOutputWithContext(ctx context.Context) UserOwnershipGrantArrayOutput

type UserOwnershipGrantArrayInput added in v0.8.0

type UserOwnershipGrantArrayInput interface {
	pulumi.Input

	ToUserOwnershipGrantArrayOutput() UserOwnershipGrantArrayOutput
	ToUserOwnershipGrantArrayOutputWithContext(context.Context) UserOwnershipGrantArrayOutput
}

UserOwnershipGrantArrayInput is an input type that accepts UserOwnershipGrantArray and UserOwnershipGrantArrayOutput values. You can construct a concrete instance of `UserOwnershipGrantArrayInput` via:

UserOwnershipGrantArray{ UserOwnershipGrantArgs{...} }

type UserOwnershipGrantArrayOutput added in v0.8.0

type UserOwnershipGrantArrayOutput struct{ *pulumi.OutputState }

func (UserOwnershipGrantArrayOutput) ElementType added in v0.8.0

func (UserOwnershipGrantArrayOutput) Index added in v0.8.0

func (UserOwnershipGrantArrayOutput) ToUserOwnershipGrantArrayOutput added in v0.8.0

func (o UserOwnershipGrantArrayOutput) ToUserOwnershipGrantArrayOutput() UserOwnershipGrantArrayOutput

func (UserOwnershipGrantArrayOutput) ToUserOwnershipGrantArrayOutputWithContext added in v0.8.0

func (o UserOwnershipGrantArrayOutput) ToUserOwnershipGrantArrayOutputWithContext(ctx context.Context) UserOwnershipGrantArrayOutput

type UserOwnershipGrantInput added in v0.8.0

type UserOwnershipGrantInput interface {
	pulumi.Input

	ToUserOwnershipGrantOutput() UserOwnershipGrantOutput
	ToUserOwnershipGrantOutputWithContext(ctx context.Context) UserOwnershipGrantOutput
}

type UserOwnershipGrantMap added in v0.8.0

type UserOwnershipGrantMap map[string]UserOwnershipGrantInput

func (UserOwnershipGrantMap) ElementType added in v0.8.0

func (UserOwnershipGrantMap) ElementType() reflect.Type

func (UserOwnershipGrantMap) ToUserOwnershipGrantMapOutput added in v0.8.0

func (i UserOwnershipGrantMap) ToUserOwnershipGrantMapOutput() UserOwnershipGrantMapOutput

func (UserOwnershipGrantMap) ToUserOwnershipGrantMapOutputWithContext added in v0.8.0

func (i UserOwnershipGrantMap) ToUserOwnershipGrantMapOutputWithContext(ctx context.Context) UserOwnershipGrantMapOutput

type UserOwnershipGrantMapInput added in v0.8.0

type UserOwnershipGrantMapInput interface {
	pulumi.Input

	ToUserOwnershipGrantMapOutput() UserOwnershipGrantMapOutput
	ToUserOwnershipGrantMapOutputWithContext(context.Context) UserOwnershipGrantMapOutput
}

UserOwnershipGrantMapInput is an input type that accepts UserOwnershipGrantMap and UserOwnershipGrantMapOutput values. You can construct a concrete instance of `UserOwnershipGrantMapInput` via:

UserOwnershipGrantMap{ "key": UserOwnershipGrantArgs{...} }

type UserOwnershipGrantMapOutput added in v0.8.0

type UserOwnershipGrantMapOutput struct{ *pulumi.OutputState }

func (UserOwnershipGrantMapOutput) ElementType added in v0.8.0

func (UserOwnershipGrantMapOutput) MapIndex added in v0.8.0

func (UserOwnershipGrantMapOutput) ToUserOwnershipGrantMapOutput added in v0.8.0

func (o UserOwnershipGrantMapOutput) ToUserOwnershipGrantMapOutput() UserOwnershipGrantMapOutput

func (UserOwnershipGrantMapOutput) ToUserOwnershipGrantMapOutputWithContext added in v0.8.0

func (o UserOwnershipGrantMapOutput) ToUserOwnershipGrantMapOutputWithContext(ctx context.Context) UserOwnershipGrantMapOutput

type UserOwnershipGrantOutput added in v0.8.0

type UserOwnershipGrantOutput struct{ *pulumi.OutputState }

func (UserOwnershipGrantOutput) CurrentGrants added in v0.9.0

Specifies whether to remove or transfer all existing outbound privileges on the object when ownership is transferred to a new role.

func (UserOwnershipGrantOutput) ElementType added in v0.8.0

func (UserOwnershipGrantOutput) ElementType() reflect.Type

func (UserOwnershipGrantOutput) OnUserName added in v0.9.0

The name of the user ownership is granted on.

func (UserOwnershipGrantOutput) RevertOwnershipToRoleName added in v0.15.0

func (o UserOwnershipGrantOutput) RevertOwnershipToRoleName() pulumi.StringPtrOutput

The name of the role to revert ownership to on destroy.

func (UserOwnershipGrantOutput) ToRoleName added in v0.9.0

The name of the role to grant ownership. Please ensure that the role that terraform is using is granted access.

func (UserOwnershipGrantOutput) ToUserOwnershipGrantOutput added in v0.8.0

func (o UserOwnershipGrantOutput) ToUserOwnershipGrantOutput() UserOwnershipGrantOutput

func (UserOwnershipGrantOutput) ToUserOwnershipGrantOutputWithContext added in v0.8.0

func (o UserOwnershipGrantOutput) ToUserOwnershipGrantOutputWithContext(ctx context.Context) UserOwnershipGrantOutput

type UserOwnershipGrantState added in v0.8.0

type UserOwnershipGrantState struct {
	// Specifies whether to remove or transfer all existing outbound privileges on the object when ownership is transferred to a new role.
	CurrentGrants pulumi.StringPtrInput
	// The name of the user ownership is granted on.
	OnUserName pulumi.StringPtrInput
	// The name of the role to revert ownership to on destroy.
	RevertOwnershipToRoleName pulumi.StringPtrInput
	// The name of the role to grant ownership. Please ensure that the role that terraform is using is granted access.
	ToRoleName pulumi.StringPtrInput
}

func (UserOwnershipGrantState) ElementType added in v0.8.0

func (UserOwnershipGrantState) ElementType() reflect.Type

type UserPublicKeys

type UserPublicKeys struct {
	pulumi.CustomResourceState

	// Name of the user.
	Name pulumi.StringOutput `pulumi:"name"`
	// Specifies the user’s RSA public key; used for key-pair authentication. Must be on 1 line without header and trailer.
	RsaPublicKey pulumi.StringPtrOutput `pulumi:"rsaPublicKey"`
	// Specifies the user’s second RSA public key; used to rotate the public and Public keys for key-pair authentication based on an expiration schedule set by your organization. Must be on 1 line without header and trailer.
	RsaPublicKey2 pulumi.StringPtrOutput `pulumi:"rsaPublicKey2"`
}

func GetUserPublicKeys

func GetUserPublicKeys(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *UserPublicKeysState, opts ...pulumi.ResourceOption) (*UserPublicKeys, error)

GetUserPublicKeys gets an existing UserPublicKeys resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewUserPublicKeys

func NewUserPublicKeys(ctx *pulumi.Context,
	name string, args *UserPublicKeysArgs, opts ...pulumi.ResourceOption) (*UserPublicKeys, error)

NewUserPublicKeys registers a new resource with the given unique name, arguments, and options.

func (*UserPublicKeys) ElementType

func (*UserPublicKeys) ElementType() reflect.Type

func (*UserPublicKeys) ToUserPublicKeysOutput

func (i *UserPublicKeys) ToUserPublicKeysOutput() UserPublicKeysOutput

func (*UserPublicKeys) ToUserPublicKeysOutputWithContext

func (i *UserPublicKeys) ToUserPublicKeysOutputWithContext(ctx context.Context) UserPublicKeysOutput

type UserPublicKeysArgs

type UserPublicKeysArgs struct {
	// Name of the user.
	Name pulumi.StringPtrInput
	// Specifies the user’s RSA public key; used for key-pair authentication. Must be on 1 line without header and trailer.
	RsaPublicKey pulumi.StringPtrInput
	// Specifies the user’s second RSA public key; used to rotate the public and Public keys for key-pair authentication based on an expiration schedule set by your organization. Must be on 1 line without header and trailer.
	RsaPublicKey2 pulumi.StringPtrInput
}

The set of arguments for constructing a UserPublicKeys resource.

func (UserPublicKeysArgs) ElementType

func (UserPublicKeysArgs) ElementType() reflect.Type

type UserPublicKeysArray

type UserPublicKeysArray []UserPublicKeysInput

func (UserPublicKeysArray) ElementType

func (UserPublicKeysArray) ElementType() reflect.Type

func (UserPublicKeysArray) ToUserPublicKeysArrayOutput

func (i UserPublicKeysArray) ToUserPublicKeysArrayOutput() UserPublicKeysArrayOutput

func (UserPublicKeysArray) ToUserPublicKeysArrayOutputWithContext

func (i UserPublicKeysArray) ToUserPublicKeysArrayOutputWithContext(ctx context.Context) UserPublicKeysArrayOutput

type UserPublicKeysArrayInput

type UserPublicKeysArrayInput interface {
	pulumi.Input

	ToUserPublicKeysArrayOutput() UserPublicKeysArrayOutput
	ToUserPublicKeysArrayOutputWithContext(context.Context) UserPublicKeysArrayOutput
}

UserPublicKeysArrayInput is an input type that accepts UserPublicKeysArray and UserPublicKeysArrayOutput values. You can construct a concrete instance of `UserPublicKeysArrayInput` via:

UserPublicKeysArray{ UserPublicKeysArgs{...} }

type UserPublicKeysArrayOutput

type UserPublicKeysArrayOutput struct{ *pulumi.OutputState }

func (UserPublicKeysArrayOutput) ElementType

func (UserPublicKeysArrayOutput) ElementType() reflect.Type

func (UserPublicKeysArrayOutput) Index

func (UserPublicKeysArrayOutput) ToUserPublicKeysArrayOutput

func (o UserPublicKeysArrayOutput) ToUserPublicKeysArrayOutput() UserPublicKeysArrayOutput

func (UserPublicKeysArrayOutput) ToUserPublicKeysArrayOutputWithContext

func (o UserPublicKeysArrayOutput) ToUserPublicKeysArrayOutputWithContext(ctx context.Context) UserPublicKeysArrayOutput

type UserPublicKeysInput

type UserPublicKeysInput interface {
	pulumi.Input

	ToUserPublicKeysOutput() UserPublicKeysOutput
	ToUserPublicKeysOutputWithContext(ctx context.Context) UserPublicKeysOutput
}

type UserPublicKeysMap

type UserPublicKeysMap map[string]UserPublicKeysInput

func (UserPublicKeysMap) ElementType

func (UserPublicKeysMap) ElementType() reflect.Type

func (UserPublicKeysMap) ToUserPublicKeysMapOutput

func (i UserPublicKeysMap) ToUserPublicKeysMapOutput() UserPublicKeysMapOutput

func (UserPublicKeysMap) ToUserPublicKeysMapOutputWithContext

func (i UserPublicKeysMap) ToUserPublicKeysMapOutputWithContext(ctx context.Context) UserPublicKeysMapOutput

type UserPublicKeysMapInput

type UserPublicKeysMapInput interface {
	pulumi.Input

	ToUserPublicKeysMapOutput() UserPublicKeysMapOutput
	ToUserPublicKeysMapOutputWithContext(context.Context) UserPublicKeysMapOutput
}

UserPublicKeysMapInput is an input type that accepts UserPublicKeysMap and UserPublicKeysMapOutput values. You can construct a concrete instance of `UserPublicKeysMapInput` via:

UserPublicKeysMap{ "key": UserPublicKeysArgs{...} }

type UserPublicKeysMapOutput

type UserPublicKeysMapOutput struct{ *pulumi.OutputState }

func (UserPublicKeysMapOutput) ElementType

func (UserPublicKeysMapOutput) ElementType() reflect.Type

func (UserPublicKeysMapOutput) MapIndex

func (UserPublicKeysMapOutput) ToUserPublicKeysMapOutput

func (o UserPublicKeysMapOutput) ToUserPublicKeysMapOutput() UserPublicKeysMapOutput

func (UserPublicKeysMapOutput) ToUserPublicKeysMapOutputWithContext

func (o UserPublicKeysMapOutput) ToUserPublicKeysMapOutputWithContext(ctx context.Context) UserPublicKeysMapOutput

type UserPublicKeysOutput

type UserPublicKeysOutput struct{ *pulumi.OutputState }

func (UserPublicKeysOutput) ElementType

func (UserPublicKeysOutput) ElementType() reflect.Type

func (UserPublicKeysOutput) Name added in v0.9.0

Name of the user.

func (UserPublicKeysOutput) RsaPublicKey added in v0.9.0

func (o UserPublicKeysOutput) RsaPublicKey() pulumi.StringPtrOutput

Specifies the user’s RSA public key; used for key-pair authentication. Must be on 1 line without header and trailer.

func (UserPublicKeysOutput) RsaPublicKey2 added in v0.9.0

func (o UserPublicKeysOutput) RsaPublicKey2() pulumi.StringPtrOutput

Specifies the user’s second RSA public key; used to rotate the public and Public keys for key-pair authentication based on an expiration schedule set by your organization. Must be on 1 line without header and trailer.

func (UserPublicKeysOutput) ToUserPublicKeysOutput

func (o UserPublicKeysOutput) ToUserPublicKeysOutput() UserPublicKeysOutput

func (UserPublicKeysOutput) ToUserPublicKeysOutputWithContext

func (o UserPublicKeysOutput) ToUserPublicKeysOutputWithContext(ctx context.Context) UserPublicKeysOutput

type UserPublicKeysState

type UserPublicKeysState struct {
	// Name of the user.
	Name pulumi.StringPtrInput
	// Specifies the user’s RSA public key; used for key-pair authentication. Must be on 1 line without header and trailer.
	RsaPublicKey pulumi.StringPtrInput
	// Specifies the user’s second RSA public key; used to rotate the public and Public keys for key-pair authentication based on an expiration schedule set by your organization. Must be on 1 line without header and trailer.
	RsaPublicKey2 pulumi.StringPtrInput
}

func (UserPublicKeysState) ElementType

func (UserPublicKeysState) ElementType() reflect.Type

type UserState

type UserState struct {
	Comment pulumi.StringPtrInput
	// Specifies the namespace (database only or database and schema) that is active by default for the user’s session upon login.
	DefaultNamespace pulumi.StringPtrInput
	// Specifies the role that is active by default for the user’s session upon login.
	DefaultRole pulumi.StringPtrInput
	// Specifies the set of secondary roles that are active for the user’s session upon login. Currently only ["ALL"] value is supported - more information can be found in [doc](https://docs.snowflake.com/en/sql-reference/sql/create-user#optional-object-properties-objectproperties)
	DefaultSecondaryRoles pulumi.StringArrayInput
	// Specifies the virtual warehouse that is active by default for the user’s session upon login.
	DefaultWarehouse pulumi.StringPtrInput
	Disabled         pulumi.BoolPtrInput
	// Name displayed for the user in the Snowflake web interface.
	DisplayName pulumi.StringPtrInput
	// Email address for the user.
	Email pulumi.StringPtrInput
	// First name of the user.
	FirstName pulumi.StringPtrInput
	// Will be true if user as an RSA key set.
	HasRsaPublicKey pulumi.BoolPtrInput
	// Last name of the user.
	LastName pulumi.StringPtrInput
	// The name users use to log in. If not supplied, snowflake will use name instead.
	LoginName pulumi.StringPtrInput
	// Specifies whether the user is forced to change their password on next login (including their first/initial login) into the system.
	MustChangePassword pulumi.BoolPtrInput
	// Name of the user. Note that if you do not supply login*name this will be used as login*name. [doc](https://docs.snowflake.net/manuals/sql-reference/sql/create-user.html#required-parameters)
	Name pulumi.StringPtrInput
	// **WARNING:** this will put the password in the terraform state file. Use carefully.
	Password pulumi.StringPtrInput
	// Specifies the user’s RSA public key; used for key-pair authentication. Must be on 1 line without header and trailer.
	RsaPublicKey pulumi.StringPtrInput
	// Specifies the user’s second RSA public key; used to rotate the public and private keys for key-pair authentication based on an expiration schedule set by your organization. Must be on 1 line without header and trailer.
	RsaPublicKey2 pulumi.StringPtrInput
	// Definitions of a tag to associate with the resource.
	//
	// Deprecated: Use the 'snowflake_tag_association' resource instead.
	Tags UserTagArrayInput
}

func (UserState) ElementType

func (UserState) ElementType() reflect.Type

type UserTag added in v0.3.0

type UserTag struct {
	// Name of the database that the tag was created in.
	Database *string `pulumi:"database"`
	// Tag name, e.g. department.
	Name string `pulumi:"name"`
	// Name of the schema that the tag was created in.
	Schema *string `pulumi:"schema"`
	// Tag value, e.g. marketing_info.
	Value string `pulumi:"value"`
}

type UserTagArgs added in v0.3.0

type UserTagArgs struct {
	// Name of the database that the tag was created in.
	Database pulumi.StringPtrInput `pulumi:"database"`
	// Tag name, e.g. department.
	Name pulumi.StringInput `pulumi:"name"`
	// Name of the schema that the tag was created in.
	Schema pulumi.StringPtrInput `pulumi:"schema"`
	// Tag value, e.g. marketing_info.
	Value pulumi.StringInput `pulumi:"value"`
}

func (UserTagArgs) ElementType added in v0.3.0

func (UserTagArgs) ElementType() reflect.Type

func (UserTagArgs) ToUserTagOutput added in v0.3.0

func (i UserTagArgs) ToUserTagOutput() UserTagOutput

func (UserTagArgs) ToUserTagOutputWithContext added in v0.3.0

func (i UserTagArgs) ToUserTagOutputWithContext(ctx context.Context) UserTagOutput

type UserTagArray added in v0.3.0

type UserTagArray []UserTagInput

func (UserTagArray) ElementType added in v0.3.0

func (UserTagArray) ElementType() reflect.Type

func (UserTagArray) ToUserTagArrayOutput added in v0.3.0

func (i UserTagArray) ToUserTagArrayOutput() UserTagArrayOutput

func (UserTagArray) ToUserTagArrayOutputWithContext added in v0.3.0

func (i UserTagArray) ToUserTagArrayOutputWithContext(ctx context.Context) UserTagArrayOutput

type UserTagArrayInput added in v0.3.0

type UserTagArrayInput interface {
	pulumi.Input

	ToUserTagArrayOutput() UserTagArrayOutput
	ToUserTagArrayOutputWithContext(context.Context) UserTagArrayOutput
}

UserTagArrayInput is an input type that accepts UserTagArray and UserTagArrayOutput values. You can construct a concrete instance of `UserTagArrayInput` via:

UserTagArray{ UserTagArgs{...} }

type UserTagArrayOutput added in v0.3.0

type UserTagArrayOutput struct{ *pulumi.OutputState }

func (UserTagArrayOutput) ElementType added in v0.3.0

func (UserTagArrayOutput) ElementType() reflect.Type

func (UserTagArrayOutput) Index added in v0.3.0

func (UserTagArrayOutput) ToUserTagArrayOutput added in v0.3.0

func (o UserTagArrayOutput) ToUserTagArrayOutput() UserTagArrayOutput

func (UserTagArrayOutput) ToUserTagArrayOutputWithContext added in v0.3.0

func (o UserTagArrayOutput) ToUserTagArrayOutputWithContext(ctx context.Context) UserTagArrayOutput

type UserTagInput added in v0.3.0

type UserTagInput interface {
	pulumi.Input

	ToUserTagOutput() UserTagOutput
	ToUserTagOutputWithContext(context.Context) UserTagOutput
}

UserTagInput is an input type that accepts UserTagArgs and UserTagOutput values. You can construct a concrete instance of `UserTagInput` via:

UserTagArgs{...}

type UserTagOutput added in v0.3.0

type UserTagOutput struct{ *pulumi.OutputState }

func (UserTagOutput) Database added in v0.3.0

func (o UserTagOutput) Database() pulumi.StringPtrOutput

Name of the database that the tag was created in.

func (UserTagOutput) ElementType added in v0.3.0

func (UserTagOutput) ElementType() reflect.Type

func (UserTagOutput) Name added in v0.3.0

Tag name, e.g. department.

func (UserTagOutput) Schema added in v0.3.0

Name of the schema that the tag was created in.

func (UserTagOutput) ToUserTagOutput added in v0.3.0

func (o UserTagOutput) ToUserTagOutput() UserTagOutput

func (UserTagOutput) ToUserTagOutputWithContext added in v0.3.0

func (o UserTagOutput) ToUserTagOutputWithContext(ctx context.Context) UserTagOutput

func (UserTagOutput) Value added in v0.3.0

func (o UserTagOutput) Value() pulumi.StringOutput

Tag value, e.g. marketing_info.

type View

type View struct {
	pulumi.CustomResourceState

	// Specifies a comment for the view.
	Comment pulumi.StringPtrOutput `pulumi:"comment"`
	// Retains the access permissions from the original view when a new view is created using the OR REPLACE clause.
	CopyGrants pulumi.BoolPtrOutput `pulumi:"copyGrants"`
	// The timestamp at which the view was created.
	CreatedOn pulumi.StringOutput `pulumi:"createdOn"`
	// The database in which to create the view. Don't use the | character.
	Database pulumi.StringOutput `pulumi:"database"`
	// Specifies that the view is secure.
	IsSecure pulumi.BoolPtrOutput `pulumi:"isSecure"`
	// Specifies the identifier for the view; must be unique for the schema in which the view is created. Don't use the | character.
	Name pulumi.StringOutput `pulumi:"name"`
	// Overwrites the View if it exists.
	OrReplace pulumi.BoolPtrOutput `pulumi:"orReplace"`
	// The schema in which to create the view. Don't use the | character.
	Schema pulumi.StringOutput `pulumi:"schema"`
	// Specifies the query used to create the view.
	Statement pulumi.StringOutput `pulumi:"statement"`
	// Definitions of a tag to associate with the resource.
	//
	// Deprecated: Use the 'snowflake_tag_association' resource instead.
	Tags ViewTagArrayOutput `pulumi:"tags"`
}

## Example Usage

```go 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.NewView(ctx, "view", &snowflake.ViewArgs{
			Database:  pulumi.String("database"),
			Schema:    pulumi.String("schema"),
			Comment:   pulumi.String("comment"),
			Statement: pulumi.String("select * from foo;\n"),
			OrReplace: pulumi.Bool(false),
			IsSecure:  pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

format is database name | schema name | view name

```sh

$ pulumi import snowflake:index/view:View example 'dbName|schemaName|viewName'

```

func GetView

func GetView(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ViewState, opts ...pulumi.ResourceOption) (*View, error)

GetView gets an existing View resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewView

func NewView(ctx *pulumi.Context,
	name string, args *ViewArgs, opts ...pulumi.ResourceOption) (*View, error)

NewView registers a new resource with the given unique name, arguments, and options.

func (*View) ElementType

func (*View) ElementType() reflect.Type

func (*View) ToViewOutput

func (i *View) ToViewOutput() ViewOutput

func (*View) ToViewOutputWithContext

func (i *View) ToViewOutputWithContext(ctx context.Context) ViewOutput

type ViewArgs

type ViewArgs struct {
	// Specifies a comment for the view.
	Comment pulumi.StringPtrInput
	// Retains the access permissions from the original view when a new view is created using the OR REPLACE clause.
	CopyGrants pulumi.BoolPtrInput
	// The database in which to create the view. Don't use the | character.
	Database pulumi.StringInput
	// Specifies that the view is secure.
	IsSecure pulumi.BoolPtrInput
	// Specifies the identifier for the view; must be unique for the schema in which the view is created. Don't use the | character.
	Name pulumi.StringPtrInput
	// Overwrites the View if it exists.
	OrReplace pulumi.BoolPtrInput
	// The schema in which to create the view. Don't use the | character.
	Schema pulumi.StringInput
	// Specifies the query used to create the view.
	Statement pulumi.StringInput
	// Definitions of a tag to associate with the resource.
	//
	// Deprecated: Use the 'snowflake_tag_association' resource instead.
	Tags ViewTagArrayInput
}

The set of arguments for constructing a View resource.

func (ViewArgs) ElementType

func (ViewArgs) ElementType() reflect.Type

type ViewArray

type ViewArray []ViewInput

func (ViewArray) ElementType

func (ViewArray) ElementType() reflect.Type

func (ViewArray) ToViewArrayOutput

func (i ViewArray) ToViewArrayOutput() ViewArrayOutput

func (ViewArray) ToViewArrayOutputWithContext

func (i ViewArray) ToViewArrayOutputWithContext(ctx context.Context) ViewArrayOutput

type ViewArrayInput

type ViewArrayInput interface {
	pulumi.Input

	ToViewArrayOutput() ViewArrayOutput
	ToViewArrayOutputWithContext(context.Context) ViewArrayOutput
}

ViewArrayInput is an input type that accepts ViewArray and ViewArrayOutput values. You can construct a concrete instance of `ViewArrayInput` via:

ViewArray{ ViewArgs{...} }

type ViewArrayOutput

type ViewArrayOutput struct{ *pulumi.OutputState }

func (ViewArrayOutput) ElementType

func (ViewArrayOutput) ElementType() reflect.Type

func (ViewArrayOutput) Index

func (ViewArrayOutput) ToViewArrayOutput

func (o ViewArrayOutput) ToViewArrayOutput() ViewArrayOutput

func (ViewArrayOutput) ToViewArrayOutputWithContext

func (o ViewArrayOutput) ToViewArrayOutputWithContext(ctx context.Context) ViewArrayOutput

type ViewGrant

type ViewGrant struct {
	pulumi.CustomResourceState

	// The name of the database containing the current or future views on which to grant privileges.
	DatabaseName pulumi.StringOutput `pulumi:"databaseName"`
	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrOutput `pulumi:"enableMultipleGrants"`
	// When this is set to true and a schema*name is provided, apply this grant on all views in the given schema. When this is true and no schema*name is provided apply this grant on all views in the given database. The view*name and shares fields must be unset in order to use on*all. Cannot be used together with on_future.
	OnAll pulumi.BoolPtrOutput `pulumi:"onAll"`
	// When this is set to true and a schema*name is provided, apply this grant on all future views in the given schema. When this is true and no schema*name is provided apply this grant on all future views in the given database. The view*name and shares fields must be unset in order to use on*future. Cannot be used together with on_all.
	OnFuture pulumi.BoolPtrOutput `pulumi:"onFuture"`
	// The privilege to grant on the current or future view. To grant all privileges, use the value `ALL PRIVILEGES`.
	Privilege pulumi.StringPtrOutput `pulumi:"privilege"`
	// The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
	RevertOwnershipToRoleName pulumi.StringPtrOutput `pulumi:"revertOwnershipToRoleName"`
	// Grants privilege to these roles.
	Roles pulumi.StringArrayOutput `pulumi:"roles"`
	// The name of the schema containing the current or future views on which to grant privileges.
	SchemaName pulumi.StringPtrOutput `pulumi:"schemaName"`
	// Grants privilege to these shares (only valid if on*future and on*all are unset).
	Shares pulumi.StringArrayOutput `pulumi:"shares"`
	// The name of the view on which to grant privileges immediately (only valid if on*future and on*all are unset).
	ViewName pulumi.StringPtrOutput `pulumi:"viewName"`
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrOutput `pulumi:"withGrantOption"`
}

## Example Usage

```go 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.NewViewGrant(ctx, "grantViewGrant", &snowflake.ViewGrantArgs{
			DatabaseName: pulumi.String("database"),
			OnFuture:     pulumi.Bool(false),
			Privilege:    pulumi.String("SELECT"),
			Roles: pulumi.StringArray{
				pulumi.String("role1"),
				pulumi.String("role2"),
			},
			SchemaName: pulumi.String("schema"),
			Shares: pulumi.StringArray{
				pulumi.String("share1"),
				pulumi.String("share2"),
			},
			ViewName:        pulumi.String("view"),
			WithGrantOption: pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		_, err = snowflake.NewSchemaGrant(ctx, "grantSchemaGrant", &snowflake.SchemaGrantArgs{
			DatabaseName: pulumi.String("database"),
			Privilege:    pulumi.String("USAGE"),
			Roles: pulumi.StringArray{
				pulumi.String("role1"),
				pulumi.String("role2"),
			},
			SchemaName: pulumi.String("schema"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

format is database_name|schema_name|view_name|privilege|with_grant_option|on_future|on_all|roles|shares

```sh

$ pulumi import snowflake:index/viewGrant:ViewGrant example "MY_DATABASE|MY_SCHEMA|MY_VIEW|USAGE|false|false|false|role1,role2|share1,share2"

```

func GetViewGrant

func GetViewGrant(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ViewGrantState, opts ...pulumi.ResourceOption) (*ViewGrant, error)

GetViewGrant gets an existing ViewGrant resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewViewGrant

func NewViewGrant(ctx *pulumi.Context,
	name string, args *ViewGrantArgs, opts ...pulumi.ResourceOption) (*ViewGrant, error)

NewViewGrant registers a new resource with the given unique name, arguments, and options.

func (*ViewGrant) ElementType

func (*ViewGrant) ElementType() reflect.Type

func (*ViewGrant) ToViewGrantOutput

func (i *ViewGrant) ToViewGrantOutput() ViewGrantOutput

func (*ViewGrant) ToViewGrantOutputWithContext

func (i *ViewGrant) ToViewGrantOutputWithContext(ctx context.Context) ViewGrantOutput

type ViewGrantArgs

type ViewGrantArgs struct {
	// The name of the database containing the current or future views on which to grant privileges.
	DatabaseName pulumi.StringInput
	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrInput
	// When this is set to true and a schema*name is provided, apply this grant on all views in the given schema. When this is true and no schema*name is provided apply this grant on all views in the given database. The view*name and shares fields must be unset in order to use on*all. Cannot be used together with on_future.
	OnAll pulumi.BoolPtrInput
	// When this is set to true and a schema*name is provided, apply this grant on all future views in the given schema. When this is true and no schema*name is provided apply this grant on all future views in the given database. The view*name and shares fields must be unset in order to use on*future. Cannot be used together with on_all.
	OnFuture pulumi.BoolPtrInput
	// The privilege to grant on the current or future view. To grant all privileges, use the value `ALL PRIVILEGES`.
	Privilege pulumi.StringPtrInput
	// The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
	RevertOwnershipToRoleName pulumi.StringPtrInput
	// Grants privilege to these roles.
	Roles pulumi.StringArrayInput
	// The name of the schema containing the current or future views on which to grant privileges.
	SchemaName pulumi.StringPtrInput
	// Grants privilege to these shares (only valid if on*future and on*all are unset).
	Shares pulumi.StringArrayInput
	// The name of the view on which to grant privileges immediately (only valid if on*future and on*all are unset).
	ViewName pulumi.StringPtrInput
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrInput
}

The set of arguments for constructing a ViewGrant resource.

func (ViewGrantArgs) ElementType

func (ViewGrantArgs) ElementType() reflect.Type

type ViewGrantArray

type ViewGrantArray []ViewGrantInput

func (ViewGrantArray) ElementType

func (ViewGrantArray) ElementType() reflect.Type

func (ViewGrantArray) ToViewGrantArrayOutput

func (i ViewGrantArray) ToViewGrantArrayOutput() ViewGrantArrayOutput

func (ViewGrantArray) ToViewGrantArrayOutputWithContext

func (i ViewGrantArray) ToViewGrantArrayOutputWithContext(ctx context.Context) ViewGrantArrayOutput

type ViewGrantArrayInput

type ViewGrantArrayInput interface {
	pulumi.Input

	ToViewGrantArrayOutput() ViewGrantArrayOutput
	ToViewGrantArrayOutputWithContext(context.Context) ViewGrantArrayOutput
}

ViewGrantArrayInput is an input type that accepts ViewGrantArray and ViewGrantArrayOutput values. You can construct a concrete instance of `ViewGrantArrayInput` via:

ViewGrantArray{ ViewGrantArgs{...} }

type ViewGrantArrayOutput

type ViewGrantArrayOutput struct{ *pulumi.OutputState }

func (ViewGrantArrayOutput) ElementType

func (ViewGrantArrayOutput) ElementType() reflect.Type

func (ViewGrantArrayOutput) Index

func (ViewGrantArrayOutput) ToViewGrantArrayOutput

func (o ViewGrantArrayOutput) ToViewGrantArrayOutput() ViewGrantArrayOutput

func (ViewGrantArrayOutput) ToViewGrantArrayOutputWithContext

func (o ViewGrantArrayOutput) ToViewGrantArrayOutputWithContext(ctx context.Context) ViewGrantArrayOutput

type ViewGrantInput

type ViewGrantInput interface {
	pulumi.Input

	ToViewGrantOutput() ViewGrantOutput
	ToViewGrantOutputWithContext(ctx context.Context) ViewGrantOutput
}

type ViewGrantMap

type ViewGrantMap map[string]ViewGrantInput

func (ViewGrantMap) ElementType

func (ViewGrantMap) ElementType() reflect.Type

func (ViewGrantMap) ToViewGrantMapOutput

func (i ViewGrantMap) ToViewGrantMapOutput() ViewGrantMapOutput

func (ViewGrantMap) ToViewGrantMapOutputWithContext

func (i ViewGrantMap) ToViewGrantMapOutputWithContext(ctx context.Context) ViewGrantMapOutput

type ViewGrantMapInput

type ViewGrantMapInput interface {
	pulumi.Input

	ToViewGrantMapOutput() ViewGrantMapOutput
	ToViewGrantMapOutputWithContext(context.Context) ViewGrantMapOutput
}

ViewGrantMapInput is an input type that accepts ViewGrantMap and ViewGrantMapOutput values. You can construct a concrete instance of `ViewGrantMapInput` via:

ViewGrantMap{ "key": ViewGrantArgs{...} }

type ViewGrantMapOutput

type ViewGrantMapOutput struct{ *pulumi.OutputState }

func (ViewGrantMapOutput) ElementType

func (ViewGrantMapOutput) ElementType() reflect.Type

func (ViewGrantMapOutput) MapIndex

func (ViewGrantMapOutput) ToViewGrantMapOutput

func (o ViewGrantMapOutput) ToViewGrantMapOutput() ViewGrantMapOutput

func (ViewGrantMapOutput) ToViewGrantMapOutputWithContext

func (o ViewGrantMapOutput) ToViewGrantMapOutputWithContext(ctx context.Context) ViewGrantMapOutput

type ViewGrantOutput

type ViewGrantOutput struct{ *pulumi.OutputState }

func (ViewGrantOutput) DatabaseName added in v0.9.0

func (o ViewGrantOutput) DatabaseName() pulumi.StringOutput

The name of the database containing the current or future views on which to grant privileges.

func (ViewGrantOutput) ElementType

func (ViewGrantOutput) ElementType() reflect.Type

func (ViewGrantOutput) EnableMultipleGrants added in v0.9.0

func (o ViewGrantOutput) EnableMultipleGrants() pulumi.BoolPtrOutput

When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke grants applied to roles and objects outside Terraform.

func (ViewGrantOutput) OnAll added in v0.23.0

When this is set to true and a schema*name is provided, apply this grant on all views in the given schema. When this is true and no schema*name is provided apply this grant on all views in the given database. The view*name and shares fields must be unset in order to use on*all. Cannot be used together with on_future.

func (ViewGrantOutput) OnFuture added in v0.9.0

func (o ViewGrantOutput) OnFuture() pulumi.BoolPtrOutput

When this is set to true and a schema*name is provided, apply this grant on all future views in the given schema. When this is true and no schema*name is provided apply this grant on all future views in the given database. The view*name and shares fields must be unset in order to use on*future. Cannot be used together with on_all.

func (ViewGrantOutput) Privilege added in v0.9.0

func (o ViewGrantOutput) Privilege() pulumi.StringPtrOutput

The privilege to grant on the current or future view. To grant all privileges, use the value `ALL PRIVILEGES`.

func (ViewGrantOutput) RevertOwnershipToRoleName added in v0.26.0

func (o ViewGrantOutput) RevertOwnershipToRoleName() pulumi.StringPtrOutput

The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`

func (ViewGrantOutput) Roles added in v0.9.0

Grants privilege to these roles.

func (ViewGrantOutput) SchemaName added in v0.9.0

func (o ViewGrantOutput) SchemaName() pulumi.StringPtrOutput

The name of the schema containing the current or future views on which to grant privileges.

func (ViewGrantOutput) Shares added in v0.9.0

Grants privilege to these shares (only valid if on*future and on*all are unset).

func (ViewGrantOutput) ToViewGrantOutput

func (o ViewGrantOutput) ToViewGrantOutput() ViewGrantOutput

func (ViewGrantOutput) ToViewGrantOutputWithContext

func (o ViewGrantOutput) ToViewGrantOutputWithContext(ctx context.Context) ViewGrantOutput

func (ViewGrantOutput) ViewName added in v0.9.0

func (o ViewGrantOutput) ViewName() pulumi.StringPtrOutput

The name of the view on which to grant privileges immediately (only valid if on*future and on*all are unset).

func (ViewGrantOutput) WithGrantOption added in v0.9.0

func (o ViewGrantOutput) WithGrantOption() pulumi.BoolPtrOutput

When this is set to true, allows the recipient role to grant the privileges to other roles.

type ViewGrantState

type ViewGrantState struct {
	// The name of the database containing the current or future views on which to grant privileges.
	DatabaseName pulumi.StringPtrInput
	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrInput
	// When this is set to true and a schema*name is provided, apply this grant on all views in the given schema. When this is true and no schema*name is provided apply this grant on all views in the given database. The view*name and shares fields must be unset in order to use on*all. Cannot be used together with on_future.
	OnAll pulumi.BoolPtrInput
	// When this is set to true and a schema*name is provided, apply this grant on all future views in the given schema. When this is true and no schema*name is provided apply this grant on all future views in the given database. The view*name and shares fields must be unset in order to use on*future. Cannot be used together with on_all.
	OnFuture pulumi.BoolPtrInput
	// The privilege to grant on the current or future view. To grant all privileges, use the value `ALL PRIVILEGES`.
	Privilege pulumi.StringPtrInput
	// The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
	RevertOwnershipToRoleName pulumi.StringPtrInput
	// Grants privilege to these roles.
	Roles pulumi.StringArrayInput
	// The name of the schema containing the current or future views on which to grant privileges.
	SchemaName pulumi.StringPtrInput
	// Grants privilege to these shares (only valid if on*future and on*all are unset).
	Shares pulumi.StringArrayInput
	// The name of the view on which to grant privileges immediately (only valid if on*future and on*all are unset).
	ViewName pulumi.StringPtrInput
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrInput
}

func (ViewGrantState) ElementType

func (ViewGrantState) ElementType() reflect.Type

type ViewInput

type ViewInput interface {
	pulumi.Input

	ToViewOutput() ViewOutput
	ToViewOutputWithContext(ctx context.Context) ViewOutput
}

type ViewMap

type ViewMap map[string]ViewInput

func (ViewMap) ElementType

func (ViewMap) ElementType() reflect.Type

func (ViewMap) ToViewMapOutput

func (i ViewMap) ToViewMapOutput() ViewMapOutput

func (ViewMap) ToViewMapOutputWithContext

func (i ViewMap) ToViewMapOutputWithContext(ctx context.Context) ViewMapOutput

type ViewMapInput

type ViewMapInput interface {
	pulumi.Input

	ToViewMapOutput() ViewMapOutput
	ToViewMapOutputWithContext(context.Context) ViewMapOutput
}

ViewMapInput is an input type that accepts ViewMap and ViewMapOutput values. You can construct a concrete instance of `ViewMapInput` via:

ViewMap{ "key": ViewArgs{...} }

type ViewMapOutput

type ViewMapOutput struct{ *pulumi.OutputState }

func (ViewMapOutput) ElementType

func (ViewMapOutput) ElementType() reflect.Type

func (ViewMapOutput) MapIndex

func (ViewMapOutput) ToViewMapOutput

func (o ViewMapOutput) ToViewMapOutput() ViewMapOutput

func (ViewMapOutput) ToViewMapOutputWithContext

func (o ViewMapOutput) ToViewMapOutputWithContext(ctx context.Context) ViewMapOutput

type ViewOutput

type ViewOutput struct{ *pulumi.OutputState }

func (ViewOutput) Comment added in v0.9.0

func (o ViewOutput) Comment() pulumi.StringPtrOutput

Specifies a comment for the view.

func (ViewOutput) CopyGrants added in v0.21.0

func (o ViewOutput) CopyGrants() pulumi.BoolPtrOutput

Retains the access permissions from the original view when a new view is created using the OR REPLACE clause.

func (ViewOutput) CreatedOn added in v0.29.0

func (o ViewOutput) CreatedOn() pulumi.StringOutput

The timestamp at which the view was created.

func (ViewOutput) Database added in v0.9.0

func (o ViewOutput) Database() pulumi.StringOutput

The database in which to create the view. Don't use the | character.

func (ViewOutput) ElementType

func (ViewOutput) ElementType() reflect.Type

func (ViewOutput) IsSecure added in v0.9.0

func (o ViewOutput) IsSecure() pulumi.BoolPtrOutput

Specifies that the view is secure.

func (ViewOutput) Name added in v0.9.0

func (o ViewOutput) Name() pulumi.StringOutput

Specifies the identifier for the view; must be unique for the schema in which the view is created. Don't use the | character.

func (ViewOutput) OrReplace added in v0.9.0

func (o ViewOutput) OrReplace() pulumi.BoolPtrOutput

Overwrites the View if it exists.

func (ViewOutput) Schema added in v0.9.0

func (o ViewOutput) Schema() pulumi.StringOutput

The schema in which to create the view. Don't use the | character.

func (ViewOutput) Statement added in v0.9.0

func (o ViewOutput) Statement() pulumi.StringOutput

Specifies the query used to create the view.

func (ViewOutput) Tags deprecated added in v0.9.0

func (o ViewOutput) Tags() ViewTagArrayOutput

Definitions of a tag to associate with the resource.

Deprecated: Use the 'snowflake_tag_association' resource instead.

func (ViewOutput) ToViewOutput

func (o ViewOutput) ToViewOutput() ViewOutput

func (ViewOutput) ToViewOutputWithContext

func (o ViewOutput) ToViewOutputWithContext(ctx context.Context) ViewOutput

type ViewState

type ViewState struct {
	// Specifies a comment for the view.
	Comment pulumi.StringPtrInput
	// Retains the access permissions from the original view when a new view is created using the OR REPLACE clause.
	CopyGrants pulumi.BoolPtrInput
	// The timestamp at which the view was created.
	CreatedOn pulumi.StringPtrInput
	// The database in which to create the view. Don't use the | character.
	Database pulumi.StringPtrInput
	// Specifies that the view is secure.
	IsSecure pulumi.BoolPtrInput
	// Specifies the identifier for the view; must be unique for the schema in which the view is created. Don't use the | character.
	Name pulumi.StringPtrInput
	// Overwrites the View if it exists.
	OrReplace pulumi.BoolPtrInput
	// The schema in which to create the view. Don't use the | character.
	Schema pulumi.StringPtrInput
	// Specifies the query used to create the view.
	Statement pulumi.StringPtrInput
	// Definitions of a tag to associate with the resource.
	//
	// Deprecated: Use the 'snowflake_tag_association' resource instead.
	Tags ViewTagArrayInput
}

func (ViewState) ElementType

func (ViewState) ElementType() reflect.Type

type ViewTag added in v0.3.0

type ViewTag struct {
	// Name of the database that the tag was created in.
	Database *string `pulumi:"database"`
	// Tag name, e.g. department.
	Name string `pulumi:"name"`
	// Name of the schema that the tag was created in.
	Schema *string `pulumi:"schema"`
	// Tag value, e.g. marketing_info.
	Value string `pulumi:"value"`
}

type ViewTagArgs added in v0.3.0

type ViewTagArgs struct {
	// Name of the database that the tag was created in.
	Database pulumi.StringPtrInput `pulumi:"database"`
	// Tag name, e.g. department.
	Name pulumi.StringInput `pulumi:"name"`
	// Name of the schema that the tag was created in.
	Schema pulumi.StringPtrInput `pulumi:"schema"`
	// Tag value, e.g. marketing_info.
	Value pulumi.StringInput `pulumi:"value"`
}

func (ViewTagArgs) ElementType added in v0.3.0

func (ViewTagArgs) ElementType() reflect.Type

func (ViewTagArgs) ToViewTagOutput added in v0.3.0

func (i ViewTagArgs) ToViewTagOutput() ViewTagOutput

func (ViewTagArgs) ToViewTagOutputWithContext added in v0.3.0

func (i ViewTagArgs) ToViewTagOutputWithContext(ctx context.Context) ViewTagOutput

type ViewTagArray added in v0.3.0

type ViewTagArray []ViewTagInput

func (ViewTagArray) ElementType added in v0.3.0

func (ViewTagArray) ElementType() reflect.Type

func (ViewTagArray) ToViewTagArrayOutput added in v0.3.0

func (i ViewTagArray) ToViewTagArrayOutput() ViewTagArrayOutput

func (ViewTagArray) ToViewTagArrayOutputWithContext added in v0.3.0

func (i ViewTagArray) ToViewTagArrayOutputWithContext(ctx context.Context) ViewTagArrayOutput

type ViewTagArrayInput added in v0.3.0

type ViewTagArrayInput interface {
	pulumi.Input

	ToViewTagArrayOutput() ViewTagArrayOutput
	ToViewTagArrayOutputWithContext(context.Context) ViewTagArrayOutput
}

ViewTagArrayInput is an input type that accepts ViewTagArray and ViewTagArrayOutput values. You can construct a concrete instance of `ViewTagArrayInput` via:

ViewTagArray{ ViewTagArgs{...} }

type ViewTagArrayOutput added in v0.3.0

type ViewTagArrayOutput struct{ *pulumi.OutputState }

func (ViewTagArrayOutput) ElementType added in v0.3.0

func (ViewTagArrayOutput) ElementType() reflect.Type

func (ViewTagArrayOutput) Index added in v0.3.0

func (ViewTagArrayOutput) ToViewTagArrayOutput added in v0.3.0

func (o ViewTagArrayOutput) ToViewTagArrayOutput() ViewTagArrayOutput

func (ViewTagArrayOutput) ToViewTagArrayOutputWithContext added in v0.3.0

func (o ViewTagArrayOutput) ToViewTagArrayOutputWithContext(ctx context.Context) ViewTagArrayOutput

type ViewTagInput added in v0.3.0

type ViewTagInput interface {
	pulumi.Input

	ToViewTagOutput() ViewTagOutput
	ToViewTagOutputWithContext(context.Context) ViewTagOutput
}

ViewTagInput is an input type that accepts ViewTagArgs and ViewTagOutput values. You can construct a concrete instance of `ViewTagInput` via:

ViewTagArgs{...}

type ViewTagOutput added in v0.3.0

type ViewTagOutput struct{ *pulumi.OutputState }

func (ViewTagOutput) Database added in v0.3.0

func (o ViewTagOutput) Database() pulumi.StringPtrOutput

Name of the database that the tag was created in.

func (ViewTagOutput) ElementType added in v0.3.0

func (ViewTagOutput) ElementType() reflect.Type

func (ViewTagOutput) Name added in v0.3.0

Tag name, e.g. department.

func (ViewTagOutput) Schema added in v0.3.0

Name of the schema that the tag was created in.

func (ViewTagOutput) ToViewTagOutput added in v0.3.0

func (o ViewTagOutput) ToViewTagOutput() ViewTagOutput

func (ViewTagOutput) ToViewTagOutputWithContext added in v0.3.0

func (o ViewTagOutput) ToViewTagOutputWithContext(ctx context.Context) ViewTagOutput

func (ViewTagOutput) Value added in v0.3.0

func (o ViewTagOutput) Value() pulumi.StringOutput

Tag value, e.g. marketing_info.

type Warehouse

type Warehouse struct {
	pulumi.CustomResourceState

	// Specifies whether to automatically resume a warehouse when a SQL statement (e.g. query) is submitted to it.
	AutoResume pulumi.BoolOutput `pulumi:"autoResume"`
	// Specifies the number of seconds of inactivity after which a warehouse is automatically suspended.
	AutoSuspend pulumi.IntOutput       `pulumi:"autoSuspend"`
	Comment     pulumi.StringPtrOutput `pulumi:"comment"`
	// Specifies whether to enable the query acceleration service for queries that rely on this warehouse for compute resources.
	EnableQueryAcceleration pulumi.BoolPtrOutput `pulumi:"enableQueryAcceleration"`
	// Specifies whether the warehouse is created initially in the ‘Suspended’ state.
	InitiallySuspended pulumi.BoolPtrOutput `pulumi:"initiallySuspended"`
	// Specifies the maximum number of server clusters for the warehouse.
	MaxClusterCount pulumi.IntOutput `pulumi:"maxClusterCount"`
	// Object parameter that specifies the concurrency level for SQL statements (i.e. queries and DML) executed by a warehouse.
	MaxConcurrencyLevel pulumi.IntPtrOutput `pulumi:"maxConcurrencyLevel"`
	// Specifies the minimum number of server clusters for the warehouse (only applies to multi-cluster warehouses).
	MinClusterCount pulumi.IntOutput `pulumi:"minClusterCount"`
	// Identifier for the virtual warehouse; must be unique for your account.
	Name pulumi.StringOutput `pulumi:"name"`
	// Specifies the maximum scale factor for leasing compute resources for query acceleration. The scale factor is used as a multiplier based on warehouse size.
	QueryAccelerationMaxScaleFactor pulumi.IntPtrOutput `pulumi:"queryAccelerationMaxScaleFactor"`
	// Specifies the name of a resource monitor that is explicitly assigned to the warehouse.
	ResourceMonitor pulumi.StringOutput `pulumi:"resourceMonitor"`
	// Specifies the policy for automatically starting and shutting down clusters in a multi-cluster warehouse running in Auto-scale mode.
	ScalingPolicy pulumi.StringOutput `pulumi:"scalingPolicy"`
	// Object parameter that specifies the time, in seconds, a SQL statement (query, DDL, DML, etc.) can be queued on a warehouse before it is canceled by the system.
	StatementQueuedTimeoutInSeconds pulumi.IntPtrOutput `pulumi:"statementQueuedTimeoutInSeconds"`
	// Specifies the time, in seconds, after which a running SQL statement (query, DDL, DML, etc.) is canceled by the system
	StatementTimeoutInSeconds pulumi.IntPtrOutput `pulumi:"statementTimeoutInSeconds"`
	// Specifies whether the warehouse, after being resized, waits for all the servers to provision before executing any queued or new queries.
	//
	// Deprecated: This field is deprecated and will be removed in the next major version of the provider. It doesn't do anything and should be removed from your configuration.
	WaitForProvisioning pulumi.BoolPtrOutput `pulumi:"waitForProvisioning"`
	// Specifies the size of the virtual warehouse. Larger warehouse sizes 5X-Large and 6X-Large are currently in preview and only available on Amazon Web Services (AWS).
	WarehouseSize pulumi.StringOutput `pulumi:"warehouseSize"`
	// Specifies a STANDARD or SNOWPARK-OPTIMIZED warehouse
	WarehouseType pulumi.StringPtrOutput `pulumi:"warehouseType"`
}

## Example Usage

```go 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.NewWarehouse(ctx, "warehouse", &snowflake.WarehouseArgs{
			Comment:       pulumi.String("foo"),
			WarehouseSize: pulumi.String("small"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

```sh

$ pulumi import snowflake:index/warehouse:Warehouse example warehouseName

```

func GetWarehouse

func GetWarehouse(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *WarehouseState, opts ...pulumi.ResourceOption) (*Warehouse, error)

GetWarehouse gets an existing Warehouse resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewWarehouse

func NewWarehouse(ctx *pulumi.Context,
	name string, args *WarehouseArgs, opts ...pulumi.ResourceOption) (*Warehouse, error)

NewWarehouse registers a new resource with the given unique name, arguments, and options.

func (*Warehouse) ElementType

func (*Warehouse) ElementType() reflect.Type

func (*Warehouse) ToWarehouseOutput

func (i *Warehouse) ToWarehouseOutput() WarehouseOutput

func (*Warehouse) ToWarehouseOutputWithContext

func (i *Warehouse) ToWarehouseOutputWithContext(ctx context.Context) WarehouseOutput

type WarehouseArgs

type WarehouseArgs struct {
	// Specifies whether to automatically resume a warehouse when a SQL statement (e.g. query) is submitted to it.
	AutoResume pulumi.BoolPtrInput
	// Specifies the number of seconds of inactivity after which a warehouse is automatically suspended.
	AutoSuspend pulumi.IntPtrInput
	Comment     pulumi.StringPtrInput
	// Specifies whether to enable the query acceleration service for queries that rely on this warehouse for compute resources.
	EnableQueryAcceleration pulumi.BoolPtrInput
	// Specifies whether the warehouse is created initially in the ‘Suspended’ state.
	InitiallySuspended pulumi.BoolPtrInput
	// Specifies the maximum number of server clusters for the warehouse.
	MaxClusterCount pulumi.IntPtrInput
	// Object parameter that specifies the concurrency level for SQL statements (i.e. queries and DML) executed by a warehouse.
	MaxConcurrencyLevel pulumi.IntPtrInput
	// Specifies the minimum number of server clusters for the warehouse (only applies to multi-cluster warehouses).
	MinClusterCount pulumi.IntPtrInput
	// Identifier for the virtual warehouse; must be unique for your account.
	Name pulumi.StringPtrInput
	// Specifies the maximum scale factor for leasing compute resources for query acceleration. The scale factor is used as a multiplier based on warehouse size.
	QueryAccelerationMaxScaleFactor pulumi.IntPtrInput
	// Specifies the name of a resource monitor that is explicitly assigned to the warehouse.
	ResourceMonitor pulumi.StringPtrInput
	// Specifies the policy for automatically starting and shutting down clusters in a multi-cluster warehouse running in Auto-scale mode.
	ScalingPolicy pulumi.StringPtrInput
	// Object parameter that specifies the time, in seconds, a SQL statement (query, DDL, DML, etc.) can be queued on a warehouse before it is canceled by the system.
	StatementQueuedTimeoutInSeconds pulumi.IntPtrInput
	// Specifies the time, in seconds, after which a running SQL statement (query, DDL, DML, etc.) is canceled by the system
	StatementTimeoutInSeconds pulumi.IntPtrInput
	// Specifies whether the warehouse, after being resized, waits for all the servers to provision before executing any queued or new queries.
	//
	// Deprecated: This field is deprecated and will be removed in the next major version of the provider. It doesn't do anything and should be removed from your configuration.
	WaitForProvisioning pulumi.BoolPtrInput
	// Specifies the size of the virtual warehouse. Larger warehouse sizes 5X-Large and 6X-Large are currently in preview and only available on Amazon Web Services (AWS).
	WarehouseSize pulumi.StringPtrInput
	// Specifies a STANDARD or SNOWPARK-OPTIMIZED warehouse
	WarehouseType pulumi.StringPtrInput
}

The set of arguments for constructing a Warehouse resource.

func (WarehouseArgs) ElementType

func (WarehouseArgs) ElementType() reflect.Type

type WarehouseArray

type WarehouseArray []WarehouseInput

func (WarehouseArray) ElementType

func (WarehouseArray) ElementType() reflect.Type

func (WarehouseArray) ToWarehouseArrayOutput

func (i WarehouseArray) ToWarehouseArrayOutput() WarehouseArrayOutput

func (WarehouseArray) ToWarehouseArrayOutputWithContext

func (i WarehouseArray) ToWarehouseArrayOutputWithContext(ctx context.Context) WarehouseArrayOutput

type WarehouseArrayInput

type WarehouseArrayInput interface {
	pulumi.Input

	ToWarehouseArrayOutput() WarehouseArrayOutput
	ToWarehouseArrayOutputWithContext(context.Context) WarehouseArrayOutput
}

WarehouseArrayInput is an input type that accepts WarehouseArray and WarehouseArrayOutput values. You can construct a concrete instance of `WarehouseArrayInput` via:

WarehouseArray{ WarehouseArgs{...} }

type WarehouseArrayOutput

type WarehouseArrayOutput struct{ *pulumi.OutputState }

func (WarehouseArrayOutput) ElementType

func (WarehouseArrayOutput) ElementType() reflect.Type

func (WarehouseArrayOutput) Index

func (WarehouseArrayOutput) ToWarehouseArrayOutput

func (o WarehouseArrayOutput) ToWarehouseArrayOutput() WarehouseArrayOutput

func (WarehouseArrayOutput) ToWarehouseArrayOutputWithContext

func (o WarehouseArrayOutput) ToWarehouseArrayOutputWithContext(ctx context.Context) WarehouseArrayOutput

type WarehouseGrant

type WarehouseGrant struct {
	pulumi.CustomResourceState

	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrOutput `pulumi:"enableMultipleGrants"`
	// The privilege to grant on the warehouse. To grant all privileges, use the value `ALL PRIVILEGES`.
	Privilege pulumi.StringPtrOutput `pulumi:"privilege"`
	// The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
	RevertOwnershipToRoleName pulumi.StringPtrOutput `pulumi:"revertOwnershipToRoleName"`
	// Grants privilege to these roles.
	Roles pulumi.StringArrayOutput `pulumi:"roles"`
	// The name of the warehouse on which to grant privileges.
	WarehouseName pulumi.StringOutput `pulumi:"warehouseName"`
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrOutput `pulumi:"withGrantOption"`
}

## Example Usage

```go 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.NewWarehouseGrant(ctx, "grant", &snowflake.WarehouseGrantArgs{
			Privilege: pulumi.String("MODIFY"),
			Roles: pulumi.StringArray{
				pulumi.String("role1"),
				pulumi.String("role2"),
			},
			WarehouseName:   pulumi.String("warehouse"),
			WithGrantOption: pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

format is warehouse_name|privilege|with_grant_option|roles

```sh

$ pulumi import snowflake:index/warehouseGrant:WarehouseGrant example "MY_WAREHOUSE|MODIFY|false|role1,role2"

```

func GetWarehouseGrant

func GetWarehouseGrant(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *WarehouseGrantState, opts ...pulumi.ResourceOption) (*WarehouseGrant, error)

GetWarehouseGrant gets an existing WarehouseGrant resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewWarehouseGrant

func NewWarehouseGrant(ctx *pulumi.Context,
	name string, args *WarehouseGrantArgs, opts ...pulumi.ResourceOption) (*WarehouseGrant, error)

NewWarehouseGrant registers a new resource with the given unique name, arguments, and options.

func (*WarehouseGrant) ElementType

func (*WarehouseGrant) ElementType() reflect.Type

func (*WarehouseGrant) ToWarehouseGrantOutput

func (i *WarehouseGrant) ToWarehouseGrantOutput() WarehouseGrantOutput

func (*WarehouseGrant) ToWarehouseGrantOutputWithContext

func (i *WarehouseGrant) ToWarehouseGrantOutputWithContext(ctx context.Context) WarehouseGrantOutput

type WarehouseGrantArgs

type WarehouseGrantArgs struct {
	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrInput
	// The privilege to grant on the warehouse. To grant all privileges, use the value `ALL PRIVILEGES`.
	Privilege pulumi.StringPtrInput
	// The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
	RevertOwnershipToRoleName pulumi.StringPtrInput
	// Grants privilege to these roles.
	Roles pulumi.StringArrayInput
	// The name of the warehouse on which to grant privileges.
	WarehouseName pulumi.StringInput
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrInput
}

The set of arguments for constructing a WarehouseGrant resource.

func (WarehouseGrantArgs) ElementType

func (WarehouseGrantArgs) ElementType() reflect.Type

type WarehouseGrantArray

type WarehouseGrantArray []WarehouseGrantInput

func (WarehouseGrantArray) ElementType

func (WarehouseGrantArray) ElementType() reflect.Type

func (WarehouseGrantArray) ToWarehouseGrantArrayOutput

func (i WarehouseGrantArray) ToWarehouseGrantArrayOutput() WarehouseGrantArrayOutput

func (WarehouseGrantArray) ToWarehouseGrantArrayOutputWithContext

func (i WarehouseGrantArray) ToWarehouseGrantArrayOutputWithContext(ctx context.Context) WarehouseGrantArrayOutput

type WarehouseGrantArrayInput

type WarehouseGrantArrayInput interface {
	pulumi.Input

	ToWarehouseGrantArrayOutput() WarehouseGrantArrayOutput
	ToWarehouseGrantArrayOutputWithContext(context.Context) WarehouseGrantArrayOutput
}

WarehouseGrantArrayInput is an input type that accepts WarehouseGrantArray and WarehouseGrantArrayOutput values. You can construct a concrete instance of `WarehouseGrantArrayInput` via:

WarehouseGrantArray{ WarehouseGrantArgs{...} }

type WarehouseGrantArrayOutput

type WarehouseGrantArrayOutput struct{ *pulumi.OutputState }

func (WarehouseGrantArrayOutput) ElementType

func (WarehouseGrantArrayOutput) ElementType() reflect.Type

func (WarehouseGrantArrayOutput) Index

func (WarehouseGrantArrayOutput) ToWarehouseGrantArrayOutput

func (o WarehouseGrantArrayOutput) ToWarehouseGrantArrayOutput() WarehouseGrantArrayOutput

func (WarehouseGrantArrayOutput) ToWarehouseGrantArrayOutputWithContext

func (o WarehouseGrantArrayOutput) ToWarehouseGrantArrayOutputWithContext(ctx context.Context) WarehouseGrantArrayOutput

type WarehouseGrantInput

type WarehouseGrantInput interface {
	pulumi.Input

	ToWarehouseGrantOutput() WarehouseGrantOutput
	ToWarehouseGrantOutputWithContext(ctx context.Context) WarehouseGrantOutput
}

type WarehouseGrantMap

type WarehouseGrantMap map[string]WarehouseGrantInput

func (WarehouseGrantMap) ElementType

func (WarehouseGrantMap) ElementType() reflect.Type

func (WarehouseGrantMap) ToWarehouseGrantMapOutput

func (i WarehouseGrantMap) ToWarehouseGrantMapOutput() WarehouseGrantMapOutput

func (WarehouseGrantMap) ToWarehouseGrantMapOutputWithContext

func (i WarehouseGrantMap) ToWarehouseGrantMapOutputWithContext(ctx context.Context) WarehouseGrantMapOutput

type WarehouseGrantMapInput

type WarehouseGrantMapInput interface {
	pulumi.Input

	ToWarehouseGrantMapOutput() WarehouseGrantMapOutput
	ToWarehouseGrantMapOutputWithContext(context.Context) WarehouseGrantMapOutput
}

WarehouseGrantMapInput is an input type that accepts WarehouseGrantMap and WarehouseGrantMapOutput values. You can construct a concrete instance of `WarehouseGrantMapInput` via:

WarehouseGrantMap{ "key": WarehouseGrantArgs{...} }

type WarehouseGrantMapOutput

type WarehouseGrantMapOutput struct{ *pulumi.OutputState }

func (WarehouseGrantMapOutput) ElementType

func (WarehouseGrantMapOutput) ElementType() reflect.Type

func (WarehouseGrantMapOutput) MapIndex

func (WarehouseGrantMapOutput) ToWarehouseGrantMapOutput

func (o WarehouseGrantMapOutput) ToWarehouseGrantMapOutput() WarehouseGrantMapOutput

func (WarehouseGrantMapOutput) ToWarehouseGrantMapOutputWithContext

func (o WarehouseGrantMapOutput) ToWarehouseGrantMapOutputWithContext(ctx context.Context) WarehouseGrantMapOutput

type WarehouseGrantOutput

type WarehouseGrantOutput struct{ *pulumi.OutputState }

func (WarehouseGrantOutput) ElementType

func (WarehouseGrantOutput) ElementType() reflect.Type

func (WarehouseGrantOutput) EnableMultipleGrants added in v0.9.0

func (o WarehouseGrantOutput) EnableMultipleGrants() pulumi.BoolPtrOutput

When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke grants applied to roles and objects outside Terraform.

func (WarehouseGrantOutput) Privilege added in v0.9.0

The privilege to grant on the warehouse. To grant all privileges, use the value `ALL PRIVILEGES`.

func (WarehouseGrantOutput) RevertOwnershipToRoleName added in v0.26.0

func (o WarehouseGrantOutput) RevertOwnershipToRoleName() pulumi.StringPtrOutput

The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`

func (WarehouseGrantOutput) Roles added in v0.9.0

Grants privilege to these roles.

func (WarehouseGrantOutput) ToWarehouseGrantOutput

func (o WarehouseGrantOutput) ToWarehouseGrantOutput() WarehouseGrantOutput

func (WarehouseGrantOutput) ToWarehouseGrantOutputWithContext

func (o WarehouseGrantOutput) ToWarehouseGrantOutputWithContext(ctx context.Context) WarehouseGrantOutput

func (WarehouseGrantOutput) WarehouseName added in v0.9.0

func (o WarehouseGrantOutput) WarehouseName() pulumi.StringOutput

The name of the warehouse on which to grant privileges.

func (WarehouseGrantOutput) WithGrantOption added in v0.9.0

func (o WarehouseGrantOutput) WithGrantOption() pulumi.BoolPtrOutput

When this is set to true, allows the recipient role to grant the privileges to other roles.

type WarehouseGrantState

type WarehouseGrantState struct {
	// When this is set to true, multiple grants of the same type can be created. This will cause Terraform to not revoke
	// grants applied to roles and objects outside Terraform.
	EnableMultipleGrants pulumi.BoolPtrInput
	// The privilege to grant on the warehouse. To grant all privileges, use the value `ALL PRIVILEGES`.
	Privilege pulumi.StringPtrInput
	// The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
	RevertOwnershipToRoleName pulumi.StringPtrInput
	// Grants privilege to these roles.
	Roles pulumi.StringArrayInput
	// The name of the warehouse on which to grant privileges.
	WarehouseName pulumi.StringPtrInput
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrInput
}

func (WarehouseGrantState) ElementType

func (WarehouseGrantState) ElementType() reflect.Type

type WarehouseInput

type WarehouseInput interface {
	pulumi.Input

	ToWarehouseOutput() WarehouseOutput
	ToWarehouseOutputWithContext(ctx context.Context) WarehouseOutput
}

type WarehouseMap

type WarehouseMap map[string]WarehouseInput

func (WarehouseMap) ElementType

func (WarehouseMap) ElementType() reflect.Type

func (WarehouseMap) ToWarehouseMapOutput

func (i WarehouseMap) ToWarehouseMapOutput() WarehouseMapOutput

func (WarehouseMap) ToWarehouseMapOutputWithContext

func (i WarehouseMap) ToWarehouseMapOutputWithContext(ctx context.Context) WarehouseMapOutput

type WarehouseMapInput

type WarehouseMapInput interface {
	pulumi.Input

	ToWarehouseMapOutput() WarehouseMapOutput
	ToWarehouseMapOutputWithContext(context.Context) WarehouseMapOutput
}

WarehouseMapInput is an input type that accepts WarehouseMap and WarehouseMapOutput values. You can construct a concrete instance of `WarehouseMapInput` via:

WarehouseMap{ "key": WarehouseArgs{...} }

type WarehouseMapOutput

type WarehouseMapOutput struct{ *pulumi.OutputState }

func (WarehouseMapOutput) ElementType

func (WarehouseMapOutput) ElementType() reflect.Type

func (WarehouseMapOutput) MapIndex

func (WarehouseMapOutput) ToWarehouseMapOutput

func (o WarehouseMapOutput) ToWarehouseMapOutput() WarehouseMapOutput

func (WarehouseMapOutput) ToWarehouseMapOutputWithContext

func (o WarehouseMapOutput) ToWarehouseMapOutputWithContext(ctx context.Context) WarehouseMapOutput

type WarehouseOutput

type WarehouseOutput struct{ *pulumi.OutputState }

func (WarehouseOutput) AutoResume added in v0.9.0

func (o WarehouseOutput) AutoResume() pulumi.BoolOutput

Specifies whether to automatically resume a warehouse when a SQL statement (e.g. query) is submitted to it.

func (WarehouseOutput) AutoSuspend added in v0.9.0

func (o WarehouseOutput) AutoSuspend() pulumi.IntOutput

Specifies the number of seconds of inactivity after which a warehouse is automatically suspended.

func (WarehouseOutput) Comment added in v0.9.0

func (WarehouseOutput) ElementType

func (WarehouseOutput) ElementType() reflect.Type

func (WarehouseOutput) EnableQueryAcceleration added in v0.15.0

func (o WarehouseOutput) EnableQueryAcceleration() pulumi.BoolPtrOutput

Specifies whether to enable the query acceleration service for queries that rely on this warehouse for compute resources.

func (WarehouseOutput) InitiallySuspended added in v0.9.0

func (o WarehouseOutput) InitiallySuspended() pulumi.BoolPtrOutput

Specifies whether the warehouse is created initially in the ‘Suspended’ state.

func (WarehouseOutput) MaxClusterCount added in v0.9.0

func (o WarehouseOutput) MaxClusterCount() pulumi.IntOutput

Specifies the maximum number of server clusters for the warehouse.

func (WarehouseOutput) MaxConcurrencyLevel added in v0.9.0

func (o WarehouseOutput) MaxConcurrencyLevel() pulumi.IntPtrOutput

Object parameter that specifies the concurrency level for SQL statements (i.e. queries and DML) executed by a warehouse.

func (WarehouseOutput) MinClusterCount added in v0.9.0

func (o WarehouseOutput) MinClusterCount() pulumi.IntOutput

Specifies the minimum number of server clusters for the warehouse (only applies to multi-cluster warehouses).

func (WarehouseOutput) Name added in v0.9.0

Identifier for the virtual warehouse; must be unique for your account.

func (WarehouseOutput) QueryAccelerationMaxScaleFactor added in v0.15.0

func (o WarehouseOutput) QueryAccelerationMaxScaleFactor() pulumi.IntPtrOutput

Specifies the maximum scale factor for leasing compute resources for query acceleration. The scale factor is used as a multiplier based on warehouse size.

func (WarehouseOutput) ResourceMonitor added in v0.9.0

func (o WarehouseOutput) ResourceMonitor() pulumi.StringOutput

Specifies the name of a resource monitor that is explicitly assigned to the warehouse.

func (WarehouseOutput) ScalingPolicy added in v0.9.0

func (o WarehouseOutput) ScalingPolicy() pulumi.StringOutput

Specifies the policy for automatically starting and shutting down clusters in a multi-cluster warehouse running in Auto-scale mode.

func (WarehouseOutput) StatementQueuedTimeoutInSeconds added in v0.9.0

func (o WarehouseOutput) StatementQueuedTimeoutInSeconds() pulumi.IntPtrOutput

Object parameter that specifies the time, in seconds, a SQL statement (query, DDL, DML, etc.) can be queued on a warehouse before it is canceled by the system.

func (WarehouseOutput) StatementTimeoutInSeconds added in v0.9.0

func (o WarehouseOutput) StatementTimeoutInSeconds() pulumi.IntPtrOutput

Specifies the time, in seconds, after which a running SQL statement (query, DDL, DML, etc.) is canceled by the system

func (WarehouseOutput) ToWarehouseOutput

func (o WarehouseOutput) ToWarehouseOutput() WarehouseOutput

func (WarehouseOutput) ToWarehouseOutputWithContext

func (o WarehouseOutput) ToWarehouseOutputWithContext(ctx context.Context) WarehouseOutput

func (WarehouseOutput) WaitForProvisioning deprecated added in v0.9.0

func (o WarehouseOutput) WaitForProvisioning() pulumi.BoolPtrOutput

Specifies whether the warehouse, after being resized, waits for all the servers to provision before executing any queued or new queries.

Deprecated: This field is deprecated and will be removed in the next major version of the provider. It doesn't do anything and should be removed from your configuration.

func (WarehouseOutput) WarehouseSize added in v0.9.0

func (o WarehouseOutput) WarehouseSize() pulumi.StringOutput

Specifies the size of the virtual warehouse. Larger warehouse sizes 5X-Large and 6X-Large are currently in preview and only available on Amazon Web Services (AWS).

func (WarehouseOutput) WarehouseType added in v0.15.0

func (o WarehouseOutput) WarehouseType() pulumi.StringPtrOutput

Specifies a STANDARD or SNOWPARK-OPTIMIZED warehouse

type WarehouseState

type WarehouseState struct {
	// Specifies whether to automatically resume a warehouse when a SQL statement (e.g. query) is submitted to it.
	AutoResume pulumi.BoolPtrInput
	// Specifies the number of seconds of inactivity after which a warehouse is automatically suspended.
	AutoSuspend pulumi.IntPtrInput
	Comment     pulumi.StringPtrInput
	// Specifies whether to enable the query acceleration service for queries that rely on this warehouse for compute resources.
	EnableQueryAcceleration pulumi.BoolPtrInput
	// Specifies whether the warehouse is created initially in the ‘Suspended’ state.
	InitiallySuspended pulumi.BoolPtrInput
	// Specifies the maximum number of server clusters for the warehouse.
	MaxClusterCount pulumi.IntPtrInput
	// Object parameter that specifies the concurrency level for SQL statements (i.e. queries and DML) executed by a warehouse.
	MaxConcurrencyLevel pulumi.IntPtrInput
	// Specifies the minimum number of server clusters for the warehouse (only applies to multi-cluster warehouses).
	MinClusterCount pulumi.IntPtrInput
	// Identifier for the virtual warehouse; must be unique for your account.
	Name pulumi.StringPtrInput
	// Specifies the maximum scale factor for leasing compute resources for query acceleration. The scale factor is used as a multiplier based on warehouse size.
	QueryAccelerationMaxScaleFactor pulumi.IntPtrInput
	// Specifies the name of a resource monitor that is explicitly assigned to the warehouse.
	ResourceMonitor pulumi.StringPtrInput
	// Specifies the policy for automatically starting and shutting down clusters in a multi-cluster warehouse running in Auto-scale mode.
	ScalingPolicy pulumi.StringPtrInput
	// Object parameter that specifies the time, in seconds, a SQL statement (query, DDL, DML, etc.) can be queued on a warehouse before it is canceled by the system.
	StatementQueuedTimeoutInSeconds pulumi.IntPtrInput
	// Specifies the time, in seconds, after which a running SQL statement (query, DDL, DML, etc.) is canceled by the system
	StatementTimeoutInSeconds pulumi.IntPtrInput
	// Specifies whether the warehouse, after being resized, waits for all the servers to provision before executing any queued or new queries.
	//
	// Deprecated: This field is deprecated and will be removed in the next major version of the provider. It doesn't do anything and should be removed from your configuration.
	WaitForProvisioning pulumi.BoolPtrInput
	// Specifies the size of the virtual warehouse. Larger warehouse sizes 5X-Large and 6X-Large are currently in preview and only available on Amazon Web Services (AWS).
	WarehouseSize pulumi.StringPtrInput
	// Specifies a STANDARD or SNOWPARK-OPTIMIZED warehouse
	WarehouseType pulumi.StringPtrInput
}

func (WarehouseState) ElementType

func (WarehouseState) ElementType() reflect.Type

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL