snowflake

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2021 License: Apache-2.0 Imports: 10 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

func PkgVersion

func PkgVersion() (semver.Version, error)

PkgVersion uses reflection to determine the version of the current package.

Types

type AccountGrant

type AccountGrant struct {
	pulumi.CustomResourceState

	// The privilege to grant on the account.
	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 account name | privilege | true/false for with_grant_option

```sh

$ pulumi import snowflake:index/accountGrant:AccountGrant example 'accountName|USAGE|true'

```

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

func (*AccountGrant) ToAccountGrantPtrOutput

func (i *AccountGrant) ToAccountGrantPtrOutput() AccountGrantPtrOutput

func (*AccountGrant) ToAccountGrantPtrOutputWithContext

func (i *AccountGrant) ToAccountGrantPtrOutputWithContext(ctx context.Context) AccountGrantPtrOutput

type AccountGrantArgs

type AccountGrantArgs struct {
	// The privilege to grant on the account.
	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) ToAccountGrantOutput

func (o AccountGrantOutput) ToAccountGrantOutput() AccountGrantOutput

func (AccountGrantOutput) ToAccountGrantOutputWithContext

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

func (AccountGrantOutput) ToAccountGrantPtrOutput

func (o AccountGrantOutput) ToAccountGrantPtrOutput() AccountGrantPtrOutput

func (AccountGrantOutput) ToAccountGrantPtrOutputWithContext

func (o AccountGrantOutput) ToAccountGrantPtrOutputWithContext(ctx context.Context) AccountGrantPtrOutput

type AccountGrantPtrInput

type AccountGrantPtrInput interface {
	pulumi.Input

	ToAccountGrantPtrOutput() AccountGrantPtrOutput
	ToAccountGrantPtrOutputWithContext(ctx context.Context) AccountGrantPtrOutput
}

type AccountGrantPtrOutput

type AccountGrantPtrOutput struct {
	*pulumi.OutputState
}

func (AccountGrantPtrOutput) ElementType

func (AccountGrantPtrOutput) ElementType() reflect.Type

func (AccountGrantPtrOutput) ToAccountGrantPtrOutput

func (o AccountGrantPtrOutput) ToAccountGrantPtrOutput() AccountGrantPtrOutput

func (AccountGrantPtrOutput) ToAccountGrantPtrOutputWithContext

func (o AccountGrantPtrOutput) ToAccountGrantPtrOutputWithContext(ctx context.Context) AccountGrantPtrOutput

type AccountGrantState

type AccountGrantState struct {
	// The privilege to grant on the account.
	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 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"`
	// 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"`
	// 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"`
	// 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, "apiIntegration", &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
		}
		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

func (*ApiIntegration) ToApiIntegrationPtrOutput

func (i *ApiIntegration) ToApiIntegrationPtrOutput() ApiIntegrationPtrOutput

func (*ApiIntegration) ToApiIntegrationPtrOutputWithContext

func (i *ApiIntegration) ToApiIntegrationPtrOutputWithContext(ctx context.Context) ApiIntegrationPtrOutput

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
	// 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
	// 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
	// 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) ElementType

func (ApiIntegrationOutput) ElementType() reflect.Type

func (ApiIntegrationOutput) ToApiIntegrationOutput

func (o ApiIntegrationOutput) ToApiIntegrationOutput() ApiIntegrationOutput

func (ApiIntegrationOutput) ToApiIntegrationOutputWithContext

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

func (ApiIntegrationOutput) ToApiIntegrationPtrOutput

func (o ApiIntegrationOutput) ToApiIntegrationPtrOutput() ApiIntegrationPtrOutput

func (ApiIntegrationOutput) ToApiIntegrationPtrOutputWithContext

func (o ApiIntegrationOutput) ToApiIntegrationPtrOutputWithContext(ctx context.Context) ApiIntegrationPtrOutput

type ApiIntegrationPtrInput

type ApiIntegrationPtrInput interface {
	pulumi.Input

	ToApiIntegrationPtrOutput() ApiIntegrationPtrOutput
	ToApiIntegrationPtrOutputWithContext(ctx context.Context) ApiIntegrationPtrOutput
}

type ApiIntegrationPtrOutput

type ApiIntegrationPtrOutput struct {
	*pulumi.OutputState
}

func (ApiIntegrationPtrOutput) ElementType

func (ApiIntegrationPtrOutput) ElementType() reflect.Type

func (ApiIntegrationPtrOutput) ToApiIntegrationPtrOutput

func (o ApiIntegrationPtrOutput) ToApiIntegrationPtrOutput() ApiIntegrationPtrOutput

func (ApiIntegrationPtrOutput) ToApiIntegrationPtrOutputWithContext

func (o ApiIntegrationPtrOutput) ToApiIntegrationPtrOutputWithContext(ctx context.Context) ApiIntegrationPtrOutput

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
	// 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
	// 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
	// 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"`
	DataRetentionTimeInDays pulumi.IntOutput       `pulumi:"dataRetentionTimeInDays"`
	// Specify a database to create a clone from.
	FromDatabase pulumi.StringPtrOutput `pulumi:"fromDatabase"`
	// Specify a provider and a share in this map to create a database from a share.
	FromShare pulumi.MapOutput    `pulumi:"fromShare"`
	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.NewDatabase(ctx, "test", &snowflake.DatabaseArgs{
			Comment:                 pulumi.String("test comment"),
			DataRetentionTimeInDays: pulumi.Int(3),
		})
		if err != nil {
			return err
		}
		_, err = snowflake.NewDatabase(ctx, "test2", &snowflake.DatabaseArgs{
			Comment: pulumi.String("test comment 2"),
		})
		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

func (*Database) ToDatabasePtrOutput

func (i *Database) ToDatabasePtrOutput() DatabasePtrOutput

func (*Database) ToDatabasePtrOutputWithContext

func (i *Database) ToDatabasePtrOutputWithContext(ctx context.Context) DatabasePtrOutput

type DatabaseArgs

type DatabaseArgs struct {
	Comment                 pulumi.StringPtrInput
	DataRetentionTimeInDays pulumi.IntPtrInput
	// Specify a database to create a clone from.
	FromDatabase pulumi.StringPtrInput
	// Specify a provider and a share in this map to create a database from a share.
	FromShare pulumi.MapInput
	Name      pulumi.StringPtrInput
}

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"`
	// The privilege to grant on the database.
	Privilege pulumi.StringPtrOutput `pulumi:"privilege"`
	// 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("db"),
			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 | true/false for with_grant_option

```sh

$ pulumi import snowflake:index/databaseGrant:DatabaseGrant example 'databaseName|||USAGE|false'

```

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

func (*DatabaseGrant) ToDatabaseGrantPtrOutput

func (i *DatabaseGrant) ToDatabaseGrantPtrOutput() DatabaseGrantPtrOutput

func (*DatabaseGrant) ToDatabaseGrantPtrOutputWithContext

func (i *DatabaseGrant) ToDatabaseGrantPtrOutputWithContext(ctx context.Context) DatabaseGrantPtrOutput

type DatabaseGrantArgs

type DatabaseGrantArgs struct {
	// The name of the database on which to grant privileges.
	DatabaseName pulumi.StringInput
	// The privilege to grant on the database.
	Privilege 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) ElementType

func (DatabaseGrantOutput) ElementType() reflect.Type

func (DatabaseGrantOutput) ToDatabaseGrantOutput

func (o DatabaseGrantOutput) ToDatabaseGrantOutput() DatabaseGrantOutput

func (DatabaseGrantOutput) ToDatabaseGrantOutputWithContext

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

func (DatabaseGrantOutput) ToDatabaseGrantPtrOutput

func (o DatabaseGrantOutput) ToDatabaseGrantPtrOutput() DatabaseGrantPtrOutput

func (DatabaseGrantOutput) ToDatabaseGrantPtrOutputWithContext

func (o DatabaseGrantOutput) ToDatabaseGrantPtrOutputWithContext(ctx context.Context) DatabaseGrantPtrOutput

type DatabaseGrantPtrInput

type DatabaseGrantPtrInput interface {
	pulumi.Input

	ToDatabaseGrantPtrOutput() DatabaseGrantPtrOutput
	ToDatabaseGrantPtrOutputWithContext(ctx context.Context) DatabaseGrantPtrOutput
}

type DatabaseGrantPtrOutput

type DatabaseGrantPtrOutput struct {
	*pulumi.OutputState
}

func (DatabaseGrantPtrOutput) ElementType

func (DatabaseGrantPtrOutput) ElementType() reflect.Type

func (DatabaseGrantPtrOutput) ToDatabaseGrantPtrOutput

func (o DatabaseGrantPtrOutput) ToDatabaseGrantPtrOutput() DatabaseGrantPtrOutput

func (DatabaseGrantPtrOutput) ToDatabaseGrantPtrOutputWithContext

func (o DatabaseGrantPtrOutput) ToDatabaseGrantPtrOutputWithContext(ctx context.Context) DatabaseGrantPtrOutput

type DatabaseGrantState

type DatabaseGrantState struct {
	// The name of the database on which to grant privileges.
	DatabaseName pulumi.StringPtrInput
	// The privilege to grant on the database.
	Privilege 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) ElementType

func (DatabaseOutput) ElementType() reflect.Type

func (DatabaseOutput) ToDatabaseOutput

func (o DatabaseOutput) ToDatabaseOutput() DatabaseOutput

func (DatabaseOutput) ToDatabaseOutputWithContext

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

func (DatabaseOutput) ToDatabasePtrOutput

func (o DatabaseOutput) ToDatabasePtrOutput() DatabasePtrOutput

func (DatabaseOutput) ToDatabasePtrOutputWithContext

func (o DatabaseOutput) ToDatabasePtrOutputWithContext(ctx context.Context) DatabasePtrOutput

type DatabasePtrInput

type DatabasePtrInput interface {
	pulumi.Input

	ToDatabasePtrOutput() DatabasePtrOutput
	ToDatabasePtrOutputWithContext(ctx context.Context) DatabasePtrOutput
}

type DatabasePtrOutput

type DatabasePtrOutput struct {
	*pulumi.OutputState
}

func (DatabasePtrOutput) ElementType

func (DatabasePtrOutput) ElementType() reflect.Type

func (DatabasePtrOutput) ToDatabasePtrOutput

func (o DatabasePtrOutput) ToDatabasePtrOutput() DatabasePtrOutput

func (DatabasePtrOutput) ToDatabasePtrOutputWithContext

func (o DatabasePtrOutput) ToDatabasePtrOutputWithContext(ctx context.Context) DatabasePtrOutput

type DatabaseState

type DatabaseState struct {
	Comment                 pulumi.StringPtrInput
	DataRetentionTimeInDays pulumi.IntPtrInput
	// Specify a database to create a clone from.
	FromDatabase pulumi.StringPtrInput
	// Specify a provider and a share in this map to create a database from a share.
	FromShare pulumi.MapInput
	Name      pulumi.StringPtrInput
}

func (DatabaseState) ElementType

func (DatabaseState) ElementType() reflect.Type

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"`
	// 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: ExternalFunctionArgArray{
				&ExternalFunctionArgArgs{
					Name: pulumi.String("arg1"),
					Type: pulumi.String("varchar"),
				},
				&ExternalFunctionArgArgs{
					Name: pulumi.String("arg2"),
					Type: pulumi.String("varchar"),
				},
			},
			Database:              pulumi.String("my_test_db"),
			ReturnBehavior:        pulumi.String("IMMUTABLE"),
			ReturnType:            pulumi.String("varchar"),
			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

func (*ExternalFunction) ToExternalFunctionPtrOutput

func (i *ExternalFunction) ToExternalFunctionPtrOutput() ExternalFunctionPtrOutput

func (*ExternalFunction) ToExternalFunctionPtrOutputWithContext

func (i *ExternalFunction) ToExternalFunctionPtrOutputWithContext(ctx context.Context) ExternalFunctionPtrOutput

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
	// 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) ElementType

func (ExternalFunctionOutput) ElementType() reflect.Type

func (ExternalFunctionOutput) ToExternalFunctionOutput

func (o ExternalFunctionOutput) ToExternalFunctionOutput() ExternalFunctionOutput

func (ExternalFunctionOutput) ToExternalFunctionOutputWithContext

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

func (ExternalFunctionOutput) ToExternalFunctionPtrOutput

func (o ExternalFunctionOutput) ToExternalFunctionPtrOutput() ExternalFunctionPtrOutput

func (ExternalFunctionOutput) ToExternalFunctionPtrOutputWithContext

func (o ExternalFunctionOutput) ToExternalFunctionPtrOutputWithContext(ctx context.Context) ExternalFunctionPtrOutput

type ExternalFunctionPtrInput

type ExternalFunctionPtrInput interface {
	pulumi.Input

	ToExternalFunctionPtrOutput() ExternalFunctionPtrOutput
	ToExternalFunctionPtrOutputWithContext(ctx context.Context) ExternalFunctionPtrOutput
}

type ExternalFunctionPtrOutput

type ExternalFunctionPtrOutput struct {
	*pulumi.OutputState
}

func (ExternalFunctionPtrOutput) ElementType

func (ExternalFunctionPtrOutput) ElementType() reflect.Type

func (ExternalFunctionPtrOutput) ToExternalFunctionPtrOutput

func (o ExternalFunctionPtrOutput) ToExternalFunctionPtrOutput() ExternalFunctionPtrOutput

func (ExternalFunctionPtrOutput) ToExternalFunctionPtrOutputWithContext

func (o ExternalFunctionPtrOutput) ToExternalFunctionPtrOutputWithContext(ctx context.Context) ExternalFunctionPtrOutput

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
	// 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 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 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"`
}

## 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: ExternalTableColumnArray{
				&ExternalTableColumnArgs{
					Name: pulumi.String("id"),
					Type: pulumi.String("int"),
				},
				&ExternalTableColumnArgs{
					Name: pulumi.String("data"),
					Type: pulumi.String("text"),
				},
			},
			Comment:  pulumi.String("External table"),
			Database: pulumi.String("db"),
			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

func (*ExternalTable) ToExternalTablePtrOutput

func (i *ExternalTable) ToExternalTablePtrOutput() ExternalTablePtrOutput

func (*ExternalTable) ToExternalTablePtrOutputWithContext

func (i *ExternalTable) ToExternalTablePtrOutputWithContext(ctx context.Context) ExternalTablePtrOutput

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 weather to refresh when an external table is created.
	RefreshOnCreate pulumi.BoolPtrInput
	// The schema in which to create the external table.
	Schema pulumi.StringInput
}

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"`
	// 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 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.
	OnFuture pulumi.BoolPtrOutput `pulumi:"onFuture"`
	// The privilege to grant on the current or future external table.
	Privilege pulumi.StringPtrOutput `pulumi:"privilege"`
	// 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.StringOutput `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("db"),
			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 name | schema name | external table name | privilege | true/false for with_grant_option

```sh

$ pulumi import snowflake:index/externalTableGrant:ExternalTableGrant example 'dbName|schemaName|externalTableName|SELECT|false'

```

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

func (*ExternalTableGrant) ToExternalTableGrantPtrOutput

func (i *ExternalTableGrant) ToExternalTableGrantPtrOutput() ExternalTableGrantPtrOutput

func (*ExternalTableGrant) ToExternalTableGrantPtrOutputWithContext

func (i *ExternalTableGrant) ToExternalTableGrantPtrOutputWithContext(ctx context.Context) ExternalTableGrantPtrOutput

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
	// 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 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.
	OnFuture pulumi.BoolPtrInput
	// The privilege to grant on the current or future external table.
	Privilege 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.StringInput
	// 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) ElementType

func (ExternalTableGrantOutput) ElementType() reflect.Type

func (ExternalTableGrantOutput) ToExternalTableGrantOutput

func (o ExternalTableGrantOutput) ToExternalTableGrantOutput() ExternalTableGrantOutput

func (ExternalTableGrantOutput) ToExternalTableGrantOutputWithContext

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

func (ExternalTableGrantOutput) ToExternalTableGrantPtrOutput

func (o ExternalTableGrantOutput) ToExternalTableGrantPtrOutput() ExternalTableGrantPtrOutput

func (ExternalTableGrantOutput) ToExternalTableGrantPtrOutputWithContext

func (o ExternalTableGrantOutput) ToExternalTableGrantPtrOutputWithContext(ctx context.Context) ExternalTableGrantPtrOutput

type ExternalTableGrantPtrInput

type ExternalTableGrantPtrInput interface {
	pulumi.Input

	ToExternalTableGrantPtrOutput() ExternalTableGrantPtrOutput
	ToExternalTableGrantPtrOutputWithContext(ctx context.Context) ExternalTableGrantPtrOutput
}

type ExternalTableGrantPtrOutput

type ExternalTableGrantPtrOutput struct {
	*pulumi.OutputState
}

func (ExternalTableGrantPtrOutput) ElementType

func (ExternalTableGrantPtrOutput) ToExternalTableGrantPtrOutput

func (o ExternalTableGrantPtrOutput) ToExternalTableGrantPtrOutput() ExternalTableGrantPtrOutput

func (ExternalTableGrantPtrOutput) ToExternalTableGrantPtrOutputWithContext

func (o ExternalTableGrantPtrOutput) ToExternalTableGrantPtrOutputWithContext(ctx context.Context) ExternalTableGrantPtrOutput

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
	// 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 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.
	OnFuture pulumi.BoolPtrInput
	// The privilege to grant on the current or future external table.
	Privilege 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) ElementType

func (ExternalTableOutput) ElementType() reflect.Type

func (ExternalTableOutput) ToExternalTableOutput

func (o ExternalTableOutput) ToExternalTableOutput() ExternalTableOutput

func (ExternalTableOutput) ToExternalTableOutputWithContext

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

func (ExternalTableOutput) ToExternalTablePtrOutput

func (o ExternalTableOutput) ToExternalTablePtrOutput() ExternalTablePtrOutput

func (ExternalTableOutput) ToExternalTablePtrOutputWithContext

func (o ExternalTableOutput) ToExternalTablePtrOutputWithContext(ctx context.Context) ExternalTablePtrOutput

type ExternalTablePtrInput

type ExternalTablePtrInput interface {
	pulumi.Input

	ToExternalTablePtrOutput() ExternalTablePtrOutput
	ToExternalTablePtrOutputWithContext(ctx context.Context) ExternalTablePtrOutput
}

type ExternalTablePtrOutput

type ExternalTablePtrOutput struct {
	*pulumi.OutputState
}

func (ExternalTablePtrOutput) ElementType

func (ExternalTablePtrOutput) ElementType() reflect.Type

func (ExternalTablePtrOutput) ToExternalTablePtrOutput

func (o ExternalTablePtrOutput) ToExternalTablePtrOutput() ExternalTablePtrOutput

func (ExternalTablePtrOutput) ToExternalTablePtrOutputWithContext

func (o ExternalTablePtrOutput) ToExternalTablePtrOutputWithContext(ctx context.Context) ExternalTablePtrOutput

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 weather to refresh when an external table is created.
	RefreshOnCreate pulumi.BoolPtrInput
	// The schema in which to create the external table.
	Schema pulumi.StringPtrInput
}

func (ExternalTableState) ElementType

func (ExternalTableState) 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.StringPtrOutput `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.StringPtrOutput `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.StringPtrOutput `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.StringPtrOutput `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.StringPtrOutput `pulumi:"escape"`
	// Single character string used as the escape character for unenclosed field values only.
	EscapeUnenclosedField pulumi.StringPtrOutput `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.StringPtrOutput `pulumi:"fieldDelimiter"`
	// Character used to enclose strings.
	FieldOptionallyEnclosedBy pulumi.StringPtrOutput `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.StringPtrOutput `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.StringPtrOutput `pulumi:"timeFormat"`
	// Defines the format of timestamp values in the data files (data loading) or table (data unloading).
	TimestampFormat pulumi.StringPtrOutput `pulumi:"timestampFormat"`
	// Boolean that specifies whether to remove white space from fields.
	TrimSpace pulumi.BoolPtrOutput `pulumi:"trimSpace"`
	// Boolean that specifies whether to validate UTF-8 character encoding in string column data.
	ValidateUtf8 pulumi.BoolPtrOutput `pulumi:"validateUtf8"`
}

## 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

func (*FileFormat) ToFileFormatPtrOutput

func (i *FileFormat) ToFileFormatPtrOutput() FileFormatPtrOutput

func (*FileFormat) ToFileFormatPtrOutputWithContext

func (i *FileFormat) ToFileFormatPtrOutputWithContext(ctx context.Context) FileFormatPtrOutput

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
	// Boolean that specifies whether to validate UTF-8 character encoding in string column data.
	ValidateUtf8 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"`
	// 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 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.
	OnFuture pulumi.BoolPtrOutput `pulumi:"onFuture"`
	// The privilege to grant on the current or future file format.
	Privilege pulumi.StringPtrOutput `pulumi:"privilege"`
	// 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.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.NewFileFormatGrant(ctx, "grant", &snowflake.FileFormatGrantArgs{
			DatabaseName:   pulumi.String("db"),
			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 | true/false for with_grant_option

```sh

$ pulumi import snowflake:index/fileFormatGrant:FileFormatGrant example 'dbName|schemaName|fileFormatName|USAGE|false'

```

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

func (*FileFormatGrant) ToFileFormatGrantPtrOutput

func (i *FileFormatGrant) ToFileFormatGrantPtrOutput() FileFormatGrantPtrOutput

func (*FileFormatGrant) ToFileFormatGrantPtrOutputWithContext

func (i *FileFormatGrant) ToFileFormatGrantPtrOutputWithContext(ctx context.Context) FileFormatGrantPtrOutput

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
	// 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 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.
	OnFuture pulumi.BoolPtrInput
	// The privilege to grant on the current or future file format.
	Privilege 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.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 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) ElementType

func (FileFormatGrantOutput) ElementType() reflect.Type

func (FileFormatGrantOutput) ToFileFormatGrantOutput

func (o FileFormatGrantOutput) ToFileFormatGrantOutput() FileFormatGrantOutput

func (FileFormatGrantOutput) ToFileFormatGrantOutputWithContext

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

func (FileFormatGrantOutput) ToFileFormatGrantPtrOutput

func (o FileFormatGrantOutput) ToFileFormatGrantPtrOutput() FileFormatGrantPtrOutput

func (FileFormatGrantOutput) ToFileFormatGrantPtrOutputWithContext

func (o FileFormatGrantOutput) ToFileFormatGrantPtrOutputWithContext(ctx context.Context) FileFormatGrantPtrOutput

type FileFormatGrantPtrInput

type FileFormatGrantPtrInput interface {
	pulumi.Input

	ToFileFormatGrantPtrOutput() FileFormatGrantPtrOutput
	ToFileFormatGrantPtrOutputWithContext(ctx context.Context) FileFormatGrantPtrOutput
}

type FileFormatGrantPtrOutput

type FileFormatGrantPtrOutput struct {
	*pulumi.OutputState
}

func (FileFormatGrantPtrOutput) ElementType

func (FileFormatGrantPtrOutput) ElementType() reflect.Type

func (FileFormatGrantPtrOutput) ToFileFormatGrantPtrOutput

func (o FileFormatGrantPtrOutput) ToFileFormatGrantPtrOutput() FileFormatGrantPtrOutput

func (FileFormatGrantPtrOutput) ToFileFormatGrantPtrOutputWithContext

func (o FileFormatGrantPtrOutput) ToFileFormatGrantPtrOutputWithContext(ctx context.Context) FileFormatGrantPtrOutput

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
	// 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 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.
	OnFuture pulumi.BoolPtrInput
	// The privilege to grant on the current or future file format.
	Privilege 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) ElementType

func (FileFormatOutput) ElementType() reflect.Type

func (FileFormatOutput) ToFileFormatOutput

func (o FileFormatOutput) ToFileFormatOutput() FileFormatOutput

func (FileFormatOutput) ToFileFormatOutputWithContext

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

func (FileFormatOutput) ToFileFormatPtrOutput

func (o FileFormatOutput) ToFileFormatPtrOutput() FileFormatPtrOutput

func (FileFormatOutput) ToFileFormatPtrOutputWithContext

func (o FileFormatOutput) ToFileFormatPtrOutputWithContext(ctx context.Context) FileFormatPtrOutput

type FileFormatPtrInput

type FileFormatPtrInput interface {
	pulumi.Input

	ToFileFormatPtrOutput() FileFormatPtrOutput
	ToFileFormatPtrOutputWithContext(ctx context.Context) FileFormatPtrOutput
}

type FileFormatPtrOutput

type FileFormatPtrOutput struct {
	*pulumi.OutputState
}

func (FileFormatPtrOutput) ElementType

func (FileFormatPtrOutput) ElementType() reflect.Type

func (FileFormatPtrOutput) ToFileFormatPtrOutput

func (o FileFormatPtrOutput) ToFileFormatPtrOutput() FileFormatPtrOutput

func (FileFormatPtrOutput) ToFileFormatPtrOutputWithContext

func (o FileFormatPtrOutput) ToFileFormatPtrOutputWithContext(ctx context.Context) FileFormatPtrOutput

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
	// Boolean that specifies whether to validate UTF-8 character encoding in string column data.
	ValidateUtf8 pulumi.BoolPtrInput
}

func (FileFormatState) ElementType

func (FileFormatState) ElementType() reflect.Type

type FunctionGrant

type FunctionGrant struct {
	pulumi.CustomResourceState

	// List of the arguments for the function (must be present if functionName is present)
	Arguments FunctionGrantArgumentArrayOutput `pulumi:"arguments"`
	// The name of the database containing the current or future functions on which to grant privileges.
	DatabaseName pulumi.StringOutput `pulumi:"databaseName"`
	// 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 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.
	OnFuture pulumi.BoolPtrOutput `pulumi:"onFuture"`
	// The privilege to grant on the current or future function.
	Privilege pulumi.StringPtrOutput `pulumi:"privilege"`
	// The return type of the function (must be present if functionName is present)
	ReturnType pulumi.StringPtrOutput `pulumi:"returnType"`
	// 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.StringOutput `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{
			DatabaseName: pulumi.String("db"),
			SchemaName:   pulumi.String("schema"),
			FunctionName: pulumi.String("function"),
			Arguments: FunctionGrantArgumentArray{
				&FunctionGrantArgumentArgs{
					Name: pulumi.String("a"),
					Type: pulumi.String("array"),
				},
				&FunctionGrantArgumentArgs{
					Name: pulumi.String("b"),
					Type: pulumi.String("string"),
				},
			},
			ReturnType: pulumi.String("string"),
			Privilege:  pulumi.String("select"),
			Roles: pulumi.StringArray{
				pulumi.String("role1"),
				pulumi.String("role2"),
			},
			Shares: pulumi.StringArray{
				pulumi.String("share1"),
				pulumi.String("share2"),
			},
			OnFuture:        pulumi.Bool(false),
			WithGrantOption: pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

format is database name | schema name | function signature | privilege | true/false for with_grant_option

```sh

$ pulumi import snowflake:index/functionGrant:FunctionGrant example 'dbName|schemaName|functionName(ARG1 ARG1TYPE, ARG2 ARG2TYPE):RETURNTYPE|USAGE|false'

```

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

func (*FunctionGrant) ToFunctionGrantPtrOutput

func (i *FunctionGrant) ToFunctionGrantPtrOutput() FunctionGrantPtrOutput

func (*FunctionGrant) ToFunctionGrantPtrOutputWithContext

func (i *FunctionGrant) ToFunctionGrantPtrOutputWithContext(ctx context.Context) FunctionGrantPtrOutput

type FunctionGrantArgs

type FunctionGrantArgs struct {
	// List of the arguments for the function (must be present if functionName is present)
	Arguments FunctionGrantArgumentArrayInput
	// The name of the database containing the current or future functions on which to grant privileges.
	DatabaseName pulumi.StringInput
	// 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 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.
	OnFuture pulumi.BoolPtrInput
	// The privilege to grant on the current or future function.
	Privilege pulumi.StringPtrInput
	// The return type of the function (must be present if functionName is present)
	ReturnType 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.StringInput
	// 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 FunctionGrantArgument

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

type FunctionGrantArgumentArgs

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

func (FunctionGrantArgumentArgs) ElementType

func (FunctionGrantArgumentArgs) ElementType() reflect.Type

func (FunctionGrantArgumentArgs) ToFunctionGrantArgumentOutput

func (i FunctionGrantArgumentArgs) ToFunctionGrantArgumentOutput() FunctionGrantArgumentOutput

func (FunctionGrantArgumentArgs) ToFunctionGrantArgumentOutputWithContext

func (i FunctionGrantArgumentArgs) ToFunctionGrantArgumentOutputWithContext(ctx context.Context) FunctionGrantArgumentOutput

type FunctionGrantArgumentArray

type FunctionGrantArgumentArray []FunctionGrantArgumentInput

func (FunctionGrantArgumentArray) ElementType

func (FunctionGrantArgumentArray) ElementType() reflect.Type

func (FunctionGrantArgumentArray) ToFunctionGrantArgumentArrayOutput

func (i FunctionGrantArgumentArray) ToFunctionGrantArgumentArrayOutput() FunctionGrantArgumentArrayOutput

func (FunctionGrantArgumentArray) ToFunctionGrantArgumentArrayOutputWithContext

func (i FunctionGrantArgumentArray) ToFunctionGrantArgumentArrayOutputWithContext(ctx context.Context) FunctionGrantArgumentArrayOutput

type FunctionGrantArgumentArrayInput

type FunctionGrantArgumentArrayInput interface {
	pulumi.Input

	ToFunctionGrantArgumentArrayOutput() FunctionGrantArgumentArrayOutput
	ToFunctionGrantArgumentArrayOutputWithContext(context.Context) FunctionGrantArgumentArrayOutput
}

FunctionGrantArgumentArrayInput is an input type that accepts FunctionGrantArgumentArray and FunctionGrantArgumentArrayOutput values. You can construct a concrete instance of `FunctionGrantArgumentArrayInput` via:

FunctionGrantArgumentArray{ FunctionGrantArgumentArgs{...} }

type FunctionGrantArgumentArrayOutput

type FunctionGrantArgumentArrayOutput struct{ *pulumi.OutputState }

func (FunctionGrantArgumentArrayOutput) ElementType

func (FunctionGrantArgumentArrayOutput) Index

func (FunctionGrantArgumentArrayOutput) ToFunctionGrantArgumentArrayOutput

func (o FunctionGrantArgumentArrayOutput) ToFunctionGrantArgumentArrayOutput() FunctionGrantArgumentArrayOutput

func (FunctionGrantArgumentArrayOutput) ToFunctionGrantArgumentArrayOutputWithContext

func (o FunctionGrantArgumentArrayOutput) ToFunctionGrantArgumentArrayOutputWithContext(ctx context.Context) FunctionGrantArgumentArrayOutput

type FunctionGrantArgumentInput

type FunctionGrantArgumentInput interface {
	pulumi.Input

	ToFunctionGrantArgumentOutput() FunctionGrantArgumentOutput
	ToFunctionGrantArgumentOutputWithContext(context.Context) FunctionGrantArgumentOutput
}

FunctionGrantArgumentInput is an input type that accepts FunctionGrantArgumentArgs and FunctionGrantArgumentOutput values. You can construct a concrete instance of `FunctionGrantArgumentInput` via:

FunctionGrantArgumentArgs{...}

type FunctionGrantArgumentOutput

type FunctionGrantArgumentOutput struct{ *pulumi.OutputState }

func (FunctionGrantArgumentOutput) ElementType

func (FunctionGrantArgumentOutput) Name

The argument name

func (FunctionGrantArgumentOutput) ToFunctionGrantArgumentOutput

func (o FunctionGrantArgumentOutput) ToFunctionGrantArgumentOutput() FunctionGrantArgumentOutput

func (FunctionGrantArgumentOutput) ToFunctionGrantArgumentOutputWithContext

func (o FunctionGrantArgumentOutput) ToFunctionGrantArgumentOutputWithContext(ctx context.Context) FunctionGrantArgumentOutput

func (FunctionGrantArgumentOutput) Type

The argument 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) ElementType

func (FunctionGrantOutput) ElementType() reflect.Type

func (FunctionGrantOutput) ToFunctionGrantOutput

func (o FunctionGrantOutput) ToFunctionGrantOutput() FunctionGrantOutput

func (FunctionGrantOutput) ToFunctionGrantOutputWithContext

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

func (FunctionGrantOutput) ToFunctionGrantPtrOutput

func (o FunctionGrantOutput) ToFunctionGrantPtrOutput() FunctionGrantPtrOutput

func (FunctionGrantOutput) ToFunctionGrantPtrOutputWithContext

func (o FunctionGrantOutput) ToFunctionGrantPtrOutputWithContext(ctx context.Context) FunctionGrantPtrOutput

type FunctionGrantPtrInput

type FunctionGrantPtrInput interface {
	pulumi.Input

	ToFunctionGrantPtrOutput() FunctionGrantPtrOutput
	ToFunctionGrantPtrOutputWithContext(ctx context.Context) FunctionGrantPtrOutput
}

type FunctionGrantPtrOutput

type FunctionGrantPtrOutput struct {
	*pulumi.OutputState
}

func (FunctionGrantPtrOutput) ElementType

func (FunctionGrantPtrOutput) ElementType() reflect.Type

func (FunctionGrantPtrOutput) ToFunctionGrantPtrOutput

func (o FunctionGrantPtrOutput) ToFunctionGrantPtrOutput() FunctionGrantPtrOutput

func (FunctionGrantPtrOutput) ToFunctionGrantPtrOutputWithContext

func (o FunctionGrantPtrOutput) ToFunctionGrantPtrOutputWithContext(ctx context.Context) FunctionGrantPtrOutput

type FunctionGrantState

type FunctionGrantState struct {
	// List of the arguments for the function (must be present if functionName is present)
	Arguments FunctionGrantArgumentArrayInput
	// The name of the database containing the current or future functions on which to grant privileges.
	DatabaseName pulumi.StringPtrInput
	// 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 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.
	OnFuture pulumi.BoolPtrInput
	// The privilege to grant on the current or future function.
	Privilege pulumi.StringPtrInput
	// The return type of the function (must be present if functionName is present)
	ReturnType 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 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 GetSystemGenerateScimAccessTokenArgs

type GetSystemGenerateScimAccessTokenArgs struct {
	// SCIM Integration Name
	IntegrationName string `pulumi:"integrationName"`
}

A collection of arguments for invoking getSystemGenerateScimAccessToken.

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, &GetSystemGenerateScimAccessTokenArgs{
			IntegrationName: "AAD_PROVISIONING",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

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 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 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 OCSP URL corresponding to your Snowflake account that uses AWS PrivateLink or Azure Private Link.
	OscpUrl string `pulumi:"oscpUrl"`
}

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 IntegrationGrant

type IntegrationGrant struct {
	pulumi.CustomResourceState

	// Identifier for the integration; must be unique for your account.
	IntegrationName pulumi.StringOutput `pulumi:"integrationName"`
	// The privilege to grant on the integration.
	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.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 | true/false for with_grant_option

```sh

$ pulumi import snowflake:index/integrationGrant:IntegrationGrant example 'intName|USAGE|true'

```

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

func (*IntegrationGrant) ToIntegrationGrantPtrOutput

func (i *IntegrationGrant) ToIntegrationGrantPtrOutput() IntegrationGrantPtrOutput

func (*IntegrationGrant) ToIntegrationGrantPtrOutputWithContext

func (i *IntegrationGrant) ToIntegrationGrantPtrOutputWithContext(ctx context.Context) IntegrationGrantPtrOutput

type IntegrationGrantArgs

type IntegrationGrantArgs struct {
	// Identifier for the integration; must be unique for your account.
	IntegrationName pulumi.StringInput
	// The privilege to grant on the integration.
	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 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) ToIntegrationGrantOutput

func (o IntegrationGrantOutput) ToIntegrationGrantOutput() IntegrationGrantOutput

func (IntegrationGrantOutput) ToIntegrationGrantOutputWithContext

func (o IntegrationGrantOutput) ToIntegrationGrantOutputWithContext(ctx context.Context) IntegrationGrantOutput

func (IntegrationGrantOutput) ToIntegrationGrantPtrOutput

func (o IntegrationGrantOutput) ToIntegrationGrantPtrOutput() IntegrationGrantPtrOutput

func (IntegrationGrantOutput) ToIntegrationGrantPtrOutputWithContext

func (o IntegrationGrantOutput) ToIntegrationGrantPtrOutputWithContext(ctx context.Context) IntegrationGrantPtrOutput

type IntegrationGrantPtrInput

type IntegrationGrantPtrInput interface {
	pulumi.Input

	ToIntegrationGrantPtrOutput() IntegrationGrantPtrOutput
	ToIntegrationGrantPtrOutputWithContext(ctx context.Context) IntegrationGrantPtrOutput
}

type IntegrationGrantPtrOutput

type IntegrationGrantPtrOutput struct {
	*pulumi.OutputState
}

func (IntegrationGrantPtrOutput) ElementType

func (IntegrationGrantPtrOutput) ElementType() reflect.Type

func (IntegrationGrantPtrOutput) ToIntegrationGrantPtrOutput

func (o IntegrationGrantPtrOutput) ToIntegrationGrantPtrOutput() IntegrationGrantPtrOutput

func (IntegrationGrantPtrOutput) ToIntegrationGrantPtrOutputWithContext

func (o IntegrationGrantPtrOutput) ToIntegrationGrantPtrOutputWithContext(ctx context.Context) IntegrationGrantPtrOutput

type IntegrationGrantState

type IntegrationGrantState struct {
	// Identifier for the integration; must be unique for your account.
	IntegrationName pulumi.StringPtrInput
	// The privilege to grant on the integration.
	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 (IntegrationGrantState) ElementType

func (IntegrationGrantState) ElementType() reflect.Type

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

func (*ManagedAccount) ToManagedAccountPtrOutput

func (i *ManagedAccount) ToManagedAccountPtrOutput() ManagedAccountPtrOutput

func (*ManagedAccount) ToManagedAccountPtrOutputWithContext

func (i *ManagedAccount) ToManagedAccountPtrOutputWithContext(ctx context.Context) ManagedAccountPtrOutput

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) ElementType

func (ManagedAccountOutput) ElementType() reflect.Type

func (ManagedAccountOutput) ToManagedAccountOutput

func (o ManagedAccountOutput) ToManagedAccountOutput() ManagedAccountOutput

func (ManagedAccountOutput) ToManagedAccountOutputWithContext

func (o ManagedAccountOutput) ToManagedAccountOutputWithContext(ctx context.Context) ManagedAccountOutput

func (ManagedAccountOutput) ToManagedAccountPtrOutput

func (o ManagedAccountOutput) ToManagedAccountPtrOutput() ManagedAccountPtrOutput

func (ManagedAccountOutput) ToManagedAccountPtrOutputWithContext

func (o ManagedAccountOutput) ToManagedAccountPtrOutputWithContext(ctx context.Context) ManagedAccountPtrOutput

type ManagedAccountPtrInput

type ManagedAccountPtrInput interface {
	pulumi.Input

	ToManagedAccountPtrOutput() ManagedAccountPtrOutput
	ToManagedAccountPtrOutputWithContext(ctx context.Context) ManagedAccountPtrOutput
}

type ManagedAccountPtrOutput

type ManagedAccountPtrOutput struct {
	*pulumi.OutputState
}

func (ManagedAccountPtrOutput) ElementType

func (ManagedAccountPtrOutput) ElementType() reflect.Type

func (ManagedAccountPtrOutput) ToManagedAccountPtrOutput

func (o ManagedAccountPtrOutput) ToManagedAccountPtrOutput() ManagedAccountPtrOutput

func (ManagedAccountPtrOutput) ToManagedAccountPtrOutputWithContext

func (o ManagedAccountPtrOutput) ToManagedAccountPtrOutputWithContext(ctx context.Context) ManagedAccountPtrOutput

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 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"`
	// 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"`
	// Specifies the data type to mask.
	ValueDataType pulumi.StringOutput `pulumi:"valueDataType"`
}

## 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, "exampleMaskingPolicy", &snowflake.MaskingPolicyArgs{
			Database:          pulumi.String("EXAMPLE_DB"),
			MaskingExpression: pulumi.String("case when current_role() in ('ANALYST') then val else sha2(val, 512) end"),
			ReturnDataType:    pulumi.String("string"),
			Schema:            pulumi.String("EXAMPLE_SCHEMA"),
			ValueDataType:     pulumi.String("string"),
		})
		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

func (*MaskingPolicy) ToMaskingPolicyPtrOutput

func (i *MaskingPolicy) ToMaskingPolicyPtrOutput() MaskingPolicyPtrOutput

func (*MaskingPolicy) ToMaskingPolicyPtrOutputWithContext

func (i *MaskingPolicy) ToMaskingPolicyPtrOutputWithContext(ctx context.Context) MaskingPolicyPtrOutput

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 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
	// Specifies the data type to return.
	ReturnDataType pulumi.StringInput
	// The schema in which to create the masking policy.
	Schema pulumi.StringInput
	// Specifies the data type to mask.
	ValueDataType pulumi.StringInput
}

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"`
	// 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.
	Privilege pulumi.StringPtrOutput `pulumi:"privilege"`
	// 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"`
}

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

func (*MaskingPolicyGrant) ToMaskingPolicyGrantPtrOutput

func (i *MaskingPolicyGrant) ToMaskingPolicyGrantPtrOutput() MaskingPolicyGrantPtrOutput

func (*MaskingPolicyGrant) ToMaskingPolicyGrantPtrOutputWithContext

func (i *MaskingPolicyGrant) ToMaskingPolicyGrantPtrOutputWithContext(ctx context.Context) MaskingPolicyGrantPtrOutput

type MaskingPolicyGrantArgs

type MaskingPolicyGrantArgs struct {
	// The name of the database containing the masking policy on which to grant privileges.
	DatabaseName pulumi.StringInput
	// The name of the masking policy on which to grant privileges immediately.
	MaskingPolicyName pulumi.StringInput
	// The privilege to grant on the masking policy.
	Privilege 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) ElementType

func (MaskingPolicyGrantOutput) ElementType() reflect.Type

func (MaskingPolicyGrantOutput) ToMaskingPolicyGrantOutput

func (o MaskingPolicyGrantOutput) ToMaskingPolicyGrantOutput() MaskingPolicyGrantOutput

func (MaskingPolicyGrantOutput) ToMaskingPolicyGrantOutputWithContext

func (o MaskingPolicyGrantOutput) ToMaskingPolicyGrantOutputWithContext(ctx context.Context) MaskingPolicyGrantOutput

func (MaskingPolicyGrantOutput) ToMaskingPolicyGrantPtrOutput

func (o MaskingPolicyGrantOutput) ToMaskingPolicyGrantPtrOutput() MaskingPolicyGrantPtrOutput

func (MaskingPolicyGrantOutput) ToMaskingPolicyGrantPtrOutputWithContext

func (o MaskingPolicyGrantOutput) ToMaskingPolicyGrantPtrOutputWithContext(ctx context.Context) MaskingPolicyGrantPtrOutput

type MaskingPolicyGrantPtrInput

type MaskingPolicyGrantPtrInput interface {
	pulumi.Input

	ToMaskingPolicyGrantPtrOutput() MaskingPolicyGrantPtrOutput
	ToMaskingPolicyGrantPtrOutputWithContext(ctx context.Context) MaskingPolicyGrantPtrOutput
}

type MaskingPolicyGrantPtrOutput

type MaskingPolicyGrantPtrOutput struct {
	*pulumi.OutputState
}

func (MaskingPolicyGrantPtrOutput) ElementType

func (MaskingPolicyGrantPtrOutput) ToMaskingPolicyGrantPtrOutput

func (o MaskingPolicyGrantPtrOutput) ToMaskingPolicyGrantPtrOutput() MaskingPolicyGrantPtrOutput

func (MaskingPolicyGrantPtrOutput) ToMaskingPolicyGrantPtrOutputWithContext

func (o MaskingPolicyGrantPtrOutput) ToMaskingPolicyGrantPtrOutputWithContext(ctx context.Context) MaskingPolicyGrantPtrOutput

type MaskingPolicyGrantState

type MaskingPolicyGrantState struct {
	// The name of the database containing the masking policy on which to grant privileges.
	DatabaseName pulumi.StringPtrInput
	// The name of the masking policy on which to grant privileges immediately.
	MaskingPolicyName pulumi.StringPtrInput
	// The privilege to grant on the masking policy.
	Privilege 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) ElementType

func (MaskingPolicyOutput) ElementType() reflect.Type

func (MaskingPolicyOutput) ToMaskingPolicyOutput

func (o MaskingPolicyOutput) ToMaskingPolicyOutput() MaskingPolicyOutput

func (MaskingPolicyOutput) ToMaskingPolicyOutputWithContext

func (o MaskingPolicyOutput) ToMaskingPolicyOutputWithContext(ctx context.Context) MaskingPolicyOutput

func (MaskingPolicyOutput) ToMaskingPolicyPtrOutput

func (o MaskingPolicyOutput) ToMaskingPolicyPtrOutput() MaskingPolicyPtrOutput

func (MaskingPolicyOutput) ToMaskingPolicyPtrOutputWithContext

func (o MaskingPolicyOutput) ToMaskingPolicyPtrOutputWithContext(ctx context.Context) MaskingPolicyPtrOutput

type MaskingPolicyPtrInput

type MaskingPolicyPtrInput interface {
	pulumi.Input

	ToMaskingPolicyPtrOutput() MaskingPolicyPtrOutput
	ToMaskingPolicyPtrOutputWithContext(ctx context.Context) MaskingPolicyPtrOutput
}

type MaskingPolicyPtrOutput

type MaskingPolicyPtrOutput struct {
	*pulumi.OutputState
}

func (MaskingPolicyPtrOutput) ElementType

func (MaskingPolicyPtrOutput) ElementType() reflect.Type

func (MaskingPolicyPtrOutput) ToMaskingPolicyPtrOutput

func (o MaskingPolicyPtrOutput) ToMaskingPolicyPtrOutput() MaskingPolicyPtrOutput

func (MaskingPolicyPtrOutput) ToMaskingPolicyPtrOutputWithContext

func (o MaskingPolicyPtrOutput) ToMaskingPolicyPtrOutputWithContext(ctx context.Context) MaskingPolicyPtrOutput

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 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
	// Specifies the data type to return.
	ReturnDataType pulumi.StringPtrInput
	// The schema in which to create the masking policy.
	Schema pulumi.StringPtrInput
	// Specifies the data type to mask.
	ValueDataType pulumi.StringPtrInput
}

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"`
	// 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

func (*MaterializedView) ToMaterializedViewPtrOutput

func (i *MaterializedView) ToMaterializedViewPtrOutput() MaterializedViewPtrOutput

func (*MaterializedView) ToMaterializedViewPtrOutputWithContext

func (i *MaterializedView) ToMaterializedViewPtrOutputWithContext(ctx context.Context) MaterializedViewPtrOutput

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
	// 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"`
	// The name of the materialized view on which to grant privileges immediately (only valid if onFuture is false).
	MaterializedViewName pulumi.StringPtrOutput `pulumi:"materializedViewName"`
	// 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.
	OnFuture pulumi.BoolPtrOutput `pulumi:"onFuture"`
	// The privilege to grant on the current or future materialized view view.
	Privilege pulumi.StringPtrOutput `pulumi:"privilege"`
	// 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.StringOutput `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.NewMaterializedViewGrant(ctx, "grant", &snowflake.MaterializedViewGrantArgs{
			DatabaseName:         pulumi.String("db"),
			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 | true/false for with_grant_option

```sh

$ pulumi import snowflake:index/materializedViewGrant:MaterializedViewGrant example 'dbName|schemaName|materializedViewName|SELECT|false'

```

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

func (*MaterializedViewGrant) ToMaterializedViewGrantPtrOutput

func (i *MaterializedViewGrant) ToMaterializedViewGrantPtrOutput() MaterializedViewGrantPtrOutput

func (*MaterializedViewGrant) ToMaterializedViewGrantPtrOutputWithContext

func (i *MaterializedViewGrant) ToMaterializedViewGrantPtrOutputWithContext(ctx context.Context) MaterializedViewGrantPtrOutput

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
	// The name of the materialized view on which to grant privileges immediately (only valid if onFuture is false).
	MaterializedViewName pulumi.StringPtrInput
	// 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.
	OnFuture pulumi.BoolPtrInput
	// The privilege to grant on the current or future materialized view view.
	Privilege 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.StringInput
	// 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 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) ElementType

func (MaterializedViewGrantOutput) ToMaterializedViewGrantOutput

func (o MaterializedViewGrantOutput) ToMaterializedViewGrantOutput() MaterializedViewGrantOutput

func (MaterializedViewGrantOutput) ToMaterializedViewGrantOutputWithContext

func (o MaterializedViewGrantOutput) ToMaterializedViewGrantOutputWithContext(ctx context.Context) MaterializedViewGrantOutput

func (MaterializedViewGrantOutput) ToMaterializedViewGrantPtrOutput

func (o MaterializedViewGrantOutput) ToMaterializedViewGrantPtrOutput() MaterializedViewGrantPtrOutput

func (MaterializedViewGrantOutput) ToMaterializedViewGrantPtrOutputWithContext

func (o MaterializedViewGrantOutput) ToMaterializedViewGrantPtrOutputWithContext(ctx context.Context) MaterializedViewGrantPtrOutput

type MaterializedViewGrantPtrInput

type MaterializedViewGrantPtrInput interface {
	pulumi.Input

	ToMaterializedViewGrantPtrOutput() MaterializedViewGrantPtrOutput
	ToMaterializedViewGrantPtrOutputWithContext(ctx context.Context) MaterializedViewGrantPtrOutput
}

type MaterializedViewGrantPtrOutput

type MaterializedViewGrantPtrOutput struct {
	*pulumi.OutputState
}

func (MaterializedViewGrantPtrOutput) ElementType

func (MaterializedViewGrantPtrOutput) ToMaterializedViewGrantPtrOutput

func (o MaterializedViewGrantPtrOutput) ToMaterializedViewGrantPtrOutput() MaterializedViewGrantPtrOutput

func (MaterializedViewGrantPtrOutput) ToMaterializedViewGrantPtrOutputWithContext

func (o MaterializedViewGrantPtrOutput) ToMaterializedViewGrantPtrOutputWithContext(ctx context.Context) MaterializedViewGrantPtrOutput

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
	// The name of the materialized view on which to grant privileges immediately (only valid if onFuture is false).
	MaterializedViewName pulumi.StringPtrInput
	// 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.
	OnFuture pulumi.BoolPtrInput
	// The privilege to grant on the current or future materialized view view.
	Privilege 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 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 (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) ElementType

func (MaterializedViewOutput) ElementType() reflect.Type

func (MaterializedViewOutput) ToMaterializedViewOutput

func (o MaterializedViewOutput) ToMaterializedViewOutput() MaterializedViewOutput

func (MaterializedViewOutput) ToMaterializedViewOutputWithContext

func (o MaterializedViewOutput) ToMaterializedViewOutputWithContext(ctx context.Context) MaterializedViewOutput

func (MaterializedViewOutput) ToMaterializedViewPtrOutput

func (o MaterializedViewOutput) ToMaterializedViewPtrOutput() MaterializedViewPtrOutput

func (MaterializedViewOutput) ToMaterializedViewPtrOutputWithContext

func (o MaterializedViewOutput) ToMaterializedViewPtrOutputWithContext(ctx context.Context) MaterializedViewPtrOutput

type MaterializedViewPtrInput

type MaterializedViewPtrInput interface {
	pulumi.Input

	ToMaterializedViewPtrOutput() MaterializedViewPtrOutput
	ToMaterializedViewPtrOutputWithContext(ctx context.Context) MaterializedViewPtrOutput
}

type MaterializedViewPtrOutput

type MaterializedViewPtrOutput struct {
	*pulumi.OutputState
}

func (MaterializedViewPtrOutput) ElementType

func (MaterializedViewPtrOutput) ElementType() reflect.Type

func (MaterializedViewPtrOutput) ToMaterializedViewPtrOutput

func (o MaterializedViewPtrOutput) ToMaterializedViewPtrOutput() MaterializedViewPtrOutput

func (MaterializedViewPtrOutput) ToMaterializedViewPtrOutputWithContext

func (o MaterializedViewPtrOutput) ToMaterializedViewPtrOutputWithContext(ctx context.Context) MaterializedViewPtrOutput

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
	// The warehouse name.
	Warehouse pulumi.StringPtrInput
}

func (MaterializedViewState) ElementType

func (MaterializedViewState) ElementType() reflect.Type

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

func (*NetworkPolicy) ToNetworkPolicyPtrOutput

func (i *NetworkPolicy) ToNetworkPolicyPtrOutput() NetworkPolicyPtrOutput

func (*NetworkPolicy) ToNetworkPolicyPtrOutputWithContext

func (i *NetworkPolicy) ToNetworkPolicyPtrOutputWithContext(ctx context.Context) NetworkPolicyPtrOutput

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<br><br>**Note:** The Snowflake
	// user running `terraform apply` must be on an IP address allowed by the network policy to set that policy globally on the
	// Snowflake account.<br><br>Additionally, 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

func (*NetworkPolicyAttachment) ToNetworkPolicyAttachmentPtrOutput

func (i *NetworkPolicyAttachment) ToNetworkPolicyAttachmentPtrOutput() NetworkPolicyAttachmentPtrOutput

func (*NetworkPolicyAttachment) ToNetworkPolicyAttachmentPtrOutputWithContext

func (i *NetworkPolicyAttachment) ToNetworkPolicyAttachmentPtrOutputWithContext(ctx context.Context) NetworkPolicyAttachmentPtrOutput

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<br><br>**Note:** The Snowflake
	// user running `terraform apply` must be on an IP address allowed by the network policy to set that policy globally on the
	// Snowflake account.<br><br>Additionally, 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) ToNetworkPolicyAttachmentOutput

func (o NetworkPolicyAttachmentOutput) ToNetworkPolicyAttachmentOutput() NetworkPolicyAttachmentOutput

func (NetworkPolicyAttachmentOutput) ToNetworkPolicyAttachmentOutputWithContext

func (o NetworkPolicyAttachmentOutput) ToNetworkPolicyAttachmentOutputWithContext(ctx context.Context) NetworkPolicyAttachmentOutput

func (NetworkPolicyAttachmentOutput) ToNetworkPolicyAttachmentPtrOutput

func (o NetworkPolicyAttachmentOutput) ToNetworkPolicyAttachmentPtrOutput() NetworkPolicyAttachmentPtrOutput

func (NetworkPolicyAttachmentOutput) ToNetworkPolicyAttachmentPtrOutputWithContext

func (o NetworkPolicyAttachmentOutput) ToNetworkPolicyAttachmentPtrOutputWithContext(ctx context.Context) NetworkPolicyAttachmentPtrOutput

type NetworkPolicyAttachmentPtrInput

type NetworkPolicyAttachmentPtrInput interface {
	pulumi.Input

	ToNetworkPolicyAttachmentPtrOutput() NetworkPolicyAttachmentPtrOutput
	ToNetworkPolicyAttachmentPtrOutputWithContext(ctx context.Context) NetworkPolicyAttachmentPtrOutput
}

type NetworkPolicyAttachmentPtrOutput

type NetworkPolicyAttachmentPtrOutput struct {
	*pulumi.OutputState
}

func (NetworkPolicyAttachmentPtrOutput) ElementType

func (NetworkPolicyAttachmentPtrOutput) ToNetworkPolicyAttachmentPtrOutput

func (o NetworkPolicyAttachmentPtrOutput) ToNetworkPolicyAttachmentPtrOutput() NetworkPolicyAttachmentPtrOutput

func (NetworkPolicyAttachmentPtrOutput) ToNetworkPolicyAttachmentPtrOutputWithContext

func (o NetworkPolicyAttachmentPtrOutput) ToNetworkPolicyAttachmentPtrOutputWithContext(ctx context.Context) NetworkPolicyAttachmentPtrOutput

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<br><br>**Note:** The Snowflake
	// user running `terraform apply` must be on an IP address allowed by the network policy to set that policy globally on the
	// Snowflake account.<br><br>Additionally, 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) ElementType

func (NetworkPolicyOutput) ElementType() reflect.Type

func (NetworkPolicyOutput) ToNetworkPolicyOutput

func (o NetworkPolicyOutput) ToNetworkPolicyOutput() NetworkPolicyOutput

func (NetworkPolicyOutput) ToNetworkPolicyOutputWithContext

func (o NetworkPolicyOutput) ToNetworkPolicyOutputWithContext(ctx context.Context) NetworkPolicyOutput

func (NetworkPolicyOutput) ToNetworkPolicyPtrOutput

func (o NetworkPolicyOutput) ToNetworkPolicyPtrOutput() NetworkPolicyPtrOutput

func (NetworkPolicyOutput) ToNetworkPolicyPtrOutputWithContext

func (o NetworkPolicyOutput) ToNetworkPolicyPtrOutputWithContext(ctx context.Context) NetworkPolicyPtrOutput

type NetworkPolicyPtrInput

type NetworkPolicyPtrInput interface {
	pulumi.Input

	ToNetworkPolicyPtrOutput() NetworkPolicyPtrOutput
	ToNetworkPolicyPtrOutputWithContext(ctx context.Context) NetworkPolicyPtrOutput
}

type NetworkPolicyPtrOutput

type NetworkPolicyPtrOutput struct {
	*pulumi.OutputState
}

func (NetworkPolicyPtrOutput) ElementType

func (NetworkPolicyPtrOutput) ElementType() reflect.Type

func (NetworkPolicyPtrOutput) ToNetworkPolicyPtrOutput

func (o NetworkPolicyPtrOutput) ToNetworkPolicyPtrOutput() NetworkPolicyPtrOutput

func (NetworkPolicyPtrOutput) ToNetworkPolicyPtrOutputWithContext

func (o NetworkPolicyPtrOutput) ToNetworkPolicyPtrOutputWithContext(ctx context.Context) NetworkPolicyPtrOutput

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 queue ID for the Azure Queue Storage queue created for Event Grid notifications
	AzureStorageQueuePrimaryUri pulumi.StringOutput `pulumi:"azureStorageQueuePrimaryUri"`
	// The ID of the Azure Active Directory tenant used for identity management
	AzureTenantId pulumi.StringOutput    `pulumi:"azureTenantId"`
	Comment       pulumi.StringPtrOutput `pulumi:"comment"`
	// Date and time when the notification integration was created.
	CreatedOn pulumi.StringOutput  `pulumi:"createdOn"`
	Enabled   pulumi.BoolPtrOutput `pulumi:"enabled"`
	Name      pulumi.StringOutput  `pulumi:"name"`
	// The third-party cloud message queuing service (e.g. AZURE*STORAGE*QUEUE)
	NotificationProvider pulumi.StringPtrOutput `pulumi:"notificationProvider"`
	// A type of integration
	Type pulumi.StringPtrOutput `pulumi:"type"`
}

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

func (*NotificationIntegration) ToNotificationIntegrationPtrOutput

func (i *NotificationIntegration) ToNotificationIntegrationPtrOutput() NotificationIntegrationPtrOutput

func (*NotificationIntegration) ToNotificationIntegrationPtrOutputWithContext

func (i *NotificationIntegration) ToNotificationIntegrationPtrOutputWithContext(ctx context.Context) NotificationIntegrationPtrOutput

type NotificationIntegrationArgs

type NotificationIntegrationArgs struct {
	// The queue ID for the Azure Queue Storage queue created for Event Grid notifications
	AzureStorageQueuePrimaryUri pulumi.StringInput
	// The ID of the Azure Active Directory tenant used for identity management
	AzureTenantId pulumi.StringInput
	Comment       pulumi.StringPtrInput
	Enabled       pulumi.BoolPtrInput
	Name          pulumi.StringPtrInput
	// The third-party cloud message queuing service (e.g. AZURE*STORAGE*QUEUE)
	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) ElementType

func (NotificationIntegrationOutput) ToNotificationIntegrationOutput

func (o NotificationIntegrationOutput) ToNotificationIntegrationOutput() NotificationIntegrationOutput

func (NotificationIntegrationOutput) ToNotificationIntegrationOutputWithContext

func (o NotificationIntegrationOutput) ToNotificationIntegrationOutputWithContext(ctx context.Context) NotificationIntegrationOutput

func (NotificationIntegrationOutput) ToNotificationIntegrationPtrOutput

func (o NotificationIntegrationOutput) ToNotificationIntegrationPtrOutput() NotificationIntegrationPtrOutput

func (NotificationIntegrationOutput) ToNotificationIntegrationPtrOutputWithContext

func (o NotificationIntegrationOutput) ToNotificationIntegrationPtrOutputWithContext(ctx context.Context) NotificationIntegrationPtrOutput

type NotificationIntegrationPtrInput

type NotificationIntegrationPtrInput interface {
	pulumi.Input

	ToNotificationIntegrationPtrOutput() NotificationIntegrationPtrOutput
	ToNotificationIntegrationPtrOutputWithContext(ctx context.Context) NotificationIntegrationPtrOutput
}

type NotificationIntegrationPtrOutput

type NotificationIntegrationPtrOutput struct {
	*pulumi.OutputState
}

func (NotificationIntegrationPtrOutput) ElementType

func (NotificationIntegrationPtrOutput) ToNotificationIntegrationPtrOutput

func (o NotificationIntegrationPtrOutput) ToNotificationIntegrationPtrOutput() NotificationIntegrationPtrOutput

func (NotificationIntegrationPtrOutput) ToNotificationIntegrationPtrOutputWithContext

func (o NotificationIntegrationPtrOutput) ToNotificationIntegrationPtrOutputWithContext(ctx context.Context) NotificationIntegrationPtrOutput

type NotificationIntegrationState

type NotificationIntegrationState struct {
	// 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
	Comment       pulumi.StringPtrInput
	// Date and time when the notification integration was created.
	CreatedOn pulumi.StringPtrInput
	Enabled   pulumi.BoolPtrInput
	Name      pulumi.StringPtrInput
	// The third-party cloud message queuing service (e.g. AZURE*STORAGE*QUEUE)
	NotificationProvider pulumi.StringPtrInput
	// A type of integration
	Type pulumi.StringPtrInput
}

func (NotificationIntegrationState) ElementType

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 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

func (*Pipe) ToPipePtrOutput

func (i *Pipe) ToPipePtrOutput() PipePtrOutput

func (*Pipe) ToPipePtrOutputWithContext

func (i *Pipe) ToPipePtrOutputWithContext(ctx context.Context) PipePtrOutput

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 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 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) ElementType

func (PipeOutput) ElementType() reflect.Type

func (PipeOutput) ToPipeOutput

func (o PipeOutput) ToPipeOutput() PipeOutput

func (PipeOutput) ToPipeOutputWithContext

func (o PipeOutput) ToPipeOutputWithContext(ctx context.Context) PipeOutput

func (PipeOutput) ToPipePtrOutput

func (o PipeOutput) ToPipePtrOutput() PipePtrOutput

func (PipeOutput) ToPipePtrOutputWithContext

func (o PipeOutput) ToPipePtrOutputWithContext(ctx context.Context) PipePtrOutput

type PipePtrInput

type PipePtrInput interface {
	pulumi.Input

	ToPipePtrOutput() PipePtrOutput
	ToPipePtrOutputWithContext(ctx context.Context) PipePtrOutput
}

type PipePtrOutput

type PipePtrOutput struct {
	*pulumi.OutputState
}

func (PipePtrOutput) ElementType

func (PipePtrOutput) ElementType() reflect.Type

func (PipePtrOutput) ToPipePtrOutput

func (o PipePtrOutput) ToPipePtrOutput() PipePtrOutput

func (PipePtrOutput) ToPipePtrOutputWithContext

func (o PipePtrOutput) ToPipePtrOutputWithContext(ctx context.Context) PipePtrOutput

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 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 ProcedureGrant

type ProcedureGrant struct {
	pulumi.CustomResourceState

	// List of the arguments for the procedure (must be present if procedureName is present)
	Arguments ProcedureGrantArgumentArrayOutput `pulumi:"arguments"`
	// 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 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.
	OnFuture pulumi.BoolPtrOutput `pulumi:"onFuture"`
	// The privilege to grant on the current or future procedure.
	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 return type of the procedure (must be present if procedureName is present)
	ReturnType pulumi.StringPtrOutput `pulumi:"returnType"`
	// 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.StringOutput `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{
			DatabaseName:  pulumi.String("db"),
			SchemaName:    pulumi.String("schema"),
			ProcedureName: pulumi.String("procedure"),
			Arguments: ProcedureGrantArgumentArray{
				&ProcedureGrantArgumentArgs{
					Name: pulumi.String("a"),
					Type: pulumi.String("array"),
				},
				&ProcedureGrantArgumentArgs{
					Name: pulumi.String("b"),
					Type: pulumi.String("string"),
				},
			},
			ReturnType: pulumi.String("string"),
			Privilege:  pulumi.String("select"),
			Roles: pulumi.StringArray{
				pulumi.String("role1"),
				pulumi.String("role2"),
			},
			Shares: pulumi.StringArray{
				pulumi.String("share1"),
				pulumi.String("share2"),
			},
			OnFuture:        pulumi.Bool(false),
			WithGrantOption: pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

format is database name | schema name | procedure signature | privilege | true/false for with_grant_option

```sh

$ pulumi import snowflake:index/procedureGrant:ProcedureGrant example 'dbName|schemaName|procedureName(ARG1 ARG1TYPE, ARG2 ARG2TYPE):RETURNTYPE|USAGE|false'

```

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

func (*ProcedureGrant) ToProcedureGrantPtrOutput

func (i *ProcedureGrant) ToProcedureGrantPtrOutput() ProcedureGrantPtrOutput

func (*ProcedureGrant) ToProcedureGrantPtrOutputWithContext

func (i *ProcedureGrant) ToProcedureGrantPtrOutputWithContext(ctx context.Context) ProcedureGrantPtrOutput

type ProcedureGrantArgs

type ProcedureGrantArgs struct {
	// List of the arguments for the procedure (must be present if procedureName is present)
	Arguments ProcedureGrantArgumentArrayInput
	// 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 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.
	OnFuture pulumi.BoolPtrInput
	// The privilege to grant on the current or future procedure.
	Privilege pulumi.StringPtrInput
	// The name of the procedure on which to grant privileges immediately (only valid if onFuture is false).
	ProcedureName pulumi.StringPtrInput
	// The return type of the procedure (must be present if procedureName is present)
	ReturnType 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.StringInput
	// 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 ProcedureGrantArgument

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

type ProcedureGrantArgumentArgs

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

func (ProcedureGrantArgumentArgs) ElementType

func (ProcedureGrantArgumentArgs) ElementType() reflect.Type

func (ProcedureGrantArgumentArgs) ToProcedureGrantArgumentOutput

func (i ProcedureGrantArgumentArgs) ToProcedureGrantArgumentOutput() ProcedureGrantArgumentOutput

func (ProcedureGrantArgumentArgs) ToProcedureGrantArgumentOutputWithContext

func (i ProcedureGrantArgumentArgs) ToProcedureGrantArgumentOutputWithContext(ctx context.Context) ProcedureGrantArgumentOutput

type ProcedureGrantArgumentArray

type ProcedureGrantArgumentArray []ProcedureGrantArgumentInput

func (ProcedureGrantArgumentArray) ElementType

func (ProcedureGrantArgumentArray) ToProcedureGrantArgumentArrayOutput

func (i ProcedureGrantArgumentArray) ToProcedureGrantArgumentArrayOutput() ProcedureGrantArgumentArrayOutput

func (ProcedureGrantArgumentArray) ToProcedureGrantArgumentArrayOutputWithContext

func (i ProcedureGrantArgumentArray) ToProcedureGrantArgumentArrayOutputWithContext(ctx context.Context) ProcedureGrantArgumentArrayOutput

type ProcedureGrantArgumentArrayInput

type ProcedureGrantArgumentArrayInput interface {
	pulumi.Input

	ToProcedureGrantArgumentArrayOutput() ProcedureGrantArgumentArrayOutput
	ToProcedureGrantArgumentArrayOutputWithContext(context.Context) ProcedureGrantArgumentArrayOutput
}

ProcedureGrantArgumentArrayInput is an input type that accepts ProcedureGrantArgumentArray and ProcedureGrantArgumentArrayOutput values. You can construct a concrete instance of `ProcedureGrantArgumentArrayInput` via:

ProcedureGrantArgumentArray{ ProcedureGrantArgumentArgs{...} }

type ProcedureGrantArgumentArrayOutput

type ProcedureGrantArgumentArrayOutput struct{ *pulumi.OutputState }

func (ProcedureGrantArgumentArrayOutput) ElementType

func (ProcedureGrantArgumentArrayOutput) Index

func (ProcedureGrantArgumentArrayOutput) ToProcedureGrantArgumentArrayOutput

func (o ProcedureGrantArgumentArrayOutput) ToProcedureGrantArgumentArrayOutput() ProcedureGrantArgumentArrayOutput

func (ProcedureGrantArgumentArrayOutput) ToProcedureGrantArgumentArrayOutputWithContext

func (o ProcedureGrantArgumentArrayOutput) ToProcedureGrantArgumentArrayOutputWithContext(ctx context.Context) ProcedureGrantArgumentArrayOutput

type ProcedureGrantArgumentInput

type ProcedureGrantArgumentInput interface {
	pulumi.Input

	ToProcedureGrantArgumentOutput() ProcedureGrantArgumentOutput
	ToProcedureGrantArgumentOutputWithContext(context.Context) ProcedureGrantArgumentOutput
}

ProcedureGrantArgumentInput is an input type that accepts ProcedureGrantArgumentArgs and ProcedureGrantArgumentOutput values. You can construct a concrete instance of `ProcedureGrantArgumentInput` via:

ProcedureGrantArgumentArgs{...}

type ProcedureGrantArgumentOutput

type ProcedureGrantArgumentOutput struct{ *pulumi.OutputState }

func (ProcedureGrantArgumentOutput) ElementType

func (ProcedureGrantArgumentOutput) Name

The argument name

func (ProcedureGrantArgumentOutput) ToProcedureGrantArgumentOutput

func (o ProcedureGrantArgumentOutput) ToProcedureGrantArgumentOutput() ProcedureGrantArgumentOutput

func (ProcedureGrantArgumentOutput) ToProcedureGrantArgumentOutputWithContext

func (o ProcedureGrantArgumentOutput) ToProcedureGrantArgumentOutputWithContext(ctx context.Context) ProcedureGrantArgumentOutput

func (ProcedureGrantArgumentOutput) Type

The argument 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) ElementType

func (ProcedureGrantOutput) ElementType() reflect.Type

func (ProcedureGrantOutput) ToProcedureGrantOutput

func (o ProcedureGrantOutput) ToProcedureGrantOutput() ProcedureGrantOutput

func (ProcedureGrantOutput) ToProcedureGrantOutputWithContext

func (o ProcedureGrantOutput) ToProcedureGrantOutputWithContext(ctx context.Context) ProcedureGrantOutput

func (ProcedureGrantOutput) ToProcedureGrantPtrOutput

func (o ProcedureGrantOutput) ToProcedureGrantPtrOutput() ProcedureGrantPtrOutput

func (ProcedureGrantOutput) ToProcedureGrantPtrOutputWithContext

func (o ProcedureGrantOutput) ToProcedureGrantPtrOutputWithContext(ctx context.Context) ProcedureGrantPtrOutput

type ProcedureGrantPtrInput

type ProcedureGrantPtrInput interface {
	pulumi.Input

	ToProcedureGrantPtrOutput() ProcedureGrantPtrOutput
	ToProcedureGrantPtrOutputWithContext(ctx context.Context) ProcedureGrantPtrOutput
}

type ProcedureGrantPtrOutput

type ProcedureGrantPtrOutput struct {
	*pulumi.OutputState
}

func (ProcedureGrantPtrOutput) ElementType

func (ProcedureGrantPtrOutput) ElementType() reflect.Type

func (ProcedureGrantPtrOutput) ToProcedureGrantPtrOutput

func (o ProcedureGrantPtrOutput) ToProcedureGrantPtrOutput() ProcedureGrantPtrOutput

func (ProcedureGrantPtrOutput) ToProcedureGrantPtrOutputWithContext

func (o ProcedureGrantPtrOutput) ToProcedureGrantPtrOutputWithContext(ctx context.Context) ProcedureGrantPtrOutput

type ProcedureGrantState

type ProcedureGrantState struct {
	// List of the arguments for the procedure (must be present if procedureName is present)
	Arguments ProcedureGrantArgumentArrayInput
	// 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 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.
	OnFuture pulumi.BoolPtrInput
	// The privilege to grant on the current or future procedure.
	Privilege pulumi.StringPtrInput
	// The name of the procedure on which to grant privileges immediately (only valid if onFuture is false).
	ProcedureName pulumi.StringPtrInput
	// The return type of the procedure (must be present if procedureName is present)
	ReturnType 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 Provider

type Provider struct {
	pulumi.ProviderResourceState

	Account           pulumi.StringOutput    `pulumi:"account"`
	OauthAccessToken  pulumi.StringPtrOutput `pulumi:"oauthAccessToken"`
	OauthClientId     pulumi.StringPtrOutput `pulumi:"oauthClientId"`
	OauthClientSecret pulumi.StringPtrOutput `pulumi:"oauthClientSecret"`
	OauthEndpoint     pulumi.StringPtrOutput `pulumi:"oauthEndpoint"`
	OauthRedirectUrl  pulumi.StringPtrOutput `pulumi:"oauthRedirectUrl"`
	OauthRefreshToken pulumi.StringPtrOutput `pulumi:"oauthRefreshToken"`
	Password          pulumi.StringPtrOutput `pulumi:"password"`
	PrivateKey        pulumi.StringPtrOutput `pulumi:"privateKey"`
	PrivateKeyPath    pulumi.StringPtrOutput `pulumi:"privateKeyPath"`
	Region            pulumi.StringOutput    `pulumi:"region"`
	Role              pulumi.StringPtrOutput `pulumi:"role"`
	Username          pulumi.StringOutput    `pulumi:"username"`
}

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

func (*Provider) ToProviderPtrOutput

func (i *Provider) ToProviderPtrOutput() ProviderPtrOutput

func (*Provider) ToProviderPtrOutputWithContext

func (i *Provider) ToProviderPtrOutputWithContext(ctx context.Context) ProviderPtrOutput

type ProviderArgs

type ProviderArgs struct {
	Account           pulumi.StringInput
	BrowserAuth       pulumi.BoolPtrInput
	OauthAccessToken  pulumi.StringPtrInput
	OauthClientId     pulumi.StringPtrInput
	OauthClientSecret pulumi.StringPtrInput
	OauthEndpoint     pulumi.StringPtrInput
	OauthRedirectUrl  pulumi.StringPtrInput
	OauthRefreshToken pulumi.StringPtrInput
	Password          pulumi.StringPtrInput
	PrivateKey        pulumi.StringPtrInput
	PrivateKeyPath    pulumi.StringPtrInput
	Region            pulumi.StringInput
	Role              pulumi.StringPtrInput
	Username          pulumi.StringInput
}

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) ElementType

func (ProviderOutput) ElementType() reflect.Type

func (ProviderOutput) ToProviderOutput

func (o ProviderOutput) ToProviderOutput() ProviderOutput

func (ProviderOutput) ToProviderOutputWithContext

func (o ProviderOutput) ToProviderOutputWithContext(ctx context.Context) ProviderOutput

func (ProviderOutput) ToProviderPtrOutput

func (o ProviderOutput) ToProviderPtrOutput() ProviderPtrOutput

func (ProviderOutput) ToProviderPtrOutputWithContext

func (o ProviderOutput) ToProviderPtrOutputWithContext(ctx context.Context) ProviderPtrOutput

type ProviderPtrInput

type ProviderPtrInput interface {
	pulumi.Input

	ToProviderPtrOutput() ProviderPtrOutput
	ToProviderPtrOutputWithContext(ctx context.Context) ProviderPtrOutput
}

type ProviderPtrOutput

type ProviderPtrOutput struct {
	*pulumi.OutputState
}

func (ProviderPtrOutput) ElementType

func (ProviderPtrOutput) ElementType() reflect.Type

func (ProviderPtrOutput) ToProviderPtrOutput

func (o ProviderPtrOutput) ToProviderPtrOutput() ProviderPtrOutput

func (ProviderPtrOutput) ToProviderPtrOutputWithContext

func (o ProviderPtrOutput) ToProviderPtrOutputWithContext(ctx context.Context) ProviderPtrOutput

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"`
	// The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses.
	StartTimestamp pulumi.StringOutput `pulumi:"startTimestamp"`
	// A list of percentage thresholds at which to immediately suspend all warehouses.
	SuspendImmediateTriggers pulumi.IntArrayOutput `pulumi:"suspendImmediateTriggers"`
	// A list of percentage thresholds at which to suspend all warehouses.
	SuspendTriggers pulumi.IntArrayOutput `pulumi:"suspendTriggers"`
}

## 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),
			},
			StartTimestamp: pulumi.String("2020-12-07 00:00"),
			SuspendImmediateTriggers: pulumi.IntArray{
				pulumi.Int(90),
			},
			SuspendTriggers: pulumi.IntArray{
				pulumi.Int(50),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

```sh

$ pulumi import snowflake:index/resourceMonitor:ResourceMonitor example

```

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

func (*ResourceMonitor) ToResourceMonitorPtrOutput

func (i *ResourceMonitor) ToResourceMonitorPtrOutput() ResourceMonitorPtrOutput

func (*ResourceMonitor) ToResourceMonitorPtrOutputWithContext

func (i *ResourceMonitor) ToResourceMonitorPtrOutputWithContext(ctx context.Context) ResourceMonitorPtrOutput

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
	// The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses.
	StartTimestamp pulumi.StringPtrInput
	// A list of percentage thresholds at which to immediately suspend all warehouses.
	SuspendImmediateTriggers pulumi.IntArrayInput
	// A list of percentage thresholds at which to suspend all warehouses.
	SuspendTriggers pulumi.IntArrayInput
}

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

	// Identifier for the resource monitor; must be unique for your account.
	MonitorName pulumi.StringOutput `pulumi:"monitorName"`
	// The privilege to grant on the resource monitor.
	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"`
}

## Import

```sh

$ pulumi import snowflake:index/resourceMonitorGrant:ResourceMonitorGrant example name

```

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

func (*ResourceMonitorGrant) ToResourceMonitorGrantPtrOutput

func (i *ResourceMonitorGrant) ToResourceMonitorGrantPtrOutput() ResourceMonitorGrantPtrOutput

func (*ResourceMonitorGrant) ToResourceMonitorGrantPtrOutputWithContext

func (i *ResourceMonitorGrant) ToResourceMonitorGrantPtrOutputWithContext(ctx context.Context) ResourceMonitorGrantPtrOutput

type ResourceMonitorGrantArgs

type ResourceMonitorGrantArgs struct {
	// Identifier for the resource monitor; must be unique for your account.
	MonitorName pulumi.StringInput
	// The privilege to grant on the resource monitor.
	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) ToResourceMonitorGrantOutput

func (o ResourceMonitorGrantOutput) ToResourceMonitorGrantOutput() ResourceMonitorGrantOutput

func (ResourceMonitorGrantOutput) ToResourceMonitorGrantOutputWithContext

func (o ResourceMonitorGrantOutput) ToResourceMonitorGrantOutputWithContext(ctx context.Context) ResourceMonitorGrantOutput

func (ResourceMonitorGrantOutput) ToResourceMonitorGrantPtrOutput

func (o ResourceMonitorGrantOutput) ToResourceMonitorGrantPtrOutput() ResourceMonitorGrantPtrOutput

func (ResourceMonitorGrantOutput) ToResourceMonitorGrantPtrOutputWithContext

func (o ResourceMonitorGrantOutput) ToResourceMonitorGrantPtrOutputWithContext(ctx context.Context) ResourceMonitorGrantPtrOutput

type ResourceMonitorGrantPtrInput

type ResourceMonitorGrantPtrInput interface {
	pulumi.Input

	ToResourceMonitorGrantPtrOutput() ResourceMonitorGrantPtrOutput
	ToResourceMonitorGrantPtrOutputWithContext(ctx context.Context) ResourceMonitorGrantPtrOutput
}

type ResourceMonitorGrantPtrOutput

type ResourceMonitorGrantPtrOutput struct {
	*pulumi.OutputState
}

func (ResourceMonitorGrantPtrOutput) ElementType

func (ResourceMonitorGrantPtrOutput) ToResourceMonitorGrantPtrOutput

func (o ResourceMonitorGrantPtrOutput) ToResourceMonitorGrantPtrOutput() ResourceMonitorGrantPtrOutput

func (ResourceMonitorGrantPtrOutput) ToResourceMonitorGrantPtrOutputWithContext

func (o ResourceMonitorGrantPtrOutput) ToResourceMonitorGrantPtrOutputWithContext(ctx context.Context) ResourceMonitorGrantPtrOutput

type ResourceMonitorGrantState

type ResourceMonitorGrantState struct {
	// Identifier for the resource monitor; must be unique for your account.
	MonitorName pulumi.StringPtrInput
	// The privilege to grant on the resource monitor.
	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) ElementType

func (ResourceMonitorOutput) ElementType() reflect.Type

func (ResourceMonitorOutput) ToResourceMonitorOutput

func (o ResourceMonitorOutput) ToResourceMonitorOutput() ResourceMonitorOutput

func (ResourceMonitorOutput) ToResourceMonitorOutputWithContext

func (o ResourceMonitorOutput) ToResourceMonitorOutputWithContext(ctx context.Context) ResourceMonitorOutput

func (ResourceMonitorOutput) ToResourceMonitorPtrOutput

func (o ResourceMonitorOutput) ToResourceMonitorPtrOutput() ResourceMonitorPtrOutput

func (ResourceMonitorOutput) ToResourceMonitorPtrOutputWithContext

func (o ResourceMonitorOutput) ToResourceMonitorPtrOutputWithContext(ctx context.Context) ResourceMonitorPtrOutput

type ResourceMonitorPtrInput

type ResourceMonitorPtrInput interface {
	pulumi.Input

	ToResourceMonitorPtrOutput() ResourceMonitorPtrOutput
	ToResourceMonitorPtrOutputWithContext(ctx context.Context) ResourceMonitorPtrOutput
}

type ResourceMonitorPtrOutput

type ResourceMonitorPtrOutput struct {
	*pulumi.OutputState
}

func (ResourceMonitorPtrOutput) ElementType

func (ResourceMonitorPtrOutput) ElementType() reflect.Type

func (ResourceMonitorPtrOutput) ToResourceMonitorPtrOutput

func (o ResourceMonitorPtrOutput) ToResourceMonitorPtrOutput() ResourceMonitorPtrOutput

func (ResourceMonitorPtrOutput) ToResourceMonitorPtrOutputWithContext

func (o ResourceMonitorPtrOutput) ToResourceMonitorPtrOutputWithContext(ctx context.Context) ResourceMonitorPtrOutput

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
	// The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses.
	StartTimestamp pulumi.StringPtrInput
	// A list of percentage thresholds at which to immediately suspend all warehouses.
	SuspendImmediateTriggers pulumi.IntArrayInput
	// A list of percentage thresholds at which to suspend all warehouses.
	SuspendTriggers pulumi.IntArrayInput
}

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"`
}

## 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

func (*Role) ToRolePtrOutput

func (i *Role) ToRolePtrOutput() RolePtrOutput

func (*Role) ToRolePtrOutputWithContext

func (i *Role) ToRolePtrOutputWithContext(ctx context.Context) RolePtrOutput

type RoleArgs

type RoleArgs struct {
	Comment pulumi.StringPtrInput
	Name    pulumi.StringPtrInput
}

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

	// 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

```sh

$ pulumi import snowflake:index/roleGrants:RoleGrants example rolename

```

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

func (*RoleGrants) ToRoleGrantsPtrOutput

func (i *RoleGrants) ToRoleGrantsPtrOutput() RoleGrantsPtrOutput

func (*RoleGrants) ToRoleGrantsPtrOutputWithContext

func (i *RoleGrants) ToRoleGrantsPtrOutputWithContext(ctx context.Context) RoleGrantsPtrOutput

type RoleGrantsArgs

type RoleGrantsArgs struct {
	// 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) ToRoleGrantsOutput

func (o RoleGrantsOutput) ToRoleGrantsOutput() RoleGrantsOutput

func (RoleGrantsOutput) ToRoleGrantsOutputWithContext

func (o RoleGrantsOutput) ToRoleGrantsOutputWithContext(ctx context.Context) RoleGrantsOutput

func (RoleGrantsOutput) ToRoleGrantsPtrOutput

func (o RoleGrantsOutput) ToRoleGrantsPtrOutput() RoleGrantsPtrOutput

func (RoleGrantsOutput) ToRoleGrantsPtrOutputWithContext

func (o RoleGrantsOutput) ToRoleGrantsPtrOutputWithContext(ctx context.Context) RoleGrantsPtrOutput

type RoleGrantsPtrInput

type RoleGrantsPtrInput interface {
	pulumi.Input

	ToRoleGrantsPtrOutput() RoleGrantsPtrOutput
	ToRoleGrantsPtrOutputWithContext(ctx context.Context) RoleGrantsPtrOutput
}

type RoleGrantsPtrOutput

type RoleGrantsPtrOutput struct {
	*pulumi.OutputState
}

func (RoleGrantsPtrOutput) ElementType

func (RoleGrantsPtrOutput) ElementType() reflect.Type

func (RoleGrantsPtrOutput) ToRoleGrantsPtrOutput

func (o RoleGrantsPtrOutput) ToRoleGrantsPtrOutput() RoleGrantsPtrOutput

func (RoleGrantsPtrOutput) ToRoleGrantsPtrOutputWithContext

func (o RoleGrantsPtrOutput) ToRoleGrantsPtrOutputWithContext(ctx context.Context) RoleGrantsPtrOutput

type RoleGrantsState

type RoleGrantsState struct {
	// 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) ElementType

func (RoleOutput) ElementType() reflect.Type

func (RoleOutput) ToRoleOutput

func (o RoleOutput) ToRoleOutput() RoleOutput

func (RoleOutput) ToRoleOutputWithContext

func (o RoleOutput) ToRoleOutputWithContext(ctx context.Context) RoleOutput

func (RoleOutput) ToRolePtrOutput

func (o RoleOutput) ToRolePtrOutput() RolePtrOutput

func (RoleOutput) ToRolePtrOutputWithContext

func (o RoleOutput) ToRolePtrOutputWithContext(ctx context.Context) RolePtrOutput

type RolePtrInput

type RolePtrInput interface {
	pulumi.Input

	ToRolePtrOutput() RolePtrOutput
	ToRolePtrOutputWithContext(ctx context.Context) RolePtrOutput
}

type RolePtrOutput

type RolePtrOutput struct {
	*pulumi.OutputState
}

func (RolePtrOutput) ElementType

func (RolePtrOutput) ElementType() reflect.Type

func (RolePtrOutput) ToRolePtrOutput

func (o RolePtrOutput) ToRolePtrOutput() RolePtrOutput

func (RolePtrOutput) ToRolePtrOutputWithContext

func (o RolePtrOutput) ToRolePtrOutputWithContext(ctx context.Context) RolePtrOutput

type RoleState

type RoleState struct {
	Comment pulumi.StringPtrInput
	Name    pulumi.StringPtrInput
}

func (RoleState) ElementType

func (RoleState) 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"`
}

## 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("db"),
			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

func (*Schema) ToSchemaPtrOutput

func (i *Schema) ToSchemaPtrOutput() SchemaPtrOutput

func (*Schema) ToSchemaPtrOutputWithContext

func (i *Schema) ToSchemaPtrOutputWithContext(ctx context.Context) SchemaPtrOutput

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
}

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, 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.
	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.
	Privilege pulumi.StringPtrOutput `pulumi:"privilege"`
	// 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 onFuture is 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("db"),
			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 | true/false for with_grant_option

```sh

$ pulumi import snowflake:index/schemaGrant:SchemaGrant example 'databaseName|schemaName||MONITOR|false'

```

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

func (*SchemaGrant) ToSchemaGrantPtrOutput

func (i *SchemaGrant) ToSchemaGrantPtrOutput() SchemaGrantPtrOutput

func (*SchemaGrant) ToSchemaGrantPtrOutputWithContext

func (i *SchemaGrant) ToSchemaGrantPtrOutputWithContext(ctx context.Context) SchemaGrantPtrOutput

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, 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.
	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.
	Privilege 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 onFuture is 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) ElementType

func (SchemaGrantOutput) ElementType() reflect.Type

func (SchemaGrantOutput) ToSchemaGrantOutput

func (o SchemaGrantOutput) ToSchemaGrantOutput() SchemaGrantOutput

func (SchemaGrantOutput) ToSchemaGrantOutputWithContext

func (o SchemaGrantOutput) ToSchemaGrantOutputWithContext(ctx context.Context) SchemaGrantOutput

func (SchemaGrantOutput) ToSchemaGrantPtrOutput

func (o SchemaGrantOutput) ToSchemaGrantPtrOutput() SchemaGrantPtrOutput

func (SchemaGrantOutput) ToSchemaGrantPtrOutputWithContext

func (o SchemaGrantOutput) ToSchemaGrantPtrOutputWithContext(ctx context.Context) SchemaGrantPtrOutput

type SchemaGrantPtrInput

type SchemaGrantPtrInput interface {
	pulumi.Input

	ToSchemaGrantPtrOutput() SchemaGrantPtrOutput
	ToSchemaGrantPtrOutputWithContext(ctx context.Context) SchemaGrantPtrOutput
}

type SchemaGrantPtrOutput

type SchemaGrantPtrOutput struct {
	*pulumi.OutputState
}

func (SchemaGrantPtrOutput) ElementType

func (SchemaGrantPtrOutput) ElementType() reflect.Type

func (SchemaGrantPtrOutput) ToSchemaGrantPtrOutput

func (o SchemaGrantPtrOutput) ToSchemaGrantPtrOutput() SchemaGrantPtrOutput

func (SchemaGrantPtrOutput) ToSchemaGrantPtrOutputWithContext

func (o SchemaGrantPtrOutput) ToSchemaGrantPtrOutputWithContext(ctx context.Context) SchemaGrantPtrOutput

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, 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.
	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.
	Privilege 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 onFuture is 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) ElementType

func (SchemaOutput) ElementType() reflect.Type

func (SchemaOutput) ToSchemaOutput

func (o SchemaOutput) ToSchemaOutput() SchemaOutput

func (SchemaOutput) ToSchemaOutputWithContext

func (o SchemaOutput) ToSchemaOutputWithContext(ctx context.Context) SchemaOutput

func (SchemaOutput) ToSchemaPtrOutput

func (o SchemaOutput) ToSchemaPtrOutput() SchemaPtrOutput

func (SchemaOutput) ToSchemaPtrOutputWithContext

func (o SchemaOutput) ToSchemaPtrOutputWithContext(ctx context.Context) SchemaPtrOutput

type SchemaPtrInput

type SchemaPtrInput interface {
	pulumi.Input

	ToSchemaPtrOutput() SchemaPtrOutput
	ToSchemaPtrOutputWithContext(ctx context.Context) SchemaPtrOutput
}

type SchemaPtrOutput

type SchemaPtrOutput struct {
	*pulumi.OutputState
}

func (SchemaPtrOutput) ElementType

func (SchemaPtrOutput) ElementType() reflect.Type

func (SchemaPtrOutput) ToSchemaPtrOutput

func (o SchemaPtrOutput) ToSchemaPtrOutput() SchemaPtrOutput

func (SchemaPtrOutput) ToSchemaPtrOutputWithContext

func (o SchemaPtrOutput) ToSchemaPtrOutputWithContext(ctx context.Context) SchemaPtrOutput

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
}

func (SchemaState) ElementType

func (SchemaState) ElementType() reflect.Type

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

func (*ScimIntegration) ToScimIntegrationPtrOutput

func (i *ScimIntegration) ToScimIntegrationPtrOutput() ScimIntegrationPtrOutput

func (*ScimIntegration) ToScimIntegrationPtrOutputWithContext

func (i *ScimIntegration) ToScimIntegrationPtrOutputWithContext(ctx context.Context) ScimIntegrationPtrOutput

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) ElementType

func (ScimIntegrationOutput) ElementType() reflect.Type

func (ScimIntegrationOutput) ToScimIntegrationOutput

func (o ScimIntegrationOutput) ToScimIntegrationOutput() ScimIntegrationOutput

func (ScimIntegrationOutput) ToScimIntegrationOutputWithContext

func (o ScimIntegrationOutput) ToScimIntegrationOutputWithContext(ctx context.Context) ScimIntegrationOutput

func (ScimIntegrationOutput) ToScimIntegrationPtrOutput

func (o ScimIntegrationOutput) ToScimIntegrationPtrOutput() ScimIntegrationPtrOutput

func (ScimIntegrationOutput) ToScimIntegrationPtrOutputWithContext

func (o ScimIntegrationOutput) ToScimIntegrationPtrOutputWithContext(ctx context.Context) ScimIntegrationPtrOutput

type ScimIntegrationPtrInput

type ScimIntegrationPtrInput interface {
	pulumi.Input

	ToScimIntegrationPtrOutput() ScimIntegrationPtrOutput
	ToScimIntegrationPtrOutputWithContext(ctx context.Context) ScimIntegrationPtrOutput
}

type ScimIntegrationPtrOutput

type ScimIntegrationPtrOutput struct {
	*pulumi.OutputState
}

func (ScimIntegrationPtrOutput) ElementType

func (ScimIntegrationPtrOutput) ElementType() reflect.Type

func (ScimIntegrationPtrOutput) ToScimIntegrationPtrOutput

func (o ScimIntegrationPtrOutput) ToScimIntegrationPtrOutput() ScimIntegrationPtrOutput

func (ScimIntegrationPtrOutput) ToScimIntegrationPtrOutputWithContext

func (o ScimIntegrationPtrOutput) ToScimIntegrationPtrOutputWithContext(ctx context.Context) ScimIntegrationPtrOutput

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 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
	})
}

```

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

func (*Sequence) ToSequencePtrOutput

func (i *Sequence) ToSequencePtrOutput() SequencePtrOutput

func (*Sequence) ToSequencePtrOutputWithContext

func (i *Sequence) ToSequencePtrOutputWithContext(ctx context.Context) SequencePtrOutput

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 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.
	OnFuture pulumi.BoolPtrOutput `pulumi:"onFuture"`
	// The privilege to grant on the current or future sequence.
	Privilege pulumi.StringPtrOutput `pulumi:"privilege"`
	// 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.StringOutput `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("db"),
			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 | true/false for with_grant_option

```sh

$ pulumi import snowflake:index/sequenceGrant:SequenceGrant example 'dbName|schemaName|sequenceName|USAGE|false'

```

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

func (*SequenceGrant) ToSequenceGrantPtrOutput

func (i *SequenceGrant) ToSequenceGrantPtrOutput() SequenceGrantPtrOutput

func (*SequenceGrant) ToSequenceGrantPtrOutputWithContext

func (i *SequenceGrant) ToSequenceGrantPtrOutputWithContext(ctx context.Context) SequenceGrantPtrOutput

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 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.
	OnFuture pulumi.BoolPtrInput
	// The privilege to grant on the current or future sequence.
	Privilege 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.StringInput
	// 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) ElementType

func (SequenceGrantOutput) ElementType() reflect.Type

func (SequenceGrantOutput) ToSequenceGrantOutput

func (o SequenceGrantOutput) ToSequenceGrantOutput() SequenceGrantOutput

func (SequenceGrantOutput) ToSequenceGrantOutputWithContext

func (o SequenceGrantOutput) ToSequenceGrantOutputWithContext(ctx context.Context) SequenceGrantOutput

func (SequenceGrantOutput) ToSequenceGrantPtrOutput

func (o SequenceGrantOutput) ToSequenceGrantPtrOutput() SequenceGrantPtrOutput

func (SequenceGrantOutput) ToSequenceGrantPtrOutputWithContext

func (o SequenceGrantOutput) ToSequenceGrantPtrOutputWithContext(ctx context.Context) SequenceGrantPtrOutput

type SequenceGrantPtrInput

type SequenceGrantPtrInput interface {
	pulumi.Input

	ToSequenceGrantPtrOutput() SequenceGrantPtrOutput
	ToSequenceGrantPtrOutputWithContext(ctx context.Context) SequenceGrantPtrOutput
}

type SequenceGrantPtrOutput

type SequenceGrantPtrOutput struct {
	*pulumi.OutputState
}

func (SequenceGrantPtrOutput) ElementType

func (SequenceGrantPtrOutput) ElementType() reflect.Type

func (SequenceGrantPtrOutput) ToSequenceGrantPtrOutput

func (o SequenceGrantPtrOutput) ToSequenceGrantPtrOutput() SequenceGrantPtrOutput

func (SequenceGrantPtrOutput) ToSequenceGrantPtrOutputWithContext

func (o SequenceGrantPtrOutput) ToSequenceGrantPtrOutputWithContext(ctx context.Context) SequenceGrantPtrOutput

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 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.
	OnFuture pulumi.BoolPtrInput
	// The privilege to grant on the current or future sequence.
	Privilege 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) ElementType

func (SequenceOutput) ElementType() reflect.Type

func (SequenceOutput) ToSequenceOutput

func (o SequenceOutput) ToSequenceOutput() SequenceOutput

func (SequenceOutput) ToSequenceOutputWithContext

func (o SequenceOutput) ToSequenceOutputWithContext(ctx context.Context) SequenceOutput

func (SequenceOutput) ToSequencePtrOutput

func (o SequenceOutput) ToSequencePtrOutput() SequencePtrOutput

func (SequenceOutput) ToSequencePtrOutputWithContext

func (o SequenceOutput) ToSequencePtrOutputWithContext(ctx context.Context) SequencePtrOutput

type SequencePtrInput

type SequencePtrInput interface {
	pulumi.Input

	ToSequencePtrOutput() SequencePtrOutput
	ToSequencePtrOutputWithContext(ctx context.Context) SequencePtrOutput
}

type SequencePtrOutput

type SequencePtrOutput struct {
	*pulumi.OutputState
}

func (SequencePtrOutput) ElementType

func (SequencePtrOutput) ElementType() reflect.Type

func (SequencePtrOutput) ToSequencePtrOutput

func (o SequencePtrOutput) ToSequencePtrOutput() SequencePtrOutput

func (SequencePtrOutput) ToSequencePtrOutputWithContext

func (o SequencePtrOutput) ToSequencePtrOutputWithContext(ctx context.Context) SequencePtrOutput

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 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 Share

type Share struct {
	pulumi.CustomResourceState

	// A list of accounts to be added to the share.
	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"`
}

## 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

func (*Share) ToSharePtrOutput

func (i *Share) ToSharePtrOutput() SharePtrOutput

func (*Share) ToSharePtrOutputWithContext

func (i *Share) ToSharePtrOutputWithContext(ctx context.Context) SharePtrOutput

type ShareArgs

type ShareArgs struct {
	// A list of accounts to be added to the share.
	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) ElementType

func (ShareOutput) ElementType() reflect.Type

func (ShareOutput) ToShareOutput

func (o ShareOutput) ToShareOutput() ShareOutput

func (ShareOutput) ToShareOutputWithContext

func (o ShareOutput) ToShareOutputWithContext(ctx context.Context) ShareOutput

func (ShareOutput) ToSharePtrOutput

func (o ShareOutput) ToSharePtrOutput() SharePtrOutput

func (ShareOutput) ToSharePtrOutputWithContext

func (o ShareOutput) ToSharePtrOutputWithContext(ctx context.Context) SharePtrOutput

type SharePtrInput

type SharePtrInput interface {
	pulumi.Input

	ToSharePtrOutput() SharePtrOutput
	ToSharePtrOutputWithContext(ctx context.Context) SharePtrOutput
}

type SharePtrOutput

type SharePtrOutput struct {
	*pulumi.OutputState
}

func (SharePtrOutput) ElementType

func (SharePtrOutput) ElementType() reflect.Type

func (SharePtrOutput) ToSharePtrOutput

func (o SharePtrOutput) ToSharePtrOutput() SharePtrOutput

func (SharePtrOutput) ToSharePtrOutputWithContext

func (o SharePtrOutput) ToSharePtrOutputWithContext(ctx context.Context) SharePtrOutput

type ShareState

type ShareState struct {
	// A list of accounts to be added to the share.
	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 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"`
	// 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("%v%v%v%v%v", "AWS_KEY_ID='", _var.Example_aws_key_id, "' AWS_SECRET_KEY='", _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

func (*Stage) ToStagePtrOutput

func (i *Stage) ToStagePtrOutput() StagePtrOutput

func (*Stage) ToStagePtrOutputWithContext

func (i *Stage) ToStagePtrOutputWithContext(ctx context.Context) StagePtrOutput

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 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
	// 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 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 and shares fields must be unset in order to use on*future.
	OnFuture pulumi.BoolPtrOutput `pulumi:"onFuture"`
	// The privilege to grant on the stage.
	Privilege pulumi.StringPtrOutput `pulumi:"privilege"`
	// 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.StringOutput `pulumi:"schemaName"`
	// Grants privilege to these shares (only valid if onFuture is false).
	Shares pulumi.StringArrayOutput `pulumi:"shares"`
	// The name of the stage on which to grant privilege (only valid if onFuture is 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("db"),
			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"),
			},
			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 | true/false for with_grant_option

```sh

$ pulumi import snowflake:index/stageGrant:StageGrant example 'databaseName|schemaName|stageName|USAGE|true'

```

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

func (*StageGrant) ToStageGrantPtrOutput

func (i *StageGrant) ToStageGrantPtrOutput() StageGrantPtrOutput

func (*StageGrant) ToStageGrantPtrOutputWithContext

func (i *StageGrant) ToStageGrantPtrOutputWithContext(ctx context.Context) StageGrantPtrOutput

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 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 and shares fields must be unset in order to use on*future.
	OnFuture pulumi.BoolPtrInput
	// The privilege to grant on the stage.
	Privilege 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.StringInput
	// Grants privilege to these shares (only valid if onFuture is false).
	Shares pulumi.StringArrayInput
	// The name of the stage on which to grant privilege (only valid if onFuture is 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) ElementType

func (StageGrantOutput) ElementType() reflect.Type

func (StageGrantOutput) ToStageGrantOutput

func (o StageGrantOutput) ToStageGrantOutput() StageGrantOutput

func (StageGrantOutput) ToStageGrantOutputWithContext

func (o StageGrantOutput) ToStageGrantOutputWithContext(ctx context.Context) StageGrantOutput

func (StageGrantOutput) ToStageGrantPtrOutput

func (o StageGrantOutput) ToStageGrantPtrOutput() StageGrantPtrOutput

func (StageGrantOutput) ToStageGrantPtrOutputWithContext

func (o StageGrantOutput) ToStageGrantPtrOutputWithContext(ctx context.Context) StageGrantPtrOutput

type StageGrantPtrInput

type StageGrantPtrInput interface {
	pulumi.Input

	ToStageGrantPtrOutput() StageGrantPtrOutput
	ToStageGrantPtrOutputWithContext(ctx context.Context) StageGrantPtrOutput
}

type StageGrantPtrOutput

type StageGrantPtrOutput struct {
	*pulumi.OutputState
}

func (StageGrantPtrOutput) ElementType

func (StageGrantPtrOutput) ElementType() reflect.Type

func (StageGrantPtrOutput) ToStageGrantPtrOutput

func (o StageGrantPtrOutput) ToStageGrantPtrOutput() StageGrantPtrOutput

func (StageGrantPtrOutput) ToStageGrantPtrOutputWithContext

func (o StageGrantPtrOutput) ToStageGrantPtrOutputWithContext(ctx context.Context) StageGrantPtrOutput

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 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 and shares fields must be unset in order to use on*future.
	OnFuture pulumi.BoolPtrInput
	// The privilege to grant on the stage.
	Privilege 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
	// Grants privilege to these shares (only valid if onFuture is false).
	Shares pulumi.StringArrayInput
	// The name of the stage on which to grant privilege (only valid if onFuture is 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) ElementType

func (StageOutput) ElementType() reflect.Type

func (StageOutput) ToStageOutput

func (o StageOutput) ToStageOutput() StageOutput

func (StageOutput) ToStageOutputWithContext

func (o StageOutput) ToStageOutputWithContext(ctx context.Context) StageOutput

func (StageOutput) ToStagePtrOutput

func (o StageOutput) ToStagePtrOutput() StagePtrOutput

func (StageOutput) ToStagePtrOutputWithContext

func (o StageOutput) ToStagePtrOutputWithContext(ctx context.Context) StagePtrOutput

type StagePtrInput

type StagePtrInput interface {
	pulumi.Input

	ToStagePtrOutput() StagePtrOutput
	ToStagePtrOutputWithContext(ctx context.Context) StagePtrOutput
}

type StagePtrOutput

type StagePtrOutput struct {
	*pulumi.OutputState
}

func (StagePtrOutput) ElementType

func (StagePtrOutput) ElementType() reflect.Type

func (StagePtrOutput) ToStagePtrOutput

func (o StagePtrOutput) ToStagePtrOutput() StagePtrOutput

func (StagePtrOutput) ToStagePtrOutputWithContext

func (o StagePtrOutput) ToStagePtrOutputWithContext(ctx context.Context) StagePtrOutput

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 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
	// Specifies the URL for the stage.
	Url pulumi.StringPtrInput
}

func (StageState) ElementType

func (StageState) ElementType() reflect.Type

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"`
	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

func (*StorageIntegration) ToStorageIntegrationPtrOutput

func (i *StorageIntegration) ToStorageIntegrationPtrOutput() StorageIntegrationPtrOutput

func (*StorageIntegration) ToStorageIntegrationPtrOutputWithContext

func (i *StorageIntegration) ToStorageIntegrationPtrOutputWithContext(ctx context.Context) StorageIntegrationPtrOutput

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
	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) ElementType

func (StorageIntegrationOutput) ElementType() reflect.Type

func (StorageIntegrationOutput) ToStorageIntegrationOutput

func (o StorageIntegrationOutput) ToStorageIntegrationOutput() StorageIntegrationOutput

func (StorageIntegrationOutput) ToStorageIntegrationOutputWithContext

func (o StorageIntegrationOutput) ToStorageIntegrationOutputWithContext(ctx context.Context) StorageIntegrationOutput

func (StorageIntegrationOutput) ToStorageIntegrationPtrOutput

func (o StorageIntegrationOutput) ToStorageIntegrationPtrOutput() StorageIntegrationPtrOutput

func (StorageIntegrationOutput) ToStorageIntegrationPtrOutputWithContext

func (o StorageIntegrationOutput) ToStorageIntegrationPtrOutputWithContext(ctx context.Context) StorageIntegrationPtrOutput

type StorageIntegrationPtrInput

type StorageIntegrationPtrInput interface {
	pulumi.Input

	ToStorageIntegrationPtrOutput() StorageIntegrationPtrOutput
	ToStorageIntegrationPtrOutputWithContext(ctx context.Context) StorageIntegrationPtrOutput
}

type StorageIntegrationPtrOutput

type StorageIntegrationPtrOutput struct {
	*pulumi.OutputState
}

func (StorageIntegrationPtrOutput) ElementType

func (StorageIntegrationPtrOutput) ToStorageIntegrationPtrOutput

func (o StorageIntegrationPtrOutput) ToStorageIntegrationPtrOutput() StorageIntegrationPtrOutput

func (StorageIntegrationPtrOutput) ToStorageIntegrationPtrOutputWithContext

func (o StorageIntegrationPtrOutput) ToStorageIntegrationPtrOutputWithContext(ctx context.Context) StorageIntegrationPtrOutput

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
	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"`
	// 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 table the stream will monitor.
	OnTable pulumi.StringPtrOutput `pulumi:"onTable"`
	// 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 | on table name

```sh

$ pulumi import snowflake:index/stream:Stream example 'dbName|schemaName|tableName'

```

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

func (*Stream) ToStreamPtrOutput

func (i *Stream) ToStreamPtrOutput() StreamPtrOutput

func (*Stream) ToStreamPtrOutputWithContext

func (i *Stream) ToStreamPtrOutputWithContext(ctx context.Context) StreamPtrOutput

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
	// 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 table the stream will monitor.
	OnTable 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 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.
	OnFuture pulumi.BoolPtrOutput `pulumi:"onFuture"`
	// The privilege to grant on the current or future stream.
	Privilege pulumi.StringPtrOutput `pulumi:"privilege"`
	// 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.StringOutput `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("db"),
			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 | true/false for with_grant_option

```sh

$ pulumi import snowflake:index/streamGrant:StreamGrant example 'dbName|schemaName|streamName|SELECT|false'

```

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

func (*StreamGrant) ToStreamGrantPtrOutput

func (i *StreamGrant) ToStreamGrantPtrOutput() StreamGrantPtrOutput

func (*StreamGrant) ToStreamGrantPtrOutputWithContext

func (i *StreamGrant) ToStreamGrantPtrOutputWithContext(ctx context.Context) StreamGrantPtrOutput

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 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.
	OnFuture pulumi.BoolPtrInput
	// The privilege to grant on the current or future stream.
	Privilege 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.StringInput
	// 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) ElementType

func (StreamGrantOutput) ElementType() reflect.Type

func (StreamGrantOutput) ToStreamGrantOutput

func (o StreamGrantOutput) ToStreamGrantOutput() StreamGrantOutput

func (StreamGrantOutput) ToStreamGrantOutputWithContext

func (o StreamGrantOutput) ToStreamGrantOutputWithContext(ctx context.Context) StreamGrantOutput

func (StreamGrantOutput) ToStreamGrantPtrOutput

func (o StreamGrantOutput) ToStreamGrantPtrOutput() StreamGrantPtrOutput

func (StreamGrantOutput) ToStreamGrantPtrOutputWithContext

func (o StreamGrantOutput) ToStreamGrantPtrOutputWithContext(ctx context.Context) StreamGrantPtrOutput

type StreamGrantPtrInput

type StreamGrantPtrInput interface {
	pulumi.Input

	ToStreamGrantPtrOutput() StreamGrantPtrOutput
	ToStreamGrantPtrOutputWithContext(ctx context.Context) StreamGrantPtrOutput
}

type StreamGrantPtrOutput

type StreamGrantPtrOutput struct {
	*pulumi.OutputState
}

func (StreamGrantPtrOutput) ElementType

func (StreamGrantPtrOutput) ElementType() reflect.Type

func (StreamGrantPtrOutput) ToStreamGrantPtrOutput

func (o StreamGrantPtrOutput) ToStreamGrantPtrOutput() StreamGrantPtrOutput

func (StreamGrantPtrOutput) ToStreamGrantPtrOutputWithContext

func (o StreamGrantPtrOutput) ToStreamGrantPtrOutputWithContext(ctx context.Context) StreamGrantPtrOutput

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 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.
	OnFuture pulumi.BoolPtrInput
	// The privilege to grant on the current or future stream.
	Privilege 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) ElementType

func (StreamOutput) ElementType() reflect.Type

func (StreamOutput) ToStreamOutput

func (o StreamOutput) ToStreamOutput() StreamOutput

func (StreamOutput) ToStreamOutputWithContext

func (o StreamOutput) ToStreamOutputWithContext(ctx context.Context) StreamOutput

func (StreamOutput) ToStreamPtrOutput

func (o StreamOutput) ToStreamPtrOutput() StreamPtrOutput

func (StreamOutput) ToStreamPtrOutputWithContext

func (o StreamOutput) ToStreamPtrOutputWithContext(ctx context.Context) StreamPtrOutput

type StreamPtrInput

type StreamPtrInput interface {
	pulumi.Input

	ToStreamPtrOutput() StreamPtrOutput
	ToStreamPtrOutputWithContext(ctx context.Context) StreamPtrOutput
}

type StreamPtrOutput

type StreamPtrOutput struct {
	*pulumi.OutputState
}

func (StreamPtrOutput) ElementType

func (StreamPtrOutput) ElementType() reflect.Type

func (StreamPtrOutput) ToStreamPtrOutput

func (o StreamPtrOutput) ToStreamPtrOutput() StreamPtrOutput

func (StreamPtrOutput) ToStreamPtrOutputWithContext

func (o StreamPtrOutput) ToStreamPtrOutputWithContext(ctx context.Context) StreamPtrOutput

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
	// 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 table the stream will monitor.
	OnTable 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

	// A list of one of 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"`
	// 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"`
	// The schema in which to create the table.
	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.NewTable(ctx, "table", &snowflake.TableArgs{
			ClusterBies: pulumi.StringArray{
				pulumi.String("to_date(DATE)"),
			},
			Columns: TableColumnArray{
				&TableColumnArgs{
					Name: pulumi.String("id"),
					Type: pulumi.String("int"),
				},
				&TableColumnArgs{
					Name: pulumi.String("data"),
					Type: pulumi.String("text"),
				},
				&TableColumnArgs{
					Name: pulumi.String("DATE"),
					Type: pulumi.String("TIMESTAMP_NTZ(9)"),
				},
			},
			Comment:  pulumi.String("A table."),
			Database: pulumi.String("database"),
			Schema:   pulumi.String("schmea"),
		})
		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

func (*Table) ToTablePtrOutput

func (i *Table) ToTablePtrOutput() TablePtrOutput

func (*Table) ToTablePtrOutputWithContext

func (i *Table) ToTablePtrOutputWithContext(ctx context.Context) TablePtrOutput

type TableArgs

type TableArgs struct {
	// A list of one of 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
	// 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
	// The schema in which to create the table.
	Schema pulumi.StringInput
}

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 name
	Name string `pulumi:"name"`
	// Column type, e.g. VARIANT
	Type string `pulumi:"type"`
}

type TableColumnArgs

type TableColumnArgs struct {
	// Column name
	Name pulumi.StringInput `pulumi:"name"`
	// 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 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 TableColumnOutput

type TableColumnOutput struct{ *pulumi.OutputState }

func (TableColumnOutput) ElementType

func (TableColumnOutput) ElementType() reflect.Type

func (TableColumnOutput) Name

Column name

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 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 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.
	OnFuture pulumi.BoolPtrOutput `pulumi:"onFuture"`
	// The privilege to grant on the current or future table.
	Privilege pulumi.StringPtrOutput `pulumi:"privilege"`
	// 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 onFuture is unset).
	Shares pulumi.StringArrayOutput `pulumi:"shares"`
	// The name of the table on which to grant privileges immediately (only valid if onFuture is 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 | true/false for with_grant_option

```sh

$ pulumi import snowflake:index/tableGrant:TableGrant example 'databaseName|schemaName|tableName|MODIFY|true'

```

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

func (*TableGrant) ToTableGrantPtrOutput

func (i *TableGrant) ToTableGrantPtrOutput() TableGrantPtrOutput

func (*TableGrant) ToTableGrantPtrOutputWithContext

func (i *TableGrant) ToTableGrantPtrOutputWithContext(ctx context.Context) TableGrantPtrOutput

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 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.
	OnFuture pulumi.BoolPtrInput
	// The privilege to grant on the current or future table.
	Privilege 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 onFuture is unset).
	Shares pulumi.StringArrayInput
	// The name of the table on which to grant privileges immediately (only valid if onFuture is 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) ElementType

func (TableGrantOutput) ElementType() reflect.Type

func (TableGrantOutput) ToTableGrantOutput

func (o TableGrantOutput) ToTableGrantOutput() TableGrantOutput

func (TableGrantOutput) ToTableGrantOutputWithContext

func (o TableGrantOutput) ToTableGrantOutputWithContext(ctx context.Context) TableGrantOutput

func (TableGrantOutput) ToTableGrantPtrOutput

func (o TableGrantOutput) ToTableGrantPtrOutput() TableGrantPtrOutput

func (TableGrantOutput) ToTableGrantPtrOutputWithContext

func (o TableGrantOutput) ToTableGrantPtrOutputWithContext(ctx context.Context) TableGrantPtrOutput

type TableGrantPtrInput

type TableGrantPtrInput interface {
	pulumi.Input

	ToTableGrantPtrOutput() TableGrantPtrOutput
	ToTableGrantPtrOutputWithContext(ctx context.Context) TableGrantPtrOutput
}

type TableGrantPtrOutput

type TableGrantPtrOutput struct {
	*pulumi.OutputState
}

func (TableGrantPtrOutput) ElementType

func (TableGrantPtrOutput) ElementType() reflect.Type

func (TableGrantPtrOutput) ToTableGrantPtrOutput

func (o TableGrantPtrOutput) ToTableGrantPtrOutput() TableGrantPtrOutput

func (TableGrantPtrOutput) ToTableGrantPtrOutputWithContext

func (o TableGrantPtrOutput) ToTableGrantPtrOutputWithContext(ctx context.Context) TableGrantPtrOutput

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 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.
	OnFuture pulumi.BoolPtrInput
	// The privilege to grant on the current or future table.
	Privilege 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 onFuture is unset).
	Shares pulumi.StringArrayInput
	// The name of the table on which to grant privileges immediately (only valid if onFuture is 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) ElementType

func (TableOutput) ElementType() reflect.Type

func (TableOutput) ToTableOutput

func (o TableOutput) ToTableOutput() TableOutput

func (TableOutput) ToTableOutputWithContext

func (o TableOutput) ToTableOutputWithContext(ctx context.Context) TableOutput

func (TableOutput) ToTablePtrOutput

func (o TableOutput) ToTablePtrOutput() TablePtrOutput

func (TableOutput) ToTablePtrOutputWithContext

func (o TableOutput) ToTablePtrOutputWithContext(ctx context.Context) TablePtrOutput

type TablePtrInput

type TablePtrInput interface {
	pulumi.Input

	ToTablePtrOutput() TablePtrOutput
	ToTablePtrOutputWithContext(ctx context.Context) TablePtrOutput
}

type TablePtrOutput

type TablePtrOutput struct {
	*pulumi.OutputState
}

func (TablePtrOutput) ElementType

func (TablePtrOutput) ElementType() reflect.Type

func (TablePtrOutput) ToTablePtrOutput

func (o TablePtrOutput) ToTablePtrOutput() TablePtrOutput

func (TablePtrOutput) ToTablePtrOutputWithContext

func (o TablePtrOutput) ToTablePtrOutputWithContext(ctx context.Context) TablePtrOutput

type TableState

type TableState struct {
	// A list of one of 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
	// 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
	// The schema in which to create the table.
	Schema pulumi.StringPtrInput
}

func (TableState) ElementType

func (TableState) ElementType() reflect.Type

type Task

type Task struct {
	pulumi.CustomResourceState

	// Specifies the predecessor task in the same database and schema of the current task. When a run of the predecessor task finishes successfully, it triggers this task (after a brief lag).
	After pulumi.StringPtrOutput `pulumi:"after"`
	// 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 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.
	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 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.
	Warehouse pulumi.StringOutput `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 {
		_, err := snowflake.NewTask(ctx, "task", &snowflake.TaskArgs{
			Comment:      pulumi.String("my task"),
			Database:     pulumi.String("db"),
			Schema:       pulumi.String("schema"),
			Warehouse:    pulumi.String("warehouse"),
			Schedule:     pulumi.String("10"),
			SqlStatement: pulumi.String("select * from foo;"),
			SessionParameters: pulumi.StringMap{
				"foo": pulumi.String("bar"),
			},
			UserTaskTimeoutMs: pulumi.Int(10000),
			After:             pulumi.String("preceding_task"),
			When:              pulumi.String("foo AND bar"),
			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

func (*Task) ToTaskPtrOutput

func (i *Task) ToTaskPtrOutput() TaskPtrOutput

func (*Task) ToTaskPtrOutputWithContext

func (i *Task) ToTaskPtrOutputWithContext(ctx context.Context) TaskPtrOutput

type TaskArgs

type TaskArgs struct {
	// Specifies the predecessor task in the same database and schema of the current task. When a run of the predecessor task finishes successfully, it triggers this task (after a brief lag).
	After pulumi.StringPtrInput
	// 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 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.
	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 time limit on a single run of the task before it times out (in milliseconds).
	UserTaskTimeoutMs pulumi.IntPtrInput
	// The warehouse the task will use.
	Warehouse pulumi.StringInput
	// 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 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) ElementType

func (TaskOutput) ElementType() reflect.Type

func (TaskOutput) ToTaskOutput

func (o TaskOutput) ToTaskOutput() TaskOutput

func (TaskOutput) ToTaskOutputWithContext

func (o TaskOutput) ToTaskOutputWithContext(ctx context.Context) TaskOutput

func (TaskOutput) ToTaskPtrOutput

func (o TaskOutput) ToTaskPtrOutput() TaskPtrOutput

func (TaskOutput) ToTaskPtrOutputWithContext

func (o TaskOutput) ToTaskPtrOutputWithContext(ctx context.Context) TaskPtrOutput

type TaskPtrInput

type TaskPtrInput interface {
	pulumi.Input

	ToTaskPtrOutput() TaskPtrOutput
	ToTaskPtrOutputWithContext(ctx context.Context) TaskPtrOutput
}

type TaskPtrOutput

type TaskPtrOutput struct {
	*pulumi.OutputState
}

func (TaskPtrOutput) ElementType

func (TaskPtrOutput) ElementType() reflect.Type

func (TaskPtrOutput) ToTaskPtrOutput

func (o TaskPtrOutput) ToTaskPtrOutput() TaskPtrOutput

func (TaskPtrOutput) ToTaskPtrOutputWithContext

func (o TaskPtrOutput) ToTaskPtrOutputWithContext(ctx context.Context) TaskPtrOutput

type TaskState

type TaskState struct {
	// Specifies the predecessor task in the same database and schema of the current task. When a run of the predecessor task finishes successfully, it triggers this task (after a brief lag).
	After pulumi.StringPtrInput
	// 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 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.
	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 time limit on a single run of the task before it times out (in milliseconds).
	UserTaskTimeoutMs pulumi.IntPtrInput
	// The warehouse the task will use.
	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 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"`
}

## 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"),
			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

func (*User) ToUserPtrOutput

func (i *User) ToUserPtrOutput() UserPtrOutput

func (*User) ToUserPtrOutputWithContext

func (i *User) ToUserPtrOutputWithContext(ctx context.Context) UserPtrOutput

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 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
}

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 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) ElementType

func (UserOutput) ElementType() reflect.Type

func (UserOutput) ToUserOutput

func (o UserOutput) ToUserOutput() UserOutput

func (UserOutput) ToUserOutputWithContext

func (o UserOutput) ToUserOutputWithContext(ctx context.Context) UserOutput

func (UserOutput) ToUserPtrOutput

func (o UserOutput) ToUserPtrOutput() UserPtrOutput

func (UserOutput) ToUserPtrOutputWithContext

func (o UserOutput) ToUserPtrOutputWithContext(ctx context.Context) UserPtrOutput

type UserPtrInput

type UserPtrInput interface {
	pulumi.Input

	ToUserPtrOutput() UserPtrOutput
	ToUserPtrOutputWithContext(ctx context.Context) UserPtrOutput
}

type UserPtrOutput

type UserPtrOutput struct {
	*pulumi.OutputState
}

func (UserPtrOutput) ElementType

func (UserPtrOutput) ElementType() reflect.Type

func (UserPtrOutput) ToUserPtrOutput

func (o UserPtrOutput) ToUserPtrOutput() UserPtrOutput

func (UserPtrOutput) ToUserPtrOutputWithContext

func (o UserPtrOutput) ToUserPtrOutputWithContext(ctx context.Context) UserPtrOutput

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

func (*UserPublicKeys) ToUserPublicKeysPtrOutput

func (i *UserPublicKeys) ToUserPublicKeysPtrOutput() UserPublicKeysPtrOutput

func (*UserPublicKeys) ToUserPublicKeysPtrOutputWithContext

func (i *UserPublicKeys) ToUserPublicKeysPtrOutputWithContext(ctx context.Context) UserPublicKeysPtrOutput

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) ToUserPublicKeysOutput

func (o UserPublicKeysOutput) ToUserPublicKeysOutput() UserPublicKeysOutput

func (UserPublicKeysOutput) ToUserPublicKeysOutputWithContext

func (o UserPublicKeysOutput) ToUserPublicKeysOutputWithContext(ctx context.Context) UserPublicKeysOutput

func (UserPublicKeysOutput) ToUserPublicKeysPtrOutput

func (o UserPublicKeysOutput) ToUserPublicKeysPtrOutput() UserPublicKeysPtrOutput

func (UserPublicKeysOutput) ToUserPublicKeysPtrOutputWithContext

func (o UserPublicKeysOutput) ToUserPublicKeysPtrOutputWithContext(ctx context.Context) UserPublicKeysPtrOutput

type UserPublicKeysPtrInput

type UserPublicKeysPtrInput interface {
	pulumi.Input

	ToUserPublicKeysPtrOutput() UserPublicKeysPtrOutput
	ToUserPublicKeysPtrOutputWithContext(ctx context.Context) UserPublicKeysPtrOutput
}

type UserPublicKeysPtrOutput

type UserPublicKeysPtrOutput struct {
	*pulumi.OutputState
}

func (UserPublicKeysPtrOutput) ElementType

func (UserPublicKeysPtrOutput) ElementType() reflect.Type

func (UserPublicKeysPtrOutput) ToUserPublicKeysPtrOutput

func (o UserPublicKeysPtrOutput) ToUserPublicKeysPtrOutput() UserPublicKeysPtrOutput

func (UserPublicKeysPtrOutput) ToUserPublicKeysPtrOutputWithContext

func (o UserPublicKeysPtrOutput) ToUserPublicKeysPtrOutputWithContext(ctx context.Context) UserPublicKeysPtrOutput

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 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
}

func (UserState) ElementType

func (UserState) ElementType() reflect.Type

type View

type View 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. 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"`
}

## 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("db"),
			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

func (*View) ToViewPtrOutput

func (i *View) ToViewPtrOutput() ViewPtrOutput

func (*View) ToViewPtrOutputWithContext

func (i *View) ToViewPtrOutputWithContext(ctx context.Context) ViewPtrOutput

type ViewArgs

type ViewArgs 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. 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
}

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 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.
	OnFuture pulumi.BoolPtrOutput `pulumi:"onFuture"`
	// The privilege to grant on the current or future view.
	Privilege pulumi.StringPtrOutput `pulumi:"privilege"`
	// 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 onFuture is unset).
	Shares pulumi.StringArrayOutput `pulumi:"shares"`
	// The name of the view on which to grant privileges immediately (only valid if onFuture is 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, "grant", &snowflake.ViewGrantArgs{
			DatabaseName: pulumi.String("db"),
			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
		}
		return nil
	})
}

```

## Import

format is database name | schema name | view name | privilege | true/false for with_grant_option

```sh

$ pulumi import snowflake:index/viewGrant:ViewGrant example 'dbName|schemaName|viewName|USAGE|false'

```

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

func (*ViewGrant) ToViewGrantPtrOutput

func (i *ViewGrant) ToViewGrantPtrOutput() ViewGrantPtrOutput

func (*ViewGrant) ToViewGrantPtrOutputWithContext

func (i *ViewGrant) ToViewGrantPtrOutputWithContext(ctx context.Context) ViewGrantPtrOutput

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 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.
	OnFuture pulumi.BoolPtrInput
	// The privilege to grant on the current or future view.
	Privilege 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 onFuture is unset).
	Shares pulumi.StringArrayInput
	// The name of the view on which to grant privileges immediately (only valid if onFuture is 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) ElementType

func (ViewGrantOutput) ElementType() reflect.Type

func (ViewGrantOutput) ToViewGrantOutput

func (o ViewGrantOutput) ToViewGrantOutput() ViewGrantOutput

func (ViewGrantOutput) ToViewGrantOutputWithContext

func (o ViewGrantOutput) ToViewGrantOutputWithContext(ctx context.Context) ViewGrantOutput

func (ViewGrantOutput) ToViewGrantPtrOutput

func (o ViewGrantOutput) ToViewGrantPtrOutput() ViewGrantPtrOutput

func (ViewGrantOutput) ToViewGrantPtrOutputWithContext

func (o ViewGrantOutput) ToViewGrantPtrOutputWithContext(ctx context.Context) ViewGrantPtrOutput

type ViewGrantPtrInput

type ViewGrantPtrInput interface {
	pulumi.Input

	ToViewGrantPtrOutput() ViewGrantPtrOutput
	ToViewGrantPtrOutputWithContext(ctx context.Context) ViewGrantPtrOutput
}

type ViewGrantPtrOutput

type ViewGrantPtrOutput struct {
	*pulumi.OutputState
}

func (ViewGrantPtrOutput) ElementType

func (ViewGrantPtrOutput) ElementType() reflect.Type

func (ViewGrantPtrOutput) ToViewGrantPtrOutput

func (o ViewGrantPtrOutput) ToViewGrantPtrOutput() ViewGrantPtrOutput

func (ViewGrantPtrOutput) ToViewGrantPtrOutputWithContext

func (o ViewGrantPtrOutput) ToViewGrantPtrOutputWithContext(ctx context.Context) ViewGrantPtrOutput

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 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.
	OnFuture pulumi.BoolPtrInput
	// The privilege to grant on the current or future view.
	Privilege 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 onFuture is unset).
	Shares pulumi.StringArrayInput
	// The name of the view on which to grant privileges immediately (only valid if onFuture is 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) ElementType

func (ViewOutput) ElementType() reflect.Type

func (ViewOutput) ToViewOutput

func (o ViewOutput) ToViewOutput() ViewOutput

func (ViewOutput) ToViewOutputWithContext

func (o ViewOutput) ToViewOutputWithContext(ctx context.Context) ViewOutput

func (ViewOutput) ToViewPtrOutput

func (o ViewOutput) ToViewPtrOutput() ViewPtrOutput

func (ViewOutput) ToViewPtrOutputWithContext

func (o ViewOutput) ToViewPtrOutputWithContext(ctx context.Context) ViewPtrOutput

type ViewPtrInput

type ViewPtrInput interface {
	pulumi.Input

	ToViewPtrOutput() ViewPtrOutput
	ToViewPtrOutputWithContext(ctx context.Context) ViewPtrOutput
}

type ViewPtrOutput

type ViewPtrOutput struct {
	*pulumi.OutputState
}

func (ViewPtrOutput) ElementType

func (ViewPtrOutput) ElementType() reflect.Type

func (ViewPtrOutput) ToViewPtrOutput

func (o ViewPtrOutput) ToViewPtrOutput() ViewPtrOutput

func (ViewPtrOutput) ToViewPtrOutputWithContext

func (o ViewPtrOutput) ToViewPtrOutputWithContext(ctx context.Context) ViewPtrOutput

type ViewState

type ViewState 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. 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
}

func (ViewState) ElementType

func (ViewState) ElementType() reflect.Type

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 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"`
	Name            pulumi.StringOutput `pulumi:"name"`
	// 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.
	WaitForProvisioning pulumi.BoolPtrOutput `pulumi:"waitForProvisioning"`
	WarehouseSize       pulumi.StringOutput  `pulumi:"warehouseSize"`
}

## 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

func (*Warehouse) ToWarehousePtrOutput

func (i *Warehouse) ToWarehousePtrOutput() WarehousePtrOutput

func (*Warehouse) ToWarehousePtrOutputWithContext

func (i *Warehouse) ToWarehousePtrOutputWithContext(ctx context.Context) WarehousePtrOutput

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 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
	Name            pulumi.StringPtrInput
	// 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.
	WaitForProvisioning pulumi.BoolPtrInput
	WarehouseSize       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

	// The privilege to grant on the warehouse.
	Privilege pulumi.StringPtrOutput `pulumi:"privilege"`
	// 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"),
			},
			WarehouseName:   pulumi.String("wh"),
			WithGrantOption: pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

format is warehouse name | | | privilege | true/false for with_grant_option

```sh

$ pulumi import snowflake:index/warehouseGrant:WarehouseGrant example 'warehouseName|||MODIFY|true'

```

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

func (*WarehouseGrant) ToWarehouseGrantPtrOutput

func (i *WarehouseGrant) ToWarehouseGrantPtrOutput() WarehouseGrantPtrOutput

func (*WarehouseGrant) ToWarehouseGrantPtrOutputWithContext

func (i *WarehouseGrant) ToWarehouseGrantPtrOutputWithContext(ctx context.Context) WarehouseGrantPtrOutput

type WarehouseGrantArgs

type WarehouseGrantArgs struct {
	// The privilege to grant on the warehouse.
	Privilege 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) ToWarehouseGrantOutput

func (o WarehouseGrantOutput) ToWarehouseGrantOutput() WarehouseGrantOutput

func (WarehouseGrantOutput) ToWarehouseGrantOutputWithContext

func (o WarehouseGrantOutput) ToWarehouseGrantOutputWithContext(ctx context.Context) WarehouseGrantOutput

func (WarehouseGrantOutput) ToWarehouseGrantPtrOutput

func (o WarehouseGrantOutput) ToWarehouseGrantPtrOutput() WarehouseGrantPtrOutput

func (WarehouseGrantOutput) ToWarehouseGrantPtrOutputWithContext

func (o WarehouseGrantOutput) ToWarehouseGrantPtrOutputWithContext(ctx context.Context) WarehouseGrantPtrOutput

type WarehouseGrantPtrInput

type WarehouseGrantPtrInput interface {
	pulumi.Input

	ToWarehouseGrantPtrOutput() WarehouseGrantPtrOutput
	ToWarehouseGrantPtrOutputWithContext(ctx context.Context) WarehouseGrantPtrOutput
}

type WarehouseGrantPtrOutput

type WarehouseGrantPtrOutput struct {
	*pulumi.OutputState
}

func (WarehouseGrantPtrOutput) ElementType

func (WarehouseGrantPtrOutput) ElementType() reflect.Type

func (WarehouseGrantPtrOutput) ToWarehouseGrantPtrOutput

func (o WarehouseGrantPtrOutput) ToWarehouseGrantPtrOutput() WarehouseGrantPtrOutput

func (WarehouseGrantPtrOutput) ToWarehouseGrantPtrOutputWithContext

func (o WarehouseGrantPtrOutput) ToWarehouseGrantPtrOutputWithContext(ctx context.Context) WarehouseGrantPtrOutput

type WarehouseGrantState

type WarehouseGrantState struct {
	// The privilege to grant on the warehouse.
	Privilege 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) ElementType

func (WarehouseOutput) ElementType() reflect.Type

func (WarehouseOutput) ToWarehouseOutput

func (o WarehouseOutput) ToWarehouseOutput() WarehouseOutput

func (WarehouseOutput) ToWarehouseOutputWithContext

func (o WarehouseOutput) ToWarehouseOutputWithContext(ctx context.Context) WarehouseOutput

func (WarehouseOutput) ToWarehousePtrOutput

func (o WarehouseOutput) ToWarehousePtrOutput() WarehousePtrOutput

func (WarehouseOutput) ToWarehousePtrOutputWithContext

func (o WarehouseOutput) ToWarehousePtrOutputWithContext(ctx context.Context) WarehousePtrOutput

type WarehousePtrInput

type WarehousePtrInput interface {
	pulumi.Input

	ToWarehousePtrOutput() WarehousePtrOutput
	ToWarehousePtrOutputWithContext(ctx context.Context) WarehousePtrOutput
}

type WarehousePtrOutput

type WarehousePtrOutput struct {
	*pulumi.OutputState
}

func (WarehousePtrOutput) ElementType

func (WarehousePtrOutput) ElementType() reflect.Type

func (WarehousePtrOutput) ToWarehousePtrOutput

func (o WarehousePtrOutput) ToWarehousePtrOutput() WarehousePtrOutput

func (WarehousePtrOutput) ToWarehousePtrOutputWithContext

func (o WarehousePtrOutput) ToWarehousePtrOutputWithContext(ctx context.Context) WarehousePtrOutput

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 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
	Name            pulumi.StringPtrInput
	// 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.
	WaitForProvisioning pulumi.BoolPtrInput
	WarehouseSize       pulumi.StringPtrInput
}

func (WarehouseState) ElementType

func (WarehouseState) ElementType() reflect.Type

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL