snowflake

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2022 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

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

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

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

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 fully-qualified path to a database to create a replica from.
	FromReplica pulumi.StringPtrOutput `pulumi:"fromReplica"`
	// 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"`
	// Definitions of a tag to associate with the resource.
	Tags DatabaseTagArrayOutput `pulumi:"tags"`
}

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-snowflake/sdk/go/snowflake"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := snowflake.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

type DatabaseArgs

type DatabaseArgs struct {
	Comment                 pulumi.StringPtrInput
	DataRetentionTimeInDays pulumi.IntPtrInput
	// Specify a database to create a clone from.
	FromDatabase pulumi.StringPtrInput
	// Specify a fully-qualified path to a database to create a replica from.
	FromReplica pulumi.StringPtrInput
	// Specify a provider and a share in this map to create a database from a share.
	FromShare pulumi.MapInput
	Name      pulumi.StringPtrInput
	// Definitions of a tag to associate with the resource.
	Tags DatabaseTagArrayInput
}

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

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

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

type DatabaseState

type DatabaseState struct {
	Comment                 pulumi.StringPtrInput
	DataRetentionTimeInDays pulumi.IntPtrInput
	// Specify a database to create a clone from.
	FromDatabase pulumi.StringPtrInput
	// Specify a fully-qualified path to a database to create a replica from.
	FromReplica pulumi.StringPtrInput
	// Specify a provider and a share in this map to create a database from a share.
	FromShare pulumi.MapInput
	Name      pulumi.StringPtrInput
	// Definitions of a tag to associate with the resource.
	Tags DatabaseTagArrayInput
}

func (DatabaseState) ElementType

func (DatabaseState) ElementType() reflect.Type

type DatabaseTag added in v0.3.0

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

type DatabaseTagArgs added in v0.3.0

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

func (DatabaseTagArgs) ElementType added in v0.3.0

func (DatabaseTagArgs) ElementType() reflect.Type

func (DatabaseTagArgs) ToDatabaseTagOutput added in v0.3.0

func (i DatabaseTagArgs) ToDatabaseTagOutput() DatabaseTagOutput

func (DatabaseTagArgs) ToDatabaseTagOutputWithContext added in v0.3.0

func (i DatabaseTagArgs) ToDatabaseTagOutputWithContext(ctx context.Context) DatabaseTagOutput

type DatabaseTagArray added in v0.3.0

type DatabaseTagArray []DatabaseTagInput

func (DatabaseTagArray) ElementType added in v0.3.0

func (DatabaseTagArray) ElementType() reflect.Type

func (DatabaseTagArray) ToDatabaseTagArrayOutput added in v0.3.0

func (i DatabaseTagArray) ToDatabaseTagArrayOutput() DatabaseTagArrayOutput

func (DatabaseTagArray) ToDatabaseTagArrayOutputWithContext added in v0.3.0

func (i DatabaseTagArray) ToDatabaseTagArrayOutputWithContext(ctx context.Context) DatabaseTagArrayOutput

type DatabaseTagArrayInput added in v0.3.0

type DatabaseTagArrayInput interface {
	pulumi.Input

	ToDatabaseTagArrayOutput() DatabaseTagArrayOutput
	ToDatabaseTagArrayOutputWithContext(context.Context) DatabaseTagArrayOutput
}

DatabaseTagArrayInput is an input type that accepts DatabaseTagArray and DatabaseTagArrayOutput values. You can construct a concrete instance of `DatabaseTagArrayInput` via:

DatabaseTagArray{ DatabaseTagArgs{...} }

type DatabaseTagArrayOutput added in v0.3.0

type DatabaseTagArrayOutput struct{ *pulumi.OutputState }

func (DatabaseTagArrayOutput) ElementType added in v0.3.0

func (DatabaseTagArrayOutput) ElementType() reflect.Type

func (DatabaseTagArrayOutput) Index added in v0.3.0

func (DatabaseTagArrayOutput) ToDatabaseTagArrayOutput added in v0.3.0

func (o DatabaseTagArrayOutput) ToDatabaseTagArrayOutput() DatabaseTagArrayOutput

func (DatabaseTagArrayOutput) ToDatabaseTagArrayOutputWithContext added in v0.3.0

func (o DatabaseTagArrayOutput) ToDatabaseTagArrayOutputWithContext(ctx context.Context) DatabaseTagArrayOutput

type DatabaseTagInput added in v0.3.0

type DatabaseTagInput interface {
	pulumi.Input

	ToDatabaseTagOutput() DatabaseTagOutput
	ToDatabaseTagOutputWithContext(context.Context) DatabaseTagOutput
}

DatabaseTagInput is an input type that accepts DatabaseTagArgs and DatabaseTagOutput values. You can construct a concrete instance of `DatabaseTagInput` via:

DatabaseTagArgs{...}

type DatabaseTagOutput added in v0.3.0

type DatabaseTagOutput struct{ *pulumi.OutputState }

func (DatabaseTagOutput) Database added in v0.3.0

Name of the database that the tag was created in.

func (DatabaseTagOutput) ElementType added in v0.3.0

func (DatabaseTagOutput) ElementType() reflect.Type

func (DatabaseTagOutput) Name added in v0.3.0

Tag name, e.g. department.

func (DatabaseTagOutput) Schema added in v0.3.0

Name of the schema that the tag was created in.

func (DatabaseTagOutput) ToDatabaseTagOutput added in v0.3.0

func (o DatabaseTagOutput) ToDatabaseTagOutput() DatabaseTagOutput

func (DatabaseTagOutput) ToDatabaseTagOutputWithContext added in v0.3.0

func (o DatabaseTagOutput) ToDatabaseTagOutputWithContext(ctx context.Context) DatabaseTagOutput

func (DatabaseTagOutput) Value added in v0.3.0

Tag value, e.g. marketing_info.

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

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

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 ExternalOauthIntegration added in v0.5.0

type ExternalOauthIntegration struct {
	pulumi.CustomResourceState

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

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-snowflake/sdk/go/snowflake"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := snowflake.NewExternalOauthIntegration(ctx, "azure", &snowflake.ExternalOauthIntegrationArgs{
			AudienceUrls: pulumi.StringArray{
				pulumi.String("https://analysis.windows.net/powerbi/connector/Snowflake"),
			},
			Enabled: pulumi.Bool(true),
			Issuer:  pulumi.String("https://sts.windows.net/00000000-0000-0000-0000-000000000000"),
			JwsKeysUrls: pulumi.StringArray{
				pulumi.String("https://login.windows.net/common/discovery/keys"),
			},
			SnowflakeUserMappingAttribute: pulumi.String("LOGIN_NAME"),
			TokenUserMappingClaims: pulumi.StringArray{
				pulumi.String("upn"),
			},
			Type: pulumi.String("AZURE"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

```sh

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

```

func GetExternalOauthIntegration added in v0.5.0

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

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

func NewExternalOauthIntegration added in v0.5.0

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

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

func (*ExternalOauthIntegration) ElementType added in v0.5.0

func (*ExternalOauthIntegration) ElementType() reflect.Type

func (*ExternalOauthIntegration) ToExternalOauthIntegrationOutput added in v0.5.0

func (i *ExternalOauthIntegration) ToExternalOauthIntegrationOutput() ExternalOauthIntegrationOutput

func (*ExternalOauthIntegration) ToExternalOauthIntegrationOutputWithContext added in v0.5.0

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

type ExternalOauthIntegrationArgs added in v0.5.0

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

The set of arguments for constructing a ExternalOauthIntegration resource.

func (ExternalOauthIntegrationArgs) ElementType added in v0.5.0

type ExternalOauthIntegrationArray added in v0.5.0

type ExternalOauthIntegrationArray []ExternalOauthIntegrationInput

func (ExternalOauthIntegrationArray) ElementType added in v0.5.0

func (ExternalOauthIntegrationArray) ToExternalOauthIntegrationArrayOutput added in v0.5.0

func (i ExternalOauthIntegrationArray) ToExternalOauthIntegrationArrayOutput() ExternalOauthIntegrationArrayOutput

func (ExternalOauthIntegrationArray) ToExternalOauthIntegrationArrayOutputWithContext added in v0.5.0

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

type ExternalOauthIntegrationArrayInput added in v0.5.0

type ExternalOauthIntegrationArrayInput interface {
	pulumi.Input

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

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

ExternalOauthIntegrationArray{ ExternalOauthIntegrationArgs{...} }

type ExternalOauthIntegrationArrayOutput added in v0.5.0

type ExternalOauthIntegrationArrayOutput struct{ *pulumi.OutputState }

func (ExternalOauthIntegrationArrayOutput) ElementType added in v0.5.0

func (ExternalOauthIntegrationArrayOutput) Index added in v0.5.0

func (ExternalOauthIntegrationArrayOutput) ToExternalOauthIntegrationArrayOutput added in v0.5.0

func (o ExternalOauthIntegrationArrayOutput) ToExternalOauthIntegrationArrayOutput() ExternalOauthIntegrationArrayOutput

func (ExternalOauthIntegrationArrayOutput) ToExternalOauthIntegrationArrayOutputWithContext added in v0.5.0

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

type ExternalOauthIntegrationInput added in v0.5.0

type ExternalOauthIntegrationInput interface {
	pulumi.Input

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

type ExternalOauthIntegrationMap added in v0.5.0

type ExternalOauthIntegrationMap map[string]ExternalOauthIntegrationInput

func (ExternalOauthIntegrationMap) ElementType added in v0.5.0

func (ExternalOauthIntegrationMap) ToExternalOauthIntegrationMapOutput added in v0.5.0

func (i ExternalOauthIntegrationMap) ToExternalOauthIntegrationMapOutput() ExternalOauthIntegrationMapOutput

func (ExternalOauthIntegrationMap) ToExternalOauthIntegrationMapOutputWithContext added in v0.5.0

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

type ExternalOauthIntegrationMapInput added in v0.5.0

type ExternalOauthIntegrationMapInput interface {
	pulumi.Input

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

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

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

type ExternalOauthIntegrationMapOutput added in v0.5.0

type ExternalOauthIntegrationMapOutput struct{ *pulumi.OutputState }

func (ExternalOauthIntegrationMapOutput) ElementType added in v0.5.0

func (ExternalOauthIntegrationMapOutput) MapIndex added in v0.5.0

func (ExternalOauthIntegrationMapOutput) ToExternalOauthIntegrationMapOutput added in v0.5.0

func (o ExternalOauthIntegrationMapOutput) ToExternalOauthIntegrationMapOutput() ExternalOauthIntegrationMapOutput

func (ExternalOauthIntegrationMapOutput) ToExternalOauthIntegrationMapOutputWithContext added in v0.5.0

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

type ExternalOauthIntegrationOutput added in v0.5.0

type ExternalOauthIntegrationOutput struct{ *pulumi.OutputState }

func (ExternalOauthIntegrationOutput) ElementType added in v0.5.0

func (ExternalOauthIntegrationOutput) ToExternalOauthIntegrationOutput added in v0.5.0

func (o ExternalOauthIntegrationOutput) ToExternalOauthIntegrationOutput() ExternalOauthIntegrationOutput

func (ExternalOauthIntegrationOutput) ToExternalOauthIntegrationOutputWithContext added in v0.5.0

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

type ExternalOauthIntegrationState added in v0.5.0

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

func (ExternalOauthIntegrationState) ElementType added in v0.5.0

type ExternalTable

type ExternalTable struct {
	pulumi.CustomResourceState

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

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-snowflake/sdk/go/snowflake"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := snowflake.NewExternalTable(ctx, "externalTable", &snowflake.ExternalTableArgs{
			Columns: 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

type ExternalTableArgs

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

The set of arguments for constructing a ExternalTable resource.

func (ExternalTableArgs) ElementType

func (ExternalTableArgs) ElementType() reflect.Type

type ExternalTableArray

type ExternalTableArray []ExternalTableInput

func (ExternalTableArray) ElementType

func (ExternalTableArray) ElementType() reflect.Type

func (ExternalTableArray) ToExternalTableArrayOutput

func (i ExternalTableArray) ToExternalTableArrayOutput() ExternalTableArrayOutput

func (ExternalTableArray) ToExternalTableArrayOutputWithContext

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

type ExternalTableArrayInput

type ExternalTableArrayInput interface {
	pulumi.Input

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

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

ExternalTableArray{ ExternalTableArgs{...} }

type ExternalTableArrayOutput

type ExternalTableArrayOutput struct{ *pulumi.OutputState }

func (ExternalTableArrayOutput) ElementType

func (ExternalTableArrayOutput) ElementType() reflect.Type

func (ExternalTableArrayOutput) Index

func (ExternalTableArrayOutput) ToExternalTableArrayOutput

func (o ExternalTableArrayOutput) ToExternalTableArrayOutput() ExternalTableArrayOutput

func (ExternalTableArrayOutput) ToExternalTableArrayOutputWithContext

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

type ExternalTableColumn

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

type ExternalTableColumnArgs

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

func (ExternalTableColumnArgs) ElementType

func (ExternalTableColumnArgs) ElementType() reflect.Type

func (ExternalTableColumnArgs) ToExternalTableColumnOutput

func (i ExternalTableColumnArgs) ToExternalTableColumnOutput() ExternalTableColumnOutput

func (ExternalTableColumnArgs) ToExternalTableColumnOutputWithContext

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

type ExternalTableColumnArray

type ExternalTableColumnArray []ExternalTableColumnInput

func (ExternalTableColumnArray) ElementType

func (ExternalTableColumnArray) ElementType() reflect.Type

func (ExternalTableColumnArray) ToExternalTableColumnArrayOutput

func (i ExternalTableColumnArray) ToExternalTableColumnArrayOutput() ExternalTableColumnArrayOutput

func (ExternalTableColumnArray) ToExternalTableColumnArrayOutputWithContext

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

type ExternalTableColumnArrayInput

type ExternalTableColumnArrayInput interface {
	pulumi.Input

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

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

ExternalTableColumnArray{ ExternalTableColumnArgs{...} }

type ExternalTableColumnArrayOutput

type ExternalTableColumnArrayOutput struct{ *pulumi.OutputState }

func (ExternalTableColumnArrayOutput) ElementType

func (ExternalTableColumnArrayOutput) Index

func (ExternalTableColumnArrayOutput) ToExternalTableColumnArrayOutput

func (o ExternalTableColumnArrayOutput) ToExternalTableColumnArrayOutput() ExternalTableColumnArrayOutput

func (ExternalTableColumnArrayOutput) ToExternalTableColumnArrayOutputWithContext

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

type ExternalTableColumnInput

type ExternalTableColumnInput interface {
	pulumi.Input

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

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

ExternalTableColumnArgs{...}

type ExternalTableColumnOutput

type ExternalTableColumnOutput struct{ *pulumi.OutputState }

func (ExternalTableColumnOutput) As

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

func (ExternalTableColumnOutput) ElementType

func (ExternalTableColumnOutput) ElementType() reflect.Type

func (ExternalTableColumnOutput) Name

Column name

func (ExternalTableColumnOutput) ToExternalTableColumnOutput

func (o ExternalTableColumnOutput) ToExternalTableColumnOutput() ExternalTableColumnOutput

func (ExternalTableColumnOutput) ToExternalTableColumnOutputWithContext

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

func (ExternalTableColumnOutput) Type

Column type, e.g. VARIANT

type ExternalTableGrant

type ExternalTableGrant struct {
	pulumi.CustomResourceState

	// The name of the database containing the current or future external tables on which to grant privileges.
	DatabaseName pulumi.StringOutput `pulumi:"databaseName"`
	// 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

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

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

type ExternalTableState

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

func (ExternalTableState) ElementType

func (ExternalTableState) ElementType() reflect.Type

type ExternalTableTag added in v0.3.0

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

type ExternalTableTagArgs added in v0.3.0

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

func (ExternalTableTagArgs) ElementType added in v0.3.0

func (ExternalTableTagArgs) ElementType() reflect.Type

func (ExternalTableTagArgs) ToExternalTableTagOutput added in v0.3.0

func (i ExternalTableTagArgs) ToExternalTableTagOutput() ExternalTableTagOutput

func (ExternalTableTagArgs) ToExternalTableTagOutputWithContext added in v0.3.0

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

type ExternalTableTagArray added in v0.3.0

type ExternalTableTagArray []ExternalTableTagInput

func (ExternalTableTagArray) ElementType added in v0.3.0

func (ExternalTableTagArray) ElementType() reflect.Type

func (ExternalTableTagArray) ToExternalTableTagArrayOutput added in v0.3.0

func (i ExternalTableTagArray) ToExternalTableTagArrayOutput() ExternalTableTagArrayOutput

func (ExternalTableTagArray) ToExternalTableTagArrayOutputWithContext added in v0.3.0

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

type ExternalTableTagArrayInput added in v0.3.0

type ExternalTableTagArrayInput interface {
	pulumi.Input

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

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

ExternalTableTagArray{ ExternalTableTagArgs{...} }

type ExternalTableTagArrayOutput added in v0.3.0

type ExternalTableTagArrayOutput struct{ *pulumi.OutputState }

func (ExternalTableTagArrayOutput) ElementType added in v0.3.0

func (ExternalTableTagArrayOutput) Index added in v0.3.0

func (ExternalTableTagArrayOutput) ToExternalTableTagArrayOutput added in v0.3.0

func (o ExternalTableTagArrayOutput) ToExternalTableTagArrayOutput() ExternalTableTagArrayOutput

func (ExternalTableTagArrayOutput) ToExternalTableTagArrayOutputWithContext added in v0.3.0

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

type ExternalTableTagInput added in v0.3.0

type ExternalTableTagInput interface {
	pulumi.Input

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

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

ExternalTableTagArgs{...}

type ExternalTableTagOutput added in v0.3.0

type ExternalTableTagOutput struct{ *pulumi.OutputState }

func (ExternalTableTagOutput) Database added in v0.3.0

Name of the database that the tag was created in.

func (ExternalTableTagOutput) ElementType added in v0.3.0

func (ExternalTableTagOutput) ElementType() reflect.Type

func (ExternalTableTagOutput) Name added in v0.3.0

Tag name, e.g. department.

func (ExternalTableTagOutput) Schema added in v0.3.0

Name of the schema that the tag was created in.

func (ExternalTableTagOutput) ToExternalTableTagOutput added in v0.3.0

func (o ExternalTableTagOutput) ToExternalTableTagOutput() ExternalTableTagOutput

func (ExternalTableTagOutput) ToExternalTableTagOutputWithContext added in v0.3.0

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

func (ExternalTableTagOutput) Value added in v0.3.0

Tag value, e.g. marketing_info.

type 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

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

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

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

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 Function added in v0.1.3

type Function struct {
	pulumi.CustomResourceState

	// List of the arguments for the function
	Arguments FunctionArgumentArrayOutput `pulumi:"arguments"`
	// Specifies a comment for the function.
	Comment pulumi.StringPtrOutput `pulumi:"comment"`
	// The database in which to create the function. Don't use the | character.
	Database pulumi.StringOutput `pulumi:"database"`
	// the handler method for Java function.
	Handler pulumi.StringPtrOutput `pulumi:"handler"`
	// jar files to import for Java function.
	Imports pulumi.StringArrayOutput `pulumi:"imports"`
	// The language of the statement
	Language pulumi.StringPtrOutput `pulumi:"language"`
	// Specifies the identifier for the function; does not have to be unique for the schema in which the function is created. Don't use the | character.
	Name pulumi.StringOutput `pulumi:"name"`
	// Specifies the behavior of the function when called with null inputs.
	NullInputBehavior pulumi.StringPtrOutput `pulumi:"nullInputBehavior"`
	// Specifies the behavior of the function when returning results
	ReturnBehavior pulumi.StringPtrOutput `pulumi:"returnBehavior"`
	// The return type of the function
	ReturnType pulumi.StringOutput `pulumi:"returnType"`
	// The schema in which to create the function. Don't use the | character.
	Schema pulumi.StringOutput `pulumi:"schema"`
	// Specifies the javascript / java / sql code used to create the function.
	Statement pulumi.StringOutput `pulumi:"statement"`
	// the target path for compiled jar file for Java function.
	TargetPath pulumi.StringPtrOutput `pulumi:"targetPath"`
}

func GetFunction added in v0.1.3

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

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

func NewFunction added in v0.1.3

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

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

func (*Function) ElementType added in v0.1.3

func (*Function) ElementType() reflect.Type

func (*Function) ToFunctionOutput added in v0.1.3

func (i *Function) ToFunctionOutput() FunctionOutput

func (*Function) ToFunctionOutputWithContext added in v0.1.3

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

type FunctionArgs added in v0.1.3

type FunctionArgs struct {
	// List of the arguments for the function
	Arguments FunctionArgumentArrayInput
	// Specifies a comment for the function.
	Comment pulumi.StringPtrInput
	// The database in which to create the function. Don't use the | character.
	Database pulumi.StringInput
	// the handler method for Java function.
	Handler pulumi.StringPtrInput
	// jar files to import for Java function.
	Imports pulumi.StringArrayInput
	// The language of the statement
	Language pulumi.StringPtrInput
	// Specifies the identifier for the function; does not have to be unique for the schema in which the function is created. Don't use the | character.
	Name pulumi.StringPtrInput
	// Specifies the behavior of the function when called with null inputs.
	NullInputBehavior pulumi.StringPtrInput
	// Specifies the behavior of the function when returning results
	ReturnBehavior pulumi.StringPtrInput
	// The return type of the function
	ReturnType pulumi.StringInput
	// The schema in which to create the function. Don't use the | character.
	Schema pulumi.StringInput
	// Specifies the javascript / java / sql code used to create the function.
	Statement pulumi.StringInput
	// the target path for compiled jar file for Java function.
	TargetPath pulumi.StringPtrInput
}

The set of arguments for constructing a Function resource.

func (FunctionArgs) ElementType added in v0.1.3

func (FunctionArgs) ElementType() reflect.Type

type FunctionArgument added in v0.1.3

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

type FunctionArgumentArgs added in v0.1.3

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

func (FunctionArgumentArgs) ElementType added in v0.1.3

func (FunctionArgumentArgs) ElementType() reflect.Type

func (FunctionArgumentArgs) ToFunctionArgumentOutput added in v0.1.3

func (i FunctionArgumentArgs) ToFunctionArgumentOutput() FunctionArgumentOutput

func (FunctionArgumentArgs) ToFunctionArgumentOutputWithContext added in v0.1.3

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

type FunctionArgumentArray added in v0.1.3

type FunctionArgumentArray []FunctionArgumentInput

func (FunctionArgumentArray) ElementType added in v0.1.3

func (FunctionArgumentArray) ElementType() reflect.Type

func (FunctionArgumentArray) ToFunctionArgumentArrayOutput added in v0.1.3

func (i FunctionArgumentArray) ToFunctionArgumentArrayOutput() FunctionArgumentArrayOutput

func (FunctionArgumentArray) ToFunctionArgumentArrayOutputWithContext added in v0.1.3

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

type FunctionArgumentArrayInput added in v0.1.3

type FunctionArgumentArrayInput interface {
	pulumi.Input

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

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

FunctionArgumentArray{ FunctionArgumentArgs{...} }

type FunctionArgumentArrayOutput added in v0.1.3

type FunctionArgumentArrayOutput struct{ *pulumi.OutputState }

func (FunctionArgumentArrayOutput) ElementType added in v0.1.3

func (FunctionArgumentArrayOutput) Index added in v0.1.3

func (FunctionArgumentArrayOutput) ToFunctionArgumentArrayOutput added in v0.1.3

func (o FunctionArgumentArrayOutput) ToFunctionArgumentArrayOutput() FunctionArgumentArrayOutput

func (FunctionArgumentArrayOutput) ToFunctionArgumentArrayOutputWithContext added in v0.1.3

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

type FunctionArgumentInput added in v0.1.3

type FunctionArgumentInput interface {
	pulumi.Input

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

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

FunctionArgumentArgs{...}

type FunctionArgumentOutput added in v0.1.3

type FunctionArgumentOutput struct{ *pulumi.OutputState }

func (FunctionArgumentOutput) ElementType added in v0.1.3

func (FunctionArgumentOutput) ElementType() reflect.Type

func (FunctionArgumentOutput) Name added in v0.1.3

The argument name

func (FunctionArgumentOutput) ToFunctionArgumentOutput added in v0.1.3

func (o FunctionArgumentOutput) ToFunctionArgumentOutput() FunctionArgumentOutput

func (FunctionArgumentOutput) ToFunctionArgumentOutputWithContext added in v0.1.3

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

func (FunctionArgumentOutput) Type added in v0.1.3

The argument type

type FunctionArray added in v0.1.3

type FunctionArray []FunctionInput

func (FunctionArray) ElementType added in v0.1.3

func (FunctionArray) ElementType() reflect.Type

func (FunctionArray) ToFunctionArrayOutput added in v0.1.3

func (i FunctionArray) ToFunctionArrayOutput() FunctionArrayOutput

func (FunctionArray) ToFunctionArrayOutputWithContext added in v0.1.3

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

type FunctionArrayInput added in v0.1.3

type FunctionArrayInput interface {
	pulumi.Input

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

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

FunctionArray{ FunctionArgs{...} }

type FunctionArrayOutput added in v0.1.3

type FunctionArrayOutput struct{ *pulumi.OutputState }

func (FunctionArrayOutput) ElementType added in v0.1.3

func (FunctionArrayOutput) ElementType() reflect.Type

func (FunctionArrayOutput) Index added in v0.1.3

func (FunctionArrayOutput) ToFunctionArrayOutput added in v0.1.3

func (o FunctionArrayOutput) ToFunctionArrayOutput() FunctionArrayOutput

func (FunctionArrayOutput) ToFunctionArrayOutputWithContext added in v0.1.3

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

type FunctionGrant

type FunctionGrant struct {
	pulumi.CustomResourceState

	// List of the arguments for the function (must be present if function has arguments and 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

type FunctionGrantArgs

type FunctionGrantArgs struct {
	// List of the arguments for the function (must be present if function has arguments and 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

type FunctionGrantState

type FunctionGrantState struct {
	// List of the arguments for the function (must be present if function has arguments and 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 FunctionInput added in v0.1.3

type FunctionInput interface {
	pulumi.Input

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

type FunctionMap added in v0.1.3

type FunctionMap map[string]FunctionInput

func (FunctionMap) ElementType added in v0.1.3

func (FunctionMap) ElementType() reflect.Type

func (FunctionMap) ToFunctionMapOutput added in v0.1.3

func (i FunctionMap) ToFunctionMapOutput() FunctionMapOutput

func (FunctionMap) ToFunctionMapOutputWithContext added in v0.1.3

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

type FunctionMapInput added in v0.1.3

type FunctionMapInput interface {
	pulumi.Input

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

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

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

type FunctionMapOutput added in v0.1.3

type FunctionMapOutput struct{ *pulumi.OutputState }

func (FunctionMapOutput) ElementType added in v0.1.3

func (FunctionMapOutput) ElementType() reflect.Type

func (FunctionMapOutput) MapIndex added in v0.1.3

func (FunctionMapOutput) ToFunctionMapOutput added in v0.1.3

func (o FunctionMapOutput) ToFunctionMapOutput() FunctionMapOutput

func (FunctionMapOutput) ToFunctionMapOutputWithContext added in v0.1.3

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

type FunctionOutput added in v0.1.3

type FunctionOutput struct{ *pulumi.OutputState }

func (FunctionOutput) ElementType added in v0.1.3

func (FunctionOutput) ElementType() reflect.Type

func (FunctionOutput) ToFunctionOutput added in v0.1.3

func (o FunctionOutput) ToFunctionOutput() FunctionOutput

func (FunctionOutput) ToFunctionOutputWithContext added in v0.1.3

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

type FunctionState added in v0.1.3

type FunctionState struct {
	// List of the arguments for the function
	Arguments FunctionArgumentArrayInput
	// Specifies a comment for the function.
	Comment pulumi.StringPtrInput
	// The database in which to create the function. Don't use the | character.
	Database pulumi.StringPtrInput
	// the handler method for Java function.
	Handler pulumi.StringPtrInput
	// jar files to import for Java function.
	Imports pulumi.StringArrayInput
	// The language of the statement
	Language pulumi.StringPtrInput
	// Specifies the identifier for the function; does not have to be unique for the schema in which the function is created. Don't use the | character.
	Name pulumi.StringPtrInput
	// Specifies the behavior of the function when called with null inputs.
	NullInputBehavior pulumi.StringPtrInput
	// Specifies the behavior of the function when returning results
	ReturnBehavior pulumi.StringPtrInput
	// The return type of the function
	ReturnType pulumi.StringPtrInput
	// The schema in which to create the function. Don't use the | character.
	Schema pulumi.StringPtrInput
	// Specifies the javascript / java / sql code used to create the function.
	Statement pulumi.StringPtrInput
	// the target path for compiled jar file for Java function.
	TargetPath pulumi.StringPtrInput
}

func (FunctionState) ElementType added in v0.1.3

func (FunctionState) 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 GetDatabasesDatabase added in v0.5.0

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

type GetDatabasesDatabaseArgs added in v0.5.0

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

func (GetDatabasesDatabaseArgs) ElementType added in v0.5.0

func (GetDatabasesDatabaseArgs) ElementType() reflect.Type

func (GetDatabasesDatabaseArgs) ToGetDatabasesDatabaseOutput added in v0.5.0

func (i GetDatabasesDatabaseArgs) ToGetDatabasesDatabaseOutput() GetDatabasesDatabaseOutput

func (GetDatabasesDatabaseArgs) ToGetDatabasesDatabaseOutputWithContext added in v0.5.0

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

type GetDatabasesDatabaseArray added in v0.5.0

type GetDatabasesDatabaseArray []GetDatabasesDatabaseInput

func (GetDatabasesDatabaseArray) ElementType added in v0.5.0

func (GetDatabasesDatabaseArray) ElementType() reflect.Type

func (GetDatabasesDatabaseArray) ToGetDatabasesDatabaseArrayOutput added in v0.5.0

func (i GetDatabasesDatabaseArray) ToGetDatabasesDatabaseArrayOutput() GetDatabasesDatabaseArrayOutput

func (GetDatabasesDatabaseArray) ToGetDatabasesDatabaseArrayOutputWithContext added in v0.5.0

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

type GetDatabasesDatabaseArrayInput added in v0.5.0

type GetDatabasesDatabaseArrayInput interface {
	pulumi.Input

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

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

GetDatabasesDatabaseArray{ GetDatabasesDatabaseArgs{...} }

type GetDatabasesDatabaseArrayOutput added in v0.5.0

type GetDatabasesDatabaseArrayOutput struct{ *pulumi.OutputState }

func (GetDatabasesDatabaseArrayOutput) ElementType added in v0.5.0

func (GetDatabasesDatabaseArrayOutput) Index added in v0.5.0

func (GetDatabasesDatabaseArrayOutput) ToGetDatabasesDatabaseArrayOutput added in v0.5.0

func (o GetDatabasesDatabaseArrayOutput) ToGetDatabasesDatabaseArrayOutput() GetDatabasesDatabaseArrayOutput

func (GetDatabasesDatabaseArrayOutput) ToGetDatabasesDatabaseArrayOutputWithContext added in v0.5.0

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

type GetDatabasesDatabaseInput added in v0.5.0

type GetDatabasesDatabaseInput interface {
	pulumi.Input

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

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

GetDatabasesDatabaseArgs{...}

type GetDatabasesDatabaseOutput added in v0.5.0

type GetDatabasesDatabaseOutput struct{ *pulumi.OutputState }

func (GetDatabasesDatabaseOutput) Comment added in v0.5.0

func (GetDatabasesDatabaseOutput) CreatedOn added in v0.5.0

func (GetDatabasesDatabaseOutput) ElementType added in v0.5.0

func (GetDatabasesDatabaseOutput) ElementType() reflect.Type

func (GetDatabasesDatabaseOutput) IsCurrent added in v0.5.0

func (GetDatabasesDatabaseOutput) IsDefault added in v0.5.0

func (GetDatabasesDatabaseOutput) Name added in v0.5.0

func (GetDatabasesDatabaseOutput) Options added in v0.5.0

func (GetDatabasesDatabaseOutput) Origin added in v0.5.0

func (GetDatabasesDatabaseOutput) Owner added in v0.5.0

func (GetDatabasesDatabaseOutput) RetentionTime added in v0.5.0

func (o GetDatabasesDatabaseOutput) RetentionTime() pulumi.IntOutput

func (GetDatabasesDatabaseOutput) ToGetDatabasesDatabaseOutput added in v0.5.0

func (o GetDatabasesDatabaseOutput) ToGetDatabasesDatabaseOutput() GetDatabasesDatabaseOutput

func (GetDatabasesDatabaseOutput) ToGetDatabasesDatabaseOutputWithContext added in v0.5.0

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

type GetDatabasesResult added in v0.5.0

type GetDatabasesResult struct {
	// Snowflake databases
	Databases []GetDatabasesDatabase `pulumi:"databases"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
}

A collection of values returned by getDatabases.

func GetDatabases added in v0.5.0

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

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-snowflake/sdk/go/snowflake"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := snowflake.GetDatabases(ctx, nil, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetExternalFunctionsArgs added in v0.1.3

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

A collection of arguments for invoking getExternalFunctions.

type GetExternalFunctionsExternalFunction added in v0.1.3

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

type GetExternalFunctionsExternalFunctionArgs added in v0.1.3

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

func (GetExternalFunctionsExternalFunctionArgs) ElementType added in v0.1.3

func (GetExternalFunctionsExternalFunctionArgs) ToGetExternalFunctionsExternalFunctionOutput added in v0.1.3

func (i GetExternalFunctionsExternalFunctionArgs) ToGetExternalFunctionsExternalFunctionOutput() GetExternalFunctionsExternalFunctionOutput

func (GetExternalFunctionsExternalFunctionArgs) ToGetExternalFunctionsExternalFunctionOutputWithContext added in v0.1.3

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

type GetExternalFunctionsExternalFunctionArray added in v0.1.3

type GetExternalFunctionsExternalFunctionArray []GetExternalFunctionsExternalFunctionInput

func (GetExternalFunctionsExternalFunctionArray) ElementType added in v0.1.3

func (GetExternalFunctionsExternalFunctionArray) ToGetExternalFunctionsExternalFunctionArrayOutput added in v0.1.3

func (i GetExternalFunctionsExternalFunctionArray) ToGetExternalFunctionsExternalFunctionArrayOutput() GetExternalFunctionsExternalFunctionArrayOutput

func (GetExternalFunctionsExternalFunctionArray) ToGetExternalFunctionsExternalFunctionArrayOutputWithContext added in v0.1.3

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

type GetExternalFunctionsExternalFunctionArrayInput added in v0.1.3

type GetExternalFunctionsExternalFunctionArrayInput interface {
	pulumi.Input

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

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

GetExternalFunctionsExternalFunctionArray{ GetExternalFunctionsExternalFunctionArgs{...} }

type GetExternalFunctionsExternalFunctionArrayOutput added in v0.1.3

type GetExternalFunctionsExternalFunctionArrayOutput struct{ *pulumi.OutputState }

func (GetExternalFunctionsExternalFunctionArrayOutput) ElementType added in v0.1.3

func (GetExternalFunctionsExternalFunctionArrayOutput) Index added in v0.1.3

func (GetExternalFunctionsExternalFunctionArrayOutput) ToGetExternalFunctionsExternalFunctionArrayOutput added in v0.1.3

func (o GetExternalFunctionsExternalFunctionArrayOutput) ToGetExternalFunctionsExternalFunctionArrayOutput() GetExternalFunctionsExternalFunctionArrayOutput

func (GetExternalFunctionsExternalFunctionArrayOutput) ToGetExternalFunctionsExternalFunctionArrayOutputWithContext added in v0.1.3

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

type GetExternalFunctionsExternalFunctionInput added in v0.1.3

type GetExternalFunctionsExternalFunctionInput interface {
	pulumi.Input

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

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

GetExternalFunctionsExternalFunctionArgs{...}

type GetExternalFunctionsExternalFunctionOutput added in v0.1.3

type GetExternalFunctionsExternalFunctionOutput struct{ *pulumi.OutputState }

func (GetExternalFunctionsExternalFunctionOutput) Comment added in v0.1.3

func (GetExternalFunctionsExternalFunctionOutput) Database added in v0.1.3

The database from which to return the schemas from.

func (GetExternalFunctionsExternalFunctionOutput) ElementType added in v0.1.3

func (GetExternalFunctionsExternalFunctionOutput) Language added in v0.1.3

func (GetExternalFunctionsExternalFunctionOutput) Name added in v0.1.3

func (GetExternalFunctionsExternalFunctionOutput) Schema added in v0.1.3

The schema from which to return the external functions from.

func (GetExternalFunctionsExternalFunctionOutput) ToGetExternalFunctionsExternalFunctionOutput added in v0.1.3

func (o GetExternalFunctionsExternalFunctionOutput) ToGetExternalFunctionsExternalFunctionOutput() GetExternalFunctionsExternalFunctionOutput

func (GetExternalFunctionsExternalFunctionOutput) ToGetExternalFunctionsExternalFunctionOutputWithContext added in v0.1.3

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

type GetExternalFunctionsOutputArgs added in v0.2.0

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

A collection of arguments for invoking getExternalFunctions.

func (GetExternalFunctionsOutputArgs) ElementType added in v0.2.0

type GetExternalFunctionsResult added in v0.1.3

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

A collection of values returned by getExternalFunctions.

func GetExternalFunctions added in v0.1.3

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

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-snowflake/sdk/go/snowflake"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := snowflake.GetExternalFunctions(ctx, &GetExternalFunctionsArgs{
			Database: "MYDB",
			Schema:   "MYSCHEMA",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetExternalFunctionsResultOutput added in v0.2.0

type GetExternalFunctionsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getExternalFunctions.

func GetExternalFunctionsOutput added in v0.2.0

func (GetExternalFunctionsResultOutput) Database added in v0.2.0

The database from which to return the schemas from.

func (GetExternalFunctionsResultOutput) ElementType added in v0.2.0

func (GetExternalFunctionsResultOutput) ExternalFunctions added in v0.2.0

The external functions in the schema

func (GetExternalFunctionsResultOutput) Id added in v0.2.0

The provider-assigned unique ID for this managed resource.

func (GetExternalFunctionsResultOutput) Schema added in v0.2.0

The schema from which to return the external functions from.

func (GetExternalFunctionsResultOutput) ToGetExternalFunctionsResultOutput added in v0.2.0

func (o GetExternalFunctionsResultOutput) ToGetExternalFunctionsResultOutput() GetExternalFunctionsResultOutput

func (GetExternalFunctionsResultOutput) ToGetExternalFunctionsResultOutputWithContext added in v0.2.0

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

type GetExternalTablesArgs added in v0.1.3

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

A collection of arguments for invoking getExternalTables.

type GetExternalTablesExternalTable added in v0.1.3

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

type GetExternalTablesExternalTableArgs added in v0.1.3

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

func (GetExternalTablesExternalTableArgs) ElementType added in v0.1.3

func (GetExternalTablesExternalTableArgs) ToGetExternalTablesExternalTableOutput added in v0.1.3

func (i GetExternalTablesExternalTableArgs) ToGetExternalTablesExternalTableOutput() GetExternalTablesExternalTableOutput

func (GetExternalTablesExternalTableArgs) ToGetExternalTablesExternalTableOutputWithContext added in v0.1.3

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

type GetExternalTablesExternalTableArray added in v0.1.3

type GetExternalTablesExternalTableArray []GetExternalTablesExternalTableInput

func (GetExternalTablesExternalTableArray) ElementType added in v0.1.3

func (GetExternalTablesExternalTableArray) ToGetExternalTablesExternalTableArrayOutput added in v0.1.3

func (i GetExternalTablesExternalTableArray) ToGetExternalTablesExternalTableArrayOutput() GetExternalTablesExternalTableArrayOutput

func (GetExternalTablesExternalTableArray) ToGetExternalTablesExternalTableArrayOutputWithContext added in v0.1.3

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

type GetExternalTablesExternalTableArrayInput added in v0.1.3

type GetExternalTablesExternalTableArrayInput interface {
	pulumi.Input

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

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

GetExternalTablesExternalTableArray{ GetExternalTablesExternalTableArgs{...} }

type GetExternalTablesExternalTableArrayOutput added in v0.1.3

type GetExternalTablesExternalTableArrayOutput struct{ *pulumi.OutputState }

func (GetExternalTablesExternalTableArrayOutput) ElementType added in v0.1.3

func (GetExternalTablesExternalTableArrayOutput) Index added in v0.1.3

func (GetExternalTablesExternalTableArrayOutput) ToGetExternalTablesExternalTableArrayOutput added in v0.1.3

func (o GetExternalTablesExternalTableArrayOutput) ToGetExternalTablesExternalTableArrayOutput() GetExternalTablesExternalTableArrayOutput

func (GetExternalTablesExternalTableArrayOutput) ToGetExternalTablesExternalTableArrayOutputWithContext added in v0.1.3

func (o GetExternalTablesExternalTableArrayOutput) ToGetExternalTablesExternalTableArrayOutputWithContext(ctx context.Context) GetExternalTablesExternalTableArrayOutput

type GetExternalTablesExternalTableInput added in v0.1.3

type GetExternalTablesExternalTableInput interface {
	pulumi.Input

	ToGetExternalTablesExternalTableOutput() GetExternalTablesExternalTableOutput
	ToGetExternalTablesExternalTableOutputWithContext(context.Context) GetExternalTablesExternalTableOutput
}

GetExternalTablesExternalTableInput is an input type that accepts GetExternalTablesExternalTableArgs and GetExternalTablesExternalTableOutput values. You can construct a concrete instance of `GetExternalTablesExternalTableInput` via:

GetExternalTablesExternalTableArgs{...}

type GetExternalTablesExternalTableOutput added in v0.1.3

type GetExternalTablesExternalTableOutput struct{ *pulumi.OutputState }

func (GetExternalTablesExternalTableOutput) Comment added in v0.1.3

func (GetExternalTablesExternalTableOutput) Database added in v0.1.3

The database from which to return the schemas from.

func (GetExternalTablesExternalTableOutput) ElementType added in v0.1.3

func (GetExternalTablesExternalTableOutput) Name added in v0.1.3

func (GetExternalTablesExternalTableOutput) Schema added in v0.1.3

The schema from which to return the external tables from.

func (GetExternalTablesExternalTableOutput) ToGetExternalTablesExternalTableOutput added in v0.1.3

func (o GetExternalTablesExternalTableOutput) ToGetExternalTablesExternalTableOutput() GetExternalTablesExternalTableOutput

func (GetExternalTablesExternalTableOutput) ToGetExternalTablesExternalTableOutputWithContext added in v0.1.3

func (o GetExternalTablesExternalTableOutput) ToGetExternalTablesExternalTableOutputWithContext(ctx context.Context) GetExternalTablesExternalTableOutput

type GetExternalTablesOutputArgs added in v0.2.0

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

A collection of arguments for invoking getExternalTables.

func (GetExternalTablesOutputArgs) ElementType added in v0.2.0

type GetExternalTablesResult added in v0.1.3

type GetExternalTablesResult struct {
	// The database from which to return the schemas from.
	Database string `pulumi:"database"`
	// The external tables in the schema
	ExternalTables []GetExternalTablesExternalTable `pulumi:"externalTables"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The schema from which to return the external tables from.
	Schema string `pulumi:"schema"`
}

A collection of values returned by getExternalTables.

func GetExternalTables added in v0.1.3

func GetExternalTables(ctx *pulumi.Context, args *GetExternalTablesArgs, opts ...pulumi.InvokeOption) (*GetExternalTablesResult, error)

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-snowflake/sdk/go/snowflake"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := snowflake.GetExternalTables(ctx, &GetExternalTablesArgs{
			Database: "MYDB",
			Schema:   "MYSCHEMA",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetExternalTablesResultOutput added in v0.2.0

type GetExternalTablesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getExternalTables.

func GetExternalTablesOutput added in v0.2.0

func (GetExternalTablesResultOutput) Database added in v0.2.0

The database from which to return the schemas from.

func (GetExternalTablesResultOutput) ElementType added in v0.2.0

func (GetExternalTablesResultOutput) ExternalTables added in v0.2.0

The external tables in the schema

func (GetExternalTablesResultOutput) Id added in v0.2.0

The provider-assigned unique ID for this managed resource.

func (GetExternalTablesResultOutput) Schema added in v0.2.0

The schema from which to return the external tables from.

func (GetExternalTablesResultOutput) ToGetExternalTablesResultOutput added in v0.2.0

func (o GetExternalTablesResultOutput) ToGetExternalTablesResultOutput() GetExternalTablesResultOutput

func (GetExternalTablesResultOutput) ToGetExternalTablesResultOutputWithContext added in v0.2.0

func (o GetExternalTablesResultOutput) ToGetExternalTablesResultOutputWithContext(ctx context.Context) GetExternalTablesResultOutput

type GetFileFormatsArgs added in v0.1.3

type GetFileFormatsArgs struct {
	// The database from which to return the schemas from.
	Database string `pulumi:"database"`
	// The schema from which to return the file formats from.
	Schema string `pulumi:"schema"`
}

A collection of arguments for invoking getFileFormats.

type GetFileFormatsFileFormat added in v0.1.3

type GetFileFormatsFileFormat struct {
	Comment string `pulumi:"comment"`
	// The database from which to return the schemas from.
	Database   string `pulumi:"database"`
	FormatType string `pulumi:"formatType"`
	Name       string `pulumi:"name"`
	// The schema from which to return the file formats from.
	Schema string `pulumi:"schema"`
}

type GetFileFormatsFileFormatArgs added in v0.1.3

type GetFileFormatsFileFormatArgs struct {
	Comment pulumi.StringInput `pulumi:"comment"`
	// The database from which to return the schemas from.
	Database   pulumi.StringInput `pulumi:"database"`
	FormatType pulumi.StringInput `pulumi:"formatType"`
	Name       pulumi.StringInput `pulumi:"name"`
	// The schema from which to return the file formats from.
	Schema pulumi.StringInput `pulumi:"schema"`
}

func (GetFileFormatsFileFormatArgs) ElementType added in v0.1.3

func (GetFileFormatsFileFormatArgs) ToGetFileFormatsFileFormatOutput added in v0.1.3

func (i GetFileFormatsFileFormatArgs) ToGetFileFormatsFileFormatOutput() GetFileFormatsFileFormatOutput

func (GetFileFormatsFileFormatArgs) ToGetFileFormatsFileFormatOutputWithContext added in v0.1.3

func (i GetFileFormatsFileFormatArgs) ToGetFileFormatsFileFormatOutputWithContext(ctx context.Context) GetFileFormatsFileFormatOutput

type GetFileFormatsFileFormatArray added in v0.1.3

type GetFileFormatsFileFormatArray []GetFileFormatsFileFormatInput

func (GetFileFormatsFileFormatArray) ElementType added in v0.1.3

func (GetFileFormatsFileFormatArray) ToGetFileFormatsFileFormatArrayOutput added in v0.1.3

func (i GetFileFormatsFileFormatArray) ToGetFileFormatsFileFormatArrayOutput() GetFileFormatsFileFormatArrayOutput

func (GetFileFormatsFileFormatArray) ToGetFileFormatsFileFormatArrayOutputWithContext added in v0.1.3

func (i GetFileFormatsFileFormatArray) ToGetFileFormatsFileFormatArrayOutputWithContext(ctx context.Context) GetFileFormatsFileFormatArrayOutput

type GetFileFormatsFileFormatArrayInput added in v0.1.3

type GetFileFormatsFileFormatArrayInput interface {
	pulumi.Input

	ToGetFileFormatsFileFormatArrayOutput() GetFileFormatsFileFormatArrayOutput
	ToGetFileFormatsFileFormatArrayOutputWithContext(context.Context) GetFileFormatsFileFormatArrayOutput
}

GetFileFormatsFileFormatArrayInput is an input type that accepts GetFileFormatsFileFormatArray and GetFileFormatsFileFormatArrayOutput values. You can construct a concrete instance of `GetFileFormatsFileFormatArrayInput` via:

GetFileFormatsFileFormatArray{ GetFileFormatsFileFormatArgs{...} }

type GetFileFormatsFileFormatArrayOutput added in v0.1.3

type GetFileFormatsFileFormatArrayOutput struct{ *pulumi.OutputState }

func (GetFileFormatsFileFormatArrayOutput) ElementType added in v0.1.3

func (GetFileFormatsFileFormatArrayOutput) Index added in v0.1.3

func (GetFileFormatsFileFormatArrayOutput) ToGetFileFormatsFileFormatArrayOutput added in v0.1.3

func (o GetFileFormatsFileFormatArrayOutput) ToGetFileFormatsFileFormatArrayOutput() GetFileFormatsFileFormatArrayOutput

func (GetFileFormatsFileFormatArrayOutput) ToGetFileFormatsFileFormatArrayOutputWithContext added in v0.1.3

func (o GetFileFormatsFileFormatArrayOutput) ToGetFileFormatsFileFormatArrayOutputWithContext(ctx context.Context) GetFileFormatsFileFormatArrayOutput

type GetFileFormatsFileFormatInput added in v0.1.3

type GetFileFormatsFileFormatInput interface {
	pulumi.Input

	ToGetFileFormatsFileFormatOutput() GetFileFormatsFileFormatOutput
	ToGetFileFormatsFileFormatOutputWithContext(context.Context) GetFileFormatsFileFormatOutput
}

GetFileFormatsFileFormatInput is an input type that accepts GetFileFormatsFileFormatArgs and GetFileFormatsFileFormatOutput values. You can construct a concrete instance of `GetFileFormatsFileFormatInput` via:

GetFileFormatsFileFormatArgs{...}

type GetFileFormatsFileFormatOutput added in v0.1.3

type GetFileFormatsFileFormatOutput struct{ *pulumi.OutputState }

func (GetFileFormatsFileFormatOutput) Comment added in v0.1.3

func (GetFileFormatsFileFormatOutput) Database added in v0.1.3

The database from which to return the schemas from.

func (GetFileFormatsFileFormatOutput) ElementType added in v0.1.3

func (GetFileFormatsFileFormatOutput) FormatType added in v0.1.3

func (GetFileFormatsFileFormatOutput) Name added in v0.1.3

func (GetFileFormatsFileFormatOutput) Schema added in v0.1.3

The schema from which to return the file formats from.

func (GetFileFormatsFileFormatOutput) ToGetFileFormatsFileFormatOutput added in v0.1.3

func (o GetFileFormatsFileFormatOutput) ToGetFileFormatsFileFormatOutput() GetFileFormatsFileFormatOutput

func (GetFileFormatsFileFormatOutput) ToGetFileFormatsFileFormatOutputWithContext added in v0.1.3

func (o GetFileFormatsFileFormatOutput) ToGetFileFormatsFileFormatOutputWithContext(ctx context.Context) GetFileFormatsFileFormatOutput

type GetFileFormatsOutputArgs added in v0.2.0

type GetFileFormatsOutputArgs struct {
	// The database from which to return the schemas from.
	Database pulumi.StringInput `pulumi:"database"`
	// The schema from which to return the file formats from.
	Schema pulumi.StringInput `pulumi:"schema"`
}

A collection of arguments for invoking getFileFormats.

func (GetFileFormatsOutputArgs) ElementType added in v0.2.0

func (GetFileFormatsOutputArgs) ElementType() reflect.Type

type GetFileFormatsResult added in v0.1.3

type GetFileFormatsResult struct {
	// The database from which to return the schemas from.
	Database string `pulumi:"database"`
	// The file formats in the schema
	FileFormats []GetFileFormatsFileFormat `pulumi:"fileFormats"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The schema from which to return the file formats from.
	Schema string `pulumi:"schema"`
}

A collection of values returned by getFileFormats.

func GetFileFormats added in v0.1.3

func GetFileFormats(ctx *pulumi.Context, args *GetFileFormatsArgs, opts ...pulumi.InvokeOption) (*GetFileFormatsResult, error)

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-snowflake/sdk/go/snowflake"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := snowflake.GetFileFormats(ctx, &GetFileFormatsArgs{
			Database: "MYDB",
			Schema:   "MYSCHEMA",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetFileFormatsResultOutput added in v0.2.0

type GetFileFormatsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getFileFormats.

func GetFileFormatsOutput added in v0.2.0

func GetFileFormatsOutput(ctx *pulumi.Context, args GetFileFormatsOutputArgs, opts ...pulumi.InvokeOption) GetFileFormatsResultOutput

func (GetFileFormatsResultOutput) Database added in v0.2.0

The database from which to return the schemas from.

func (GetFileFormatsResultOutput) ElementType added in v0.2.0

func (GetFileFormatsResultOutput) ElementType() reflect.Type

func (GetFileFormatsResultOutput) FileFormats added in v0.2.0

The file formats in the schema

func (GetFileFormatsResultOutput) Id added in v0.2.0

The provider-assigned unique ID for this managed resource.

func (GetFileFormatsResultOutput) Schema added in v0.2.0

The schema from which to return the file formats from.

func (GetFileFormatsResultOutput) ToGetFileFormatsResultOutput added in v0.2.0

func (o GetFileFormatsResultOutput) ToGetFileFormatsResultOutput() GetFileFormatsResultOutput

func (GetFileFormatsResultOutput) ToGetFileFormatsResultOutputWithContext added in v0.2.0

func (o GetFileFormatsResultOutput) ToGetFileFormatsResultOutputWithContext(ctx context.Context) GetFileFormatsResultOutput

type GetFunctionsArgs added in v0.1.3

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

A collection of arguments for invoking getFunctions.

type GetFunctionsFunction added in v0.1.3

type GetFunctionsFunction struct {
	ArgumentTypes []string `pulumi:"argumentTypes"`
	Comment       string   `pulumi:"comment"`
	// The database from which to return the schemas from.
	Database   string `pulumi:"database"`
	Name       string `pulumi:"name"`
	ReturnType string `pulumi:"returnType"`
	// The schema from which to return the functions from.
	Schema string `pulumi:"schema"`
}

type GetFunctionsFunctionArgs added in v0.1.3

type GetFunctionsFunctionArgs struct {
	ArgumentTypes pulumi.StringArrayInput `pulumi:"argumentTypes"`
	Comment       pulumi.StringInput      `pulumi:"comment"`
	// The database from which to return the schemas from.
	Database   pulumi.StringInput `pulumi:"database"`
	Name       pulumi.StringInput `pulumi:"name"`
	ReturnType pulumi.StringInput `pulumi:"returnType"`
	// The schema from which to return the functions from.
	Schema pulumi.StringInput `pulumi:"schema"`
}

func (GetFunctionsFunctionArgs) ElementType added in v0.1.3

func (GetFunctionsFunctionArgs) ElementType() reflect.Type

func (GetFunctionsFunctionArgs) ToGetFunctionsFunctionOutput added in v0.1.3

func (i GetFunctionsFunctionArgs) ToGetFunctionsFunctionOutput() GetFunctionsFunctionOutput

func (GetFunctionsFunctionArgs) ToGetFunctionsFunctionOutputWithContext added in v0.1.3

func (i GetFunctionsFunctionArgs) ToGetFunctionsFunctionOutputWithContext(ctx context.Context) GetFunctionsFunctionOutput

type GetFunctionsFunctionArray added in v0.1.3

type GetFunctionsFunctionArray []GetFunctionsFunctionInput

func (GetFunctionsFunctionArray) ElementType added in v0.1.3

func (GetFunctionsFunctionArray) ElementType() reflect.Type

func (GetFunctionsFunctionArray) ToGetFunctionsFunctionArrayOutput added in v0.1.3

func (i GetFunctionsFunctionArray) ToGetFunctionsFunctionArrayOutput() GetFunctionsFunctionArrayOutput

func (GetFunctionsFunctionArray) ToGetFunctionsFunctionArrayOutputWithContext added in v0.1.3

func (i GetFunctionsFunctionArray) ToGetFunctionsFunctionArrayOutputWithContext(ctx context.Context) GetFunctionsFunctionArrayOutput

type GetFunctionsFunctionArrayInput added in v0.1.3

type GetFunctionsFunctionArrayInput interface {
	pulumi.Input

	ToGetFunctionsFunctionArrayOutput() GetFunctionsFunctionArrayOutput
	ToGetFunctionsFunctionArrayOutputWithContext(context.Context) GetFunctionsFunctionArrayOutput
}

GetFunctionsFunctionArrayInput is an input type that accepts GetFunctionsFunctionArray and GetFunctionsFunctionArrayOutput values. You can construct a concrete instance of `GetFunctionsFunctionArrayInput` via:

GetFunctionsFunctionArray{ GetFunctionsFunctionArgs{...} }

type GetFunctionsFunctionArrayOutput added in v0.1.3

type GetFunctionsFunctionArrayOutput struct{ *pulumi.OutputState }

func (GetFunctionsFunctionArrayOutput) ElementType added in v0.1.3

func (GetFunctionsFunctionArrayOutput) Index added in v0.1.3

func (GetFunctionsFunctionArrayOutput) ToGetFunctionsFunctionArrayOutput added in v0.1.3

func (o GetFunctionsFunctionArrayOutput) ToGetFunctionsFunctionArrayOutput() GetFunctionsFunctionArrayOutput

func (GetFunctionsFunctionArrayOutput) ToGetFunctionsFunctionArrayOutputWithContext added in v0.1.3

func (o GetFunctionsFunctionArrayOutput) ToGetFunctionsFunctionArrayOutputWithContext(ctx context.Context) GetFunctionsFunctionArrayOutput

type GetFunctionsFunctionInput added in v0.1.3

type GetFunctionsFunctionInput interface {
	pulumi.Input

	ToGetFunctionsFunctionOutput() GetFunctionsFunctionOutput
	ToGetFunctionsFunctionOutputWithContext(context.Context) GetFunctionsFunctionOutput
}

GetFunctionsFunctionInput is an input type that accepts GetFunctionsFunctionArgs and GetFunctionsFunctionOutput values. You can construct a concrete instance of `GetFunctionsFunctionInput` via:

GetFunctionsFunctionArgs{...}

type GetFunctionsFunctionOutput added in v0.1.3

type GetFunctionsFunctionOutput struct{ *pulumi.OutputState }

func (GetFunctionsFunctionOutput) ArgumentTypes added in v0.1.3

func (GetFunctionsFunctionOutput) Comment added in v0.1.3

func (GetFunctionsFunctionOutput) Database added in v0.1.3

The database from which to return the schemas from.

func (GetFunctionsFunctionOutput) ElementType added in v0.1.3

func (GetFunctionsFunctionOutput) ElementType() reflect.Type

func (GetFunctionsFunctionOutput) Name added in v0.1.3

func (GetFunctionsFunctionOutput) ReturnType added in v0.1.3

func (GetFunctionsFunctionOutput) Schema added in v0.1.3

The schema from which to return the functions from.

func (GetFunctionsFunctionOutput) ToGetFunctionsFunctionOutput added in v0.1.3

func (o GetFunctionsFunctionOutput) ToGetFunctionsFunctionOutput() GetFunctionsFunctionOutput

func (GetFunctionsFunctionOutput) ToGetFunctionsFunctionOutputWithContext added in v0.1.3

func (o GetFunctionsFunctionOutput) ToGetFunctionsFunctionOutputWithContext(ctx context.Context) GetFunctionsFunctionOutput

type GetFunctionsOutputArgs added in v0.2.0

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

A collection of arguments for invoking getFunctions.

func (GetFunctionsOutputArgs) ElementType added in v0.2.0

func (GetFunctionsOutputArgs) ElementType() reflect.Type

type GetFunctionsResult added in v0.1.3

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

A collection of values returned by getFunctions.

func GetFunctions added in v0.1.3

func GetFunctions(ctx *pulumi.Context, args *GetFunctionsArgs, opts ...pulumi.InvokeOption) (*GetFunctionsResult, error)

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-snowflake/sdk/go/snowflake"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := snowflake.GetFunctions(ctx, &GetFunctionsArgs{
			Database: "MYDB",
			Schema:   "MYSCHEMA",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetFunctionsResultOutput added in v0.2.0

type GetFunctionsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getFunctions.

func GetFunctionsOutput added in v0.2.0

func GetFunctionsOutput(ctx *pulumi.Context, args GetFunctionsOutputArgs, opts ...pulumi.InvokeOption) GetFunctionsResultOutput

func (GetFunctionsResultOutput) Database added in v0.2.0

The database from which to return the schemas from.

func (GetFunctionsResultOutput) ElementType added in v0.2.0

func (GetFunctionsResultOutput) ElementType() reflect.Type

func (GetFunctionsResultOutput) Functions added in v0.2.0

The functions in the schema

func (GetFunctionsResultOutput) Id added in v0.2.0

The provider-assigned unique ID for this managed resource.

func (GetFunctionsResultOutput) Schema added in v0.2.0

The schema from which to return the functions from.

func (GetFunctionsResultOutput) ToGetFunctionsResultOutput added in v0.2.0

func (o GetFunctionsResultOutput) ToGetFunctionsResultOutput() GetFunctionsResultOutput

func (GetFunctionsResultOutput) ToGetFunctionsResultOutputWithContext added in v0.2.0

func (o GetFunctionsResultOutput) ToGetFunctionsResultOutputWithContext(ctx context.Context) GetFunctionsResultOutput

type GetMaskingPoliciesArgs added in v0.1.3

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

A collection of arguments for invoking getMaskingPolicies.

type GetMaskingPoliciesMaskingPolicy added in v0.1.3

type GetMaskingPoliciesMaskingPolicy struct {
	Comment string `pulumi:"comment"`
	// The database from which to return the schemas from.
	Database string `pulumi:"database"`
	Kind     string `pulumi:"kind"`
	Name     string `pulumi:"name"`
	// The schema from which to return the maskingPolicies from.
	Schema string `pulumi:"schema"`
}

type GetMaskingPoliciesMaskingPolicyArgs added in v0.1.3

type GetMaskingPoliciesMaskingPolicyArgs struct {
	Comment pulumi.StringInput `pulumi:"comment"`
	// The database from which to return the schemas from.
	Database pulumi.StringInput `pulumi:"database"`
	Kind     pulumi.StringInput `pulumi:"kind"`
	Name     pulumi.StringInput `pulumi:"name"`
	// The schema from which to return the maskingPolicies from.
	Schema pulumi.StringInput `pulumi:"schema"`
}

func (GetMaskingPoliciesMaskingPolicyArgs) ElementType added in v0.1.3

func (GetMaskingPoliciesMaskingPolicyArgs) ToGetMaskingPoliciesMaskingPolicyOutput added in v0.1.3

func (i GetMaskingPoliciesMaskingPolicyArgs) ToGetMaskingPoliciesMaskingPolicyOutput() GetMaskingPoliciesMaskingPolicyOutput

func (GetMaskingPoliciesMaskingPolicyArgs) ToGetMaskingPoliciesMaskingPolicyOutputWithContext added in v0.1.3

func (i GetMaskingPoliciesMaskingPolicyArgs) ToGetMaskingPoliciesMaskingPolicyOutputWithContext(ctx context.Context) GetMaskingPoliciesMaskingPolicyOutput

type GetMaskingPoliciesMaskingPolicyArray added in v0.1.3

type GetMaskingPoliciesMaskingPolicyArray []GetMaskingPoliciesMaskingPolicyInput

func (GetMaskingPoliciesMaskingPolicyArray) ElementType added in v0.1.3

func (GetMaskingPoliciesMaskingPolicyArray) ToGetMaskingPoliciesMaskingPolicyArrayOutput added in v0.1.3

func (i GetMaskingPoliciesMaskingPolicyArray) ToGetMaskingPoliciesMaskingPolicyArrayOutput() GetMaskingPoliciesMaskingPolicyArrayOutput

func (GetMaskingPoliciesMaskingPolicyArray) ToGetMaskingPoliciesMaskingPolicyArrayOutputWithContext added in v0.1.3

func (i GetMaskingPoliciesMaskingPolicyArray) ToGetMaskingPoliciesMaskingPolicyArrayOutputWithContext(ctx context.Context) GetMaskingPoliciesMaskingPolicyArrayOutput

type GetMaskingPoliciesMaskingPolicyArrayInput added in v0.1.3

type GetMaskingPoliciesMaskingPolicyArrayInput interface {
	pulumi.Input

	ToGetMaskingPoliciesMaskingPolicyArrayOutput() GetMaskingPoliciesMaskingPolicyArrayOutput
	ToGetMaskingPoliciesMaskingPolicyArrayOutputWithContext(context.Context) GetMaskingPoliciesMaskingPolicyArrayOutput
}

GetMaskingPoliciesMaskingPolicyArrayInput is an input type that accepts GetMaskingPoliciesMaskingPolicyArray and GetMaskingPoliciesMaskingPolicyArrayOutput values. You can construct a concrete instance of `GetMaskingPoliciesMaskingPolicyArrayInput` via:

GetMaskingPoliciesMaskingPolicyArray{ GetMaskingPoliciesMaskingPolicyArgs{...} }

type GetMaskingPoliciesMaskingPolicyArrayOutput added in v0.1.3

type GetMaskingPoliciesMaskingPolicyArrayOutput struct{ *pulumi.OutputState }

func (GetMaskingPoliciesMaskingPolicyArrayOutput) ElementType added in v0.1.3

func (GetMaskingPoliciesMaskingPolicyArrayOutput) Index added in v0.1.3

func (GetMaskingPoliciesMaskingPolicyArrayOutput) ToGetMaskingPoliciesMaskingPolicyArrayOutput added in v0.1.3

func (o GetMaskingPoliciesMaskingPolicyArrayOutput) ToGetMaskingPoliciesMaskingPolicyArrayOutput() GetMaskingPoliciesMaskingPolicyArrayOutput

func (GetMaskingPoliciesMaskingPolicyArrayOutput) ToGetMaskingPoliciesMaskingPolicyArrayOutputWithContext added in v0.1.3

func (o GetMaskingPoliciesMaskingPolicyArrayOutput) ToGetMaskingPoliciesMaskingPolicyArrayOutputWithContext(ctx context.Context) GetMaskingPoliciesMaskingPolicyArrayOutput

type GetMaskingPoliciesMaskingPolicyInput added in v0.1.3

type GetMaskingPoliciesMaskingPolicyInput interface {
	pulumi.Input

	ToGetMaskingPoliciesMaskingPolicyOutput() GetMaskingPoliciesMaskingPolicyOutput
	ToGetMaskingPoliciesMaskingPolicyOutputWithContext(context.Context) GetMaskingPoliciesMaskingPolicyOutput
}

GetMaskingPoliciesMaskingPolicyInput is an input type that accepts GetMaskingPoliciesMaskingPolicyArgs and GetMaskingPoliciesMaskingPolicyOutput values. You can construct a concrete instance of `GetMaskingPoliciesMaskingPolicyInput` via:

GetMaskingPoliciesMaskingPolicyArgs{...}

type GetMaskingPoliciesMaskingPolicyOutput added in v0.1.3

type GetMaskingPoliciesMaskingPolicyOutput struct{ *pulumi.OutputState }

func (GetMaskingPoliciesMaskingPolicyOutput) Comment added in v0.1.3

func (GetMaskingPoliciesMaskingPolicyOutput) Database added in v0.1.3

The database from which to return the schemas from.

func (GetMaskingPoliciesMaskingPolicyOutput) ElementType added in v0.1.3

func (GetMaskingPoliciesMaskingPolicyOutput) Kind added in v0.1.3

func (GetMaskingPoliciesMaskingPolicyOutput) Name added in v0.1.3

func (GetMaskingPoliciesMaskingPolicyOutput) Schema added in v0.1.3

The schema from which to return the maskingPolicies from.

func (GetMaskingPoliciesMaskingPolicyOutput) ToGetMaskingPoliciesMaskingPolicyOutput added in v0.1.3

func (o GetMaskingPoliciesMaskingPolicyOutput) ToGetMaskingPoliciesMaskingPolicyOutput() GetMaskingPoliciesMaskingPolicyOutput

func (GetMaskingPoliciesMaskingPolicyOutput) ToGetMaskingPoliciesMaskingPolicyOutputWithContext added in v0.1.3

func (o GetMaskingPoliciesMaskingPolicyOutput) ToGetMaskingPoliciesMaskingPolicyOutputWithContext(ctx context.Context) GetMaskingPoliciesMaskingPolicyOutput

type GetMaskingPoliciesOutputArgs added in v0.2.0

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

A collection of arguments for invoking getMaskingPolicies.

func (GetMaskingPoliciesOutputArgs) ElementType added in v0.2.0

type GetMaskingPoliciesResult added in v0.1.3

type GetMaskingPoliciesResult struct {
	// The database from which to return the schemas from.
	Database string `pulumi:"database"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The maskingPolicies in the schema
	MaskingPolicies []GetMaskingPoliciesMaskingPolicy `pulumi:"maskingPolicies"`
	// The schema from which to return the maskingPolicies from.
	Schema string `pulumi:"schema"`
}

A collection of values returned by getMaskingPolicies.

func GetMaskingPolicies added in v0.1.3

func GetMaskingPolicies(ctx *pulumi.Context, args *GetMaskingPoliciesArgs, opts ...pulumi.InvokeOption) (*GetMaskingPoliciesResult, error)

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-snowflake/sdk/go/snowflake"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := snowflake.GetMaskingPolicies(ctx, &GetMaskingPoliciesArgs{
			Database: "MYDB",
			Schema:   "MYSCHEMA",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetMaskingPoliciesResultOutput added in v0.2.0

type GetMaskingPoliciesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getMaskingPolicies.

func GetMaskingPoliciesOutput added in v0.2.0

func (GetMaskingPoliciesResultOutput) Database added in v0.2.0

The database from which to return the schemas from.

func (GetMaskingPoliciesResultOutput) ElementType added in v0.2.0

func (GetMaskingPoliciesResultOutput) Id added in v0.2.0

The provider-assigned unique ID for this managed resource.

func (GetMaskingPoliciesResultOutput) MaskingPolicies added in v0.2.0

The maskingPolicies in the schema

func (GetMaskingPoliciesResultOutput) Schema added in v0.2.0

The schema from which to return the maskingPolicies from.

func (GetMaskingPoliciesResultOutput) ToGetMaskingPoliciesResultOutput added in v0.2.0

func (o GetMaskingPoliciesResultOutput) ToGetMaskingPoliciesResultOutput() GetMaskingPoliciesResultOutput

func (GetMaskingPoliciesResultOutput) ToGetMaskingPoliciesResultOutputWithContext added in v0.2.0

func (o GetMaskingPoliciesResultOutput) ToGetMaskingPoliciesResultOutputWithContext(ctx context.Context) GetMaskingPoliciesResultOutput

type GetMaterializedViewsArgs added in v0.1.2

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

A collection of arguments for invoking getMaterializedViews.

type GetMaterializedViewsMaterializedView added in v0.1.2

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

type GetMaterializedViewsMaterializedViewArgs added in v0.1.2

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

func (GetMaterializedViewsMaterializedViewArgs) ElementType added in v0.1.2

func (GetMaterializedViewsMaterializedViewArgs) ToGetMaterializedViewsMaterializedViewOutput added in v0.1.2

func (i GetMaterializedViewsMaterializedViewArgs) ToGetMaterializedViewsMaterializedViewOutput() GetMaterializedViewsMaterializedViewOutput

func (GetMaterializedViewsMaterializedViewArgs) ToGetMaterializedViewsMaterializedViewOutputWithContext added in v0.1.2

func (i GetMaterializedViewsMaterializedViewArgs) ToGetMaterializedViewsMaterializedViewOutputWithContext(ctx context.Context) GetMaterializedViewsMaterializedViewOutput

type GetMaterializedViewsMaterializedViewArray added in v0.1.2

type GetMaterializedViewsMaterializedViewArray []GetMaterializedViewsMaterializedViewInput

func (GetMaterializedViewsMaterializedViewArray) ElementType added in v0.1.2

func (GetMaterializedViewsMaterializedViewArray) ToGetMaterializedViewsMaterializedViewArrayOutput added in v0.1.2

func (i GetMaterializedViewsMaterializedViewArray) ToGetMaterializedViewsMaterializedViewArrayOutput() GetMaterializedViewsMaterializedViewArrayOutput

func (GetMaterializedViewsMaterializedViewArray) ToGetMaterializedViewsMaterializedViewArrayOutputWithContext added in v0.1.2

func (i GetMaterializedViewsMaterializedViewArray) ToGetMaterializedViewsMaterializedViewArrayOutputWithContext(ctx context.Context) GetMaterializedViewsMaterializedViewArrayOutput

type GetMaterializedViewsMaterializedViewArrayInput added in v0.1.2

type GetMaterializedViewsMaterializedViewArrayInput interface {
	pulumi.Input

	ToGetMaterializedViewsMaterializedViewArrayOutput() GetMaterializedViewsMaterializedViewArrayOutput
	ToGetMaterializedViewsMaterializedViewArrayOutputWithContext(context.Context) GetMaterializedViewsMaterializedViewArrayOutput
}

GetMaterializedViewsMaterializedViewArrayInput is an input type that accepts GetMaterializedViewsMaterializedViewArray and GetMaterializedViewsMaterializedViewArrayOutput values. You can construct a concrete instance of `GetMaterializedViewsMaterializedViewArrayInput` via:

GetMaterializedViewsMaterializedViewArray{ GetMaterializedViewsMaterializedViewArgs{...} }

type GetMaterializedViewsMaterializedViewArrayOutput added in v0.1.2

type GetMaterializedViewsMaterializedViewArrayOutput struct{ *pulumi.OutputState }

func (GetMaterializedViewsMaterializedViewArrayOutput) ElementType added in v0.1.2

func (GetMaterializedViewsMaterializedViewArrayOutput) Index added in v0.1.2

func (GetMaterializedViewsMaterializedViewArrayOutput) ToGetMaterializedViewsMaterializedViewArrayOutput added in v0.1.2

func (o GetMaterializedViewsMaterializedViewArrayOutput) ToGetMaterializedViewsMaterializedViewArrayOutput() GetMaterializedViewsMaterializedViewArrayOutput

func (GetMaterializedViewsMaterializedViewArrayOutput) ToGetMaterializedViewsMaterializedViewArrayOutputWithContext added in v0.1.2

func (o GetMaterializedViewsMaterializedViewArrayOutput) ToGetMaterializedViewsMaterializedViewArrayOutputWithContext(ctx context.Context) GetMaterializedViewsMaterializedViewArrayOutput

type GetMaterializedViewsMaterializedViewInput added in v0.1.2

type GetMaterializedViewsMaterializedViewInput interface {
	pulumi.Input

	ToGetMaterializedViewsMaterializedViewOutput() GetMaterializedViewsMaterializedViewOutput
	ToGetMaterializedViewsMaterializedViewOutputWithContext(context.Context) GetMaterializedViewsMaterializedViewOutput
}

GetMaterializedViewsMaterializedViewInput is an input type that accepts GetMaterializedViewsMaterializedViewArgs and GetMaterializedViewsMaterializedViewOutput values. You can construct a concrete instance of `GetMaterializedViewsMaterializedViewInput` via:

GetMaterializedViewsMaterializedViewArgs{...}

type GetMaterializedViewsMaterializedViewOutput added in v0.1.2

type GetMaterializedViewsMaterializedViewOutput struct{ *pulumi.OutputState }

func (GetMaterializedViewsMaterializedViewOutput) Comment added in v0.1.2

func (GetMaterializedViewsMaterializedViewOutput) Database added in v0.1.2

The database from which to return the schemas from.

func (GetMaterializedViewsMaterializedViewOutput) ElementType added in v0.1.2

func (GetMaterializedViewsMaterializedViewOutput) Name added in v0.1.2

func (GetMaterializedViewsMaterializedViewOutput) Schema added in v0.1.2

The schema from which to return the views from.

func (GetMaterializedViewsMaterializedViewOutput) ToGetMaterializedViewsMaterializedViewOutput added in v0.1.2

func (o GetMaterializedViewsMaterializedViewOutput) ToGetMaterializedViewsMaterializedViewOutput() GetMaterializedViewsMaterializedViewOutput

func (GetMaterializedViewsMaterializedViewOutput) ToGetMaterializedViewsMaterializedViewOutputWithContext added in v0.1.2

func (o GetMaterializedViewsMaterializedViewOutput) ToGetMaterializedViewsMaterializedViewOutputWithContext(ctx context.Context) GetMaterializedViewsMaterializedViewOutput

type GetMaterializedViewsOutputArgs added in v0.2.0

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

A collection of arguments for invoking getMaterializedViews.

func (GetMaterializedViewsOutputArgs) ElementType added in v0.2.0

type GetMaterializedViewsResult added in v0.1.2

type GetMaterializedViewsResult struct {
	// The database from which to return the schemas from.
	Database string `pulumi:"database"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The views in the schema
	MaterializedViews []GetMaterializedViewsMaterializedView `pulumi:"materializedViews"`
	// The schema from which to return the views from.
	Schema string `pulumi:"schema"`
}

A collection of values returned by getMaterializedViews.

func GetMaterializedViews added in v0.1.2

func GetMaterializedViews(ctx *pulumi.Context, args *GetMaterializedViewsArgs, opts ...pulumi.InvokeOption) (*GetMaterializedViewsResult, error)

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-snowflake/sdk/go/snowflake"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := snowflake.GetMaterializedViews(ctx, &GetMaterializedViewsArgs{
			Database: "MYDB",
			Schema:   "MYSCHEMA",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetMaterializedViewsResultOutput added in v0.2.0

type GetMaterializedViewsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getMaterializedViews.

func GetMaterializedViewsOutput added in v0.2.0

func (GetMaterializedViewsResultOutput) Database added in v0.2.0

The database from which to return the schemas from.

func (GetMaterializedViewsResultOutput) ElementType added in v0.2.0

func (GetMaterializedViewsResultOutput) Id added in v0.2.0

The provider-assigned unique ID for this managed resource.

func (GetMaterializedViewsResultOutput) MaterializedViews added in v0.2.0

The views in the schema

func (GetMaterializedViewsResultOutput) Schema added in v0.2.0

The schema from which to return the views from.

func (GetMaterializedViewsResultOutput) ToGetMaterializedViewsResultOutput added in v0.2.0

func (o GetMaterializedViewsResultOutput) ToGetMaterializedViewsResultOutput() GetMaterializedViewsResultOutput

func (GetMaterializedViewsResultOutput) ToGetMaterializedViewsResultOutputWithContext added in v0.2.0

func (o GetMaterializedViewsResultOutput) ToGetMaterializedViewsResultOutputWithContext(ctx context.Context) GetMaterializedViewsResultOutput

type GetPipesArgs added in v0.1.3

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

A collection of arguments for invoking getPipes.

type GetPipesOutputArgs added in v0.2.0

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

A collection of arguments for invoking getPipes.

func (GetPipesOutputArgs) ElementType added in v0.2.0

func (GetPipesOutputArgs) ElementType() reflect.Type

type GetPipesPipe added in v0.1.3

type GetPipesPipe struct {
	Comment string `pulumi:"comment"`
	// The database from which to return the schemas from.
	Database    string `pulumi:"database"`
	Integration string `pulumi:"integration"`
	Name        string `pulumi:"name"`
	// The schema from which to return the pipes from.
	Schema string `pulumi:"schema"`
}

type GetPipesPipeArgs added in v0.1.3

type GetPipesPipeArgs struct {
	Comment pulumi.StringInput `pulumi:"comment"`
	// The database from which to return the schemas from.
	Database    pulumi.StringInput `pulumi:"database"`
	Integration pulumi.StringInput `pulumi:"integration"`
	Name        pulumi.StringInput `pulumi:"name"`
	// The schema from which to return the pipes from.
	Schema pulumi.StringInput `pulumi:"schema"`
}

func (GetPipesPipeArgs) ElementType added in v0.1.3

func (GetPipesPipeArgs) ElementType() reflect.Type

func (GetPipesPipeArgs) ToGetPipesPipeOutput added in v0.1.3

func (i GetPipesPipeArgs) ToGetPipesPipeOutput() GetPipesPipeOutput

func (GetPipesPipeArgs) ToGetPipesPipeOutputWithContext added in v0.1.3

func (i GetPipesPipeArgs) ToGetPipesPipeOutputWithContext(ctx context.Context) GetPipesPipeOutput

type GetPipesPipeArray added in v0.1.3

type GetPipesPipeArray []GetPipesPipeInput

func (GetPipesPipeArray) ElementType added in v0.1.3

func (GetPipesPipeArray) ElementType() reflect.Type

func (GetPipesPipeArray) ToGetPipesPipeArrayOutput added in v0.1.3

func (i GetPipesPipeArray) ToGetPipesPipeArrayOutput() GetPipesPipeArrayOutput

func (GetPipesPipeArray) ToGetPipesPipeArrayOutputWithContext added in v0.1.3

func (i GetPipesPipeArray) ToGetPipesPipeArrayOutputWithContext(ctx context.Context) GetPipesPipeArrayOutput

type GetPipesPipeArrayInput added in v0.1.3

type GetPipesPipeArrayInput interface {
	pulumi.Input

	ToGetPipesPipeArrayOutput() GetPipesPipeArrayOutput
	ToGetPipesPipeArrayOutputWithContext(context.Context) GetPipesPipeArrayOutput
}

GetPipesPipeArrayInput is an input type that accepts GetPipesPipeArray and GetPipesPipeArrayOutput values. You can construct a concrete instance of `GetPipesPipeArrayInput` via:

GetPipesPipeArray{ GetPipesPipeArgs{...} }

type GetPipesPipeArrayOutput added in v0.1.3

type GetPipesPipeArrayOutput struct{ *pulumi.OutputState }

func (GetPipesPipeArrayOutput) ElementType added in v0.1.3

func (GetPipesPipeArrayOutput) ElementType() reflect.Type

func (GetPipesPipeArrayOutput) Index added in v0.1.3

func (GetPipesPipeArrayOutput) ToGetPipesPipeArrayOutput added in v0.1.3

func (o GetPipesPipeArrayOutput) ToGetPipesPipeArrayOutput() GetPipesPipeArrayOutput

func (GetPipesPipeArrayOutput) ToGetPipesPipeArrayOutputWithContext added in v0.1.3

func (o GetPipesPipeArrayOutput) ToGetPipesPipeArrayOutputWithContext(ctx context.Context) GetPipesPipeArrayOutput

type GetPipesPipeInput added in v0.1.3

type GetPipesPipeInput interface {
	pulumi.Input

	ToGetPipesPipeOutput() GetPipesPipeOutput
	ToGetPipesPipeOutputWithContext(context.Context) GetPipesPipeOutput
}

GetPipesPipeInput is an input type that accepts GetPipesPipeArgs and GetPipesPipeOutput values. You can construct a concrete instance of `GetPipesPipeInput` via:

GetPipesPipeArgs{...}

type GetPipesPipeOutput added in v0.1.3

type GetPipesPipeOutput struct{ *pulumi.OutputState }

func (GetPipesPipeOutput) Comment added in v0.1.3

func (GetPipesPipeOutput) Database added in v0.1.3

func (o GetPipesPipeOutput) Database() pulumi.StringOutput

The database from which to return the schemas from.

func (GetPipesPipeOutput) ElementType added in v0.1.3

func (GetPipesPipeOutput) ElementType() reflect.Type

func (GetPipesPipeOutput) Integration added in v0.1.3

func (o GetPipesPipeOutput) Integration() pulumi.StringOutput

func (GetPipesPipeOutput) Name added in v0.1.3

func (GetPipesPipeOutput) Schema added in v0.1.3

The schema from which to return the pipes from.

func (GetPipesPipeOutput) ToGetPipesPipeOutput added in v0.1.3

func (o GetPipesPipeOutput) ToGetPipesPipeOutput() GetPipesPipeOutput

func (GetPipesPipeOutput) ToGetPipesPipeOutputWithContext added in v0.1.3

func (o GetPipesPipeOutput) ToGetPipesPipeOutputWithContext(ctx context.Context) GetPipesPipeOutput

type GetPipesResult added in v0.1.3

type GetPipesResult struct {
	// The database from which to return the schemas from.
	Database string `pulumi:"database"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The pipes in the schema
	Pipes []GetPipesPipe `pulumi:"pipes"`
	// The schema from which to return the pipes from.
	Schema string `pulumi:"schema"`
}

A collection of values returned by getPipes.

func GetPipes added in v0.1.3

func GetPipes(ctx *pulumi.Context, args *GetPipesArgs, opts ...pulumi.InvokeOption) (*GetPipesResult, error)

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-snowflake/sdk/go/snowflake"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := snowflake.GetPipes(ctx, &GetPipesArgs{
			Database: "MYDB",
			Schema:   "MYSCHEMA",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetPipesResultOutput added in v0.2.0

type GetPipesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getPipes.

func GetPipesOutput added in v0.2.0

func GetPipesOutput(ctx *pulumi.Context, args GetPipesOutputArgs, opts ...pulumi.InvokeOption) GetPipesResultOutput

func (GetPipesResultOutput) Database added in v0.2.0

The database from which to return the schemas from.

func (GetPipesResultOutput) ElementType added in v0.2.0

func (GetPipesResultOutput) ElementType() reflect.Type

func (GetPipesResultOutput) Id added in v0.2.0

The provider-assigned unique ID for this managed resource.

func (GetPipesResultOutput) Pipes added in v0.2.0

The pipes in the schema

func (GetPipesResultOutput) Schema added in v0.2.0

The schema from which to return the pipes from.

func (GetPipesResultOutput) ToGetPipesResultOutput added in v0.2.0

func (o GetPipesResultOutput) ToGetPipesResultOutput() GetPipesResultOutput

func (GetPipesResultOutput) ToGetPipesResultOutputWithContext added in v0.2.0

func (o GetPipesResultOutput) ToGetPipesResultOutputWithContext(ctx context.Context) GetPipesResultOutput

type GetProceduresArgs added in v0.1.3

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

A collection of arguments for invoking getProcedures.

type GetProceduresOutputArgs added in v0.2.0

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

A collection of arguments for invoking getProcedures.

func (GetProceduresOutputArgs) ElementType added in v0.2.0

func (GetProceduresOutputArgs) ElementType() reflect.Type

type GetProceduresProcedure added in v0.1.3

type GetProceduresProcedure struct {
	ArgumentTypes []string `pulumi:"argumentTypes"`
	Comment       string   `pulumi:"comment"`
	// The database from which to return the schemas from.
	Database   string `pulumi:"database"`
	Name       string `pulumi:"name"`
	ReturnType string `pulumi:"returnType"`
	// The schema from which to return the procedures from.
	Schema string `pulumi:"schema"`
}

type GetProceduresProcedureArgs added in v0.1.3

type GetProceduresProcedureArgs struct {
	ArgumentTypes pulumi.StringArrayInput `pulumi:"argumentTypes"`
	Comment       pulumi.StringInput      `pulumi:"comment"`
	// The database from which to return the schemas from.
	Database   pulumi.StringInput `pulumi:"database"`
	Name       pulumi.StringInput `pulumi:"name"`
	ReturnType pulumi.StringInput `pulumi:"returnType"`
	// The schema from which to return the procedures from.
	Schema pulumi.StringInput `pulumi:"schema"`
}

func (GetProceduresProcedureArgs) ElementType added in v0.1.3

func (GetProceduresProcedureArgs) ElementType() reflect.Type

func (GetProceduresProcedureArgs) ToGetProceduresProcedureOutput added in v0.1.3

func (i GetProceduresProcedureArgs) ToGetProceduresProcedureOutput() GetProceduresProcedureOutput

func (GetProceduresProcedureArgs) ToGetProceduresProcedureOutputWithContext added in v0.1.3

func (i GetProceduresProcedureArgs) ToGetProceduresProcedureOutputWithContext(ctx context.Context) GetProceduresProcedureOutput

type GetProceduresProcedureArray added in v0.1.3

type GetProceduresProcedureArray []GetProceduresProcedureInput

func (GetProceduresProcedureArray) ElementType added in v0.1.3

func (GetProceduresProcedureArray) ToGetProceduresProcedureArrayOutput added in v0.1.3

func (i GetProceduresProcedureArray) ToGetProceduresProcedureArrayOutput() GetProceduresProcedureArrayOutput

func (GetProceduresProcedureArray) ToGetProceduresProcedureArrayOutputWithContext added in v0.1.3

func (i GetProceduresProcedureArray) ToGetProceduresProcedureArrayOutputWithContext(ctx context.Context) GetProceduresProcedureArrayOutput

type GetProceduresProcedureArrayInput added in v0.1.3

type GetProceduresProcedureArrayInput interface {
	pulumi.Input

	ToGetProceduresProcedureArrayOutput() GetProceduresProcedureArrayOutput
	ToGetProceduresProcedureArrayOutputWithContext(context.Context) GetProceduresProcedureArrayOutput
}

GetProceduresProcedureArrayInput is an input type that accepts GetProceduresProcedureArray and GetProceduresProcedureArrayOutput values. You can construct a concrete instance of `GetProceduresProcedureArrayInput` via:

GetProceduresProcedureArray{ GetProceduresProcedureArgs{...} }

type GetProceduresProcedureArrayOutput added in v0.1.3

type GetProceduresProcedureArrayOutput struct{ *pulumi.OutputState }

func (GetProceduresProcedureArrayOutput) ElementType added in v0.1.3

func (GetProceduresProcedureArrayOutput) Index added in v0.1.3

func (GetProceduresProcedureArrayOutput) ToGetProceduresProcedureArrayOutput added in v0.1.3

func (o GetProceduresProcedureArrayOutput) ToGetProceduresProcedureArrayOutput() GetProceduresProcedureArrayOutput

func (GetProceduresProcedureArrayOutput) ToGetProceduresProcedureArrayOutputWithContext added in v0.1.3

func (o GetProceduresProcedureArrayOutput) ToGetProceduresProcedureArrayOutputWithContext(ctx context.Context) GetProceduresProcedureArrayOutput

type GetProceduresProcedureInput added in v0.1.3

type GetProceduresProcedureInput interface {
	pulumi.Input

	ToGetProceduresProcedureOutput() GetProceduresProcedureOutput
	ToGetProceduresProcedureOutputWithContext(context.Context) GetProceduresProcedureOutput
}

GetProceduresProcedureInput is an input type that accepts GetProceduresProcedureArgs and GetProceduresProcedureOutput values. You can construct a concrete instance of `GetProceduresProcedureInput` via:

GetProceduresProcedureArgs{...}

type GetProceduresProcedureOutput added in v0.1.3

type GetProceduresProcedureOutput struct{ *pulumi.OutputState }

func (GetProceduresProcedureOutput) ArgumentTypes added in v0.1.3

func (GetProceduresProcedureOutput) Comment added in v0.1.3

func (GetProceduresProcedureOutput) Database added in v0.1.3

The database from which to return the schemas from.

func (GetProceduresProcedureOutput) ElementType added in v0.1.3

func (GetProceduresProcedureOutput) Name added in v0.1.3

func (GetProceduresProcedureOutput) ReturnType added in v0.1.3

func (GetProceduresProcedureOutput) Schema added in v0.1.3

The schema from which to return the procedures from.

func (GetProceduresProcedureOutput) ToGetProceduresProcedureOutput added in v0.1.3

func (o GetProceduresProcedureOutput) ToGetProceduresProcedureOutput() GetProceduresProcedureOutput

func (GetProceduresProcedureOutput) ToGetProceduresProcedureOutputWithContext added in v0.1.3

func (o GetProceduresProcedureOutput) ToGetProceduresProcedureOutputWithContext(ctx context.Context) GetProceduresProcedureOutput

type GetProceduresResult added in v0.1.3

type GetProceduresResult struct {
	// The database from which to return the schemas from.
	Database string `pulumi:"database"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The procedures in the schema
	Procedures []GetProceduresProcedure `pulumi:"procedures"`
	// The schema from which to return the procedures from.
	Schema string `pulumi:"schema"`
}

A collection of values returned by getProcedures.

func GetProcedures added in v0.1.3

func GetProcedures(ctx *pulumi.Context, args *GetProceduresArgs, opts ...pulumi.InvokeOption) (*GetProceduresResult, error)

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-snowflake/sdk/go/snowflake"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := snowflake.GetProcedures(ctx, &GetProceduresArgs{
			Database: "MYDB",
			Schema:   "MYSCHEMA",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetProceduresResultOutput added in v0.2.0

type GetProceduresResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getProcedures.

func GetProceduresOutput added in v0.2.0

func GetProceduresOutput(ctx *pulumi.Context, args GetProceduresOutputArgs, opts ...pulumi.InvokeOption) GetProceduresResultOutput

func (GetProceduresResultOutput) Database added in v0.2.0

The database from which to return the schemas from.

func (GetProceduresResultOutput) ElementType added in v0.2.0

func (GetProceduresResultOutput) ElementType() reflect.Type

func (GetProceduresResultOutput) Id added in v0.2.0

The provider-assigned unique ID for this managed resource.

func (GetProceduresResultOutput) Procedures added in v0.2.0

The procedures in the schema

func (GetProceduresResultOutput) Schema added in v0.2.0

The schema from which to return the procedures from.

func (GetProceduresResultOutput) ToGetProceduresResultOutput added in v0.2.0

func (o GetProceduresResultOutput) ToGetProceduresResultOutput() GetProceduresResultOutput

func (GetProceduresResultOutput) ToGetProceduresResultOutputWithContext added in v0.2.0

func (o GetProceduresResultOutput) ToGetProceduresResultOutputWithContext(ctx context.Context) GetProceduresResultOutput

type GetResourceMonitorsResourceMonitor added in v0.1.3

type GetResourceMonitorsResourceMonitor struct {
	Comment     string `pulumi:"comment"`
	CreditQuota string `pulumi:"creditQuota"`
	Frequency   string `pulumi:"frequency"`
	Name        string `pulumi:"name"`
}

type GetResourceMonitorsResourceMonitorArgs added in v0.1.3

type GetResourceMonitorsResourceMonitorArgs struct {
	Comment     pulumi.StringInput `pulumi:"comment"`
	CreditQuota pulumi.StringInput `pulumi:"creditQuota"`
	Frequency   pulumi.StringInput `pulumi:"frequency"`
	Name        pulumi.StringInput `pulumi:"name"`
}

func (GetResourceMonitorsResourceMonitorArgs) ElementType added in v0.1.3

func (GetResourceMonitorsResourceMonitorArgs) ToGetResourceMonitorsResourceMonitorOutput added in v0.1.3

func (i GetResourceMonitorsResourceMonitorArgs) ToGetResourceMonitorsResourceMonitorOutput() GetResourceMonitorsResourceMonitorOutput

func (GetResourceMonitorsResourceMonitorArgs) ToGetResourceMonitorsResourceMonitorOutputWithContext added in v0.1.3

func (i GetResourceMonitorsResourceMonitorArgs) ToGetResourceMonitorsResourceMonitorOutputWithContext(ctx context.Context) GetResourceMonitorsResourceMonitorOutput

type GetResourceMonitorsResourceMonitorArray added in v0.1.3

type GetResourceMonitorsResourceMonitorArray []GetResourceMonitorsResourceMonitorInput

func (GetResourceMonitorsResourceMonitorArray) ElementType added in v0.1.3

func (GetResourceMonitorsResourceMonitorArray) ToGetResourceMonitorsResourceMonitorArrayOutput added in v0.1.3

func (i GetResourceMonitorsResourceMonitorArray) ToGetResourceMonitorsResourceMonitorArrayOutput() GetResourceMonitorsResourceMonitorArrayOutput

func (GetResourceMonitorsResourceMonitorArray) ToGetResourceMonitorsResourceMonitorArrayOutputWithContext added in v0.1.3

func (i GetResourceMonitorsResourceMonitorArray) ToGetResourceMonitorsResourceMonitorArrayOutputWithContext(ctx context.Context) GetResourceMonitorsResourceMonitorArrayOutput

type GetResourceMonitorsResourceMonitorArrayInput added in v0.1.3

type GetResourceMonitorsResourceMonitorArrayInput interface {
	pulumi.Input

	ToGetResourceMonitorsResourceMonitorArrayOutput() GetResourceMonitorsResourceMonitorArrayOutput
	ToGetResourceMonitorsResourceMonitorArrayOutputWithContext(context.Context) GetResourceMonitorsResourceMonitorArrayOutput
}

GetResourceMonitorsResourceMonitorArrayInput is an input type that accepts GetResourceMonitorsResourceMonitorArray and GetResourceMonitorsResourceMonitorArrayOutput values. You can construct a concrete instance of `GetResourceMonitorsResourceMonitorArrayInput` via:

GetResourceMonitorsResourceMonitorArray{ GetResourceMonitorsResourceMonitorArgs{...} }

type GetResourceMonitorsResourceMonitorArrayOutput added in v0.1.3

type GetResourceMonitorsResourceMonitorArrayOutput struct{ *pulumi.OutputState }

func (GetResourceMonitorsResourceMonitorArrayOutput) ElementType added in v0.1.3

func (GetResourceMonitorsResourceMonitorArrayOutput) Index added in v0.1.3

func (GetResourceMonitorsResourceMonitorArrayOutput) ToGetResourceMonitorsResourceMonitorArrayOutput added in v0.1.3

func (o GetResourceMonitorsResourceMonitorArrayOutput) ToGetResourceMonitorsResourceMonitorArrayOutput() GetResourceMonitorsResourceMonitorArrayOutput

func (GetResourceMonitorsResourceMonitorArrayOutput) ToGetResourceMonitorsResourceMonitorArrayOutputWithContext added in v0.1.3

func (o GetResourceMonitorsResourceMonitorArrayOutput) ToGetResourceMonitorsResourceMonitorArrayOutputWithContext(ctx context.Context) GetResourceMonitorsResourceMonitorArrayOutput

type GetResourceMonitorsResourceMonitorInput added in v0.1.3

type GetResourceMonitorsResourceMonitorInput interface {
	pulumi.Input

	ToGetResourceMonitorsResourceMonitorOutput() GetResourceMonitorsResourceMonitorOutput
	ToGetResourceMonitorsResourceMonitorOutputWithContext(context.Context) GetResourceMonitorsResourceMonitorOutput
}

GetResourceMonitorsResourceMonitorInput is an input type that accepts GetResourceMonitorsResourceMonitorArgs and GetResourceMonitorsResourceMonitorOutput values. You can construct a concrete instance of `GetResourceMonitorsResourceMonitorInput` via:

GetResourceMonitorsResourceMonitorArgs{...}

type GetResourceMonitorsResourceMonitorOutput added in v0.1.3

type GetResourceMonitorsResourceMonitorOutput struct{ *pulumi.OutputState }

func (GetResourceMonitorsResourceMonitorOutput) Comment added in v0.1.3

func (GetResourceMonitorsResourceMonitorOutput) CreditQuota added in v0.1.3

func (GetResourceMonitorsResourceMonitorOutput) ElementType added in v0.1.3

func (GetResourceMonitorsResourceMonitorOutput) Frequency added in v0.1.3

func (GetResourceMonitorsResourceMonitorOutput) Name added in v0.1.3

func (GetResourceMonitorsResourceMonitorOutput) ToGetResourceMonitorsResourceMonitorOutput added in v0.1.3

func (o GetResourceMonitorsResourceMonitorOutput) ToGetResourceMonitorsResourceMonitorOutput() GetResourceMonitorsResourceMonitorOutput

func (GetResourceMonitorsResourceMonitorOutput) ToGetResourceMonitorsResourceMonitorOutputWithContext added in v0.1.3

func (o GetResourceMonitorsResourceMonitorOutput) ToGetResourceMonitorsResourceMonitorOutputWithContext(ctx context.Context) GetResourceMonitorsResourceMonitorOutput

type GetResourceMonitorsResult added in v0.1.3

type GetResourceMonitorsResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The resource monitors in the database
	ResourceMonitors []GetResourceMonitorsResourceMonitor `pulumi:"resourceMonitors"`
}

A collection of values returned by getResourceMonitors.

func GetResourceMonitors added in v0.1.3

func GetResourceMonitors(ctx *pulumi.Context, opts ...pulumi.InvokeOption) (*GetResourceMonitorsResult, error)

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-snowflake/sdk/go/snowflake"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := snowflake.GetResourceMonitors(ctx, nil, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetRowAccessPoliciesArgs added in v0.1.3

type GetRowAccessPoliciesArgs struct {
	// The database from which to return the schemas from.
	Database string `pulumi:"database"`
	// The schema from which to return the row access policyfrom.
	Schema string `pulumi:"schema"`
}

A collection of arguments for invoking getRowAccessPolicies.

type GetRowAccessPoliciesOutputArgs added in v0.2.0

type GetRowAccessPoliciesOutputArgs struct {
	// The database from which to return the schemas from.
	Database pulumi.StringInput `pulumi:"database"`
	// The schema from which to return the row access policyfrom.
	Schema pulumi.StringInput `pulumi:"schema"`
}

A collection of arguments for invoking getRowAccessPolicies.

func (GetRowAccessPoliciesOutputArgs) ElementType added in v0.2.0

type GetRowAccessPoliciesResult added in v0.1.3

type GetRowAccessPoliciesResult struct {
	// The database from which to return the schemas from.
	Database string `pulumi:"database"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The row access policy in the schema
	RowAccessPolicies []GetRowAccessPoliciesRowAccessPolicy `pulumi:"rowAccessPolicies"`
	// The schema from which to return the row access policyfrom.
	Schema string `pulumi:"schema"`
}

A collection of values returned by getRowAccessPolicies.

func GetRowAccessPolicies added in v0.1.3

func GetRowAccessPolicies(ctx *pulumi.Context, args *GetRowAccessPoliciesArgs, opts ...pulumi.InvokeOption) (*GetRowAccessPoliciesResult, error)

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-snowflake/sdk/go/snowflake"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := snowflake.GetRowAccessPolicies(ctx, &GetRowAccessPoliciesArgs{
			Database: "MYDB",
			Schema:   "MYSCHEMA",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetRowAccessPoliciesResultOutput added in v0.2.0

type GetRowAccessPoliciesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getRowAccessPolicies.

func GetRowAccessPoliciesOutput added in v0.2.0

func (GetRowAccessPoliciesResultOutput) Database added in v0.2.0

The database from which to return the schemas from.

func (GetRowAccessPoliciesResultOutput) ElementType added in v0.2.0

func (GetRowAccessPoliciesResultOutput) Id added in v0.2.0

The provider-assigned unique ID for this managed resource.

func (GetRowAccessPoliciesResultOutput) RowAccessPolicies added in v0.2.0

The row access policy in the schema

func (GetRowAccessPoliciesResultOutput) Schema added in v0.2.0

The schema from which to return the row access policyfrom.

func (GetRowAccessPoliciesResultOutput) ToGetRowAccessPoliciesResultOutput added in v0.2.0

func (o GetRowAccessPoliciesResultOutput) ToGetRowAccessPoliciesResultOutput() GetRowAccessPoliciesResultOutput

func (GetRowAccessPoliciesResultOutput) ToGetRowAccessPoliciesResultOutputWithContext added in v0.2.0

func (o GetRowAccessPoliciesResultOutput) ToGetRowAccessPoliciesResultOutputWithContext(ctx context.Context) GetRowAccessPoliciesResultOutput

type GetRowAccessPoliciesRowAccessPolicy added in v0.1.3

type GetRowAccessPoliciesRowAccessPolicy struct {
	Comment string `pulumi:"comment"`
	// The database from which to return the schemas from.
	Database string `pulumi:"database"`
	Name     string `pulumi:"name"`
	// The schema from which to return the row access policyfrom.
	Schema string `pulumi:"schema"`
}

type GetRowAccessPoliciesRowAccessPolicyArgs added in v0.1.3

type GetRowAccessPoliciesRowAccessPolicyArgs struct {
	Comment pulumi.StringInput `pulumi:"comment"`
	// The database from which to return the schemas from.
	Database pulumi.StringInput `pulumi:"database"`
	Name     pulumi.StringInput `pulumi:"name"`
	// The schema from which to return the row access policyfrom.
	Schema pulumi.StringInput `pulumi:"schema"`
}

func (GetRowAccessPoliciesRowAccessPolicyArgs) ElementType added in v0.1.3

func (GetRowAccessPoliciesRowAccessPolicyArgs) ToGetRowAccessPoliciesRowAccessPolicyOutput added in v0.1.3

func (i GetRowAccessPoliciesRowAccessPolicyArgs) ToGetRowAccessPoliciesRowAccessPolicyOutput() GetRowAccessPoliciesRowAccessPolicyOutput

func (GetRowAccessPoliciesRowAccessPolicyArgs) ToGetRowAccessPoliciesRowAccessPolicyOutputWithContext added in v0.1.3

func (i GetRowAccessPoliciesRowAccessPolicyArgs) ToGetRowAccessPoliciesRowAccessPolicyOutputWithContext(ctx context.Context) GetRowAccessPoliciesRowAccessPolicyOutput

type GetRowAccessPoliciesRowAccessPolicyArray added in v0.1.3

type GetRowAccessPoliciesRowAccessPolicyArray []GetRowAccessPoliciesRowAccessPolicyInput

func (GetRowAccessPoliciesRowAccessPolicyArray) ElementType added in v0.1.3

func (GetRowAccessPoliciesRowAccessPolicyArray) ToGetRowAccessPoliciesRowAccessPolicyArrayOutput added in v0.1.3

func (i GetRowAccessPoliciesRowAccessPolicyArray) ToGetRowAccessPoliciesRowAccessPolicyArrayOutput() GetRowAccessPoliciesRowAccessPolicyArrayOutput

func (GetRowAccessPoliciesRowAccessPolicyArray) ToGetRowAccessPoliciesRowAccessPolicyArrayOutputWithContext added in v0.1.3

func (i GetRowAccessPoliciesRowAccessPolicyArray) ToGetRowAccessPoliciesRowAccessPolicyArrayOutputWithContext(ctx context.Context) GetRowAccessPoliciesRowAccessPolicyArrayOutput

type GetRowAccessPoliciesRowAccessPolicyArrayInput added in v0.1.3

type GetRowAccessPoliciesRowAccessPolicyArrayInput interface {
	pulumi.Input

	ToGetRowAccessPoliciesRowAccessPolicyArrayOutput() GetRowAccessPoliciesRowAccessPolicyArrayOutput
	ToGetRowAccessPoliciesRowAccessPolicyArrayOutputWithContext(context.Context) GetRowAccessPoliciesRowAccessPolicyArrayOutput
}

GetRowAccessPoliciesRowAccessPolicyArrayInput is an input type that accepts GetRowAccessPoliciesRowAccessPolicyArray and GetRowAccessPoliciesRowAccessPolicyArrayOutput values. You can construct a concrete instance of `GetRowAccessPoliciesRowAccessPolicyArrayInput` via:

GetRowAccessPoliciesRowAccessPolicyArray{ GetRowAccessPoliciesRowAccessPolicyArgs{...} }

type GetRowAccessPoliciesRowAccessPolicyArrayOutput added in v0.1.3

type GetRowAccessPoliciesRowAccessPolicyArrayOutput struct{ *pulumi.OutputState }

func (GetRowAccessPoliciesRowAccessPolicyArrayOutput) ElementType added in v0.1.3

func (GetRowAccessPoliciesRowAccessPolicyArrayOutput) Index added in v0.1.3

func (GetRowAccessPoliciesRowAccessPolicyArrayOutput) ToGetRowAccessPoliciesRowAccessPolicyArrayOutput added in v0.1.3

func (o GetRowAccessPoliciesRowAccessPolicyArrayOutput) ToGetRowAccessPoliciesRowAccessPolicyArrayOutput() GetRowAccessPoliciesRowAccessPolicyArrayOutput

func (GetRowAccessPoliciesRowAccessPolicyArrayOutput) ToGetRowAccessPoliciesRowAccessPolicyArrayOutputWithContext added in v0.1.3

func (o GetRowAccessPoliciesRowAccessPolicyArrayOutput) ToGetRowAccessPoliciesRowAccessPolicyArrayOutputWithContext(ctx context.Context) GetRowAccessPoliciesRowAccessPolicyArrayOutput

type GetRowAccessPoliciesRowAccessPolicyInput added in v0.1.3

type GetRowAccessPoliciesRowAccessPolicyInput interface {
	pulumi.Input

	ToGetRowAccessPoliciesRowAccessPolicyOutput() GetRowAccessPoliciesRowAccessPolicyOutput
	ToGetRowAccessPoliciesRowAccessPolicyOutputWithContext(context.Context) GetRowAccessPoliciesRowAccessPolicyOutput
}

GetRowAccessPoliciesRowAccessPolicyInput is an input type that accepts GetRowAccessPoliciesRowAccessPolicyArgs and GetRowAccessPoliciesRowAccessPolicyOutput values. You can construct a concrete instance of `GetRowAccessPoliciesRowAccessPolicyInput` via:

GetRowAccessPoliciesRowAccessPolicyArgs{...}

type GetRowAccessPoliciesRowAccessPolicyOutput added in v0.1.3

type GetRowAccessPoliciesRowAccessPolicyOutput struct{ *pulumi.OutputState }

func (GetRowAccessPoliciesRowAccessPolicyOutput) Comment added in v0.1.3

func (GetRowAccessPoliciesRowAccessPolicyOutput) Database added in v0.1.3

The database from which to return the schemas from.

func (GetRowAccessPoliciesRowAccessPolicyOutput) ElementType added in v0.1.3

func (GetRowAccessPoliciesRowAccessPolicyOutput) Name added in v0.1.3

func (GetRowAccessPoliciesRowAccessPolicyOutput) Schema added in v0.1.3

The schema from which to return the row access policyfrom.

func (GetRowAccessPoliciesRowAccessPolicyOutput) ToGetRowAccessPoliciesRowAccessPolicyOutput added in v0.1.3

func (o GetRowAccessPoliciesRowAccessPolicyOutput) ToGetRowAccessPoliciesRowAccessPolicyOutput() GetRowAccessPoliciesRowAccessPolicyOutput

func (GetRowAccessPoliciesRowAccessPolicyOutput) ToGetRowAccessPoliciesRowAccessPolicyOutputWithContext added in v0.1.3

func (o GetRowAccessPoliciesRowAccessPolicyOutput) ToGetRowAccessPoliciesRowAccessPolicyOutputWithContext(ctx context.Context) GetRowAccessPoliciesRowAccessPolicyOutput

type GetSchemasArgs added in v0.1.2

type GetSchemasArgs struct {
	// The database from which to return the schemas from.
	Database string `pulumi:"database"`
}

A collection of arguments for invoking getSchemas.

type GetSchemasOutputArgs added in v0.2.0

type GetSchemasOutputArgs struct {
	// The database from which to return the schemas from.
	Database pulumi.StringInput `pulumi:"database"`
}

A collection of arguments for invoking getSchemas.

func (GetSchemasOutputArgs) ElementType added in v0.2.0

func (GetSchemasOutputArgs) ElementType() reflect.Type

type GetSchemasResult added in v0.1.2

type GetSchemasResult struct {
	// The database from which to return the schemas from.
	Database string `pulumi:"database"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The schemas in the database
	Schemas []GetSchemasSchema `pulumi:"schemas"`
}

A collection of values returned by getSchemas.

func GetSchemas added in v0.1.2

func GetSchemas(ctx *pulumi.Context, args *GetSchemasArgs, opts ...pulumi.InvokeOption) (*GetSchemasResult, error)

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-snowflake/sdk/go/snowflake"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := snowflake.GetSchemas(ctx, &GetSchemasArgs{
			Database: "MYDB",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetSchemasResultOutput added in v0.2.0

type GetSchemasResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getSchemas.

func GetSchemasOutput added in v0.2.0

func GetSchemasOutput(ctx *pulumi.Context, args GetSchemasOutputArgs, opts ...pulumi.InvokeOption) GetSchemasResultOutput

func (GetSchemasResultOutput) Database added in v0.2.0

The database from which to return the schemas from.

func (GetSchemasResultOutput) ElementType added in v0.2.0

func (GetSchemasResultOutput) ElementType() reflect.Type

func (GetSchemasResultOutput) Id added in v0.2.0

The provider-assigned unique ID for this managed resource.

func (GetSchemasResultOutput) Schemas added in v0.2.0

The schemas in the database

func (GetSchemasResultOutput) ToGetSchemasResultOutput added in v0.2.0

func (o GetSchemasResultOutput) ToGetSchemasResultOutput() GetSchemasResultOutput

func (GetSchemasResultOutput) ToGetSchemasResultOutputWithContext added in v0.2.0

func (o GetSchemasResultOutput) ToGetSchemasResultOutputWithContext(ctx context.Context) GetSchemasResultOutput

type GetSchemasSchema added in v0.1.2

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

type GetSchemasSchemaArgs added in v0.1.2

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

func (GetSchemasSchemaArgs) ElementType added in v0.1.2

func (GetSchemasSchemaArgs) ElementType() reflect.Type

func (GetSchemasSchemaArgs) ToGetSchemasSchemaOutput added in v0.1.2

func (i GetSchemasSchemaArgs) ToGetSchemasSchemaOutput() GetSchemasSchemaOutput

func (GetSchemasSchemaArgs) ToGetSchemasSchemaOutputWithContext added in v0.1.2

func (i GetSchemasSchemaArgs) ToGetSchemasSchemaOutputWithContext(ctx context.Context) GetSchemasSchemaOutput

type GetSchemasSchemaArray added in v0.1.2

type GetSchemasSchemaArray []GetSchemasSchemaInput

func (GetSchemasSchemaArray) ElementType added in v0.1.2

func (GetSchemasSchemaArray) ElementType() reflect.Type

func (GetSchemasSchemaArray) ToGetSchemasSchemaArrayOutput added in v0.1.2

func (i GetSchemasSchemaArray) ToGetSchemasSchemaArrayOutput() GetSchemasSchemaArrayOutput

func (GetSchemasSchemaArray) ToGetSchemasSchemaArrayOutputWithContext added in v0.1.2

func (i GetSchemasSchemaArray) ToGetSchemasSchemaArrayOutputWithContext(ctx context.Context) GetSchemasSchemaArrayOutput

type GetSchemasSchemaArrayInput added in v0.1.2

type GetSchemasSchemaArrayInput interface {
	pulumi.Input

	ToGetSchemasSchemaArrayOutput() GetSchemasSchemaArrayOutput
	ToGetSchemasSchemaArrayOutputWithContext(context.Context) GetSchemasSchemaArrayOutput
}

GetSchemasSchemaArrayInput is an input type that accepts GetSchemasSchemaArray and GetSchemasSchemaArrayOutput values. You can construct a concrete instance of `GetSchemasSchemaArrayInput` via:

GetSchemasSchemaArray{ GetSchemasSchemaArgs{...} }

type GetSchemasSchemaArrayOutput added in v0.1.2

type GetSchemasSchemaArrayOutput struct{ *pulumi.OutputState }

func (GetSchemasSchemaArrayOutput) ElementType added in v0.1.2

func (GetSchemasSchemaArrayOutput) Index added in v0.1.2

func (GetSchemasSchemaArrayOutput) ToGetSchemasSchemaArrayOutput added in v0.1.2

func (o GetSchemasSchemaArrayOutput) ToGetSchemasSchemaArrayOutput() GetSchemasSchemaArrayOutput

func (GetSchemasSchemaArrayOutput) ToGetSchemasSchemaArrayOutputWithContext added in v0.1.2

func (o GetSchemasSchemaArrayOutput) ToGetSchemasSchemaArrayOutputWithContext(ctx context.Context) GetSchemasSchemaArrayOutput

type GetSchemasSchemaInput added in v0.1.2

type GetSchemasSchemaInput interface {
	pulumi.Input

	ToGetSchemasSchemaOutput() GetSchemasSchemaOutput
	ToGetSchemasSchemaOutputWithContext(context.Context) GetSchemasSchemaOutput
}

GetSchemasSchemaInput is an input type that accepts GetSchemasSchemaArgs and GetSchemasSchemaOutput values. You can construct a concrete instance of `GetSchemasSchemaInput` via:

GetSchemasSchemaArgs{...}

type GetSchemasSchemaOutput added in v0.1.2

type GetSchemasSchemaOutput struct{ *pulumi.OutputState }

func (GetSchemasSchemaOutput) Comment added in v0.1.2

func (GetSchemasSchemaOutput) Database added in v0.1.2

The database from which to return the schemas from.

func (GetSchemasSchemaOutput) ElementType added in v0.1.2

func (GetSchemasSchemaOutput) ElementType() reflect.Type

func (GetSchemasSchemaOutput) Name added in v0.1.2

func (GetSchemasSchemaOutput) ToGetSchemasSchemaOutput added in v0.1.2

func (o GetSchemasSchemaOutput) ToGetSchemasSchemaOutput() GetSchemasSchemaOutput

func (GetSchemasSchemaOutput) ToGetSchemasSchemaOutputWithContext added in v0.1.2

func (o GetSchemasSchemaOutput) ToGetSchemasSchemaOutputWithContext(ctx context.Context) GetSchemasSchemaOutput

type GetSequencesArgs added in v0.1.3

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

A collection of arguments for invoking getSequences.

type GetSequencesOutputArgs added in v0.2.0

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

A collection of arguments for invoking getSequences.

func (GetSequencesOutputArgs) ElementType added in v0.2.0

func (GetSequencesOutputArgs) ElementType() reflect.Type

type GetSequencesResult added in v0.1.3

type GetSequencesResult struct {
	// The database from which to return the schemas from.
	Database string `pulumi:"database"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The schema from which to return the sequences from.
	Schema string `pulumi:"schema"`
	// The sequences in the schema
	Sequences []GetSequencesSequence `pulumi:"sequences"`
}

A collection of values returned by getSequences.

func GetSequences added in v0.1.3

func GetSequences(ctx *pulumi.Context, args *GetSequencesArgs, opts ...pulumi.InvokeOption) (*GetSequencesResult, error)

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-snowflake/sdk/go/snowflake"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := snowflake.GetSequences(ctx, &GetSequencesArgs{
			Database: "MYDB",
			Schema:   "MYSCHEMA",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetSequencesResultOutput added in v0.2.0

type GetSequencesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getSequences.

func GetSequencesOutput added in v0.2.0

func GetSequencesOutput(ctx *pulumi.Context, args GetSequencesOutputArgs, opts ...pulumi.InvokeOption) GetSequencesResultOutput

func (GetSequencesResultOutput) Database added in v0.2.0

The database from which to return the schemas from.

func (GetSequencesResultOutput) ElementType added in v0.2.0

func (GetSequencesResultOutput) ElementType() reflect.Type

func (GetSequencesResultOutput) Id added in v0.2.0

The provider-assigned unique ID for this managed resource.

func (GetSequencesResultOutput) Schema added in v0.2.0

The schema from which to return the sequences from.

func (GetSequencesResultOutput) Sequences added in v0.2.0

The sequences in the schema

func (GetSequencesResultOutput) ToGetSequencesResultOutput added in v0.2.0

func (o GetSequencesResultOutput) ToGetSequencesResultOutput() GetSequencesResultOutput

func (GetSequencesResultOutput) ToGetSequencesResultOutputWithContext added in v0.2.0

func (o GetSequencesResultOutput) ToGetSequencesResultOutputWithContext(ctx context.Context) GetSequencesResultOutput

type GetSequencesSequence added in v0.1.3

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

type GetSequencesSequenceArgs added in v0.1.3

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

func (GetSequencesSequenceArgs) ElementType added in v0.1.3

func (GetSequencesSequenceArgs) ElementType() reflect.Type

func (GetSequencesSequenceArgs) ToGetSequencesSequenceOutput added in v0.1.3

func (i GetSequencesSequenceArgs) ToGetSequencesSequenceOutput() GetSequencesSequenceOutput

func (GetSequencesSequenceArgs) ToGetSequencesSequenceOutputWithContext added in v0.1.3

func (i GetSequencesSequenceArgs) ToGetSequencesSequenceOutputWithContext(ctx context.Context) GetSequencesSequenceOutput

type GetSequencesSequenceArray added in v0.1.3

type GetSequencesSequenceArray []GetSequencesSequenceInput

func (GetSequencesSequenceArray) ElementType added in v0.1.3

func (GetSequencesSequenceArray) ElementType() reflect.Type

func (GetSequencesSequenceArray) ToGetSequencesSequenceArrayOutput added in v0.1.3

func (i GetSequencesSequenceArray) ToGetSequencesSequenceArrayOutput() GetSequencesSequenceArrayOutput

func (GetSequencesSequenceArray) ToGetSequencesSequenceArrayOutputWithContext added in v0.1.3

func (i GetSequencesSequenceArray) ToGetSequencesSequenceArrayOutputWithContext(ctx context.Context) GetSequencesSequenceArrayOutput

type GetSequencesSequenceArrayInput added in v0.1.3

type GetSequencesSequenceArrayInput interface {
	pulumi.Input

	ToGetSequencesSequenceArrayOutput() GetSequencesSequenceArrayOutput
	ToGetSequencesSequenceArrayOutputWithContext(context.Context) GetSequencesSequenceArrayOutput
}

GetSequencesSequenceArrayInput is an input type that accepts GetSequencesSequenceArray and GetSequencesSequenceArrayOutput values. You can construct a concrete instance of `GetSequencesSequenceArrayInput` via:

GetSequencesSequenceArray{ GetSequencesSequenceArgs{...} }

type GetSequencesSequenceArrayOutput added in v0.1.3

type GetSequencesSequenceArrayOutput struct{ *pulumi.OutputState }

func (GetSequencesSequenceArrayOutput) ElementType added in v0.1.3

func (GetSequencesSequenceArrayOutput) Index added in v0.1.3

func (GetSequencesSequenceArrayOutput) ToGetSequencesSequenceArrayOutput added in v0.1.3

func (o GetSequencesSequenceArrayOutput) ToGetSequencesSequenceArrayOutput() GetSequencesSequenceArrayOutput

func (GetSequencesSequenceArrayOutput) ToGetSequencesSequenceArrayOutputWithContext added in v0.1.3

func (o GetSequencesSequenceArrayOutput) ToGetSequencesSequenceArrayOutputWithContext(ctx context.Context) GetSequencesSequenceArrayOutput

type GetSequencesSequenceInput added in v0.1.3

type GetSequencesSequenceInput interface {
	pulumi.Input

	ToGetSequencesSequenceOutput() GetSequencesSequenceOutput
	ToGetSequencesSequenceOutputWithContext(context.Context) GetSequencesSequenceOutput
}

GetSequencesSequenceInput is an input type that accepts GetSequencesSequenceArgs and GetSequencesSequenceOutput values. You can construct a concrete instance of `GetSequencesSequenceInput` via:

GetSequencesSequenceArgs{...}

type GetSequencesSequenceOutput added in v0.1.3

type GetSequencesSequenceOutput struct{ *pulumi.OutputState }

func (GetSequencesSequenceOutput) Comment added in v0.1.3

func (GetSequencesSequenceOutput) Database added in v0.1.3

The database from which to return the schemas from.

func (GetSequencesSequenceOutput) ElementType added in v0.1.3

func (GetSequencesSequenceOutput) ElementType() reflect.Type

func (GetSequencesSequenceOutput) Name added in v0.1.3

func (GetSequencesSequenceOutput) Schema added in v0.1.3

The schema from which to return the sequences from.

func (GetSequencesSequenceOutput) ToGetSequencesSequenceOutput added in v0.1.3

func (o GetSequencesSequenceOutput) ToGetSequencesSequenceOutput() GetSequencesSequenceOutput

func (GetSequencesSequenceOutput) ToGetSequencesSequenceOutputWithContext added in v0.1.3

func (o GetSequencesSequenceOutput) ToGetSequencesSequenceOutputWithContext(ctx context.Context) GetSequencesSequenceOutput

type GetStagesArgs added in v0.1.3

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

A collection of arguments for invoking getStages.

type GetStagesOutputArgs added in v0.2.0

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

A collection of arguments for invoking getStages.

func (GetStagesOutputArgs) ElementType added in v0.2.0

func (GetStagesOutputArgs) ElementType() reflect.Type

type GetStagesResult added in v0.1.3

type GetStagesResult struct {
	// The database from which to return the schemas from.
	Database string `pulumi:"database"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The schema from which to return the stages from.
	Schema string `pulumi:"schema"`
	// The stages in the schema
	Stages []GetStagesStage `pulumi:"stages"`
}

A collection of values returned by getStages.

func GetStages added in v0.1.3

func GetStages(ctx *pulumi.Context, args *GetStagesArgs, opts ...pulumi.InvokeOption) (*GetStagesResult, error)

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-snowflake/sdk/go/snowflake"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := snowflake.GetStages(ctx, &GetStagesArgs{
			Database: "MYDB",
			Schema:   "MYSCHEMA",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetStagesResultOutput added in v0.2.0

type GetStagesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getStages.

func GetStagesOutput added in v0.2.0

func GetStagesOutput(ctx *pulumi.Context, args GetStagesOutputArgs, opts ...pulumi.InvokeOption) GetStagesResultOutput

func (GetStagesResultOutput) Database added in v0.2.0

The database from which to return the schemas from.

func (GetStagesResultOutput) ElementType added in v0.2.0

func (GetStagesResultOutput) ElementType() reflect.Type

func (GetStagesResultOutput) Id added in v0.2.0

The provider-assigned unique ID for this managed resource.

func (GetStagesResultOutput) Schema added in v0.2.0

The schema from which to return the stages from.

func (GetStagesResultOutput) Stages added in v0.2.0

The stages in the schema

func (GetStagesResultOutput) ToGetStagesResultOutput added in v0.2.0

func (o GetStagesResultOutput) ToGetStagesResultOutput() GetStagesResultOutput

func (GetStagesResultOutput) ToGetStagesResultOutputWithContext added in v0.2.0

func (o GetStagesResultOutput) ToGetStagesResultOutputWithContext(ctx context.Context) GetStagesResultOutput

type GetStagesStage added in v0.1.3

type GetStagesStage struct {
	Comment string `pulumi:"comment"`
	// The database from which to return the schemas from.
	Database string `pulumi:"database"`
	Name     string `pulumi:"name"`
	// The schema from which to return the stages from.
	Schema             string `pulumi:"schema"`
	StorageIntegration string `pulumi:"storageIntegration"`
}

type GetStagesStageArgs added in v0.1.3

type GetStagesStageArgs struct {
	Comment pulumi.StringInput `pulumi:"comment"`
	// The database from which to return the schemas from.
	Database pulumi.StringInput `pulumi:"database"`
	Name     pulumi.StringInput `pulumi:"name"`
	// The schema from which to return the stages from.
	Schema             pulumi.StringInput `pulumi:"schema"`
	StorageIntegration pulumi.StringInput `pulumi:"storageIntegration"`
}

func (GetStagesStageArgs) ElementType added in v0.1.3

func (GetStagesStageArgs) ElementType() reflect.Type

func (GetStagesStageArgs) ToGetStagesStageOutput added in v0.1.3

func (i GetStagesStageArgs) ToGetStagesStageOutput() GetStagesStageOutput

func (GetStagesStageArgs) ToGetStagesStageOutputWithContext added in v0.1.3

func (i GetStagesStageArgs) ToGetStagesStageOutputWithContext(ctx context.Context) GetStagesStageOutput

type GetStagesStageArray added in v0.1.3

type GetStagesStageArray []GetStagesStageInput

func (GetStagesStageArray) ElementType added in v0.1.3

func (GetStagesStageArray) ElementType() reflect.Type

func (GetStagesStageArray) ToGetStagesStageArrayOutput added in v0.1.3

func (i GetStagesStageArray) ToGetStagesStageArrayOutput() GetStagesStageArrayOutput

func (GetStagesStageArray) ToGetStagesStageArrayOutputWithContext added in v0.1.3

func (i GetStagesStageArray) ToGetStagesStageArrayOutputWithContext(ctx context.Context) GetStagesStageArrayOutput

type GetStagesStageArrayInput added in v0.1.3

type GetStagesStageArrayInput interface {
	pulumi.Input

	ToGetStagesStageArrayOutput() GetStagesStageArrayOutput
	ToGetStagesStageArrayOutputWithContext(context.Context) GetStagesStageArrayOutput
}

GetStagesStageArrayInput is an input type that accepts GetStagesStageArray and GetStagesStageArrayOutput values. You can construct a concrete instance of `GetStagesStageArrayInput` via:

GetStagesStageArray{ GetStagesStageArgs{...} }

type GetStagesStageArrayOutput added in v0.1.3

type GetStagesStageArrayOutput struct{ *pulumi.OutputState }

func (GetStagesStageArrayOutput) ElementType added in v0.1.3

func (GetStagesStageArrayOutput) ElementType() reflect.Type

func (GetStagesStageArrayOutput) Index added in v0.1.3

func (GetStagesStageArrayOutput) ToGetStagesStageArrayOutput added in v0.1.3

func (o GetStagesStageArrayOutput) ToGetStagesStageArrayOutput() GetStagesStageArrayOutput

func (GetStagesStageArrayOutput) ToGetStagesStageArrayOutputWithContext added in v0.1.3

func (o GetStagesStageArrayOutput) ToGetStagesStageArrayOutputWithContext(ctx context.Context) GetStagesStageArrayOutput

type GetStagesStageInput added in v0.1.3

type GetStagesStageInput interface {
	pulumi.Input

	ToGetStagesStageOutput() GetStagesStageOutput
	ToGetStagesStageOutputWithContext(context.Context) GetStagesStageOutput
}

GetStagesStageInput is an input type that accepts GetStagesStageArgs and GetStagesStageOutput values. You can construct a concrete instance of `GetStagesStageInput` via:

GetStagesStageArgs{...}

type GetStagesStageOutput added in v0.1.3

type GetStagesStageOutput struct{ *pulumi.OutputState }

func (GetStagesStageOutput) Comment added in v0.1.3

func (GetStagesStageOutput) Database added in v0.1.3

The database from which to return the schemas from.

func (GetStagesStageOutput) ElementType added in v0.1.3

func (GetStagesStageOutput) ElementType() reflect.Type

func (GetStagesStageOutput) Name added in v0.1.3

func (GetStagesStageOutput) Schema added in v0.1.3

The schema from which to return the stages from.

func (GetStagesStageOutput) StorageIntegration added in v0.1.3

func (o GetStagesStageOutput) StorageIntegration() pulumi.StringOutput

func (GetStagesStageOutput) ToGetStagesStageOutput added in v0.1.3

func (o GetStagesStageOutput) ToGetStagesStageOutput() GetStagesStageOutput

func (GetStagesStageOutput) ToGetStagesStageOutputWithContext added in v0.1.3

func (o GetStagesStageOutput) ToGetStagesStageOutputWithContext(ctx context.Context) GetStagesStageOutput

type GetStorageIntegrationsResult added in v0.1.3

type GetStorageIntegrationsResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The storage integrations in the database
	StorageIntegrations []GetStorageIntegrationsStorageIntegration `pulumi:"storageIntegrations"`
}

A collection of values returned by getStorageIntegrations.

func GetStorageIntegrations added in v0.1.3

func GetStorageIntegrations(ctx *pulumi.Context, opts ...pulumi.InvokeOption) (*GetStorageIntegrationsResult, error)

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-snowflake/sdk/go/snowflake"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := snowflake.GetStorageIntegrations(ctx, nil, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetStorageIntegrationsStorageIntegration added in v0.1.3

type GetStorageIntegrationsStorageIntegration struct {
	Comment string `pulumi:"comment"`
	Enabled bool   `pulumi:"enabled"`
	Name    string `pulumi:"name"`
	Type    string `pulumi:"type"`
}

type GetStorageIntegrationsStorageIntegrationArgs added in v0.1.3

type GetStorageIntegrationsStorageIntegrationArgs struct {
	Comment pulumi.StringInput `pulumi:"comment"`
	Enabled pulumi.BoolInput   `pulumi:"enabled"`
	Name    pulumi.StringInput `pulumi:"name"`
	Type    pulumi.StringInput `pulumi:"type"`
}

func (GetStorageIntegrationsStorageIntegrationArgs) ElementType added in v0.1.3

func (GetStorageIntegrationsStorageIntegrationArgs) ToGetStorageIntegrationsStorageIntegrationOutput added in v0.1.3

func (i GetStorageIntegrationsStorageIntegrationArgs) ToGetStorageIntegrationsStorageIntegrationOutput() GetStorageIntegrationsStorageIntegrationOutput

func (GetStorageIntegrationsStorageIntegrationArgs) ToGetStorageIntegrationsStorageIntegrationOutputWithContext added in v0.1.3

func (i GetStorageIntegrationsStorageIntegrationArgs) ToGetStorageIntegrationsStorageIntegrationOutputWithContext(ctx context.Context) GetStorageIntegrationsStorageIntegrationOutput

type GetStorageIntegrationsStorageIntegrationArray added in v0.1.3

type GetStorageIntegrationsStorageIntegrationArray []GetStorageIntegrationsStorageIntegrationInput

func (GetStorageIntegrationsStorageIntegrationArray) ElementType added in v0.1.3

func (GetStorageIntegrationsStorageIntegrationArray) ToGetStorageIntegrationsStorageIntegrationArrayOutput added in v0.1.3

func (i GetStorageIntegrationsStorageIntegrationArray) ToGetStorageIntegrationsStorageIntegrationArrayOutput() GetStorageIntegrationsStorageIntegrationArrayOutput

func (GetStorageIntegrationsStorageIntegrationArray) ToGetStorageIntegrationsStorageIntegrationArrayOutputWithContext added in v0.1.3

func (i GetStorageIntegrationsStorageIntegrationArray) ToGetStorageIntegrationsStorageIntegrationArrayOutputWithContext(ctx context.Context) GetStorageIntegrationsStorageIntegrationArrayOutput

type GetStorageIntegrationsStorageIntegrationArrayInput added in v0.1.3

type GetStorageIntegrationsStorageIntegrationArrayInput interface {
	pulumi.Input

	ToGetStorageIntegrationsStorageIntegrationArrayOutput() GetStorageIntegrationsStorageIntegrationArrayOutput
	ToGetStorageIntegrationsStorageIntegrationArrayOutputWithContext(context.Context) GetStorageIntegrationsStorageIntegrationArrayOutput
}

GetStorageIntegrationsStorageIntegrationArrayInput is an input type that accepts GetStorageIntegrationsStorageIntegrationArray and GetStorageIntegrationsStorageIntegrationArrayOutput values. You can construct a concrete instance of `GetStorageIntegrationsStorageIntegrationArrayInput` via:

GetStorageIntegrationsStorageIntegrationArray{ GetStorageIntegrationsStorageIntegrationArgs{...} }

type GetStorageIntegrationsStorageIntegrationArrayOutput added in v0.1.3

type GetStorageIntegrationsStorageIntegrationArrayOutput struct{ *pulumi.OutputState }

func (GetStorageIntegrationsStorageIntegrationArrayOutput) ElementType added in v0.1.3

func (GetStorageIntegrationsStorageIntegrationArrayOutput) Index added in v0.1.3

func (GetStorageIntegrationsStorageIntegrationArrayOutput) ToGetStorageIntegrationsStorageIntegrationArrayOutput added in v0.1.3

func (o GetStorageIntegrationsStorageIntegrationArrayOutput) ToGetStorageIntegrationsStorageIntegrationArrayOutput() GetStorageIntegrationsStorageIntegrationArrayOutput

func (GetStorageIntegrationsStorageIntegrationArrayOutput) ToGetStorageIntegrationsStorageIntegrationArrayOutputWithContext added in v0.1.3

func (o GetStorageIntegrationsStorageIntegrationArrayOutput) ToGetStorageIntegrationsStorageIntegrationArrayOutputWithContext(ctx context.Context) GetStorageIntegrationsStorageIntegrationArrayOutput

type GetStorageIntegrationsStorageIntegrationInput added in v0.1.3

type GetStorageIntegrationsStorageIntegrationInput interface {
	pulumi.Input

	ToGetStorageIntegrationsStorageIntegrationOutput() GetStorageIntegrationsStorageIntegrationOutput
	ToGetStorageIntegrationsStorageIntegrationOutputWithContext(context.Context) GetStorageIntegrationsStorageIntegrationOutput
}

GetStorageIntegrationsStorageIntegrationInput is an input type that accepts GetStorageIntegrationsStorageIntegrationArgs and GetStorageIntegrationsStorageIntegrationOutput values. You can construct a concrete instance of `GetStorageIntegrationsStorageIntegrationInput` via:

GetStorageIntegrationsStorageIntegrationArgs{...}

type GetStorageIntegrationsStorageIntegrationOutput added in v0.1.3

type GetStorageIntegrationsStorageIntegrationOutput struct{ *pulumi.OutputState }

func (GetStorageIntegrationsStorageIntegrationOutput) Comment added in v0.1.3

func (GetStorageIntegrationsStorageIntegrationOutput) ElementType added in v0.1.3

func (GetStorageIntegrationsStorageIntegrationOutput) Enabled added in v0.1.3

func (GetStorageIntegrationsStorageIntegrationOutput) Name added in v0.1.3

func (GetStorageIntegrationsStorageIntegrationOutput) ToGetStorageIntegrationsStorageIntegrationOutput added in v0.1.3

func (o GetStorageIntegrationsStorageIntegrationOutput) ToGetStorageIntegrationsStorageIntegrationOutput() GetStorageIntegrationsStorageIntegrationOutput

func (GetStorageIntegrationsStorageIntegrationOutput) ToGetStorageIntegrationsStorageIntegrationOutputWithContext added in v0.1.3

func (o GetStorageIntegrationsStorageIntegrationOutput) ToGetStorageIntegrationsStorageIntegrationOutputWithContext(ctx context.Context) GetStorageIntegrationsStorageIntegrationOutput

func (GetStorageIntegrationsStorageIntegrationOutput) Type added in v0.1.3

type GetStreamsArgs added in v0.1.3

type GetStreamsArgs struct {
	// The database from which to return the streams from.
	Database string `pulumi:"database"`
	// The schema from which to return the streams from.
	Schema string `pulumi:"schema"`
}

A collection of arguments for invoking getStreams.

type GetStreamsOutputArgs added in v0.2.0

type GetStreamsOutputArgs struct {
	// The database from which to return the streams from.
	Database pulumi.StringInput `pulumi:"database"`
	// The schema from which to return the streams from.
	Schema pulumi.StringInput `pulumi:"schema"`
}

A collection of arguments for invoking getStreams.

func (GetStreamsOutputArgs) ElementType added in v0.2.0

func (GetStreamsOutputArgs) ElementType() reflect.Type

type GetStreamsResult added in v0.1.3

type GetStreamsResult struct {
	// The database from which to return the streams from.
	Database string `pulumi:"database"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The schema from which to return the streams from.
	Schema string `pulumi:"schema"`
	// The streams in the schema
	Streams []GetStreamsStream `pulumi:"streams"`
}

A collection of values returned by getStreams.

func GetStreams added in v0.1.3

func GetStreams(ctx *pulumi.Context, args *GetStreamsArgs, opts ...pulumi.InvokeOption) (*GetStreamsResult, error)

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-snowflake/sdk/go/snowflake"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := snowflake.GetStreams(ctx, &GetStreamsArgs{
			Database: "MYDB",
			Schema:   "MYSCHEMA",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetStreamsResultOutput added in v0.2.0

type GetStreamsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getStreams.

func GetStreamsOutput added in v0.2.0

func GetStreamsOutput(ctx *pulumi.Context, args GetStreamsOutputArgs, opts ...pulumi.InvokeOption) GetStreamsResultOutput

func (GetStreamsResultOutput) Database added in v0.2.0

The database from which to return the streams from.

func (GetStreamsResultOutput) ElementType added in v0.2.0

func (GetStreamsResultOutput) ElementType() reflect.Type

func (GetStreamsResultOutput) Id added in v0.2.0

The provider-assigned unique ID for this managed resource.

func (GetStreamsResultOutput) Schema added in v0.2.0

The schema from which to return the streams from.

func (GetStreamsResultOutput) Streams added in v0.2.0

The streams in the schema

func (GetStreamsResultOutput) ToGetStreamsResultOutput added in v0.2.0

func (o GetStreamsResultOutput) ToGetStreamsResultOutput() GetStreamsResultOutput

func (GetStreamsResultOutput) ToGetStreamsResultOutputWithContext added in v0.2.0

func (o GetStreamsResultOutput) ToGetStreamsResultOutputWithContext(ctx context.Context) GetStreamsResultOutput

type GetStreamsStream added in v0.1.3

type GetStreamsStream struct {
	Comment string `pulumi:"comment"`
	// The database from which to return the streams from.
	Database string `pulumi:"database"`
	Name     string `pulumi:"name"`
	// The schema from which to return the streams from.
	Schema string `pulumi:"schema"`
	Table  string `pulumi:"table"`
}

type GetStreamsStreamArgs added in v0.1.3

type GetStreamsStreamArgs struct {
	Comment pulumi.StringInput `pulumi:"comment"`
	// The database from which to return the streams from.
	Database pulumi.StringInput `pulumi:"database"`
	Name     pulumi.StringInput `pulumi:"name"`
	// The schema from which to return the streams from.
	Schema pulumi.StringInput `pulumi:"schema"`
	Table  pulumi.StringInput `pulumi:"table"`
}

func (GetStreamsStreamArgs) ElementType added in v0.1.3

func (GetStreamsStreamArgs) ElementType() reflect.Type

func (GetStreamsStreamArgs) ToGetStreamsStreamOutput added in v0.1.3

func (i GetStreamsStreamArgs) ToGetStreamsStreamOutput() GetStreamsStreamOutput

func (GetStreamsStreamArgs) ToGetStreamsStreamOutputWithContext added in v0.1.3

func (i GetStreamsStreamArgs) ToGetStreamsStreamOutputWithContext(ctx context.Context) GetStreamsStreamOutput

type GetStreamsStreamArray added in v0.1.3

type GetStreamsStreamArray []GetStreamsStreamInput

func (GetStreamsStreamArray) ElementType added in v0.1.3

func (GetStreamsStreamArray) ElementType() reflect.Type

func (GetStreamsStreamArray) ToGetStreamsStreamArrayOutput added in v0.1.3

func (i GetStreamsStreamArray) ToGetStreamsStreamArrayOutput() GetStreamsStreamArrayOutput

func (GetStreamsStreamArray) ToGetStreamsStreamArrayOutputWithContext added in v0.1.3

func (i GetStreamsStreamArray) ToGetStreamsStreamArrayOutputWithContext(ctx context.Context) GetStreamsStreamArrayOutput

type GetStreamsStreamArrayInput added in v0.1.3

type GetStreamsStreamArrayInput interface {
	pulumi.Input

	ToGetStreamsStreamArrayOutput() GetStreamsStreamArrayOutput
	ToGetStreamsStreamArrayOutputWithContext(context.Context) GetStreamsStreamArrayOutput
}

GetStreamsStreamArrayInput is an input type that accepts GetStreamsStreamArray and GetStreamsStreamArrayOutput values. You can construct a concrete instance of `GetStreamsStreamArrayInput` via:

GetStreamsStreamArray{ GetStreamsStreamArgs{...} }

type GetStreamsStreamArrayOutput added in v0.1.3

type GetStreamsStreamArrayOutput struct{ *pulumi.OutputState }

func (GetStreamsStreamArrayOutput) ElementType added in v0.1.3

func (GetStreamsStreamArrayOutput) Index added in v0.1.3

func (GetStreamsStreamArrayOutput) ToGetStreamsStreamArrayOutput added in v0.1.3

func (o GetStreamsStreamArrayOutput) ToGetStreamsStreamArrayOutput() GetStreamsStreamArrayOutput

func (GetStreamsStreamArrayOutput) ToGetStreamsStreamArrayOutputWithContext added in v0.1.3

func (o GetStreamsStreamArrayOutput) ToGetStreamsStreamArrayOutputWithContext(ctx context.Context) GetStreamsStreamArrayOutput

type GetStreamsStreamInput added in v0.1.3

type GetStreamsStreamInput interface {
	pulumi.Input

	ToGetStreamsStreamOutput() GetStreamsStreamOutput
	ToGetStreamsStreamOutputWithContext(context.Context) GetStreamsStreamOutput
}

GetStreamsStreamInput is an input type that accepts GetStreamsStreamArgs and GetStreamsStreamOutput values. You can construct a concrete instance of `GetStreamsStreamInput` via:

GetStreamsStreamArgs{...}

type GetStreamsStreamOutput added in v0.1.3

type GetStreamsStreamOutput struct{ *pulumi.OutputState }

func (GetStreamsStreamOutput) Comment added in v0.1.3

func (GetStreamsStreamOutput) Database added in v0.1.3

The database from which to return the streams from.

func (GetStreamsStreamOutput) ElementType added in v0.1.3

func (GetStreamsStreamOutput) ElementType() reflect.Type

func (GetStreamsStreamOutput) Name added in v0.1.3

func (GetStreamsStreamOutput) Schema added in v0.1.3

The schema from which to return the streams from.

func (GetStreamsStreamOutput) Table added in v0.1.3

func (GetStreamsStreamOutput) ToGetStreamsStreamOutput added in v0.1.3

func (o GetStreamsStreamOutput) ToGetStreamsStreamOutput() GetStreamsStreamOutput

func (GetStreamsStreamOutput) ToGetStreamsStreamOutputWithContext added in v0.1.3

func (o GetStreamsStreamOutput) ToGetStreamsStreamOutputWithContext(ctx context.Context) GetStreamsStreamOutput

type GetSystemGenerateScimAccessTokenArgs

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

A collection of arguments for invoking getSystemGenerateScimAccessToken.

type GetSystemGenerateScimAccessTokenOutputArgs added in v0.2.0

type GetSystemGenerateScimAccessTokenOutputArgs struct {
	// SCIM Integration Name
	IntegrationName pulumi.StringInput `pulumi:"integrationName"`
}

A collection of arguments for invoking getSystemGenerateScimAccessToken.

func (GetSystemGenerateScimAccessTokenOutputArgs) ElementType added in v0.2.0

type GetSystemGenerateScimAccessTokenResult

type GetSystemGenerateScimAccessTokenResult struct {
	// SCIM Access Token
	AccessToken string `pulumi:"accessToken"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// SCIM Integration Name
	IntegrationName string `pulumi:"integrationName"`
}

A collection of values returned by getSystemGenerateScimAccessToken.

func GetSystemGenerateScimAccessToken

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-snowflake/sdk/go/snowflake"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := snowflake.GetSystemGenerateScimAccessToken(ctx, &GetSystemGenerateScimAccessTokenArgs{
			IntegrationName: "AAD_PROVISIONING",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetSystemGenerateScimAccessTokenResultOutput added in v0.2.0

type GetSystemGenerateScimAccessTokenResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getSystemGenerateScimAccessToken.

func (GetSystemGenerateScimAccessTokenResultOutput) AccessToken added in v0.2.0

SCIM Access Token

func (GetSystemGenerateScimAccessTokenResultOutput) ElementType added in v0.2.0

func (GetSystemGenerateScimAccessTokenResultOutput) Id added in v0.2.0

The provider-assigned unique ID for this managed resource.

func (GetSystemGenerateScimAccessTokenResultOutput) IntegrationName added in v0.2.0

SCIM Integration Name

func (GetSystemGenerateScimAccessTokenResultOutput) ToGetSystemGenerateScimAccessTokenResultOutput added in v0.2.0

func (o GetSystemGenerateScimAccessTokenResultOutput) ToGetSystemGenerateScimAccessTokenResultOutput() GetSystemGenerateScimAccessTokenResultOutput

func (GetSystemGenerateScimAccessTokenResultOutput) ToGetSystemGenerateScimAccessTokenResultOutputWithContext added in v0.2.0

func (o GetSystemGenerateScimAccessTokenResultOutput) ToGetSystemGenerateScimAccessTokenResultOutputWithContext(ctx context.Context) GetSystemGenerateScimAccessTokenResultOutput

type GetSystemGetAwsSnsIamPolicyArgs

type GetSystemGetAwsSnsIamPolicyArgs struct {
	// Amazon Resource Name (ARN) of the SNS topic for your S3 bucket
	AwsSnsTopicArn string `pulumi:"awsSnsTopicArn"`
}

A collection of arguments for invoking getSystemGetAwsSnsIamPolicy.

type GetSystemGetAwsSnsIamPolicyOutputArgs added in v0.2.0

type GetSystemGetAwsSnsIamPolicyOutputArgs struct {
	// Amazon Resource Name (ARN) of the SNS topic for your S3 bucket
	AwsSnsTopicArn pulumi.StringInput `pulumi:"awsSnsTopicArn"`
}

A collection of arguments for invoking getSystemGetAwsSnsIamPolicy.

func (GetSystemGetAwsSnsIamPolicyOutputArgs) ElementType added in v0.2.0

type GetSystemGetAwsSnsIamPolicyResult

type GetSystemGetAwsSnsIamPolicyResult struct {
	// Amazon Resource Name (ARN) of the SNS topic for your S3 bucket
	AwsSnsTopicArn string `pulumi:"awsSnsTopicArn"`
	// IAM policy for Snowflake’s SQS queue to subscribe to this topic
	AwsSnsTopicPolicyJson string `pulumi:"awsSnsTopicPolicyJson"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
}

A collection of values returned by getSystemGetAwsSnsIamPolicy.

type GetSystemGetAwsSnsIamPolicyResultOutput added in v0.2.0

type GetSystemGetAwsSnsIamPolicyResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getSystemGetAwsSnsIamPolicy.

func (GetSystemGetAwsSnsIamPolicyResultOutput) AwsSnsTopicArn added in v0.2.0

Amazon Resource Name (ARN) of the SNS topic for your S3 bucket

func (GetSystemGetAwsSnsIamPolicyResultOutput) AwsSnsTopicPolicyJson added in v0.2.0

IAM policy for Snowflake’s SQS queue to subscribe to this topic

func (GetSystemGetAwsSnsIamPolicyResultOutput) ElementType added in v0.2.0

func (GetSystemGetAwsSnsIamPolicyResultOutput) Id added in v0.2.0

The provider-assigned unique ID for this managed resource.

func (GetSystemGetAwsSnsIamPolicyResultOutput) ToGetSystemGetAwsSnsIamPolicyResultOutput added in v0.2.0

func (o GetSystemGetAwsSnsIamPolicyResultOutput) ToGetSystemGetAwsSnsIamPolicyResultOutput() GetSystemGetAwsSnsIamPolicyResultOutput

func (GetSystemGetAwsSnsIamPolicyResultOutput) ToGetSystemGetAwsSnsIamPolicyResultOutputWithContext added in v0.2.0

func (o GetSystemGetAwsSnsIamPolicyResultOutput) ToGetSystemGetAwsSnsIamPolicyResultOutputWithContext(ctx context.Context) GetSystemGetAwsSnsIamPolicyResultOutput

type GetSystemGetPrivateLinkConfigResult

type GetSystemGetPrivateLinkConfigResult struct {
	// The name of your Snowflake account.
	AccountName string `pulumi:"accountName"`
	// The URL used to connect to Snowflake through AWS PrivateLink or Azure Private Link.
	AccountUrl string `pulumi:"accountUrl"`
	// The AWS VPCE ID for your account.
	AwsVpceId string `pulumi:"awsVpceId"`
	// The Azure Private Link Service ID for your account.
	AzurePlsId string `pulumi:"azurePlsId"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The OCSP URL corresponding to your Snowflake account that uses AWS PrivateLink or Azure Private Link.
	OcspUrl string `pulumi:"ocspUrl"`
}

A collection of values returned by getSystemGetPrivateLinkConfig.

func GetSystemGetPrivateLinkConfig

func GetSystemGetPrivateLinkConfig(ctx *pulumi.Context, opts ...pulumi.InvokeOption) (*GetSystemGetPrivateLinkConfigResult, error)

type GetSystemGetSnowflakePlatformInfoResult

type GetSystemGetSnowflakePlatformInfoResult struct {
	// Snowflake AWS Virtual Private Cloud IDs
	AwsVpcIds []string `pulumi:"awsVpcIds"`
	// Snowflake Azure Virtual Network Subnet IDs
	AzureVnetSubnetIds []string `pulumi:"azureVnetSubnetIds"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
}

A collection of values returned by getSystemGetSnowflakePlatformInfo.

type GetTablesArgs added in v0.1.2

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

A collection of arguments for invoking getTables.

type GetTablesOutputArgs added in v0.2.0

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

A collection of arguments for invoking getTables.

func (GetTablesOutputArgs) ElementType added in v0.2.0

func (GetTablesOutputArgs) ElementType() reflect.Type

type GetTablesResult added in v0.1.2

type GetTablesResult struct {
	// The database from which to return the schemas from.
	Database string `pulumi:"database"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The schema from which to return the tables from.
	Schema string `pulumi:"schema"`
	// The tables in the schema
	Tables []GetTablesTable `pulumi:"tables"`
}

A collection of values returned by getTables.

func GetTables added in v0.1.2

func GetTables(ctx *pulumi.Context, args *GetTablesArgs, opts ...pulumi.InvokeOption) (*GetTablesResult, error)

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-snowflake/sdk/go/snowflake"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := snowflake.GetTables(ctx, &GetTablesArgs{
			Database: "MYDB",
			Schema:   "MYSCHEMA",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetTablesResultOutput added in v0.2.0

type GetTablesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getTables.

func GetTablesOutput added in v0.2.0

func GetTablesOutput(ctx *pulumi.Context, args GetTablesOutputArgs, opts ...pulumi.InvokeOption) GetTablesResultOutput

func (GetTablesResultOutput) Database added in v0.2.0

The database from which to return the schemas from.

func (GetTablesResultOutput) ElementType added in v0.2.0

func (GetTablesResultOutput) ElementType() reflect.Type

func (GetTablesResultOutput) Id added in v0.2.0

The provider-assigned unique ID for this managed resource.

func (GetTablesResultOutput) Schema added in v0.2.0

The schema from which to return the tables from.

func (GetTablesResultOutput) Tables added in v0.2.0

The tables in the schema

func (GetTablesResultOutput) ToGetTablesResultOutput added in v0.2.0

func (o GetTablesResultOutput) ToGetTablesResultOutput() GetTablesResultOutput

func (GetTablesResultOutput) ToGetTablesResultOutputWithContext added in v0.2.0

func (o GetTablesResultOutput) ToGetTablesResultOutputWithContext(ctx context.Context) GetTablesResultOutput

type GetTablesTable added in v0.1.2

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

type GetTablesTableArgs added in v0.1.2

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

func (GetTablesTableArgs) ElementType added in v0.1.2

func (GetTablesTableArgs) ElementType() reflect.Type

func (GetTablesTableArgs) ToGetTablesTableOutput added in v0.1.2

func (i GetTablesTableArgs) ToGetTablesTableOutput() GetTablesTableOutput

func (GetTablesTableArgs) ToGetTablesTableOutputWithContext added in v0.1.2

func (i GetTablesTableArgs) ToGetTablesTableOutputWithContext(ctx context.Context) GetTablesTableOutput

type GetTablesTableArray added in v0.1.2

type GetTablesTableArray []GetTablesTableInput

func (GetTablesTableArray) ElementType added in v0.1.2

func (GetTablesTableArray) ElementType() reflect.Type

func (GetTablesTableArray) ToGetTablesTableArrayOutput added in v0.1.2

func (i GetTablesTableArray) ToGetTablesTableArrayOutput() GetTablesTableArrayOutput

func (GetTablesTableArray) ToGetTablesTableArrayOutputWithContext added in v0.1.2

func (i GetTablesTableArray) ToGetTablesTableArrayOutputWithContext(ctx context.Context) GetTablesTableArrayOutput

type GetTablesTableArrayInput added in v0.1.2

type GetTablesTableArrayInput interface {
	pulumi.Input

	ToGetTablesTableArrayOutput() GetTablesTableArrayOutput
	ToGetTablesTableArrayOutputWithContext(context.Context) GetTablesTableArrayOutput
}

GetTablesTableArrayInput is an input type that accepts GetTablesTableArray and GetTablesTableArrayOutput values. You can construct a concrete instance of `GetTablesTableArrayInput` via:

GetTablesTableArray{ GetTablesTableArgs{...} }

type GetTablesTableArrayOutput added in v0.1.2

type GetTablesTableArrayOutput struct{ *pulumi.OutputState }

func (GetTablesTableArrayOutput) ElementType added in v0.1.2

func (GetTablesTableArrayOutput) ElementType() reflect.Type

func (GetTablesTableArrayOutput) Index added in v0.1.2

func (GetTablesTableArrayOutput) ToGetTablesTableArrayOutput added in v0.1.2

func (o GetTablesTableArrayOutput) ToGetTablesTableArrayOutput() GetTablesTableArrayOutput

func (GetTablesTableArrayOutput) ToGetTablesTableArrayOutputWithContext added in v0.1.2

func (o GetTablesTableArrayOutput) ToGetTablesTableArrayOutputWithContext(ctx context.Context) GetTablesTableArrayOutput

type GetTablesTableInput added in v0.1.2

type GetTablesTableInput interface {
	pulumi.Input

	ToGetTablesTableOutput() GetTablesTableOutput
	ToGetTablesTableOutputWithContext(context.Context) GetTablesTableOutput
}

GetTablesTableInput is an input type that accepts GetTablesTableArgs and GetTablesTableOutput values. You can construct a concrete instance of `GetTablesTableInput` via:

GetTablesTableArgs{...}

type GetTablesTableOutput added in v0.1.2

type GetTablesTableOutput struct{ *pulumi.OutputState }

func (GetTablesTableOutput) Comment added in v0.1.2

func (GetTablesTableOutput) Database added in v0.1.2

The database from which to return the schemas from.

func (GetTablesTableOutput) ElementType added in v0.1.2

func (GetTablesTableOutput) ElementType() reflect.Type

func (GetTablesTableOutput) Name added in v0.1.2

func (GetTablesTableOutput) Schema added in v0.1.2

The schema from which to return the tables from.

func (GetTablesTableOutput) ToGetTablesTableOutput added in v0.1.2

func (o GetTablesTableOutput) ToGetTablesTableOutput() GetTablesTableOutput

func (GetTablesTableOutput) ToGetTablesTableOutputWithContext added in v0.1.2

func (o GetTablesTableOutput) ToGetTablesTableOutputWithContext(ctx context.Context) GetTablesTableOutput

type GetTasksArgs added in v0.1.3

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

A collection of arguments for invoking getTasks.

type GetTasksOutputArgs added in v0.2.0

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

A collection of arguments for invoking getTasks.

func (GetTasksOutputArgs) ElementType added in v0.2.0

func (GetTasksOutputArgs) ElementType() reflect.Type

type GetTasksResult added in v0.1.3

type GetTasksResult struct {
	// The database from which to return the schemas from.
	Database string `pulumi:"database"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The schema from which to return the tasks from.
	Schema string `pulumi:"schema"`
	// The tasks in the schema
	Tasks []GetTasksTask `pulumi:"tasks"`
}

A collection of values returned by getTasks.

func GetTasks added in v0.1.3

func GetTasks(ctx *pulumi.Context, args *GetTasksArgs, opts ...pulumi.InvokeOption) (*GetTasksResult, error)

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-snowflake/sdk/go/snowflake"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := snowflake.GetTasks(ctx, &GetTasksArgs{
			Database: "MYDB",
			Schema:   "MYSCHEMA",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetTasksResultOutput added in v0.2.0

type GetTasksResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getTasks.

func GetTasksOutput added in v0.2.0

func GetTasksOutput(ctx *pulumi.Context, args GetTasksOutputArgs, opts ...pulumi.InvokeOption) GetTasksResultOutput

func (GetTasksResultOutput) Database added in v0.2.0

The database from which to return the schemas from.

func (GetTasksResultOutput) ElementType added in v0.2.0

func (GetTasksResultOutput) ElementType() reflect.Type

func (GetTasksResultOutput) Id added in v0.2.0

The provider-assigned unique ID for this managed resource.

func (GetTasksResultOutput) Schema added in v0.2.0

The schema from which to return the tasks from.

func (GetTasksResultOutput) Tasks added in v0.2.0

The tasks in the schema

func (GetTasksResultOutput) ToGetTasksResultOutput added in v0.2.0

func (o GetTasksResultOutput) ToGetTasksResultOutput() GetTasksResultOutput

func (GetTasksResultOutput) ToGetTasksResultOutputWithContext added in v0.2.0

func (o GetTasksResultOutput) ToGetTasksResultOutputWithContext(ctx context.Context) GetTasksResultOutput

type GetTasksTask added in v0.1.3

type GetTasksTask struct {
	Comment string `pulumi:"comment"`
	// The database from which to return the schemas from.
	Database string `pulumi:"database"`
	Name     string `pulumi:"name"`
	// The schema from which to return the tasks from.
	Schema    string `pulumi:"schema"`
	Warehouse string `pulumi:"warehouse"`
}

type GetTasksTaskArgs added in v0.1.3

type GetTasksTaskArgs struct {
	Comment pulumi.StringInput `pulumi:"comment"`
	// The database from which to return the schemas from.
	Database pulumi.StringInput `pulumi:"database"`
	Name     pulumi.StringInput `pulumi:"name"`
	// The schema from which to return the tasks from.
	Schema    pulumi.StringInput `pulumi:"schema"`
	Warehouse pulumi.StringInput `pulumi:"warehouse"`
}

func (GetTasksTaskArgs) ElementType added in v0.1.3

func (GetTasksTaskArgs) ElementType() reflect.Type

func (GetTasksTaskArgs) ToGetTasksTaskOutput added in v0.1.3

func (i GetTasksTaskArgs) ToGetTasksTaskOutput() GetTasksTaskOutput

func (GetTasksTaskArgs) ToGetTasksTaskOutputWithContext added in v0.1.3

func (i GetTasksTaskArgs) ToGetTasksTaskOutputWithContext(ctx context.Context) GetTasksTaskOutput

type GetTasksTaskArray added in v0.1.3

type GetTasksTaskArray []GetTasksTaskInput

func (GetTasksTaskArray) ElementType added in v0.1.3

func (GetTasksTaskArray) ElementType() reflect.Type

func (GetTasksTaskArray) ToGetTasksTaskArrayOutput added in v0.1.3

func (i GetTasksTaskArray) ToGetTasksTaskArrayOutput() GetTasksTaskArrayOutput

func (GetTasksTaskArray) ToGetTasksTaskArrayOutputWithContext added in v0.1.3

func (i GetTasksTaskArray) ToGetTasksTaskArrayOutputWithContext(ctx context.Context) GetTasksTaskArrayOutput

type GetTasksTaskArrayInput added in v0.1.3

type GetTasksTaskArrayInput interface {
	pulumi.Input

	ToGetTasksTaskArrayOutput() GetTasksTaskArrayOutput
	ToGetTasksTaskArrayOutputWithContext(context.Context) GetTasksTaskArrayOutput
}

GetTasksTaskArrayInput is an input type that accepts GetTasksTaskArray and GetTasksTaskArrayOutput values. You can construct a concrete instance of `GetTasksTaskArrayInput` via:

GetTasksTaskArray{ GetTasksTaskArgs{...} }

type GetTasksTaskArrayOutput added in v0.1.3

type GetTasksTaskArrayOutput struct{ *pulumi.OutputState }

func (GetTasksTaskArrayOutput) ElementType added in v0.1.3

func (GetTasksTaskArrayOutput) ElementType() reflect.Type

func (GetTasksTaskArrayOutput) Index added in v0.1.3

func (GetTasksTaskArrayOutput) ToGetTasksTaskArrayOutput added in v0.1.3

func (o GetTasksTaskArrayOutput) ToGetTasksTaskArrayOutput() GetTasksTaskArrayOutput

func (GetTasksTaskArrayOutput) ToGetTasksTaskArrayOutputWithContext added in v0.1.3

func (o GetTasksTaskArrayOutput) ToGetTasksTaskArrayOutputWithContext(ctx context.Context) GetTasksTaskArrayOutput

type GetTasksTaskInput added in v0.1.3

type GetTasksTaskInput interface {
	pulumi.Input

	ToGetTasksTaskOutput() GetTasksTaskOutput
	ToGetTasksTaskOutputWithContext(context.Context) GetTasksTaskOutput
}

GetTasksTaskInput is an input type that accepts GetTasksTaskArgs and GetTasksTaskOutput values. You can construct a concrete instance of `GetTasksTaskInput` via:

GetTasksTaskArgs{...}

type GetTasksTaskOutput added in v0.1.3

type GetTasksTaskOutput struct{ *pulumi.OutputState }

func (GetTasksTaskOutput) Comment added in v0.1.3

func (GetTasksTaskOutput) Database added in v0.1.3

func (o GetTasksTaskOutput) Database() pulumi.StringOutput

The database from which to return the schemas from.

func (GetTasksTaskOutput) ElementType added in v0.1.3

func (GetTasksTaskOutput) ElementType() reflect.Type

func (GetTasksTaskOutput) Name added in v0.1.3

func (GetTasksTaskOutput) Schema added in v0.1.3

The schema from which to return the tasks from.

func (GetTasksTaskOutput) ToGetTasksTaskOutput added in v0.1.3

func (o GetTasksTaskOutput) ToGetTasksTaskOutput() GetTasksTaskOutput

func (GetTasksTaskOutput) ToGetTasksTaskOutputWithContext added in v0.1.3

func (o GetTasksTaskOutput) ToGetTasksTaskOutputWithContext(ctx context.Context) GetTasksTaskOutput

func (GetTasksTaskOutput) Warehouse added in v0.1.3

func (o GetTasksTaskOutput) Warehouse() pulumi.StringOutput

type GetViewsArgs added in v0.1.2

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

A collection of arguments for invoking getViews.

type GetViewsOutputArgs added in v0.2.0

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

A collection of arguments for invoking getViews.

func (GetViewsOutputArgs) ElementType added in v0.2.0

func (GetViewsOutputArgs) ElementType() reflect.Type

type GetViewsResult added in v0.1.2

type GetViewsResult struct {
	// The database from which to return the schemas from.
	Database string `pulumi:"database"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The schema from which to return the views from.
	Schema string `pulumi:"schema"`
	// The views in the schema
	Views []GetViewsView `pulumi:"views"`
}

A collection of values returned by getViews.

func GetViews added in v0.1.2

func GetViews(ctx *pulumi.Context, args *GetViewsArgs, opts ...pulumi.InvokeOption) (*GetViewsResult, error)

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-snowflake/sdk/go/snowflake"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := snowflake.GetViews(ctx, &GetViewsArgs{
			Database: "MYDB",
			Schema:   "MYSCHEMA",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetViewsResultOutput added in v0.2.0

type GetViewsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getViews.

func GetViewsOutput added in v0.2.0

func GetViewsOutput(ctx *pulumi.Context, args GetViewsOutputArgs, opts ...pulumi.InvokeOption) GetViewsResultOutput

func (GetViewsResultOutput) Database added in v0.2.0

The database from which to return the schemas from.

func (GetViewsResultOutput) ElementType added in v0.2.0

func (GetViewsResultOutput) ElementType() reflect.Type

func (GetViewsResultOutput) Id added in v0.2.0

The provider-assigned unique ID for this managed resource.

func (GetViewsResultOutput) Schema added in v0.2.0

The schema from which to return the views from.

func (GetViewsResultOutput) ToGetViewsResultOutput added in v0.2.0

func (o GetViewsResultOutput) ToGetViewsResultOutput() GetViewsResultOutput

func (GetViewsResultOutput) ToGetViewsResultOutputWithContext added in v0.2.0

func (o GetViewsResultOutput) ToGetViewsResultOutputWithContext(ctx context.Context) GetViewsResultOutput

func (GetViewsResultOutput) Views added in v0.2.0

The views in the schema

type GetViewsView added in v0.1.2

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

type GetViewsViewArgs added in v0.1.2

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

func (GetViewsViewArgs) ElementType added in v0.1.2

func (GetViewsViewArgs) ElementType() reflect.Type

func (GetViewsViewArgs) ToGetViewsViewOutput added in v0.1.2

func (i GetViewsViewArgs) ToGetViewsViewOutput() GetViewsViewOutput

func (GetViewsViewArgs) ToGetViewsViewOutputWithContext added in v0.1.2

func (i GetViewsViewArgs) ToGetViewsViewOutputWithContext(ctx context.Context) GetViewsViewOutput

type GetViewsViewArray added in v0.1.2

type GetViewsViewArray []GetViewsViewInput

func (GetViewsViewArray) ElementType added in v0.1.2

func (GetViewsViewArray) ElementType() reflect.Type

func (GetViewsViewArray) ToGetViewsViewArrayOutput added in v0.1.2

func (i GetViewsViewArray) ToGetViewsViewArrayOutput() GetViewsViewArrayOutput

func (GetViewsViewArray) ToGetViewsViewArrayOutputWithContext added in v0.1.2

func (i GetViewsViewArray) ToGetViewsViewArrayOutputWithContext(ctx context.Context) GetViewsViewArrayOutput

type GetViewsViewArrayInput added in v0.1.2

type GetViewsViewArrayInput interface {
	pulumi.Input

	ToGetViewsViewArrayOutput() GetViewsViewArrayOutput
	ToGetViewsViewArrayOutputWithContext(context.Context) GetViewsViewArrayOutput
}

GetViewsViewArrayInput is an input type that accepts GetViewsViewArray and GetViewsViewArrayOutput values. You can construct a concrete instance of `GetViewsViewArrayInput` via:

GetViewsViewArray{ GetViewsViewArgs{...} }

type GetViewsViewArrayOutput added in v0.1.2

type GetViewsViewArrayOutput struct{ *pulumi.OutputState }

func (GetViewsViewArrayOutput) ElementType added in v0.1.2

func (GetViewsViewArrayOutput) ElementType() reflect.Type

func (GetViewsViewArrayOutput) Index added in v0.1.2

func (GetViewsViewArrayOutput) ToGetViewsViewArrayOutput added in v0.1.2

func (o GetViewsViewArrayOutput) ToGetViewsViewArrayOutput() GetViewsViewArrayOutput

func (GetViewsViewArrayOutput) ToGetViewsViewArrayOutputWithContext added in v0.1.2

func (o GetViewsViewArrayOutput) ToGetViewsViewArrayOutputWithContext(ctx context.Context) GetViewsViewArrayOutput

type GetViewsViewInput added in v0.1.2

type GetViewsViewInput interface {
	pulumi.Input

	ToGetViewsViewOutput() GetViewsViewOutput
	ToGetViewsViewOutputWithContext(context.Context) GetViewsViewOutput
}

GetViewsViewInput is an input type that accepts GetViewsViewArgs and GetViewsViewOutput values. You can construct a concrete instance of `GetViewsViewInput` via:

GetViewsViewArgs{...}

type GetViewsViewOutput added in v0.1.2

type GetViewsViewOutput struct{ *pulumi.OutputState }

func (GetViewsViewOutput) Comment added in v0.1.2

func (GetViewsViewOutput) Database added in v0.1.2

func (o GetViewsViewOutput) Database() pulumi.StringOutput

The database from which to return the schemas from.

func (GetViewsViewOutput) ElementType added in v0.1.2

func (GetViewsViewOutput) ElementType() reflect.Type

func (GetViewsViewOutput) Name added in v0.1.2

func (GetViewsViewOutput) Schema added in v0.1.2

The schema from which to return the views from.

func (GetViewsViewOutput) ToGetViewsViewOutput added in v0.1.2

func (o GetViewsViewOutput) ToGetViewsViewOutput() GetViewsViewOutput

func (GetViewsViewOutput) ToGetViewsViewOutputWithContext added in v0.1.2

func (o GetViewsViewOutput) ToGetViewsViewOutputWithContext(ctx context.Context) GetViewsViewOutput

type GetWarehousesResult added in v0.1.3

type GetWarehousesResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The warehouses in the database
	Warehouses []GetWarehousesWarehouse `pulumi:"warehouses"`
}

A collection of values returned by getWarehouses.

func GetWarehouses added in v0.1.3

func GetWarehouses(ctx *pulumi.Context, opts ...pulumi.InvokeOption) (*GetWarehousesResult, error)

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-snowflake/sdk/go/snowflake"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := snowflake.GetWarehouses(ctx, nil, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetWarehousesWarehouse added in v0.1.3

type GetWarehousesWarehouse struct {
	Comment       string `pulumi:"comment"`
	Name          string `pulumi:"name"`
	ScalingPolicy string `pulumi:"scalingPolicy"`
	Size          string `pulumi:"size"`
	State         string `pulumi:"state"`
	Type          string `pulumi:"type"`
}

type GetWarehousesWarehouseArgs added in v0.1.3

type GetWarehousesWarehouseArgs struct {
	Comment       pulumi.StringInput `pulumi:"comment"`
	Name          pulumi.StringInput `pulumi:"name"`
	ScalingPolicy pulumi.StringInput `pulumi:"scalingPolicy"`
	Size          pulumi.StringInput `pulumi:"size"`
	State         pulumi.StringInput `pulumi:"state"`
	Type          pulumi.StringInput `pulumi:"type"`
}

func (GetWarehousesWarehouseArgs) ElementType added in v0.1.3

func (GetWarehousesWarehouseArgs) ElementType() reflect.Type

func (GetWarehousesWarehouseArgs) ToGetWarehousesWarehouseOutput added in v0.1.3

func (i GetWarehousesWarehouseArgs) ToGetWarehousesWarehouseOutput() GetWarehousesWarehouseOutput

func (GetWarehousesWarehouseArgs) ToGetWarehousesWarehouseOutputWithContext added in v0.1.3

func (i GetWarehousesWarehouseArgs) ToGetWarehousesWarehouseOutputWithContext(ctx context.Context) GetWarehousesWarehouseOutput

type GetWarehousesWarehouseArray added in v0.1.3

type GetWarehousesWarehouseArray []GetWarehousesWarehouseInput

func (GetWarehousesWarehouseArray) ElementType added in v0.1.3

func (GetWarehousesWarehouseArray) ToGetWarehousesWarehouseArrayOutput added in v0.1.3

func (i GetWarehousesWarehouseArray) ToGetWarehousesWarehouseArrayOutput() GetWarehousesWarehouseArrayOutput

func (GetWarehousesWarehouseArray) ToGetWarehousesWarehouseArrayOutputWithContext added in v0.1.3

func (i GetWarehousesWarehouseArray) ToGetWarehousesWarehouseArrayOutputWithContext(ctx context.Context) GetWarehousesWarehouseArrayOutput

type GetWarehousesWarehouseArrayInput added in v0.1.3

type GetWarehousesWarehouseArrayInput interface {
	pulumi.Input

	ToGetWarehousesWarehouseArrayOutput() GetWarehousesWarehouseArrayOutput
	ToGetWarehousesWarehouseArrayOutputWithContext(context.Context) GetWarehousesWarehouseArrayOutput
}

GetWarehousesWarehouseArrayInput is an input type that accepts GetWarehousesWarehouseArray and GetWarehousesWarehouseArrayOutput values. You can construct a concrete instance of `GetWarehousesWarehouseArrayInput` via:

GetWarehousesWarehouseArray{ GetWarehousesWarehouseArgs{...} }

type GetWarehousesWarehouseArrayOutput added in v0.1.3

type GetWarehousesWarehouseArrayOutput struct{ *pulumi.OutputState }

func (GetWarehousesWarehouseArrayOutput) ElementType added in v0.1.3

func (GetWarehousesWarehouseArrayOutput) Index added in v0.1.3

func (GetWarehousesWarehouseArrayOutput) ToGetWarehousesWarehouseArrayOutput added in v0.1.3

func (o GetWarehousesWarehouseArrayOutput) ToGetWarehousesWarehouseArrayOutput() GetWarehousesWarehouseArrayOutput

func (GetWarehousesWarehouseArrayOutput) ToGetWarehousesWarehouseArrayOutputWithContext added in v0.1.3

func (o GetWarehousesWarehouseArrayOutput) ToGetWarehousesWarehouseArrayOutputWithContext(ctx context.Context) GetWarehousesWarehouseArrayOutput

type GetWarehousesWarehouseInput added in v0.1.3

type GetWarehousesWarehouseInput interface {
	pulumi.Input

	ToGetWarehousesWarehouseOutput() GetWarehousesWarehouseOutput
	ToGetWarehousesWarehouseOutputWithContext(context.Context) GetWarehousesWarehouseOutput
}

GetWarehousesWarehouseInput is an input type that accepts GetWarehousesWarehouseArgs and GetWarehousesWarehouseOutput values. You can construct a concrete instance of `GetWarehousesWarehouseInput` via:

GetWarehousesWarehouseArgs{...}

type GetWarehousesWarehouseOutput added in v0.1.3

type GetWarehousesWarehouseOutput struct{ *pulumi.OutputState }

func (GetWarehousesWarehouseOutput) Comment added in v0.1.3

func (GetWarehousesWarehouseOutput) ElementType added in v0.1.3

func (GetWarehousesWarehouseOutput) Name added in v0.1.3

func (GetWarehousesWarehouseOutput) ScalingPolicy added in v0.1.3

func (GetWarehousesWarehouseOutput) Size added in v0.1.3

func (GetWarehousesWarehouseOutput) State added in v0.1.3

func (GetWarehousesWarehouseOutput) ToGetWarehousesWarehouseOutput added in v0.1.3

func (o GetWarehousesWarehouseOutput) ToGetWarehousesWarehouseOutput() GetWarehousesWarehouseOutput

func (GetWarehousesWarehouseOutput) ToGetWarehousesWarehouseOutputWithContext added in v0.1.3

func (o GetWarehousesWarehouseOutput) ToGetWarehousesWarehouseOutputWithContext(ctx context.Context) GetWarehousesWarehouseOutput

func (GetWarehousesWarehouseOutput) Type added in v0.1.3

type 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

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

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 LookupDatabaseArgs added in v0.5.0

type LookupDatabaseArgs struct {
	// The database from which to return its metadata.
	Name string `pulumi:"name"`
}

A collection of arguments for invoking getDatabase.

type LookupDatabaseOutputArgs added in v0.5.0

type LookupDatabaseOutputArgs struct {
	// The database from which to return its metadata.
	Name pulumi.StringInput `pulumi:"name"`
}

A collection of arguments for invoking getDatabase.

func (LookupDatabaseOutputArgs) ElementType added in v0.5.0

func (LookupDatabaseOutputArgs) ElementType() reflect.Type

type LookupDatabaseResult added in v0.5.0

type LookupDatabaseResult struct {
	Comment   string `pulumi:"comment"`
	CreatedOn string `pulumi:"createdOn"`
	// The provider-assigned unique ID for this managed resource.
	Id        string `pulumi:"id"`
	IsCurrent bool   `pulumi:"isCurrent"`
	IsDefault bool   `pulumi:"isDefault"`
	// The database from which to return its metadata.
	Name          string `pulumi:"name"`
	Options       string `pulumi:"options"`
	Origin        string `pulumi:"origin"`
	Owner         string `pulumi:"owner"`
	RetentionTime int    `pulumi:"retentionTime"`
}

A collection of values returned by getDatabase.

func LookupDatabase added in v0.5.0

func LookupDatabase(ctx *pulumi.Context, args *LookupDatabaseArgs, opts ...pulumi.InvokeOption) (*LookupDatabaseResult, error)

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-snowflake/sdk/go/snowflake"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := snowflake.LookupDatabase(ctx, &GetDatabaseArgs{
			Name: "DEMO_DB",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type LookupDatabaseResultOutput added in v0.5.0

type LookupDatabaseResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getDatabase.

func LookupDatabaseOutput added in v0.5.0

func LookupDatabaseOutput(ctx *pulumi.Context, args LookupDatabaseOutputArgs, opts ...pulumi.InvokeOption) LookupDatabaseResultOutput

func (LookupDatabaseResultOutput) Comment added in v0.5.0

func (LookupDatabaseResultOutput) CreatedOn added in v0.5.0

func (LookupDatabaseResultOutput) ElementType added in v0.5.0

func (LookupDatabaseResultOutput) ElementType() reflect.Type

func (LookupDatabaseResultOutput) Id added in v0.5.0

The provider-assigned unique ID for this managed resource.

func (LookupDatabaseResultOutput) IsCurrent added in v0.5.0

func (LookupDatabaseResultOutput) IsDefault added in v0.5.0

func (LookupDatabaseResultOutput) Name added in v0.5.0

The database from which to return its metadata.

func (LookupDatabaseResultOutput) Options added in v0.5.0

func (LookupDatabaseResultOutput) Origin added in v0.5.0

func (LookupDatabaseResultOutput) Owner added in v0.5.0

func (LookupDatabaseResultOutput) RetentionTime added in v0.5.0

func (o LookupDatabaseResultOutput) RetentionTime() pulumi.IntOutput

func (LookupDatabaseResultOutput) ToLookupDatabaseResultOutput added in v0.5.0

func (o LookupDatabaseResultOutput) ToLookupDatabaseResultOutput() LookupDatabaseResultOutput

func (LookupDatabaseResultOutput) ToLookupDatabaseResultOutputWithContext added in v0.5.0

func (o LookupDatabaseResultOutput) ToLookupDatabaseResultOutputWithContext(ctx context.Context) LookupDatabaseResultOutput

type ManagedAccount

type ManagedAccount struct {
	pulumi.CustomResourceState

	// Identifier, as well as login name, for the initial user in the managed account. This user serves as the account administrator for the account.
	AdminName pulumi.StringOutput `pulumi:"adminName"`
	// Password for the initial user in the managed account.
	AdminPassword pulumi.StringOutput `pulumi:"adminPassword"`
	// Cloud in which the managed account is located.
	Cloud pulumi.StringOutput `pulumi:"cloud"`
	// Specifies a comment for the managed account.
	Comment pulumi.StringPtrOutput `pulumi:"comment"`
	// Date and time when the managed account was created.
	CreatedOn pulumi.StringOutput `pulumi:"createdOn"`
	// Display name of the managed account.
	Locator pulumi.StringOutput `pulumi:"locator"`
	// Identifier for the managed account; must be unique for your account.
	Name pulumi.StringOutput `pulumi:"name"`
	// Snowflake Region in which the managed account is located.
	Region pulumi.StringOutput `pulumi:"region"`
	// Specifies the type of managed account.
	Type pulumi.StringPtrOutput `pulumi:"type"`
	// URL for accessing the managed account, particularly through the web interface.
	Url pulumi.StringOutput `pulumi:"url"`
}

## Import

```sh

$ pulumi import snowflake:index/managedAccount:ManagedAccount example name

```

func GetManagedAccount

func GetManagedAccount(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ManagedAccountState, opts ...pulumi.ResourceOption) (*ManagedAccount, error)

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

func NewManagedAccount

func NewManagedAccount(ctx *pulumi.Context,
	name string, args *ManagedAccountArgs, opts ...pulumi.ResourceOption) (*ManagedAccount, error)

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

func (*ManagedAccount) ElementType

func (*ManagedAccount) ElementType() reflect.Type

func (*ManagedAccount) ToManagedAccountOutput

func (i *ManagedAccount) ToManagedAccountOutput() ManagedAccountOutput

func (*ManagedAccount) ToManagedAccountOutputWithContext

func (i *ManagedAccount) ToManagedAccountOutputWithContext(ctx context.Context) ManagedAccountOutput

type ManagedAccountArgs

type ManagedAccountArgs struct {
	// Identifier, as well as login name, for the initial user in the managed account. This user serves as the account administrator for the account.
	AdminName pulumi.StringInput
	// Password for the initial user in the managed account.
	AdminPassword pulumi.StringInput
	// Specifies a comment for the managed account.
	Comment pulumi.StringPtrInput
	// Identifier for the managed account; must be unique for your account.
	Name pulumi.StringPtrInput
	// Specifies the type of managed account.
	Type pulumi.StringPtrInput
}

The set of arguments for constructing a ManagedAccount resource.

func (ManagedAccountArgs) ElementType

func (ManagedAccountArgs) ElementType() reflect.Type

type ManagedAccountArray

type ManagedAccountArray []ManagedAccountInput

func (ManagedAccountArray) ElementType

func (ManagedAccountArray) ElementType() reflect.Type

func (ManagedAccountArray) ToManagedAccountArrayOutput

func (i ManagedAccountArray) ToManagedAccountArrayOutput() ManagedAccountArrayOutput

func (ManagedAccountArray) ToManagedAccountArrayOutputWithContext

func (i ManagedAccountArray) ToManagedAccountArrayOutputWithContext(ctx context.Context) ManagedAccountArrayOutput

type ManagedAccountArrayInput

type ManagedAccountArrayInput interface {
	pulumi.Input

	ToManagedAccountArrayOutput() ManagedAccountArrayOutput
	ToManagedAccountArrayOutputWithContext(context.Context) ManagedAccountArrayOutput
}

ManagedAccountArrayInput is an input type that accepts ManagedAccountArray and ManagedAccountArrayOutput values. You can construct a concrete instance of `ManagedAccountArrayInput` via:

ManagedAccountArray{ ManagedAccountArgs{...} }

type ManagedAccountArrayOutput

type ManagedAccountArrayOutput struct{ *pulumi.OutputState }

func (ManagedAccountArrayOutput) ElementType

func (ManagedAccountArrayOutput) ElementType() reflect.Type

func (ManagedAccountArrayOutput) Index

func (ManagedAccountArrayOutput) ToManagedAccountArrayOutput

func (o ManagedAccountArrayOutput) ToManagedAccountArrayOutput() ManagedAccountArrayOutput

func (ManagedAccountArrayOutput) ToManagedAccountArrayOutputWithContext

func (o ManagedAccountArrayOutput) ToManagedAccountArrayOutputWithContext(ctx context.Context) ManagedAccountArrayOutput

type ManagedAccountInput

type ManagedAccountInput interface {
	pulumi.Input

	ToManagedAccountOutput() ManagedAccountOutput
	ToManagedAccountOutputWithContext(ctx context.Context) ManagedAccountOutput
}

type ManagedAccountMap

type ManagedAccountMap map[string]ManagedAccountInput

func (ManagedAccountMap) ElementType

func (ManagedAccountMap) ElementType() reflect.Type

func (ManagedAccountMap) ToManagedAccountMapOutput

func (i ManagedAccountMap) ToManagedAccountMapOutput() ManagedAccountMapOutput

func (ManagedAccountMap) ToManagedAccountMapOutputWithContext

func (i ManagedAccountMap) ToManagedAccountMapOutputWithContext(ctx context.Context) ManagedAccountMapOutput

type ManagedAccountMapInput

type ManagedAccountMapInput interface {
	pulumi.Input

	ToManagedAccountMapOutput() ManagedAccountMapOutput
	ToManagedAccountMapOutputWithContext(context.Context) ManagedAccountMapOutput
}

ManagedAccountMapInput is an input type that accepts ManagedAccountMap and ManagedAccountMapOutput values. You can construct a concrete instance of `ManagedAccountMapInput` via:

ManagedAccountMap{ "key": ManagedAccountArgs{...} }

type ManagedAccountMapOutput

type ManagedAccountMapOutput struct{ *pulumi.OutputState }

func (ManagedAccountMapOutput) ElementType

func (ManagedAccountMapOutput) ElementType() reflect.Type

func (ManagedAccountMapOutput) MapIndex

func (ManagedAccountMapOutput) ToManagedAccountMapOutput

func (o ManagedAccountMapOutput) ToManagedAccountMapOutput() ManagedAccountMapOutput

func (ManagedAccountMapOutput) ToManagedAccountMapOutputWithContext

func (o ManagedAccountMapOutput) ToManagedAccountMapOutputWithContext(ctx context.Context) ManagedAccountMapOutput

type ManagedAccountOutput

type ManagedAccountOutput struct{ *pulumi.OutputState }

func (ManagedAccountOutput) 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

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

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

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

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

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"`
	// Definitions of a tag to associate with the resource.
	Tags MaterializedViewTagArrayOutput `pulumi:"tags"`
	// The warehouse name.
	Warehouse pulumi.StringOutput `pulumi:"warehouse"`
}

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-snowflake/sdk/go/snowflake"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := snowflake.NewMaterializedView(ctx, "view", &snowflake.MaterializedViewArgs{
			Database:  pulumi.String("db"),
			Schema:    pulumi.String("schema"),
			Warehouse: pulumi.String("warehouse"),
			Comment:   pulumi.String("comment"),
			Statement: pulumi.String("select * from foo;\n"),
			OrReplace: pulumi.Bool(false),
			IsSecure:  pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

format is database name | schema name | view name

```sh

$ pulumi import snowflake:index/materializedView:MaterializedView example 'dbName|schemaName|viewName'

```

func GetMaterializedView

func GetMaterializedView(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *MaterializedViewState, opts ...pulumi.ResourceOption) (*MaterializedView, error)

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

func NewMaterializedView

func NewMaterializedView(ctx *pulumi.Context,
	name string, args *MaterializedViewArgs, opts ...pulumi.ResourceOption) (*MaterializedView, error)

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

func (*MaterializedView) ElementType

func (*MaterializedView) ElementType() reflect.Type

func (*MaterializedView) ToMaterializedViewOutput

func (i *MaterializedView) ToMaterializedViewOutput() MaterializedViewOutput

func (*MaterializedView) ToMaterializedViewOutputWithContext

func (i *MaterializedView) ToMaterializedViewOutputWithContext(ctx context.Context) MaterializedViewOutput

type MaterializedViewArgs

type MaterializedViewArgs struct {
	// Specifies a comment for the view.
	Comment pulumi.StringPtrInput
	// The database in which to create the view. Don't use the | character.
	Database pulumi.StringInput
	// Specifies that the view is secure.
	IsSecure pulumi.BoolPtrInput
	// Specifies the identifier for the view; must be unique for the schema in which the view is created.
	Name pulumi.StringPtrInput
	// Overwrites the View if it exists.
	OrReplace pulumi.BoolPtrInput
	// The schema in which to create the view. Don't use the | character.
	Schema pulumi.StringInput
	// Specifies the query used to create the view.
	Statement pulumi.StringInput
	// Definitions of a tag to associate with the resource.
	Tags MaterializedViewTagArrayInput
	// The warehouse name.
	Warehouse pulumi.StringInput
}

The set of arguments for constructing a MaterializedView resource.

func (MaterializedViewArgs) ElementType

func (MaterializedViewArgs) ElementType() reflect.Type

type MaterializedViewArray

type MaterializedViewArray []MaterializedViewInput

func (MaterializedViewArray) ElementType

func (MaterializedViewArray) ElementType() reflect.Type

func (MaterializedViewArray) ToMaterializedViewArrayOutput

func (i MaterializedViewArray) ToMaterializedViewArrayOutput() MaterializedViewArrayOutput

func (MaterializedViewArray) ToMaterializedViewArrayOutputWithContext

func (i MaterializedViewArray) ToMaterializedViewArrayOutputWithContext(ctx context.Context) MaterializedViewArrayOutput

type MaterializedViewArrayInput

type MaterializedViewArrayInput interface {
	pulumi.Input

	ToMaterializedViewArrayOutput() MaterializedViewArrayOutput
	ToMaterializedViewArrayOutputWithContext(context.Context) MaterializedViewArrayOutput
}

MaterializedViewArrayInput is an input type that accepts MaterializedViewArray and MaterializedViewArrayOutput values. You can construct a concrete instance of `MaterializedViewArrayInput` via:

MaterializedViewArray{ MaterializedViewArgs{...} }

type MaterializedViewArrayOutput

type MaterializedViewArrayOutput struct{ *pulumi.OutputState }

func (MaterializedViewArrayOutput) ElementType

func (MaterializedViewArrayOutput) Index

func (MaterializedViewArrayOutput) ToMaterializedViewArrayOutput

func (o MaterializedViewArrayOutput) ToMaterializedViewArrayOutput() MaterializedViewArrayOutput

func (MaterializedViewArrayOutput) ToMaterializedViewArrayOutputWithContext

func (o MaterializedViewArrayOutput) ToMaterializedViewArrayOutputWithContext(ctx context.Context) MaterializedViewArrayOutput

type MaterializedViewGrant

type MaterializedViewGrant struct {
	pulumi.CustomResourceState

	// The name of the database containing the current or future materialized views on which to grant privileges.
	DatabaseName pulumi.StringOutput `pulumi:"databaseName"`
	// 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.StringPtrOutput `pulumi:"schemaName"`
	// Grants privilege to these shares (only valid if onFuture is false).
	Shares pulumi.StringArrayOutput `pulumi:"shares"`
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrOutput `pulumi:"withGrantOption"`
}

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-snowflake/sdk/go/snowflake"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := snowflake.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

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.StringPtrInput
	// Grants privilege to these shares (only valid if onFuture is false).
	Shares pulumi.StringArrayInput
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrInput
}

The set of arguments for constructing a 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

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

type MaterializedViewState

type MaterializedViewState struct {
	// Specifies a comment for the view.
	Comment pulumi.StringPtrInput
	// The database in which to create the view. Don't use the | character.
	Database pulumi.StringPtrInput
	// Specifies that the view is secure.
	IsSecure pulumi.BoolPtrInput
	// Specifies the identifier for the view; must be unique for the schema in which the view is created.
	Name pulumi.StringPtrInput
	// Overwrites the View if it exists.
	OrReplace pulumi.BoolPtrInput
	// The schema in which to create the view. Don't use the | character.
	Schema pulumi.StringPtrInput
	// Specifies the query used to create the view.
	Statement pulumi.StringPtrInput
	// Definitions of a tag to associate with the resource.
	Tags MaterializedViewTagArrayInput
	// The warehouse name.
	Warehouse pulumi.StringPtrInput
}

func (MaterializedViewState) ElementType

func (MaterializedViewState) ElementType() reflect.Type

type MaterializedViewTag added in v0.3.0

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

type MaterializedViewTagArgs added in v0.3.0

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

func (MaterializedViewTagArgs) ElementType added in v0.3.0

func (MaterializedViewTagArgs) ElementType() reflect.Type

func (MaterializedViewTagArgs) ToMaterializedViewTagOutput added in v0.3.0

func (i MaterializedViewTagArgs) ToMaterializedViewTagOutput() MaterializedViewTagOutput

func (MaterializedViewTagArgs) ToMaterializedViewTagOutputWithContext added in v0.3.0

func (i MaterializedViewTagArgs) ToMaterializedViewTagOutputWithContext(ctx context.Context) MaterializedViewTagOutput

type MaterializedViewTagArray added in v0.3.0

type MaterializedViewTagArray []MaterializedViewTagInput

func (MaterializedViewTagArray) ElementType added in v0.3.0

func (MaterializedViewTagArray) ElementType() reflect.Type

func (MaterializedViewTagArray) ToMaterializedViewTagArrayOutput added in v0.3.0

func (i MaterializedViewTagArray) ToMaterializedViewTagArrayOutput() MaterializedViewTagArrayOutput

func (MaterializedViewTagArray) ToMaterializedViewTagArrayOutputWithContext added in v0.3.0

func (i MaterializedViewTagArray) ToMaterializedViewTagArrayOutputWithContext(ctx context.Context) MaterializedViewTagArrayOutput

type MaterializedViewTagArrayInput added in v0.3.0

type MaterializedViewTagArrayInput interface {
	pulumi.Input

	ToMaterializedViewTagArrayOutput() MaterializedViewTagArrayOutput
	ToMaterializedViewTagArrayOutputWithContext(context.Context) MaterializedViewTagArrayOutput
}

MaterializedViewTagArrayInput is an input type that accepts MaterializedViewTagArray and MaterializedViewTagArrayOutput values. You can construct a concrete instance of `MaterializedViewTagArrayInput` via:

MaterializedViewTagArray{ MaterializedViewTagArgs{...} }

type MaterializedViewTagArrayOutput added in v0.3.0

type MaterializedViewTagArrayOutput struct{ *pulumi.OutputState }

func (MaterializedViewTagArrayOutput) ElementType added in v0.3.0

func (MaterializedViewTagArrayOutput) Index added in v0.3.0

func (MaterializedViewTagArrayOutput) ToMaterializedViewTagArrayOutput added in v0.3.0

func (o MaterializedViewTagArrayOutput) ToMaterializedViewTagArrayOutput() MaterializedViewTagArrayOutput

func (MaterializedViewTagArrayOutput) ToMaterializedViewTagArrayOutputWithContext added in v0.3.0

func (o MaterializedViewTagArrayOutput) ToMaterializedViewTagArrayOutputWithContext(ctx context.Context) MaterializedViewTagArrayOutput

type MaterializedViewTagInput added in v0.3.0

type MaterializedViewTagInput interface {
	pulumi.Input

	ToMaterializedViewTagOutput() MaterializedViewTagOutput
	ToMaterializedViewTagOutputWithContext(context.Context) MaterializedViewTagOutput
}

MaterializedViewTagInput is an input type that accepts MaterializedViewTagArgs and MaterializedViewTagOutput values. You can construct a concrete instance of `MaterializedViewTagInput` via:

MaterializedViewTagArgs{...}

type MaterializedViewTagOutput added in v0.3.0

type MaterializedViewTagOutput struct{ *pulumi.OutputState }

func (MaterializedViewTagOutput) Database added in v0.3.0

Name of the database that the tag was created in.

func (MaterializedViewTagOutput) ElementType added in v0.3.0

func (MaterializedViewTagOutput) ElementType() reflect.Type

func (MaterializedViewTagOutput) Name added in v0.3.0

Tag name, e.g. department.

func (MaterializedViewTagOutput) Schema added in v0.3.0

Name of the schema that the tag was created in.

func (MaterializedViewTagOutput) ToMaterializedViewTagOutput added in v0.3.0

func (o MaterializedViewTagOutput) ToMaterializedViewTagOutput() MaterializedViewTagOutput

func (MaterializedViewTagOutput) ToMaterializedViewTagOutputWithContext added in v0.3.0

func (o MaterializedViewTagOutput) ToMaterializedViewTagOutputWithContext(ctx context.Context) MaterializedViewTagOutput

func (MaterializedViewTagOutput) Value added in v0.3.0

Tag value, e.g. marketing_info.

type NetworkPolicy

type NetworkPolicy struct {
	pulumi.CustomResourceState

	// Specifies one or more IPv4 addresses (CIDR notation) that are allowed access to your Snowflake account
	AllowedIpLists pulumi.StringArrayOutput `pulumi:"allowedIpLists"`
	// Specifies one or more IPv4 addresses (CIDR notation) that are denied access to your Snowflake account\n\n\n\n**Do not** add `0.0.0.0/0` to `blockedIpList`
	BlockedIpLists pulumi.StringArrayOutput `pulumi:"blockedIpLists"`
	// Specifies a comment for the network policy.
	Comment pulumi.StringPtrOutput `pulumi:"comment"`
	// Specifies the identifier for the network policy; must be unique for the account in which the network policy is created.
	Name pulumi.StringOutput `pulumi:"name"`
}

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-snowflake/sdk/go/snowflake"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := snowflake.NewNetworkPolicy(ctx, "policy", &snowflake.NetworkPolicyArgs{
			AllowedIpLists: pulumi.StringArray{
				pulumi.String("192.168.0.100/24"),
			},
			BlockedIpLists: pulumi.StringArray{
				pulumi.String("192.168.0.101"),
			},
			Comment: pulumi.String("A policy."),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

```sh

$ pulumi import snowflake:index/networkPolicy:NetworkPolicy example policyname

```

func GetNetworkPolicy

func GetNetworkPolicy(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *NetworkPolicyState, opts ...pulumi.ResourceOption) (*NetworkPolicy, error)

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

func NewNetworkPolicy

func NewNetworkPolicy(ctx *pulumi.Context,
	name string, args *NetworkPolicyArgs, opts ...pulumi.ResourceOption) (*NetworkPolicy, error)

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

func (*NetworkPolicy) ElementType

func (*NetworkPolicy) ElementType() reflect.Type

func (*NetworkPolicy) ToNetworkPolicyOutput

func (i *NetworkPolicy) ToNetworkPolicyOutput() NetworkPolicyOutput

func (*NetworkPolicy) ToNetworkPolicyOutputWithContext

func (i *NetworkPolicy) ToNetworkPolicyOutputWithContext(ctx context.Context) NetworkPolicyOutput

type NetworkPolicyArgs

type NetworkPolicyArgs struct {
	// Specifies one or more IPv4 addresses (CIDR notation) that are allowed access to your Snowflake account
	AllowedIpLists pulumi.StringArrayInput
	// Specifies one or more IPv4 addresses (CIDR notation) that are denied access to your Snowflake account\n\n\n\n**Do not** add `0.0.0.0/0` to `blockedIpList`
	BlockedIpLists pulumi.StringArrayInput
	// Specifies a comment for the network policy.
	Comment pulumi.StringPtrInput
	// Specifies the identifier for the network policy; must be unique for the account in which the network policy is created.
	Name pulumi.StringPtrInput
}

The set of arguments for constructing a NetworkPolicy resource.

func (NetworkPolicyArgs) ElementType

func (NetworkPolicyArgs) ElementType() reflect.Type

type NetworkPolicyArray

type NetworkPolicyArray []NetworkPolicyInput

func (NetworkPolicyArray) ElementType

func (NetworkPolicyArray) ElementType() reflect.Type

func (NetworkPolicyArray) ToNetworkPolicyArrayOutput

func (i NetworkPolicyArray) ToNetworkPolicyArrayOutput() NetworkPolicyArrayOutput

func (NetworkPolicyArray) ToNetworkPolicyArrayOutputWithContext

func (i NetworkPolicyArray) ToNetworkPolicyArrayOutputWithContext(ctx context.Context) NetworkPolicyArrayOutput

type NetworkPolicyArrayInput

type NetworkPolicyArrayInput interface {
	pulumi.Input

	ToNetworkPolicyArrayOutput() NetworkPolicyArrayOutput
	ToNetworkPolicyArrayOutputWithContext(context.Context) NetworkPolicyArrayOutput
}

NetworkPolicyArrayInput is an input type that accepts NetworkPolicyArray and NetworkPolicyArrayOutput values. You can construct a concrete instance of `NetworkPolicyArrayInput` via:

NetworkPolicyArray{ NetworkPolicyArgs{...} }

type NetworkPolicyArrayOutput

type NetworkPolicyArrayOutput struct{ *pulumi.OutputState }

func (NetworkPolicyArrayOutput) ElementType

func (NetworkPolicyArrayOutput) ElementType() reflect.Type

func (NetworkPolicyArrayOutput) Index

func (NetworkPolicyArrayOutput) ToNetworkPolicyArrayOutput

func (o NetworkPolicyArrayOutput) ToNetworkPolicyArrayOutput() NetworkPolicyArrayOutput

func (NetworkPolicyArrayOutput) ToNetworkPolicyArrayOutputWithContext

func (o NetworkPolicyArrayOutput) ToNetworkPolicyArrayOutputWithContext(ctx context.Context) NetworkPolicyArrayOutput

type NetworkPolicyAttachment

type NetworkPolicyAttachment struct {
	pulumi.CustomResourceState

	// Specifies the identifier for the network policy; must be unique for the account in which the network policy is created.
	NetworkPolicyName pulumi.StringOutput `pulumi:"networkPolicyName"`
	// Specifies whether the network policy should be applied globally to your Snowflake account<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

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

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

type NetworkPolicyState

type NetworkPolicyState struct {
	// Specifies one or more IPv4 addresses (CIDR notation) that are allowed access to your Snowflake account
	AllowedIpLists pulumi.StringArrayInput
	// Specifies one or more IPv4 addresses (CIDR notation) that are denied access to your Snowflake account\n\n\n\n**Do not** add `0.0.0.0/0` to `blockedIpList`
	BlockedIpLists pulumi.StringArrayInput
	// Specifies a comment for the network policy.
	Comment pulumi.StringPtrInput
	// Specifies the identifier for the network policy; must be unique for the account in which the network policy is created.
	Name pulumi.StringPtrInput
}

func (NetworkPolicyState) ElementType

func (NetworkPolicyState) ElementType() reflect.Type

type NotificationIntegration

type NotificationIntegration struct {
	pulumi.CustomResourceState

	// The external ID that Snowflake will use when assuming the AWS role
	AwsSnsExternalId pulumi.StringOutput `pulumi:"awsSnsExternalId"`
	// The Snowflake user that will attempt to assume the AWS role.
	AwsSnsIamUserArn pulumi.StringOutput `pulumi:"awsSnsIamUserArn"`
	// AWS IAM role ARN for notification integration to assume
	AwsSnsRoleArn pulumi.StringPtrOutput `pulumi:"awsSnsRoleArn"`
	// AWS SNS Topic ARN for notification integration to connect to
	AwsSnsTopicArn pulumi.StringPtrOutput `pulumi:"awsSnsTopicArn"`
	// AWS SQS queue ARN for notification integration to connect to
	AwsSqsArn pulumi.StringPtrOutput `pulumi:"awsSqsArn"`
	// The external ID that Snowflake will use when assuming the AWS role
	AwsSqsExternalId pulumi.StringOutput `pulumi:"awsSqsExternalId"`
	// The Snowflake user that will attempt to assume the AWS role.
	AwsSqsIamUserArn pulumi.StringOutput `pulumi:"awsSqsIamUserArn"`
	// AWS IAM role ARN for notification integration to assume
	AwsSqsRoleArn pulumi.StringPtrOutput `pulumi:"awsSqsRoleArn"`
	// The queue ID for the Azure Queue Storage queue created for Event Grid notifications
	AzureStorageQueuePrimaryUri pulumi.StringPtrOutput `pulumi:"azureStorageQueuePrimaryUri"`
	// The ID of the Azure Active Directory tenant used for identity management
	AzureTenantId pulumi.StringPtrOutput `pulumi:"azureTenantId"`
	// A comment for the integration
	Comment pulumi.StringPtrOutput `pulumi:"comment"`
	// Date and time when the notification integration was created.
	CreatedOn pulumi.StringOutput `pulumi:"createdOn"`
	// Direction of the cloud messaging with respect to Snowflake (required only for error notifications)
	Direction pulumi.StringPtrOutput `pulumi:"direction"`
	Enabled   pulumi.BoolPtrOutput   `pulumi:"enabled"`
	// The GCP service account identifier that Snowflake will use when assuming the GCP role
	GcpPubsubServiceAccount pulumi.StringOutput `pulumi:"gcpPubsubServiceAccount"`
	// The subscription id that Snowflake will listen to when using the GCP_PUBSUB provider.
	GcpPubsubSubscriptionName pulumi.StringPtrOutput `pulumi:"gcpPubsubSubscriptionName"`
	Name                      pulumi.StringOutput    `pulumi:"name"`
	// The third-party cloud message queuing service (e.g. AZURE*STORAGE*QUEUE, AWS*SQS, AWS*SNS)
	NotificationProvider pulumi.StringPtrOutput `pulumi:"notificationProvider"`
	// A type of integration
	Type pulumi.StringPtrOutput `pulumi:"type"`
}

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-snowflake/sdk/go/snowflake"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := snowflake.NewNotificationIntegration(ctx, "integration", &snowflake.NotificationIntegrationArgs{
			AwsSnsRoleArn:               pulumi.String("..."),
			AwsSnsTopicArn:              pulumi.String("..."),
			AwsSqsArn:                   pulumi.String("..."),
			AwsSqsRoleArn:               pulumi.String("..."),
			AzureStorageQueuePrimaryUri: pulumi.String("..."),
			AzureTenantId:               pulumi.String("..."),
			Comment:                     pulumi.String("A notification integration."),
			Direction:                   pulumi.String("OUTBOUND"),
			Enabled:                     pulumi.Bool(true),
			NotificationProvider:        pulumi.String("AWS_SNS"),
			Type:                        pulumi.String("QUEUE"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

```sh

$ pulumi import snowflake:index/notificationIntegration:NotificationIntegration example name

```

func GetNotificationIntegration

func GetNotificationIntegration(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *NotificationIntegrationState, opts ...pulumi.ResourceOption) (*NotificationIntegration, error)

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

func NewNotificationIntegration

func NewNotificationIntegration(ctx *pulumi.Context,
	name string, args *NotificationIntegrationArgs, opts ...pulumi.ResourceOption) (*NotificationIntegration, error)

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

func (*NotificationIntegration) ElementType

func (*NotificationIntegration) ElementType() reflect.Type

func (*NotificationIntegration) ToNotificationIntegrationOutput

func (i *NotificationIntegration) ToNotificationIntegrationOutput() NotificationIntegrationOutput

func (*NotificationIntegration) ToNotificationIntegrationOutputWithContext

func (i *NotificationIntegration) ToNotificationIntegrationOutputWithContext(ctx context.Context) NotificationIntegrationOutput

type NotificationIntegrationArgs

type NotificationIntegrationArgs struct {
	// AWS IAM role ARN for notification integration to assume
	AwsSnsRoleArn pulumi.StringPtrInput
	// AWS SNS Topic ARN for notification integration to connect to
	AwsSnsTopicArn pulumi.StringPtrInput
	// AWS SQS queue ARN for notification integration to connect to
	AwsSqsArn pulumi.StringPtrInput
	// AWS IAM role ARN for notification integration to assume
	AwsSqsRoleArn pulumi.StringPtrInput
	// The queue ID for the Azure Queue Storage queue created for Event Grid notifications
	AzureStorageQueuePrimaryUri pulumi.StringPtrInput
	// The ID of the Azure Active Directory tenant used for identity management
	AzureTenantId pulumi.StringPtrInput
	// A comment for the integration
	Comment pulumi.StringPtrInput
	// Direction of the cloud messaging with respect to Snowflake (required only for error notifications)
	Direction pulumi.StringPtrInput
	Enabled   pulumi.BoolPtrInput
	// The subscription id that Snowflake will listen to when using the GCP_PUBSUB provider.
	GcpPubsubSubscriptionName pulumi.StringPtrInput
	Name                      pulumi.StringPtrInput
	// The third-party cloud message queuing service (e.g. AZURE*STORAGE*QUEUE, AWS*SQS, AWS*SNS)
	NotificationProvider pulumi.StringPtrInput
	// A type of integration
	Type pulumi.StringPtrInput
}

The set of arguments for constructing a NotificationIntegration resource.

func (NotificationIntegrationArgs) ElementType

type NotificationIntegrationArray

type NotificationIntegrationArray []NotificationIntegrationInput

func (NotificationIntegrationArray) ElementType

func (NotificationIntegrationArray) ToNotificationIntegrationArrayOutput

func (i NotificationIntegrationArray) ToNotificationIntegrationArrayOutput() NotificationIntegrationArrayOutput

func (NotificationIntegrationArray) ToNotificationIntegrationArrayOutputWithContext

func (i NotificationIntegrationArray) ToNotificationIntegrationArrayOutputWithContext(ctx context.Context) NotificationIntegrationArrayOutput

type NotificationIntegrationArrayInput

type NotificationIntegrationArrayInput interface {
	pulumi.Input

	ToNotificationIntegrationArrayOutput() NotificationIntegrationArrayOutput
	ToNotificationIntegrationArrayOutputWithContext(context.Context) NotificationIntegrationArrayOutput
}

NotificationIntegrationArrayInput is an input type that accepts NotificationIntegrationArray and NotificationIntegrationArrayOutput values. You can construct a concrete instance of `NotificationIntegrationArrayInput` via:

NotificationIntegrationArray{ NotificationIntegrationArgs{...} }

type NotificationIntegrationArrayOutput

type NotificationIntegrationArrayOutput struct{ *pulumi.OutputState }

func (NotificationIntegrationArrayOutput) ElementType

func (NotificationIntegrationArrayOutput) Index

func (NotificationIntegrationArrayOutput) ToNotificationIntegrationArrayOutput

func (o NotificationIntegrationArrayOutput) ToNotificationIntegrationArrayOutput() NotificationIntegrationArrayOutput

func (NotificationIntegrationArrayOutput) ToNotificationIntegrationArrayOutputWithContext

func (o NotificationIntegrationArrayOutput) ToNotificationIntegrationArrayOutputWithContext(ctx context.Context) NotificationIntegrationArrayOutput

type NotificationIntegrationInput

type NotificationIntegrationInput interface {
	pulumi.Input

	ToNotificationIntegrationOutput() NotificationIntegrationOutput
	ToNotificationIntegrationOutputWithContext(ctx context.Context) NotificationIntegrationOutput
}

type NotificationIntegrationMap

type NotificationIntegrationMap map[string]NotificationIntegrationInput

func (NotificationIntegrationMap) ElementType

func (NotificationIntegrationMap) ElementType() reflect.Type

func (NotificationIntegrationMap) ToNotificationIntegrationMapOutput

func (i NotificationIntegrationMap) ToNotificationIntegrationMapOutput() NotificationIntegrationMapOutput

func (NotificationIntegrationMap) ToNotificationIntegrationMapOutputWithContext

func (i NotificationIntegrationMap) ToNotificationIntegrationMapOutputWithContext(ctx context.Context) NotificationIntegrationMapOutput

type NotificationIntegrationMapInput

type NotificationIntegrationMapInput interface {
	pulumi.Input

	ToNotificationIntegrationMapOutput() NotificationIntegrationMapOutput
	ToNotificationIntegrationMapOutputWithContext(context.Context) NotificationIntegrationMapOutput
}

NotificationIntegrationMapInput is an input type that accepts NotificationIntegrationMap and NotificationIntegrationMapOutput values. You can construct a concrete instance of `NotificationIntegrationMapInput` via:

NotificationIntegrationMap{ "key": NotificationIntegrationArgs{...} }

type NotificationIntegrationMapOutput

type NotificationIntegrationMapOutput struct{ *pulumi.OutputState }

func (NotificationIntegrationMapOutput) ElementType

func (NotificationIntegrationMapOutput) MapIndex

func (NotificationIntegrationMapOutput) ToNotificationIntegrationMapOutput

func (o NotificationIntegrationMapOutput) ToNotificationIntegrationMapOutput() NotificationIntegrationMapOutput

func (NotificationIntegrationMapOutput) ToNotificationIntegrationMapOutputWithContext

func (o NotificationIntegrationMapOutput) ToNotificationIntegrationMapOutputWithContext(ctx context.Context) NotificationIntegrationMapOutput

type NotificationIntegrationOutput

type NotificationIntegrationOutput struct{ *pulumi.OutputState }

func (NotificationIntegrationOutput) ElementType

func (NotificationIntegrationOutput) ToNotificationIntegrationOutput

func (o NotificationIntegrationOutput) ToNotificationIntegrationOutput() NotificationIntegrationOutput

func (NotificationIntegrationOutput) ToNotificationIntegrationOutputWithContext

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

type NotificationIntegrationState

type NotificationIntegrationState struct {
	// The external ID that Snowflake will use when assuming the AWS role
	AwsSnsExternalId pulumi.StringPtrInput
	// The Snowflake user that will attempt to assume the AWS role.
	AwsSnsIamUserArn pulumi.StringPtrInput
	// AWS IAM role ARN for notification integration to assume
	AwsSnsRoleArn pulumi.StringPtrInput
	// AWS SNS Topic ARN for notification integration to connect to
	AwsSnsTopicArn pulumi.StringPtrInput
	// AWS SQS queue ARN for notification integration to connect to
	AwsSqsArn pulumi.StringPtrInput
	// The external ID that Snowflake will use when assuming the AWS role
	AwsSqsExternalId pulumi.StringPtrInput
	// The Snowflake user that will attempt to assume the AWS role.
	AwsSqsIamUserArn pulumi.StringPtrInput
	// AWS IAM role ARN for notification integration to assume
	AwsSqsRoleArn pulumi.StringPtrInput
	// The queue ID for the Azure Queue Storage queue created for Event Grid notifications
	AzureStorageQueuePrimaryUri pulumi.StringPtrInput
	// The ID of the Azure Active Directory tenant used for identity management
	AzureTenantId pulumi.StringPtrInput
	// A comment for the integration
	Comment pulumi.StringPtrInput
	// Date and time when the notification integration was created.
	CreatedOn pulumi.StringPtrInput
	// Direction of the cloud messaging with respect to Snowflake (required only for error notifications)
	Direction pulumi.StringPtrInput
	Enabled   pulumi.BoolPtrInput
	// The GCP service account identifier that Snowflake will use when assuming the GCP role
	GcpPubsubServiceAccount pulumi.StringPtrInput
	// The subscription id that Snowflake will listen to when using the GCP_PUBSUB provider.
	GcpPubsubSubscriptionName pulumi.StringPtrInput
	Name                      pulumi.StringPtrInput
	// The third-party cloud message queuing service (e.g. AZURE*STORAGE*QUEUE, AWS*SQS, AWS*SNS)
	NotificationProvider pulumi.StringPtrInput
	// A type of integration
	Type pulumi.StringPtrInput
}

func (NotificationIntegrationState) ElementType

type OauthIntegration added in v0.4.1

type OauthIntegration struct {
	pulumi.CustomResourceState

	// List of roles that a user cannot explicitly consent to using after authenticating. Do not include ACCOUNTADMIN, ORGADMIN or SECURITYADMIN as they are already implicitly enforced and will cause in-place updates.
	BlockedRolesLists pulumi.StringArrayOutput `pulumi:"blockedRolesLists"`
	// Specifies a comment for the OAuth integration.
	Comment pulumi.StringPtrOutput `pulumi:"comment"`
	// Date and time when the OAuth integration was created.
	CreatedOn pulumi.StringOutput `pulumi:"createdOn"`
	// Specifies whether this OAuth integration is enabled or disabled.
	Enabled pulumi.BoolPtrOutput `pulumi:"enabled"`
	// Specifies the name of the OAuth integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account.
	Name pulumi.StringOutput `pulumi:"name"`
	// Specifies the OAuth client type.
	OauthClient pulumi.StringOutput `pulumi:"oauthClient"`
	// Specifies whether to allow the client to exchange a refresh token for an access token when the current access token has expired.
	OauthIssueRefreshTokens pulumi.BoolPtrOutput `pulumi:"oauthIssueRefreshTokens"`
	// Specifies how long refresh tokens should be valid (in seconds). OAUTH*ISSUE*REFRESH_TOKENS must be set to TRUE.
	OauthRefreshTokenValidity pulumi.IntPtrOutput `pulumi:"oauthRefreshTokenValidity"`
	// Specifies whether default secondary roles set in the user properties are activated by default in the session being opened.
	OauthUseSecondaryRoles pulumi.StringPtrOutput `pulumi:"oauthUseSecondaryRoles"`
}

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-snowflake/sdk/go/snowflake"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := snowflake.NewOauthIntegration(ctx, "tableauDesktop", &snowflake.OauthIntegrationArgs{
			BlockedRolesLists: pulumi.StringArray{
				pulumi.String("SYSADMIN"),
			},
			Enabled:                   pulumi.Bool(true),
			OauthClient:               pulumi.String("TABLEAU_DESKTOP"),
			OauthIssueRefreshTokens:   pulumi.Bool(true),
			OauthRefreshTokenValidity: pulumi.Int(3600),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

```sh

$ pulumi import snowflake:index/oauthIntegration:OauthIntegration example name

```

func GetOauthIntegration added in v0.4.1

func GetOauthIntegration(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *OauthIntegrationState, opts ...pulumi.ResourceOption) (*OauthIntegration, error)

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

func NewOauthIntegration added in v0.4.1

func NewOauthIntegration(ctx *pulumi.Context,
	name string, args *OauthIntegrationArgs, opts ...pulumi.ResourceOption) (*OauthIntegration, error)

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

func (*OauthIntegration) ElementType added in v0.4.1

func (*OauthIntegration) ElementType() reflect.Type

func (*OauthIntegration) ToOauthIntegrationOutput added in v0.4.1

func (i *OauthIntegration) ToOauthIntegrationOutput() OauthIntegrationOutput

func (*OauthIntegration) ToOauthIntegrationOutputWithContext added in v0.4.1

func (i *OauthIntegration) ToOauthIntegrationOutputWithContext(ctx context.Context) OauthIntegrationOutput

type OauthIntegrationArgs added in v0.4.1

type OauthIntegrationArgs struct {
	// List of roles that a user cannot explicitly consent to using after authenticating. Do not include ACCOUNTADMIN, ORGADMIN or SECURITYADMIN as they are already implicitly enforced and will cause in-place updates.
	BlockedRolesLists pulumi.StringArrayInput
	// Specifies a comment for the OAuth integration.
	Comment pulumi.StringPtrInput
	// Specifies whether this OAuth integration is enabled or disabled.
	Enabled pulumi.BoolPtrInput
	// Specifies the name of the OAuth integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account.
	Name pulumi.StringPtrInput
	// Specifies the OAuth client type.
	OauthClient pulumi.StringInput
	// Specifies whether to allow the client to exchange a refresh token for an access token when the current access token has expired.
	OauthIssueRefreshTokens pulumi.BoolPtrInput
	// Specifies how long refresh tokens should be valid (in seconds). OAUTH*ISSUE*REFRESH_TOKENS must be set to TRUE.
	OauthRefreshTokenValidity pulumi.IntPtrInput
	// Specifies whether default secondary roles set in the user properties are activated by default in the session being opened.
	OauthUseSecondaryRoles pulumi.StringPtrInput
}

The set of arguments for constructing a OauthIntegration resource.

func (OauthIntegrationArgs) ElementType added in v0.4.1

func (OauthIntegrationArgs) ElementType() reflect.Type

type OauthIntegrationArray added in v0.4.1

type OauthIntegrationArray []OauthIntegrationInput

func (OauthIntegrationArray) ElementType added in v0.4.1

func (OauthIntegrationArray) ElementType() reflect.Type

func (OauthIntegrationArray) ToOauthIntegrationArrayOutput added in v0.4.1

func (i OauthIntegrationArray) ToOauthIntegrationArrayOutput() OauthIntegrationArrayOutput

func (OauthIntegrationArray) ToOauthIntegrationArrayOutputWithContext added in v0.4.1

func (i OauthIntegrationArray) ToOauthIntegrationArrayOutputWithContext(ctx context.Context) OauthIntegrationArrayOutput

type OauthIntegrationArrayInput added in v0.4.1

type OauthIntegrationArrayInput interface {
	pulumi.Input

	ToOauthIntegrationArrayOutput() OauthIntegrationArrayOutput
	ToOauthIntegrationArrayOutputWithContext(context.Context) OauthIntegrationArrayOutput
}

OauthIntegrationArrayInput is an input type that accepts OauthIntegrationArray and OauthIntegrationArrayOutput values. You can construct a concrete instance of `OauthIntegrationArrayInput` via:

OauthIntegrationArray{ OauthIntegrationArgs{...} }

type OauthIntegrationArrayOutput added in v0.4.1

type OauthIntegrationArrayOutput struct{ *pulumi.OutputState }

func (OauthIntegrationArrayOutput) ElementType added in v0.4.1

func (OauthIntegrationArrayOutput) Index added in v0.4.1

func (OauthIntegrationArrayOutput) ToOauthIntegrationArrayOutput added in v0.4.1

func (o OauthIntegrationArrayOutput) ToOauthIntegrationArrayOutput() OauthIntegrationArrayOutput

func (OauthIntegrationArrayOutput) ToOauthIntegrationArrayOutputWithContext added in v0.4.1

func (o OauthIntegrationArrayOutput) ToOauthIntegrationArrayOutputWithContext(ctx context.Context) OauthIntegrationArrayOutput

type OauthIntegrationInput added in v0.4.1

type OauthIntegrationInput interface {
	pulumi.Input

	ToOauthIntegrationOutput() OauthIntegrationOutput
	ToOauthIntegrationOutputWithContext(ctx context.Context) OauthIntegrationOutput
}

type OauthIntegrationMap added in v0.4.1

type OauthIntegrationMap map[string]OauthIntegrationInput

func (OauthIntegrationMap) ElementType added in v0.4.1

func (OauthIntegrationMap) ElementType() reflect.Type

func (OauthIntegrationMap) ToOauthIntegrationMapOutput added in v0.4.1

func (i OauthIntegrationMap) ToOauthIntegrationMapOutput() OauthIntegrationMapOutput

func (OauthIntegrationMap) ToOauthIntegrationMapOutputWithContext added in v0.4.1

func (i OauthIntegrationMap) ToOauthIntegrationMapOutputWithContext(ctx context.Context) OauthIntegrationMapOutput

type OauthIntegrationMapInput added in v0.4.1

type OauthIntegrationMapInput interface {
	pulumi.Input

	ToOauthIntegrationMapOutput() OauthIntegrationMapOutput
	ToOauthIntegrationMapOutputWithContext(context.Context) OauthIntegrationMapOutput
}

OauthIntegrationMapInput is an input type that accepts OauthIntegrationMap and OauthIntegrationMapOutput values. You can construct a concrete instance of `OauthIntegrationMapInput` via:

OauthIntegrationMap{ "key": OauthIntegrationArgs{...} }

type OauthIntegrationMapOutput added in v0.4.1

type OauthIntegrationMapOutput struct{ *pulumi.OutputState }

func (OauthIntegrationMapOutput) ElementType added in v0.4.1

func (OauthIntegrationMapOutput) ElementType() reflect.Type

func (OauthIntegrationMapOutput) MapIndex added in v0.4.1

func (OauthIntegrationMapOutput) ToOauthIntegrationMapOutput added in v0.4.1

func (o OauthIntegrationMapOutput) ToOauthIntegrationMapOutput() OauthIntegrationMapOutput

func (OauthIntegrationMapOutput) ToOauthIntegrationMapOutputWithContext added in v0.4.1

func (o OauthIntegrationMapOutput) ToOauthIntegrationMapOutputWithContext(ctx context.Context) OauthIntegrationMapOutput

type OauthIntegrationOutput added in v0.4.1

type OauthIntegrationOutput struct{ *pulumi.OutputState }

func (OauthIntegrationOutput) ElementType added in v0.4.1

func (OauthIntegrationOutput) ElementType() reflect.Type

func (OauthIntegrationOutput) ToOauthIntegrationOutput added in v0.4.1

func (o OauthIntegrationOutput) ToOauthIntegrationOutput() OauthIntegrationOutput

func (OauthIntegrationOutput) ToOauthIntegrationOutputWithContext added in v0.4.1

func (o OauthIntegrationOutput) ToOauthIntegrationOutputWithContext(ctx context.Context) OauthIntegrationOutput

type OauthIntegrationState added in v0.4.1

type OauthIntegrationState struct {
	// List of roles that a user cannot explicitly consent to using after authenticating. Do not include ACCOUNTADMIN, ORGADMIN or SECURITYADMIN as they are already implicitly enforced and will cause in-place updates.
	BlockedRolesLists pulumi.StringArrayInput
	// Specifies a comment for the OAuth integration.
	Comment pulumi.StringPtrInput
	// Date and time when the OAuth integration was created.
	CreatedOn pulumi.StringPtrInput
	// Specifies whether this OAuth integration is enabled or disabled.
	Enabled pulumi.BoolPtrInput
	// Specifies the name of the OAuth integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account.
	Name pulumi.StringPtrInput
	// Specifies the OAuth client type.
	OauthClient pulumi.StringPtrInput
	// Specifies whether to allow the client to exchange a refresh token for an access token when the current access token has expired.
	OauthIssueRefreshTokens pulumi.BoolPtrInput
	// Specifies how long refresh tokens should be valid (in seconds). OAUTH*ISSUE*REFRESH_TOKENS must be set to TRUE.
	OauthRefreshTokenValidity pulumi.IntPtrInput
	// Specifies whether default secondary roles set in the user properties are activated by default in the session being opened.
	OauthUseSecondaryRoles pulumi.StringPtrInput
}

func (OauthIntegrationState) ElementType added in v0.4.1

func (OauthIntegrationState) ElementType() reflect.Type

type Pipe

type Pipe struct {
	pulumi.CustomResourceState

	// Specifies a autoIngest param for the pipe.
	AutoIngest pulumi.BoolPtrOutput `pulumi:"autoIngest"`
	// Specifies the Amazon Resource Name (ARN) for the SNS topic for your S3 bucket.
	AwsSnsTopicArn pulumi.StringPtrOutput `pulumi:"awsSnsTopicArn"`
	// Specifies a comment for the pipe.
	Comment pulumi.StringPtrOutput `pulumi:"comment"`
	// Specifies the copy statement for the pipe.
	CopyStatement pulumi.StringOutput `pulumi:"copyStatement"`
	// The database in which to create the pipe.
	Database pulumi.StringOutput `pulumi:"database"`
	// Specifies the name of the notification integration used for error notifications.
	ErrorIntegration pulumi.StringPtrOutput `pulumi:"errorIntegration"`
	// Specifies an integration for the pipe.
	Integration pulumi.StringPtrOutput `pulumi:"integration"`
	// Specifies the identifier for the pipe; must be unique for the database and schema in which the pipe is created.
	Name pulumi.StringOutput `pulumi:"name"`
	// Amazon Resource Name of the Amazon SQS queue for the stage named in the DEFINITION column.
	NotificationChannel pulumi.StringOutput `pulumi:"notificationChannel"`
	// Name of the role that owns the pipe.
	Owner pulumi.StringOutput `pulumi:"owner"`
	// The schema in which to create the pipe.
	Schema pulumi.StringOutput `pulumi:"schema"`
}

## Import

format is database name | schema name | pipe name

```sh

$ pulumi import snowflake:index/pipe:Pipe example 'dbName|schemaName|pipeName'

```

func GetPipe

func GetPipe(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *PipeState, opts ...pulumi.ResourceOption) (*Pipe, error)

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

func NewPipe

func NewPipe(ctx *pulumi.Context,
	name string, args *PipeArgs, opts ...pulumi.ResourceOption) (*Pipe, error)

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

func (*Pipe) ElementType

func (*Pipe) ElementType() reflect.Type

func (*Pipe) ToPipeOutput

func (i *Pipe) ToPipeOutput() PipeOutput

func (*Pipe) ToPipeOutputWithContext

func (i *Pipe) ToPipeOutputWithContext(ctx context.Context) PipeOutput

type PipeArgs

type PipeArgs struct {
	// Specifies a autoIngest param for the pipe.
	AutoIngest pulumi.BoolPtrInput
	// Specifies the Amazon Resource Name (ARN) for the SNS topic for your S3 bucket.
	AwsSnsTopicArn pulumi.StringPtrInput
	// Specifies a comment for the pipe.
	Comment pulumi.StringPtrInput
	// Specifies the copy statement for the pipe.
	CopyStatement pulumi.StringInput
	// The database in which to create the pipe.
	Database pulumi.StringInput
	// Specifies the name of the notification integration used for error notifications.
	ErrorIntegration pulumi.StringPtrInput
	// Specifies an integration for the pipe.
	Integration pulumi.StringPtrInput
	// Specifies the identifier for the pipe; must be unique for the database and schema in which the pipe is created.
	Name pulumi.StringPtrInput
	// The schema in which to create the pipe.
	Schema pulumi.StringInput
}

The set of arguments for constructing a Pipe resource.

func (PipeArgs) ElementType

func (PipeArgs) ElementType() reflect.Type

type PipeArray

type PipeArray []PipeInput

func (PipeArray) ElementType

func (PipeArray) ElementType() reflect.Type

func (PipeArray) ToPipeArrayOutput

func (i PipeArray) ToPipeArrayOutput() PipeArrayOutput

func (PipeArray) ToPipeArrayOutputWithContext

func (i PipeArray) ToPipeArrayOutputWithContext(ctx context.Context) PipeArrayOutput

type PipeArrayInput

type PipeArrayInput interface {
	pulumi.Input

	ToPipeArrayOutput() PipeArrayOutput
	ToPipeArrayOutputWithContext(context.Context) PipeArrayOutput
}

PipeArrayInput is an input type that accepts PipeArray and PipeArrayOutput values. You can construct a concrete instance of `PipeArrayInput` via:

PipeArray{ PipeArgs{...} }

type PipeArrayOutput

type PipeArrayOutput struct{ *pulumi.OutputState }

func (PipeArrayOutput) ElementType

func (PipeArrayOutput) ElementType() reflect.Type

func (PipeArrayOutput) Index

func (PipeArrayOutput) ToPipeArrayOutput

func (o PipeArrayOutput) ToPipeArrayOutput() PipeArrayOutput

func (PipeArrayOutput) ToPipeArrayOutputWithContext

func (o PipeArrayOutput) ToPipeArrayOutputWithContext(ctx context.Context) PipeArrayOutput

type PipeGrant added in v0.1.2

type PipeGrant struct {
	pulumi.CustomResourceState

	// The name of the database containing the current or future pipes on which to grant privileges.
	DatabaseName pulumi.StringOutput `pulumi:"databaseName"`
	// When this is set to true and a schema*name is provided, apply this grant on all future pipes in the given schema. When this is true and no schema*name is provided apply this grant on all future pipes in the given database. The pipe*name field must be unset in order to use on*future.
	OnFuture pulumi.BoolPtrOutput `pulumi:"onFuture"`
	// The name of the pipe on which to grant privileges immediately (only valid if onFuture is false).
	PipeName pulumi.StringPtrOutput `pulumi:"pipeName"`
	// The privilege to grant on the current or future pipe.
	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 pipes 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"`
}

## Import

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

```sh

$ pulumi import snowflake:index/pipeGrant:PipeGrant example 'dbName|schemaName|pipeName|OPERATE|false'

```

func GetPipeGrant added in v0.1.2

func GetPipeGrant(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *PipeGrantState, opts ...pulumi.ResourceOption) (*PipeGrant, error)

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

func NewPipeGrant added in v0.1.2

func NewPipeGrant(ctx *pulumi.Context,
	name string, args *PipeGrantArgs, opts ...pulumi.ResourceOption) (*PipeGrant, error)

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

func (*PipeGrant) ElementType added in v0.1.2

func (*PipeGrant) ElementType() reflect.Type

func (*PipeGrant) ToPipeGrantOutput added in v0.1.2

func (i *PipeGrant) ToPipeGrantOutput() PipeGrantOutput

func (*PipeGrant) ToPipeGrantOutputWithContext added in v0.1.2

func (i *PipeGrant) ToPipeGrantOutputWithContext(ctx context.Context) PipeGrantOutput

type PipeGrantArgs added in v0.1.2

type PipeGrantArgs struct {
	// The name of the database containing the current or future pipes on which to grant privileges.
	DatabaseName pulumi.StringInput
	// When this is set to true and a schema*name is provided, apply this grant on all future pipes in the given schema. When this is true and no schema*name is provided apply this grant on all future pipes in the given database. The pipe*name field must be unset in order to use on*future.
	OnFuture pulumi.BoolPtrInput
	// The name of the pipe on which to grant privileges immediately (only valid if onFuture is false).
	PipeName pulumi.StringPtrInput
	// The privilege to grant on the current or future pipe.
	Privilege pulumi.StringPtrInput
	// Grants privilege to these roles.
	Roles pulumi.StringArrayInput
	// The name of the schema containing the current or future pipes on which to grant privileges.
	SchemaName pulumi.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 PipeGrant resource.

func (PipeGrantArgs) ElementType added in v0.1.2

func (PipeGrantArgs) ElementType() reflect.Type

type PipeGrantArray added in v0.1.2

type PipeGrantArray []PipeGrantInput

func (PipeGrantArray) ElementType added in v0.1.2

func (PipeGrantArray) ElementType() reflect.Type

func (PipeGrantArray) ToPipeGrantArrayOutput added in v0.1.2

func (i PipeGrantArray) ToPipeGrantArrayOutput() PipeGrantArrayOutput

func (PipeGrantArray) ToPipeGrantArrayOutputWithContext added in v0.1.2

func (i PipeGrantArray) ToPipeGrantArrayOutputWithContext(ctx context.Context) PipeGrantArrayOutput

type PipeGrantArrayInput added in v0.1.2

type PipeGrantArrayInput interface {
	pulumi.Input

	ToPipeGrantArrayOutput() PipeGrantArrayOutput
	ToPipeGrantArrayOutputWithContext(context.Context) PipeGrantArrayOutput
}

PipeGrantArrayInput is an input type that accepts PipeGrantArray and PipeGrantArrayOutput values. You can construct a concrete instance of `PipeGrantArrayInput` via:

PipeGrantArray{ PipeGrantArgs{...} }

type PipeGrantArrayOutput added in v0.1.2

type PipeGrantArrayOutput struct{ *pulumi.OutputState }

func (PipeGrantArrayOutput) ElementType added in v0.1.2

func (PipeGrantArrayOutput) ElementType() reflect.Type

func (PipeGrantArrayOutput) Index added in v0.1.2

func (PipeGrantArrayOutput) ToPipeGrantArrayOutput added in v0.1.2

func (o PipeGrantArrayOutput) ToPipeGrantArrayOutput() PipeGrantArrayOutput

func (PipeGrantArrayOutput) ToPipeGrantArrayOutputWithContext added in v0.1.2

func (o PipeGrantArrayOutput) ToPipeGrantArrayOutputWithContext(ctx context.Context) PipeGrantArrayOutput

type PipeGrantInput added in v0.1.2

type PipeGrantInput interface {
	pulumi.Input

	ToPipeGrantOutput() PipeGrantOutput
	ToPipeGrantOutputWithContext(ctx context.Context) PipeGrantOutput
}

type PipeGrantMap added in v0.1.2

type PipeGrantMap map[string]PipeGrantInput

func (PipeGrantMap) ElementType added in v0.1.2

func (PipeGrantMap) ElementType() reflect.Type

func (PipeGrantMap) ToPipeGrantMapOutput added in v0.1.2

func (i PipeGrantMap) ToPipeGrantMapOutput() PipeGrantMapOutput

func (PipeGrantMap) ToPipeGrantMapOutputWithContext added in v0.1.2

func (i PipeGrantMap) ToPipeGrantMapOutputWithContext(ctx context.Context) PipeGrantMapOutput

type PipeGrantMapInput added in v0.1.2

type PipeGrantMapInput interface {
	pulumi.Input

	ToPipeGrantMapOutput() PipeGrantMapOutput
	ToPipeGrantMapOutputWithContext(context.Context) PipeGrantMapOutput
}

PipeGrantMapInput is an input type that accepts PipeGrantMap and PipeGrantMapOutput values. You can construct a concrete instance of `PipeGrantMapInput` via:

PipeGrantMap{ "key": PipeGrantArgs{...} }

type PipeGrantMapOutput added in v0.1.2

type PipeGrantMapOutput struct{ *pulumi.OutputState }

func (PipeGrantMapOutput) ElementType added in v0.1.2

func (PipeGrantMapOutput) ElementType() reflect.Type

func (PipeGrantMapOutput) MapIndex added in v0.1.2

func (PipeGrantMapOutput) ToPipeGrantMapOutput added in v0.1.2

func (o PipeGrantMapOutput) ToPipeGrantMapOutput() PipeGrantMapOutput

func (PipeGrantMapOutput) ToPipeGrantMapOutputWithContext added in v0.1.2

func (o PipeGrantMapOutput) ToPipeGrantMapOutputWithContext(ctx context.Context) PipeGrantMapOutput

type PipeGrantOutput added in v0.1.2

type PipeGrantOutput struct{ *pulumi.OutputState }

func (PipeGrantOutput) ElementType added in v0.1.2

func (PipeGrantOutput) ElementType() reflect.Type

func (PipeGrantOutput) ToPipeGrantOutput added in v0.1.2

func (o PipeGrantOutput) ToPipeGrantOutput() PipeGrantOutput

func (PipeGrantOutput) ToPipeGrantOutputWithContext added in v0.1.2

func (o PipeGrantOutput) ToPipeGrantOutputWithContext(ctx context.Context) PipeGrantOutput

type PipeGrantState added in v0.1.2

type PipeGrantState struct {
	// The name of the database containing the current or future pipes on which to grant privileges.
	DatabaseName pulumi.StringPtrInput
	// When this is set to true and a schema*name is provided, apply this grant on all future pipes in the given schema. When this is true and no schema*name is provided apply this grant on all future pipes in the given database. The pipe*name field must be unset in order to use on*future.
	OnFuture pulumi.BoolPtrInput
	// The name of the pipe on which to grant privileges immediately (only valid if onFuture is false).
	PipeName pulumi.StringPtrInput
	// The privilege to grant on the current or future pipe.
	Privilege pulumi.StringPtrInput
	// Grants privilege to these roles.
	Roles pulumi.StringArrayInput
	// The name of the schema containing the current or future pipes on which to grant privileges.
	SchemaName pulumi.StringPtrInput
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrInput
}

func (PipeGrantState) ElementType added in v0.1.2

func (PipeGrantState) ElementType() reflect.Type

type PipeInput

type PipeInput interface {
	pulumi.Input

	ToPipeOutput() PipeOutput
	ToPipeOutputWithContext(ctx context.Context) PipeOutput
}

type PipeMap

type PipeMap map[string]PipeInput

func (PipeMap) ElementType

func (PipeMap) ElementType() reflect.Type

func (PipeMap) ToPipeMapOutput

func (i PipeMap) ToPipeMapOutput() PipeMapOutput

func (PipeMap) ToPipeMapOutputWithContext

func (i PipeMap) ToPipeMapOutputWithContext(ctx context.Context) PipeMapOutput

type PipeMapInput

type PipeMapInput interface {
	pulumi.Input

	ToPipeMapOutput() PipeMapOutput
	ToPipeMapOutputWithContext(context.Context) PipeMapOutput
}

PipeMapInput is an input type that accepts PipeMap and PipeMapOutput values. You can construct a concrete instance of `PipeMapInput` via:

PipeMap{ "key": PipeArgs{...} }

type PipeMapOutput

type PipeMapOutput struct{ *pulumi.OutputState }

func (PipeMapOutput) ElementType

func (PipeMapOutput) ElementType() reflect.Type

func (PipeMapOutput) MapIndex

func (PipeMapOutput) ToPipeMapOutput

func (o PipeMapOutput) ToPipeMapOutput() PipeMapOutput

func (PipeMapOutput) ToPipeMapOutputWithContext

func (o PipeMapOutput) ToPipeMapOutputWithContext(ctx context.Context) PipeMapOutput

type PipeOutput

type PipeOutput struct{ *pulumi.OutputState }

func (PipeOutput) 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

type PipeState

type PipeState struct {
	// Specifies a autoIngest param for the pipe.
	AutoIngest pulumi.BoolPtrInput
	// Specifies the Amazon Resource Name (ARN) for the SNS topic for your S3 bucket.
	AwsSnsTopicArn pulumi.StringPtrInput
	// Specifies a comment for the pipe.
	Comment pulumi.StringPtrInput
	// Specifies the copy statement for the pipe.
	CopyStatement pulumi.StringPtrInput
	// The database in which to create the pipe.
	Database pulumi.StringPtrInput
	// Specifies the name of the notification integration used for error notifications.
	ErrorIntegration pulumi.StringPtrInput
	// Specifies an integration for the pipe.
	Integration pulumi.StringPtrInput
	// Specifies the identifier for the pipe; must be unique for the database and schema in which the pipe is created.
	Name pulumi.StringPtrInput
	// Amazon Resource Name of the Amazon SQS queue for the stage named in the DEFINITION column.
	NotificationChannel pulumi.StringPtrInput
	// Name of the role that owns the pipe.
	Owner pulumi.StringPtrInput
	// The schema in which to create the pipe.
	Schema pulumi.StringPtrInput
}

func (PipeState) ElementType

func (PipeState) ElementType() reflect.Type

type Procedure added in v0.1.3

type Procedure struct {
	pulumi.CustomResourceState

	// List of the arguments for the procedure
	Arguments ProcedureArgumentArrayOutput `pulumi:"arguments"`
	// Specifies a comment for the procedure.
	Comment pulumi.StringPtrOutput `pulumi:"comment"`
	// The database in which to create the procedure. Don't use the | character.
	Database pulumi.StringOutput `pulumi:"database"`
	// Sets execute context - see caller's rights and owner's rights
	ExecuteAs pulumi.StringPtrOutput `pulumi:"executeAs"`
	// Specifies the identifier for the procedure; does not have to be unique for the schema in which the procedure is created. Don't use the | character.
	Name pulumi.StringOutput `pulumi:"name"`
	// Specifies the behavior of the procedure when called with null inputs.
	NullInputBehavior pulumi.StringPtrOutput `pulumi:"nullInputBehavior"`
	// Specifies the behavior of the function when returning results
	ReturnBehavior pulumi.StringPtrOutput `pulumi:"returnBehavior"`
	// The return type of the procedure
	ReturnType pulumi.StringOutput `pulumi:"returnType"`
	// The schema in which to create the procedure. Don't use the | character.
	Schema pulumi.StringOutput `pulumi:"schema"`
	// Specifies the javascript code used to create the procedure.
	Statement pulumi.StringOutput `pulumi:"statement"`
}

## 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 {
		_, err := snowflake.NewSchema(ctx, "db", &snowflake.SchemaArgs{
			DataRetentionDays: pulumi.Int(1),
		})
		if err != nil {
			return err
		}
		schema, err := snowflake.NewSchema(ctx, "schema", &snowflake.SchemaArgs{
			Database:          pulumi.Any(snowflake_database.Db.Name),
			DataRetentionDays: pulumi.Int(1),
		})
		if err != nil {
			return err
		}
		_, err = snowflake.NewProcedure(ctx, "proc", &snowflake.ProcedureArgs{
			Database: pulumi.Any(snowflake_database.Db.Name),
			Schema:   schema.Name,
			Arguments: ProcedureArgumentArray{
				&ProcedureArgumentArgs{
					Name: pulumi.String("arg1"),
					Type: pulumi.String("varchar"),
				},
				&ProcedureArgumentArgs{
					Name: pulumi.String("arg2"),
					Type: pulumi.String("DATE"),
				},
			},
			Comment:           pulumi.String("Procedure with 2 arguments"),
			ReturnType:        pulumi.String("VARCHAR"),
			ExecuteAs:         pulumi.String("CALLER"),
			ReturnBehavior:    pulumi.String("IMMUTABLE"),
			NullInputBehavior: pulumi.String("RETURNS NULL ON NULL INPUT"),
			Statement:         pulumi.String(fmt.Sprintf("%v%v", "var X=1\n", "return X\n")),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

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

```sh

$ pulumi import snowflake:index/procedure:Procedure example 'dbName|schemaName|procedureName|varchar-varchar-varchar'

```

func GetProcedure added in v0.1.3

func GetProcedure(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ProcedureState, opts ...pulumi.ResourceOption) (*Procedure, error)

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

func NewProcedure added in v0.1.3

func NewProcedure(ctx *pulumi.Context,
	name string, args *ProcedureArgs, opts ...pulumi.ResourceOption) (*Procedure, error)

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

func (*Procedure) ElementType added in v0.1.3

func (*Procedure) ElementType() reflect.Type

func (*Procedure) ToProcedureOutput added in v0.1.3

func (i *Procedure) ToProcedureOutput() ProcedureOutput

func (*Procedure) ToProcedureOutputWithContext added in v0.1.3

func (i *Procedure) ToProcedureOutputWithContext(ctx context.Context) ProcedureOutput

type ProcedureArgs added in v0.1.3

type ProcedureArgs struct {
	// List of the arguments for the procedure
	Arguments ProcedureArgumentArrayInput
	// Specifies a comment for the procedure.
	Comment pulumi.StringPtrInput
	// The database in which to create the procedure. Don't use the | character.
	Database pulumi.StringInput
	// Sets execute context - see caller's rights and owner's rights
	ExecuteAs pulumi.StringPtrInput
	// Specifies the identifier for the procedure; does not have to be unique for the schema in which the procedure is created. Don't use the | character.
	Name pulumi.StringPtrInput
	// Specifies the behavior of the procedure when called with null inputs.
	NullInputBehavior pulumi.StringPtrInput
	// Specifies the behavior of the function when returning results
	ReturnBehavior pulumi.StringPtrInput
	// The return type of the procedure
	ReturnType pulumi.StringInput
	// The schema in which to create the procedure. Don't use the | character.
	Schema pulumi.StringInput
	// Specifies the javascript code used to create the procedure.
	Statement pulumi.StringInput
}

The set of arguments for constructing a Procedure resource.

func (ProcedureArgs) ElementType added in v0.1.3

func (ProcedureArgs) ElementType() reflect.Type

type ProcedureArgument added in v0.1.3

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

type ProcedureArgumentArgs added in v0.1.3

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

func (ProcedureArgumentArgs) ElementType added in v0.1.3

func (ProcedureArgumentArgs) ElementType() reflect.Type

func (ProcedureArgumentArgs) ToProcedureArgumentOutput added in v0.1.3

func (i ProcedureArgumentArgs) ToProcedureArgumentOutput() ProcedureArgumentOutput

func (ProcedureArgumentArgs) ToProcedureArgumentOutputWithContext added in v0.1.3

func (i ProcedureArgumentArgs) ToProcedureArgumentOutputWithContext(ctx context.Context) ProcedureArgumentOutput

type ProcedureArgumentArray added in v0.1.3

type ProcedureArgumentArray []ProcedureArgumentInput

func (ProcedureArgumentArray) ElementType added in v0.1.3

func (ProcedureArgumentArray) ElementType() reflect.Type

func (ProcedureArgumentArray) ToProcedureArgumentArrayOutput added in v0.1.3

func (i ProcedureArgumentArray) ToProcedureArgumentArrayOutput() ProcedureArgumentArrayOutput

func (ProcedureArgumentArray) ToProcedureArgumentArrayOutputWithContext added in v0.1.3

func (i ProcedureArgumentArray) ToProcedureArgumentArrayOutputWithContext(ctx context.Context) ProcedureArgumentArrayOutput

type ProcedureArgumentArrayInput added in v0.1.3

type ProcedureArgumentArrayInput interface {
	pulumi.Input

	ToProcedureArgumentArrayOutput() ProcedureArgumentArrayOutput
	ToProcedureArgumentArrayOutputWithContext(context.Context) ProcedureArgumentArrayOutput
}

ProcedureArgumentArrayInput is an input type that accepts ProcedureArgumentArray and ProcedureArgumentArrayOutput values. You can construct a concrete instance of `ProcedureArgumentArrayInput` via:

ProcedureArgumentArray{ ProcedureArgumentArgs{...} }

type ProcedureArgumentArrayOutput added in v0.1.3

type ProcedureArgumentArrayOutput struct{ *pulumi.OutputState }

func (ProcedureArgumentArrayOutput) ElementType added in v0.1.3

func (ProcedureArgumentArrayOutput) Index added in v0.1.3

func (ProcedureArgumentArrayOutput) ToProcedureArgumentArrayOutput added in v0.1.3

func (o ProcedureArgumentArrayOutput) ToProcedureArgumentArrayOutput() ProcedureArgumentArrayOutput

func (ProcedureArgumentArrayOutput) ToProcedureArgumentArrayOutputWithContext added in v0.1.3

func (o ProcedureArgumentArrayOutput) ToProcedureArgumentArrayOutputWithContext(ctx context.Context) ProcedureArgumentArrayOutput

type ProcedureArgumentInput added in v0.1.3

type ProcedureArgumentInput interface {
	pulumi.Input

	ToProcedureArgumentOutput() ProcedureArgumentOutput
	ToProcedureArgumentOutputWithContext(context.Context) ProcedureArgumentOutput
}

ProcedureArgumentInput is an input type that accepts ProcedureArgumentArgs and ProcedureArgumentOutput values. You can construct a concrete instance of `ProcedureArgumentInput` via:

ProcedureArgumentArgs{...}

type ProcedureArgumentOutput added in v0.1.3

type ProcedureArgumentOutput struct{ *pulumi.OutputState }

func (ProcedureArgumentOutput) ElementType added in v0.1.3

func (ProcedureArgumentOutput) ElementType() reflect.Type

func (ProcedureArgumentOutput) Name added in v0.1.3

The argument name

func (ProcedureArgumentOutput) ToProcedureArgumentOutput added in v0.1.3

func (o ProcedureArgumentOutput) ToProcedureArgumentOutput() ProcedureArgumentOutput

func (ProcedureArgumentOutput) ToProcedureArgumentOutputWithContext added in v0.1.3

func (o ProcedureArgumentOutput) ToProcedureArgumentOutputWithContext(ctx context.Context) ProcedureArgumentOutput

func (ProcedureArgumentOutput) Type added in v0.1.3

The argument type

type ProcedureArray added in v0.1.3

type ProcedureArray []ProcedureInput

func (ProcedureArray) ElementType added in v0.1.3

func (ProcedureArray) ElementType() reflect.Type

func (ProcedureArray) ToProcedureArrayOutput added in v0.1.3

func (i ProcedureArray) ToProcedureArrayOutput() ProcedureArrayOutput

func (ProcedureArray) ToProcedureArrayOutputWithContext added in v0.1.3

func (i ProcedureArray) ToProcedureArrayOutputWithContext(ctx context.Context) ProcedureArrayOutput

type ProcedureArrayInput added in v0.1.3

type ProcedureArrayInput interface {
	pulumi.Input

	ToProcedureArrayOutput() ProcedureArrayOutput
	ToProcedureArrayOutputWithContext(context.Context) ProcedureArrayOutput
}

ProcedureArrayInput is an input type that accepts ProcedureArray and ProcedureArrayOutput values. You can construct a concrete instance of `ProcedureArrayInput` via:

ProcedureArray{ ProcedureArgs{...} }

type ProcedureArrayOutput added in v0.1.3

type ProcedureArrayOutput struct{ *pulumi.OutputState }

func (ProcedureArrayOutput) ElementType added in v0.1.3

func (ProcedureArrayOutput) ElementType() reflect.Type

func (ProcedureArrayOutput) Index added in v0.1.3

func (ProcedureArrayOutput) ToProcedureArrayOutput added in v0.1.3

func (o ProcedureArrayOutput) ToProcedureArrayOutput() ProcedureArrayOutput

func (ProcedureArrayOutput) ToProcedureArrayOutputWithContext added in v0.1.3

func (o ProcedureArrayOutput) ToProcedureArrayOutputWithContext(ctx context.Context) ProcedureArrayOutput

type ProcedureGrant

type ProcedureGrant struct {
	pulumi.CustomResourceState

	// List of the arguments for the procedure (must be present if procedure has arguments and 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

type ProcedureGrantArgs

type ProcedureGrantArgs struct {
	// List of the arguments for the procedure (must be present if procedure has arguments and 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

type ProcedureGrantState

type ProcedureGrantState struct {
	// List of the arguments for the procedure (must be present if procedure has arguments and 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 ProcedureInput added in v0.1.3

type ProcedureInput interface {
	pulumi.Input

	ToProcedureOutput() ProcedureOutput
	ToProcedureOutputWithContext(ctx context.Context) ProcedureOutput
}

type ProcedureMap added in v0.1.3

type ProcedureMap map[string]ProcedureInput

func (ProcedureMap) ElementType added in v0.1.3

func (ProcedureMap) ElementType() reflect.Type

func (ProcedureMap) ToProcedureMapOutput added in v0.1.3

func (i ProcedureMap) ToProcedureMapOutput() ProcedureMapOutput

func (ProcedureMap) ToProcedureMapOutputWithContext added in v0.1.3

func (i ProcedureMap) ToProcedureMapOutputWithContext(ctx context.Context) ProcedureMapOutput

type ProcedureMapInput added in v0.1.3

type ProcedureMapInput interface {
	pulumi.Input

	ToProcedureMapOutput() ProcedureMapOutput
	ToProcedureMapOutputWithContext(context.Context) ProcedureMapOutput
}

ProcedureMapInput is an input type that accepts ProcedureMap and ProcedureMapOutput values. You can construct a concrete instance of `ProcedureMapInput` via:

ProcedureMap{ "key": ProcedureArgs{...} }

type ProcedureMapOutput added in v0.1.3

type ProcedureMapOutput struct{ *pulumi.OutputState }

func (ProcedureMapOutput) ElementType added in v0.1.3

func (ProcedureMapOutput) ElementType() reflect.Type

func (ProcedureMapOutput) MapIndex added in v0.1.3

func (ProcedureMapOutput) ToProcedureMapOutput added in v0.1.3

func (o ProcedureMapOutput) ToProcedureMapOutput() ProcedureMapOutput

func (ProcedureMapOutput) ToProcedureMapOutputWithContext added in v0.1.3

func (o ProcedureMapOutput) ToProcedureMapOutputWithContext(ctx context.Context) ProcedureMapOutput

type ProcedureOutput added in v0.1.3

type ProcedureOutput struct{ *pulumi.OutputState }

func (ProcedureOutput) ElementType added in v0.1.3

func (ProcedureOutput) ElementType() reflect.Type

func (ProcedureOutput) ToProcedureOutput added in v0.1.3

func (o ProcedureOutput) ToProcedureOutput() ProcedureOutput

func (ProcedureOutput) ToProcedureOutputWithContext added in v0.1.3

func (o ProcedureOutput) ToProcedureOutputWithContext(ctx context.Context) ProcedureOutput

type ProcedureState added in v0.1.3

type ProcedureState struct {
	// List of the arguments for the procedure
	Arguments ProcedureArgumentArrayInput
	// Specifies a comment for the procedure.
	Comment pulumi.StringPtrInput
	// The database in which to create the procedure. Don't use the | character.
	Database pulumi.StringPtrInput
	// Sets execute context - see caller's rights and owner's rights
	ExecuteAs pulumi.StringPtrInput
	// Specifies the identifier for the procedure; does not have to be unique for the schema in which the procedure is created. Don't use the | character.
	Name pulumi.StringPtrInput
	// Specifies the behavior of the procedure when called with null inputs.
	NullInputBehavior pulumi.StringPtrInput
	// Specifies the behavior of the function when returning results
	ReturnBehavior pulumi.StringPtrInput
	// The return type of the procedure
	ReturnType pulumi.StringPtrInput
	// The schema in which to create the procedure. Don't use the | character.
	Schema pulumi.StringPtrInput
	// Specifies the javascript code used to create the procedure.
	Statement pulumi.StringPtrInput
}

func (ProcedureState) ElementType added in v0.1.3

func (ProcedureState) ElementType() reflect.Type

type Provider

type Provider struct {
	pulumi.ProviderResourceState

	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"`
	// Supports the encryption ciphers aes-128-cbc, aes-128-gcm, aes-192-cbc, aes-192-gcm, aes-256-cbc, aes-256-gcm, and
	// des-ede3-cbc
	PrivateKeyPassphrase pulumi.StringPtrOutput `pulumi:"privateKeyPassphrase"`
	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

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
	// Supports the encryption ciphers aes-128-cbc, aes-128-gcm, aes-192-cbc, aes-192-gcm, aes-256-cbc, aes-256-gcm, and
	// des-ede3-cbc
	PrivateKeyPassphrase pulumi.StringPtrInput
	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

type ResourceMonitor

type ResourceMonitor struct {
	pulumi.CustomResourceState

	// The number of credits allocated monthly to the resource monitor.
	CreditQuota pulumi.IntOutput `pulumi:"creditQuota"`
	// The date and time when the resource monitor suspends the assigned warehouses.
	EndTimestamp pulumi.StringPtrOutput `pulumi:"endTimestamp"`
	// The frequency interval at which the credit usage resets to 0. If you set a frequency for a resource monitor, you must also set START_TIMESTAMP.
	Frequency pulumi.StringOutput `pulumi:"frequency"`
	// Identifier for the resource monitor; must be unique for your account.
	Name pulumi.StringOutput `pulumi:"name"`
	// A list of percentage thresholds at which to send an alert to subscribed users.
	NotifyTriggers pulumi.IntArrayOutput `pulumi:"notifyTriggers"`
	// Specifies whether the resource monitor should be applied globally to your Snowflake account.
	SetForAccount pulumi.BoolPtrOutput `pulumi:"setForAccount"`
	// The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses.
	StartTimestamp pulumi.StringOutput `pulumi:"startTimestamp"`
	// 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"`
	// A list of warehouses to apply the resource monitor to.
	Warehouses pulumi.StringArrayOutput `pulumi:"warehouses"`
}

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-snowflake/sdk/go/snowflake"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := snowflake.NewResourceMonitor(ctx, "monitor", &snowflake.ResourceMonitorArgs{
			CreditQuota:  pulumi.Int(100),
			EndTimestamp: pulumi.String("2021-12-07 00:00"),
			Frequency:    pulumi.String("DAILY"),
			NotifyTriggers: pulumi.IntArray{
				pulumi.Int(40),
			},
			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

type ResourceMonitorArgs

type ResourceMonitorArgs struct {
	// The number of credits allocated monthly to the resource monitor.
	CreditQuota pulumi.IntPtrInput
	// The date and time when the resource monitor suspends the assigned warehouses.
	EndTimestamp pulumi.StringPtrInput
	// The frequency interval at which the credit usage resets to 0. If you set a frequency for a resource monitor, you must also set START_TIMESTAMP.
	Frequency pulumi.StringPtrInput
	// Identifier for the resource monitor; must be unique for your account.
	Name pulumi.StringPtrInput
	// A list of percentage thresholds at which to send an alert to subscribed users.
	NotifyTriggers pulumi.IntArrayInput
	// Specifies whether the resource monitor should be applied globally to your Snowflake account.
	SetForAccount pulumi.BoolPtrInput
	// 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
	// A list of warehouses to apply the resource monitor to.
	Warehouses pulumi.StringArrayInput
}

The set of arguments for constructing a ResourceMonitor resource.

func (ResourceMonitorArgs) ElementType

func (ResourceMonitorArgs) ElementType() reflect.Type

type ResourceMonitorArray

type ResourceMonitorArray []ResourceMonitorInput

func (ResourceMonitorArray) ElementType

func (ResourceMonitorArray) ElementType() reflect.Type

func (ResourceMonitorArray) ToResourceMonitorArrayOutput

func (i ResourceMonitorArray) ToResourceMonitorArrayOutput() ResourceMonitorArrayOutput

func (ResourceMonitorArray) ToResourceMonitorArrayOutputWithContext

func (i ResourceMonitorArray) ToResourceMonitorArrayOutputWithContext(ctx context.Context) ResourceMonitorArrayOutput

type ResourceMonitorArrayInput

type ResourceMonitorArrayInput interface {
	pulumi.Input

	ToResourceMonitorArrayOutput() ResourceMonitorArrayOutput
	ToResourceMonitorArrayOutputWithContext(context.Context) ResourceMonitorArrayOutput
}

ResourceMonitorArrayInput is an input type that accepts ResourceMonitorArray and ResourceMonitorArrayOutput values. You can construct a concrete instance of `ResourceMonitorArrayInput` via:

ResourceMonitorArray{ ResourceMonitorArgs{...} }

type ResourceMonitorArrayOutput

type ResourceMonitorArrayOutput struct{ *pulumi.OutputState }

func (ResourceMonitorArrayOutput) ElementType

func (ResourceMonitorArrayOutput) ElementType() reflect.Type

func (ResourceMonitorArrayOutput) Index

func (ResourceMonitorArrayOutput) ToResourceMonitorArrayOutput

func (o ResourceMonitorArrayOutput) ToResourceMonitorArrayOutput() ResourceMonitorArrayOutput

func (ResourceMonitorArrayOutput) ToResourceMonitorArrayOutputWithContext

func (o ResourceMonitorArrayOutput) ToResourceMonitorArrayOutputWithContext(ctx context.Context) ResourceMonitorArrayOutput

type ResourceMonitorGrant

type ResourceMonitorGrant struct {
	pulumi.CustomResourceState

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

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

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

type ResourceMonitorState

type ResourceMonitorState struct {
	// The number of credits allocated monthly to the resource monitor.
	CreditQuota pulumi.IntPtrInput
	// The date and time when the resource monitor suspends the assigned warehouses.
	EndTimestamp pulumi.StringPtrInput
	// The frequency interval at which the credit usage resets to 0. If you set a frequency for a resource monitor, you must also set START_TIMESTAMP.
	Frequency pulumi.StringPtrInput
	// Identifier for the resource monitor; must be unique for your account.
	Name pulumi.StringPtrInput
	// A list of percentage thresholds at which to send an alert to subscribed users.
	NotifyTriggers pulumi.IntArrayInput
	// Specifies whether the resource monitor should be applied globally to your Snowflake account.
	SetForAccount pulumi.BoolPtrInput
	// 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
	// A list of warehouses to apply the resource monitor to.
	Warehouses pulumi.StringArrayInput
}

func (ResourceMonitorState) ElementType

func (ResourceMonitorState) ElementType() reflect.Type

type Role

type Role struct {
	pulumi.CustomResourceState

	Comment pulumi.StringPtrOutput `pulumi:"comment"`
	Name    pulumi.StringOutput    `pulumi:"name"`
	// Definitions of a tag to associate with the resource.
	Tags RoleTagArrayOutput `pulumi:"tags"`
}

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-snowflake/sdk/go/snowflake"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := snowflake.NewRole(ctx, "role", &snowflake.RoleArgs{
			Comment: pulumi.String("A role."),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

```sh

$ pulumi import snowflake:index/role:Role example roleName

```

func GetRole

func GetRole(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *RoleState, opts ...pulumi.ResourceOption) (*Role, error)

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

func NewRole

func NewRole(ctx *pulumi.Context,
	name string, args *RoleArgs, opts ...pulumi.ResourceOption) (*Role, error)

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

func (*Role) ElementType

func (*Role) ElementType() reflect.Type

func (*Role) ToRoleOutput

func (i *Role) ToRoleOutput() RoleOutput

func (*Role) ToRoleOutputWithContext

func (i *Role) ToRoleOutputWithContext(ctx context.Context) RoleOutput

type RoleArgs

type RoleArgs struct {
	Comment pulumi.StringPtrInput
	Name    pulumi.StringPtrInput
	// Definitions of a tag to associate with the resource.
	Tags RoleTagArrayInput
}

The set of arguments for constructing a Role resource.

func (RoleArgs) ElementType

func (RoleArgs) ElementType() reflect.Type

type RoleArray

type RoleArray []RoleInput

func (RoleArray) ElementType

func (RoleArray) ElementType() reflect.Type

func (RoleArray) ToRoleArrayOutput

func (i RoleArray) ToRoleArrayOutput() RoleArrayOutput

func (RoleArray) ToRoleArrayOutputWithContext

func (i RoleArray) ToRoleArrayOutputWithContext(ctx context.Context) RoleArrayOutput

type RoleArrayInput

type RoleArrayInput interface {
	pulumi.Input

	ToRoleArrayOutput() RoleArrayOutput
	ToRoleArrayOutputWithContext(context.Context) RoleArrayOutput
}

RoleArrayInput is an input type that accepts RoleArray and RoleArrayOutput values. You can construct a concrete instance of `RoleArrayInput` via:

RoleArray{ RoleArgs{...} }

type RoleArrayOutput

type RoleArrayOutput struct{ *pulumi.OutputState }

func (RoleArrayOutput) ElementType

func (RoleArrayOutput) ElementType() reflect.Type

func (RoleArrayOutput) Index

func (RoleArrayOutput) ToRoleArrayOutput

func (o RoleArrayOutput) ToRoleArrayOutput() RoleArrayOutput

func (RoleArrayOutput) ToRoleArrayOutputWithContext

func (o RoleArrayOutput) ToRoleArrayOutputWithContext(ctx context.Context) RoleArrayOutput

type RoleGrants

type RoleGrants struct {
	pulumi.CustomResourceState

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

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

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

type RoleState

type RoleState struct {
	Comment pulumi.StringPtrInput
	Name    pulumi.StringPtrInput
	// Definitions of a tag to associate with the resource.
	Tags RoleTagArrayInput
}

func (RoleState) ElementType

func (RoleState) ElementType() reflect.Type

type RoleTag added in v0.3.0

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

type RoleTagArgs added in v0.3.0

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

func (RoleTagArgs) ElementType added in v0.3.0

func (RoleTagArgs) ElementType() reflect.Type

func (RoleTagArgs) ToRoleTagOutput added in v0.3.0

func (i RoleTagArgs) ToRoleTagOutput() RoleTagOutput

func (RoleTagArgs) ToRoleTagOutputWithContext added in v0.3.0

func (i RoleTagArgs) ToRoleTagOutputWithContext(ctx context.Context) RoleTagOutput

type RoleTagArray added in v0.3.0

type RoleTagArray []RoleTagInput

func (RoleTagArray) ElementType added in v0.3.0

func (RoleTagArray) ElementType() reflect.Type

func (RoleTagArray) ToRoleTagArrayOutput added in v0.3.0

func (i RoleTagArray) ToRoleTagArrayOutput() RoleTagArrayOutput

func (RoleTagArray) ToRoleTagArrayOutputWithContext added in v0.3.0

func (i RoleTagArray) ToRoleTagArrayOutputWithContext(ctx context.Context) RoleTagArrayOutput

type RoleTagArrayInput added in v0.3.0

type RoleTagArrayInput interface {
	pulumi.Input

	ToRoleTagArrayOutput() RoleTagArrayOutput
	ToRoleTagArrayOutputWithContext(context.Context) RoleTagArrayOutput
}

RoleTagArrayInput is an input type that accepts RoleTagArray and RoleTagArrayOutput values. You can construct a concrete instance of `RoleTagArrayInput` via:

RoleTagArray{ RoleTagArgs{...} }

type RoleTagArrayOutput added in v0.3.0

type RoleTagArrayOutput struct{ *pulumi.OutputState }

func (RoleTagArrayOutput) ElementType added in v0.3.0

func (RoleTagArrayOutput) ElementType() reflect.Type

func (RoleTagArrayOutput) Index added in v0.3.0

func (RoleTagArrayOutput) ToRoleTagArrayOutput added in v0.3.0

func (o RoleTagArrayOutput) ToRoleTagArrayOutput() RoleTagArrayOutput

func (RoleTagArrayOutput) ToRoleTagArrayOutputWithContext added in v0.3.0

func (o RoleTagArrayOutput) ToRoleTagArrayOutputWithContext(ctx context.Context) RoleTagArrayOutput

type RoleTagInput added in v0.3.0

type RoleTagInput interface {
	pulumi.Input

	ToRoleTagOutput() RoleTagOutput
	ToRoleTagOutputWithContext(context.Context) RoleTagOutput
}

RoleTagInput is an input type that accepts RoleTagArgs and RoleTagOutput values. You can construct a concrete instance of `RoleTagInput` via:

RoleTagArgs{...}

type RoleTagOutput added in v0.3.0

type RoleTagOutput struct{ *pulumi.OutputState }

func (RoleTagOutput) Database added in v0.3.0

func (o RoleTagOutput) Database() pulumi.StringPtrOutput

Name of the database that the tag was created in.

func (RoleTagOutput) ElementType added in v0.3.0

func (RoleTagOutput) ElementType() reflect.Type

func (RoleTagOutput) Name added in v0.3.0

Tag name, e.g. department.

func (RoleTagOutput) Schema added in v0.3.0

Name of the schema that the tag was created in.

func (RoleTagOutput) ToRoleTagOutput added in v0.3.0

func (o RoleTagOutput) ToRoleTagOutput() RoleTagOutput

func (RoleTagOutput) ToRoleTagOutputWithContext added in v0.3.0

func (o RoleTagOutput) ToRoleTagOutputWithContext(ctx context.Context) RoleTagOutput

func (RoleTagOutput) Value added in v0.3.0

func (o RoleTagOutput) Value() pulumi.StringOutput

Tag value, e.g. marketing_info.

type RowAccessPolicy added in v0.1.3

type RowAccessPolicy struct {
	pulumi.CustomResourceState

	// Specifies a comment for the row access policy.
	Comment pulumi.StringPtrOutput `pulumi:"comment"`
	// The database in which to create the row access policy.
	Database pulumi.StringOutput `pulumi:"database"`
	// Specifies the identifier for the row access policy; must be unique for the database and schema in which the row access policy is created.
	Name pulumi.StringOutput `pulumi:"name"`
	// Specifies the SQL expression. The expression can be any boolean-valued SQL expression.
	RowAccessExpression pulumi.StringOutput `pulumi:"rowAccessExpression"`
	// The schema in which to create the row access policy.
	Schema pulumi.StringOutput `pulumi:"schema"`
	// Specifies signature (arguments) for the row access policy (uppercase and sorted to avoid recreation of resource). A signature specifies a set of attributes that must be considered to determine whether the row is accessible. The attribute values come from the database object (e.g. table or view) to be protected by the row access policy.
	Signature pulumi.StringMapOutput `pulumi:"signature"`
}

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-snowflake/sdk/go/snowflake"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := snowflake.NewRowAccessPolicy(ctx, "exampleRowAccessPolicy", &snowflake.RowAccessPolicyArgs{
			Database:            pulumi.String("EXAMPLE_DB"),
			RowAccessExpression: pulumi.String("case when current_role() in ('ANALYST') then true else false end"),
			Schema:              pulumi.String("EXAMPLE_SCHEMA"),
			Signature: pulumi.StringMap{
				"A": pulumi.String("VARCHAR"),
				"B": pulumi.String("VARCHAR"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

format is database name | schema name | policy name

```sh

$ pulumi import snowflake:index/rowAccessPolicy:RowAccessPolicy example 'dbName|schemaName|policyName'

```

func GetRowAccessPolicy added in v0.1.3

func GetRowAccessPolicy(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *RowAccessPolicyState, opts ...pulumi.ResourceOption) (*RowAccessPolicy, error)

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

func NewRowAccessPolicy added in v0.1.3

func NewRowAccessPolicy(ctx *pulumi.Context,
	name string, args *RowAccessPolicyArgs, opts ...pulumi.ResourceOption) (*RowAccessPolicy, error)

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

func (*RowAccessPolicy) ElementType added in v0.1.3

func (*RowAccessPolicy) ElementType() reflect.Type

func (*RowAccessPolicy) ToRowAccessPolicyOutput added in v0.1.3

func (i *RowAccessPolicy) ToRowAccessPolicyOutput() RowAccessPolicyOutput

func (*RowAccessPolicy) ToRowAccessPolicyOutputWithContext added in v0.1.3

func (i *RowAccessPolicy) ToRowAccessPolicyOutputWithContext(ctx context.Context) RowAccessPolicyOutput

type RowAccessPolicyArgs added in v0.1.3

type RowAccessPolicyArgs struct {
	// Specifies a comment for the row access policy.
	Comment pulumi.StringPtrInput
	// The database in which to create the row access policy.
	Database pulumi.StringInput
	// Specifies the identifier for the row access policy; must be unique for the database and schema in which the row access policy is created.
	Name pulumi.StringPtrInput
	// Specifies the SQL expression. The expression can be any boolean-valued SQL expression.
	RowAccessExpression pulumi.StringInput
	// The schema in which to create the row access policy.
	Schema pulumi.StringInput
	// Specifies signature (arguments) for the row access policy (uppercase and sorted to avoid recreation of resource). A signature specifies a set of attributes that must be considered to determine whether the row is accessible. The attribute values come from the database object (e.g. table or view) to be protected by the row access policy.
	Signature pulumi.StringMapInput
}

The set of arguments for constructing a RowAccessPolicy resource.

func (RowAccessPolicyArgs) ElementType added in v0.1.3

func (RowAccessPolicyArgs) ElementType() reflect.Type

type RowAccessPolicyArray added in v0.1.3

type RowAccessPolicyArray []RowAccessPolicyInput

func (RowAccessPolicyArray) ElementType added in v0.1.3

func (RowAccessPolicyArray) ElementType() reflect.Type

func (RowAccessPolicyArray) ToRowAccessPolicyArrayOutput added in v0.1.3

func (i RowAccessPolicyArray) ToRowAccessPolicyArrayOutput() RowAccessPolicyArrayOutput

func (RowAccessPolicyArray) ToRowAccessPolicyArrayOutputWithContext added in v0.1.3

func (i RowAccessPolicyArray) ToRowAccessPolicyArrayOutputWithContext(ctx context.Context) RowAccessPolicyArrayOutput

type RowAccessPolicyArrayInput added in v0.1.3

type RowAccessPolicyArrayInput interface {
	pulumi.Input

	ToRowAccessPolicyArrayOutput() RowAccessPolicyArrayOutput
	ToRowAccessPolicyArrayOutputWithContext(context.Context) RowAccessPolicyArrayOutput
}

RowAccessPolicyArrayInput is an input type that accepts RowAccessPolicyArray and RowAccessPolicyArrayOutput values. You can construct a concrete instance of `RowAccessPolicyArrayInput` via:

RowAccessPolicyArray{ RowAccessPolicyArgs{...} }

type RowAccessPolicyArrayOutput added in v0.1.3

type RowAccessPolicyArrayOutput struct{ *pulumi.OutputState }

func (RowAccessPolicyArrayOutput) ElementType added in v0.1.3

func (RowAccessPolicyArrayOutput) ElementType() reflect.Type

func (RowAccessPolicyArrayOutput) Index added in v0.1.3

func (RowAccessPolicyArrayOutput) ToRowAccessPolicyArrayOutput added in v0.1.3

func (o RowAccessPolicyArrayOutput) ToRowAccessPolicyArrayOutput() RowAccessPolicyArrayOutput

func (RowAccessPolicyArrayOutput) ToRowAccessPolicyArrayOutputWithContext added in v0.1.3

func (o RowAccessPolicyArrayOutput) ToRowAccessPolicyArrayOutputWithContext(ctx context.Context) RowAccessPolicyArrayOutput

type RowAccessPolicyGrant added in v0.1.3

type RowAccessPolicyGrant struct {
	pulumi.CustomResourceState

	// The name of the database containing the row access policy on which to grant privileges.
	DatabaseName pulumi.StringOutput `pulumi:"databaseName"`
	// The privilege to grant on the row access policy.
	Privilege pulumi.StringPtrOutput `pulumi:"privilege"`
	// Grants privilege to these roles.
	Roles pulumi.StringArrayOutput `pulumi:"roles"`
	// The name of the row access policy on which to grant privileges immediately.
	RowAccessPolicyName pulumi.StringOutput `pulumi:"rowAccessPolicyName"`
	// The name of the schema containing the row access policy on which to grant privileges.
	SchemaName pulumi.StringOutput `pulumi:"schemaName"`
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrOutput `pulumi:"withGrantOption"`
}

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-snowflake/sdk/go/snowflake"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := snowflake.NewRowAccessPolicyGrant(ctx, "grant", &snowflake.RowAccessPolicyGrantArgs{
			DatabaseName: pulumi.String("db"),
			Privilege:    pulumi.String("APPLY"),
			Roles: pulumi.StringArray{
				pulumi.String("role1"),
				pulumi.String("role2"),
			},
			RowAccessPolicyName: pulumi.String("row_access_policy"),
			SchemaName:          pulumi.String("schema"),
			WithGrantOption:     pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

format is database name | schema name | row access policy name | privilege | true/false for with_grant_option

```sh

$ pulumi import snowflake:index/rowAccessPolicyGrant:RowAccessPolicyGrant example 'dbName|schemaName|rowAccessPolicyName|SELECT|false'

```

func GetRowAccessPolicyGrant added in v0.1.3

func GetRowAccessPolicyGrant(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *RowAccessPolicyGrantState, opts ...pulumi.ResourceOption) (*RowAccessPolicyGrant, error)

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

func NewRowAccessPolicyGrant added in v0.1.3

func NewRowAccessPolicyGrant(ctx *pulumi.Context,
	name string, args *RowAccessPolicyGrantArgs, opts ...pulumi.ResourceOption) (*RowAccessPolicyGrant, error)

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

func (*RowAccessPolicyGrant) ElementType added in v0.1.3

func (*RowAccessPolicyGrant) ElementType() reflect.Type

func (*RowAccessPolicyGrant) ToRowAccessPolicyGrantOutput added in v0.1.3

func (i *RowAccessPolicyGrant) ToRowAccessPolicyGrantOutput() RowAccessPolicyGrantOutput

func (*RowAccessPolicyGrant) ToRowAccessPolicyGrantOutputWithContext added in v0.1.3

func (i *RowAccessPolicyGrant) ToRowAccessPolicyGrantOutputWithContext(ctx context.Context) RowAccessPolicyGrantOutput

type RowAccessPolicyGrantArgs added in v0.1.3

type RowAccessPolicyGrantArgs struct {
	// The name of the database containing the row access policy on which to grant privileges.
	DatabaseName pulumi.StringInput
	// The privilege to grant on the row access policy.
	Privilege pulumi.StringPtrInput
	// Grants privilege to these roles.
	Roles pulumi.StringArrayInput
	// The name of the row access policy on which to grant privileges immediately.
	RowAccessPolicyName pulumi.StringInput
	// The name of the schema containing the row access policy on which to grant privileges.
	SchemaName pulumi.StringInput
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrInput
}

The set of arguments for constructing a RowAccessPolicyGrant resource.

func (RowAccessPolicyGrantArgs) ElementType added in v0.1.3

func (RowAccessPolicyGrantArgs) ElementType() reflect.Type

type RowAccessPolicyGrantArray added in v0.1.3

type RowAccessPolicyGrantArray []RowAccessPolicyGrantInput

func (RowAccessPolicyGrantArray) ElementType added in v0.1.3

func (RowAccessPolicyGrantArray) ElementType() reflect.Type

func (RowAccessPolicyGrantArray) ToRowAccessPolicyGrantArrayOutput added in v0.1.3

func (i RowAccessPolicyGrantArray) ToRowAccessPolicyGrantArrayOutput() RowAccessPolicyGrantArrayOutput

func (RowAccessPolicyGrantArray) ToRowAccessPolicyGrantArrayOutputWithContext added in v0.1.3

func (i RowAccessPolicyGrantArray) ToRowAccessPolicyGrantArrayOutputWithContext(ctx context.Context) RowAccessPolicyGrantArrayOutput

type RowAccessPolicyGrantArrayInput added in v0.1.3

type RowAccessPolicyGrantArrayInput interface {
	pulumi.Input

	ToRowAccessPolicyGrantArrayOutput() RowAccessPolicyGrantArrayOutput
	ToRowAccessPolicyGrantArrayOutputWithContext(context.Context) RowAccessPolicyGrantArrayOutput
}

RowAccessPolicyGrantArrayInput is an input type that accepts RowAccessPolicyGrantArray and RowAccessPolicyGrantArrayOutput values. You can construct a concrete instance of `RowAccessPolicyGrantArrayInput` via:

RowAccessPolicyGrantArray{ RowAccessPolicyGrantArgs{...} }

type RowAccessPolicyGrantArrayOutput added in v0.1.3

type RowAccessPolicyGrantArrayOutput struct{ *pulumi.OutputState }

func (RowAccessPolicyGrantArrayOutput) ElementType added in v0.1.3

func (RowAccessPolicyGrantArrayOutput) Index added in v0.1.3

func (RowAccessPolicyGrantArrayOutput) ToRowAccessPolicyGrantArrayOutput added in v0.1.3

func (o RowAccessPolicyGrantArrayOutput) ToRowAccessPolicyGrantArrayOutput() RowAccessPolicyGrantArrayOutput

func (RowAccessPolicyGrantArrayOutput) ToRowAccessPolicyGrantArrayOutputWithContext added in v0.1.3

func (o RowAccessPolicyGrantArrayOutput) ToRowAccessPolicyGrantArrayOutputWithContext(ctx context.Context) RowAccessPolicyGrantArrayOutput

type RowAccessPolicyGrantInput added in v0.1.3

type RowAccessPolicyGrantInput interface {
	pulumi.Input

	ToRowAccessPolicyGrantOutput() RowAccessPolicyGrantOutput
	ToRowAccessPolicyGrantOutputWithContext(ctx context.Context) RowAccessPolicyGrantOutput
}

type RowAccessPolicyGrantMap added in v0.1.3

type RowAccessPolicyGrantMap map[string]RowAccessPolicyGrantInput

func (RowAccessPolicyGrantMap) ElementType added in v0.1.3

func (RowAccessPolicyGrantMap) ElementType() reflect.Type

func (RowAccessPolicyGrantMap) ToRowAccessPolicyGrantMapOutput added in v0.1.3

func (i RowAccessPolicyGrantMap) ToRowAccessPolicyGrantMapOutput() RowAccessPolicyGrantMapOutput

func (RowAccessPolicyGrantMap) ToRowAccessPolicyGrantMapOutputWithContext added in v0.1.3

func (i RowAccessPolicyGrantMap) ToRowAccessPolicyGrantMapOutputWithContext(ctx context.Context) RowAccessPolicyGrantMapOutput

type RowAccessPolicyGrantMapInput added in v0.1.3

type RowAccessPolicyGrantMapInput interface {
	pulumi.Input

	ToRowAccessPolicyGrantMapOutput() RowAccessPolicyGrantMapOutput
	ToRowAccessPolicyGrantMapOutputWithContext(context.Context) RowAccessPolicyGrantMapOutput
}

RowAccessPolicyGrantMapInput is an input type that accepts RowAccessPolicyGrantMap and RowAccessPolicyGrantMapOutput values. You can construct a concrete instance of `RowAccessPolicyGrantMapInput` via:

RowAccessPolicyGrantMap{ "key": RowAccessPolicyGrantArgs{...} }

type RowAccessPolicyGrantMapOutput added in v0.1.3

type RowAccessPolicyGrantMapOutput struct{ *pulumi.OutputState }

func (RowAccessPolicyGrantMapOutput) ElementType added in v0.1.3

func (RowAccessPolicyGrantMapOutput) MapIndex added in v0.1.3

func (RowAccessPolicyGrantMapOutput) ToRowAccessPolicyGrantMapOutput added in v0.1.3

func (o RowAccessPolicyGrantMapOutput) ToRowAccessPolicyGrantMapOutput() RowAccessPolicyGrantMapOutput

func (RowAccessPolicyGrantMapOutput) ToRowAccessPolicyGrantMapOutputWithContext added in v0.1.3

func (o RowAccessPolicyGrantMapOutput) ToRowAccessPolicyGrantMapOutputWithContext(ctx context.Context) RowAccessPolicyGrantMapOutput

type RowAccessPolicyGrantOutput added in v0.1.3

type RowAccessPolicyGrantOutput struct{ *pulumi.OutputState }

func (RowAccessPolicyGrantOutput) ElementType added in v0.1.3

func (RowAccessPolicyGrantOutput) ElementType() reflect.Type

func (RowAccessPolicyGrantOutput) ToRowAccessPolicyGrantOutput added in v0.1.3

func (o RowAccessPolicyGrantOutput) ToRowAccessPolicyGrantOutput() RowAccessPolicyGrantOutput

func (RowAccessPolicyGrantOutput) ToRowAccessPolicyGrantOutputWithContext added in v0.1.3

func (o RowAccessPolicyGrantOutput) ToRowAccessPolicyGrantOutputWithContext(ctx context.Context) RowAccessPolicyGrantOutput

type RowAccessPolicyGrantState added in v0.1.3

type RowAccessPolicyGrantState struct {
	// The name of the database containing the row access policy on which to grant privileges.
	DatabaseName pulumi.StringPtrInput
	// The privilege to grant on the row access policy.
	Privilege pulumi.StringPtrInput
	// Grants privilege to these roles.
	Roles pulumi.StringArrayInput
	// The name of the row access policy on which to grant privileges immediately.
	RowAccessPolicyName pulumi.StringPtrInput
	// The name of the schema containing the row access policy on which to grant privileges.
	SchemaName pulumi.StringPtrInput
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrInput
}

func (RowAccessPolicyGrantState) ElementType added in v0.1.3

func (RowAccessPolicyGrantState) ElementType() reflect.Type

type RowAccessPolicyInput added in v0.1.3

type RowAccessPolicyInput interface {
	pulumi.Input

	ToRowAccessPolicyOutput() RowAccessPolicyOutput
	ToRowAccessPolicyOutputWithContext(ctx context.Context) RowAccessPolicyOutput
}

type RowAccessPolicyMap added in v0.1.3

type RowAccessPolicyMap map[string]RowAccessPolicyInput

func (RowAccessPolicyMap) ElementType added in v0.1.3

func (RowAccessPolicyMap) ElementType() reflect.Type

func (RowAccessPolicyMap) ToRowAccessPolicyMapOutput added in v0.1.3

func (i RowAccessPolicyMap) ToRowAccessPolicyMapOutput() RowAccessPolicyMapOutput

func (RowAccessPolicyMap) ToRowAccessPolicyMapOutputWithContext added in v0.1.3

func (i RowAccessPolicyMap) ToRowAccessPolicyMapOutputWithContext(ctx context.Context) RowAccessPolicyMapOutput

type RowAccessPolicyMapInput added in v0.1.3

type RowAccessPolicyMapInput interface {
	pulumi.Input

	ToRowAccessPolicyMapOutput() RowAccessPolicyMapOutput
	ToRowAccessPolicyMapOutputWithContext(context.Context) RowAccessPolicyMapOutput
}

RowAccessPolicyMapInput is an input type that accepts RowAccessPolicyMap and RowAccessPolicyMapOutput values. You can construct a concrete instance of `RowAccessPolicyMapInput` via:

RowAccessPolicyMap{ "key": RowAccessPolicyArgs{...} }

type RowAccessPolicyMapOutput added in v0.1.3

type RowAccessPolicyMapOutput struct{ *pulumi.OutputState }

func (RowAccessPolicyMapOutput) ElementType added in v0.1.3

func (RowAccessPolicyMapOutput) ElementType() reflect.Type

func (RowAccessPolicyMapOutput) MapIndex added in v0.1.3

func (RowAccessPolicyMapOutput) ToRowAccessPolicyMapOutput added in v0.1.3

func (o RowAccessPolicyMapOutput) ToRowAccessPolicyMapOutput() RowAccessPolicyMapOutput

func (RowAccessPolicyMapOutput) ToRowAccessPolicyMapOutputWithContext added in v0.1.3

func (o RowAccessPolicyMapOutput) ToRowAccessPolicyMapOutputWithContext(ctx context.Context) RowAccessPolicyMapOutput

type RowAccessPolicyOutput added in v0.1.3

type RowAccessPolicyOutput struct{ *pulumi.OutputState }

func (RowAccessPolicyOutput) ElementType added in v0.1.3

func (RowAccessPolicyOutput) ElementType() reflect.Type

func (RowAccessPolicyOutput) ToRowAccessPolicyOutput added in v0.1.3

func (o RowAccessPolicyOutput) ToRowAccessPolicyOutput() RowAccessPolicyOutput

func (RowAccessPolicyOutput) ToRowAccessPolicyOutputWithContext added in v0.1.3

func (o RowAccessPolicyOutput) ToRowAccessPolicyOutputWithContext(ctx context.Context) RowAccessPolicyOutput

type RowAccessPolicyState added in v0.1.3

type RowAccessPolicyState struct {
	// Specifies a comment for the row access policy.
	Comment pulumi.StringPtrInput
	// The database in which to create the row access policy.
	Database pulumi.StringPtrInput
	// Specifies the identifier for the row access policy; must be unique for the database and schema in which the row access policy is created.
	Name pulumi.StringPtrInput
	// Specifies the SQL expression. The expression can be any boolean-valued SQL expression.
	RowAccessExpression pulumi.StringPtrInput
	// The schema in which to create the row access policy.
	Schema pulumi.StringPtrInput
	// Specifies signature (arguments) for the row access policy (uppercase and sorted to avoid recreation of resource). A signature specifies a set of attributes that must be considered to determine whether the row is accessible. The attribute values come from the database object (e.g. table or view) to be protected by the row access policy.
	Signature pulumi.StringMapInput
}

func (RowAccessPolicyState) ElementType added in v0.1.3

func (RowAccessPolicyState) ElementType() reflect.Type

type SamlIntegration added in v0.4.1

type SamlIntegration struct {
	pulumi.CustomResourceState

	// Date and time when the SAML integration was created.
	CreatedOn pulumi.StringOutput `pulumi:"createdOn"`
	// Specifies whether this security integration is enabled or disabled.
	Enabled pulumi.BoolPtrOutput `pulumi:"enabled"`
	// Specifies the name of the SAML2 integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account.
	Name                   pulumi.StringOutput `pulumi:"name"`
	Saml2DigestMethodsUsed pulumi.StringOutput `pulumi:"saml2DigestMethodsUsed"`
	// The Boolean indicating if the Log In With button will be shown on the login page. TRUE: displays the Log in WIth button on the login page.  FALSE: does not display the Log in With button on the login page.
	Saml2EnableSpInitiated pulumi.BoolPtrOutput `pulumi:"saml2EnableSpInitiated"`
	// The Boolean indicating whether users, during the initial authentication flow, are forced to authenticate again to access Snowflake. When set to TRUE, Snowflake sets the ForceAuthn SAML parameter to TRUE in the outgoing request from Snowflake to the identity provider. TRUE: forces users to authenticate again to access Snowflake, even if a valid session with the identity provider exists. FALSE: does not force users to authenticate again to access Snowflake.
	Saml2ForceAuthn pulumi.BoolPtrOutput `pulumi:"saml2ForceAuthn"`
	// The string containing the IdP EntityID / Issuer.
	Saml2Issuer pulumi.StringOutput `pulumi:"saml2Issuer"`
	// The endpoint to which Snowflake redirects users after clicking the Log Out button in the classic Snowflake web interface. Snowflake terminates the Snowflake session upon redirecting to the specified endpoint.
	Saml2PostLogoutRedirectUrl pulumi.StringPtrOutput `pulumi:"saml2PostLogoutRedirectUrl"`
	// The string describing the IdP. One of the following: OKTA, ADFS, Custom.
	Saml2Provider pulumi.StringOutput `pulumi:"saml2Provider"`
	// The SAML NameID format allows Snowflake to set an expectation of the identifying attribute of the user (i.e. SAML Subject) in the SAML assertion from the IdP to ensure a valid authentication to Snowflake. If a value is not specified, Snowflake sends the urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress value in the authentication request to the IdP. NameID must be one of the following values: urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified, urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress, urn:oasis:names:tc:SAML:1.1:nameid-format:X509SubjectName, urn:oasis:names:tc:SAML:1.1:nameid-format:WindowsDomainQualifiedName, urn:oasis:names:tc:SAML:2.0:nameid-format:kerberos, urn:oasis:names:tc:SAML:2.0:nameid-format:persistent, urn:oasis:names:tc:SAML:2.0:nameid-format:transient .
	Saml2RequestedNameidFormat pulumi.StringPtrOutput `pulumi:"saml2RequestedNameidFormat"`
	// The Boolean indicating whether SAML requests are signed. TRUE: allows SAML requests to be signed. FALSE: does not allow SAML requests to be signed.
	Saml2SignRequest          pulumi.BoolPtrOutput `pulumi:"saml2SignRequest"`
	Saml2SignatureMethodsUsed pulumi.StringOutput  `pulumi:"saml2SignatureMethodsUsed"`
	// The string containing the Snowflake Assertion Consumer Service URL to which the IdP will send its SAML authentication response back to Snowflake. This property will be set in the SAML authentication request generated by Snowflake when initiating a SAML SSO operation with the IdP. If an incorrect value is specified, Snowflake returns an error message indicating the acceptable values to use. Default: https://\n\n.\n\n.snowflakecomputing.com/fed/login
	Saml2SnowflakeAcsUrl pulumi.StringOutput `pulumi:"saml2SnowflakeAcsUrl"`
	// The string containing the EntityID / Issuer for the Snowflake service provider. If an incorrect value is specified, Snowflake returns an error message indicating the acceptable values to use.
	Saml2SnowflakeIssuerUrl pulumi.StringOutput `pulumi:"saml2SnowflakeIssuerUrl"`
	// Metadata created by Snowflake to provide to SAML2 provider.
	Saml2SnowflakeMetadata pulumi.StringOutput `pulumi:"saml2SnowflakeMetadata"`
	// The Base64 encoded self-signed certificate generated by Snowflake for use with Encrypting SAML Assertions and Signed SAML Requests. You must have at least one of these features (encrypted SAML assertions or signed SAML responses) enabled in your Snowflake account to access the certificate value.
	Saml2SnowflakeX509Cert pulumi.StringOutput `pulumi:"saml2SnowflakeX509Cert"`
	// The string containing the label to display after the Log In With button on the login page.
	Saml2SpInitiatedLoginPageLabel pulumi.StringPtrOutput `pulumi:"saml2SpInitiatedLoginPageLabel"`
	// The string containing the IdP SSO URL, where the user should be redirected by Snowflake (the Service Provider) with a SAML AuthnRequest message.
	Saml2SsoUrl pulumi.StringOutput `pulumi:"saml2SsoUrl"`
	// The Base64 encoded IdP signing certificate on a single line without the leading -----BEGIN CERTIFICATE----- and ending -----END CERTIFICATE----- markers.
	Saml2X509Cert pulumi.StringOutput `pulumi:"saml2X509Cert"`
}

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-snowflake/sdk/go/snowflake"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := snowflake.NewSamlIntegration(ctx, "samlIntegration", &snowflake.SamlIntegrationArgs{
			Enabled:       pulumi.Bool(true),
			Saml2Issuer:   pulumi.String("test_issuer"),
			Saml2Provider: pulumi.String("CUSTOM"),
			Saml2SsoUrl:   pulumi.String("https://testsamlissuer.com"),
			Saml2X509Cert: pulumi.String("MIICYzCCAcygAwIBAgIBADANBgkqhkiG9w0BAQUFADAuMQswCQYDVQQGEwJVUzEMMAoGA1UEChMDSUJNMREwDwYDVQQLEwhMb2NhbCBDQTAeFw05OTEyMjIwNTAwMDBaFw0wMDEyMjMwNDU5NTlaMC4xCzAJBgNVBAYTAlVTMQwwCgYDVQQKEwNJQk0xETAPBgNVBAsTCExvY2FsIENBMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQD2bZEo7xGaX2/0GHkrNFZvlxBou9v1Jmt/PDiTMPve8r9FeJAQ0QdvFST/0JPQYD20rH0bimdDLgNdNynmyRoS2S/IInfpmf69iyc2G0TPyRvmHIiOZbdCd+YBHQi1adkj17NDcWj6S14tVurFX73zx0sNoMS79q3tuXKrDsxeuwIDAQABo4GQMIGNMEsGCVUdDwGG+EIBDQQ+EzxHZW5lcmF0ZWQgYnkgdGhlIFNlY3VyZVdheSBTZWN1cml0eSBTZXJ2ZXIgZm9yIE9TLzM5MCAoUkFDRikwDgYDVR0PAQH/BAQDAgAGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFJ3+ocRyCTJw067dLSwr/nalx6YMMA0GCSqGSIb3DQEBBQUAA4GBAMaQzt+zaj1GU77yzlr8iiMBXgdQrwsZZWJo5exnAucJAEYQZmOfyLiMD6oYq+ZnfvM0n8G/Y79q8nhwvuxpYOnRSAXFp6xSkrIOeZtJMY1h00LKp/JX3Ng1svZ2agE126JHsQ0bhzN5TKsYfbwfTwfjdWAGy6Vf1nYi/rO+ryMO"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

```sh

$ pulumi import snowflake:index/samlIntegration:SamlIntegration example name

```

func GetSamlIntegration added in v0.4.1

func GetSamlIntegration(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *SamlIntegrationState, opts ...pulumi.ResourceOption) (*SamlIntegration, error)

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

func NewSamlIntegration added in v0.4.1

func NewSamlIntegration(ctx *pulumi.Context,
	name string, args *SamlIntegrationArgs, opts ...pulumi.ResourceOption) (*SamlIntegration, error)

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

func (*SamlIntegration) ElementType added in v0.4.1

func (*SamlIntegration) ElementType() reflect.Type

func (*SamlIntegration) ToSamlIntegrationOutput added in v0.4.1

func (i *SamlIntegration) ToSamlIntegrationOutput() SamlIntegrationOutput

func (*SamlIntegration) ToSamlIntegrationOutputWithContext added in v0.4.1

func (i *SamlIntegration) ToSamlIntegrationOutputWithContext(ctx context.Context) SamlIntegrationOutput

type SamlIntegrationArgs added in v0.4.1

type SamlIntegrationArgs struct {
	// Specifies whether this security integration is enabled or disabled.
	Enabled pulumi.BoolPtrInput
	// Specifies the name of the SAML2 integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account.
	Name pulumi.StringPtrInput
	// The Boolean indicating if the Log In With button will be shown on the login page. TRUE: displays the Log in WIth button on the login page.  FALSE: does not display the Log in With button on the login page.
	Saml2EnableSpInitiated pulumi.BoolPtrInput
	// The Boolean indicating whether users, during the initial authentication flow, are forced to authenticate again to access Snowflake. When set to TRUE, Snowflake sets the ForceAuthn SAML parameter to TRUE in the outgoing request from Snowflake to the identity provider. TRUE: forces users to authenticate again to access Snowflake, even if a valid session with the identity provider exists. FALSE: does not force users to authenticate again to access Snowflake.
	Saml2ForceAuthn pulumi.BoolPtrInput
	// The string containing the IdP EntityID / Issuer.
	Saml2Issuer pulumi.StringInput
	// The endpoint to which Snowflake redirects users after clicking the Log Out button in the classic Snowflake web interface. Snowflake terminates the Snowflake session upon redirecting to the specified endpoint.
	Saml2PostLogoutRedirectUrl pulumi.StringPtrInput
	// The string describing the IdP. One of the following: OKTA, ADFS, Custom.
	Saml2Provider pulumi.StringInput
	// The SAML NameID format allows Snowflake to set an expectation of the identifying attribute of the user (i.e. SAML Subject) in the SAML assertion from the IdP to ensure a valid authentication to Snowflake. If a value is not specified, Snowflake sends the urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress value in the authentication request to the IdP. NameID must be one of the following values: urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified, urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress, urn:oasis:names:tc:SAML:1.1:nameid-format:X509SubjectName, urn:oasis:names:tc:SAML:1.1:nameid-format:WindowsDomainQualifiedName, urn:oasis:names:tc:SAML:2.0:nameid-format:kerberos, urn:oasis:names:tc:SAML:2.0:nameid-format:persistent, urn:oasis:names:tc:SAML:2.0:nameid-format:transient .
	Saml2RequestedNameidFormat pulumi.StringPtrInput
	// The Boolean indicating whether SAML requests are signed. TRUE: allows SAML requests to be signed. FALSE: does not allow SAML requests to be signed.
	Saml2SignRequest pulumi.BoolPtrInput
	// The string containing the Snowflake Assertion Consumer Service URL to which the IdP will send its SAML authentication response back to Snowflake. This property will be set in the SAML authentication request generated by Snowflake when initiating a SAML SSO operation with the IdP. If an incorrect value is specified, Snowflake returns an error message indicating the acceptable values to use. Default: https://\n\n.\n\n.snowflakecomputing.com/fed/login
	Saml2SnowflakeAcsUrl pulumi.StringPtrInput
	// The string containing the EntityID / Issuer for the Snowflake service provider. If an incorrect value is specified, Snowflake returns an error message indicating the acceptable values to use.
	Saml2SnowflakeIssuerUrl pulumi.StringPtrInput
	// The Base64 encoded self-signed certificate generated by Snowflake for use with Encrypting SAML Assertions and Signed SAML Requests. You must have at least one of these features (encrypted SAML assertions or signed SAML responses) enabled in your Snowflake account to access the certificate value.
	Saml2SnowflakeX509Cert pulumi.StringPtrInput
	// The string containing the label to display after the Log In With button on the login page.
	Saml2SpInitiatedLoginPageLabel pulumi.StringPtrInput
	// The string containing the IdP SSO URL, where the user should be redirected by Snowflake (the Service Provider) with a SAML AuthnRequest message.
	Saml2SsoUrl pulumi.StringInput
	// The Base64 encoded IdP signing certificate on a single line without the leading -----BEGIN CERTIFICATE----- and ending -----END CERTIFICATE----- markers.
	Saml2X509Cert pulumi.StringInput
}

The set of arguments for constructing a SamlIntegration resource.

func (SamlIntegrationArgs) ElementType added in v0.4.1

func (SamlIntegrationArgs) ElementType() reflect.Type

type SamlIntegrationArray added in v0.4.1

type SamlIntegrationArray []SamlIntegrationInput

func (SamlIntegrationArray) ElementType added in v0.4.1

func (SamlIntegrationArray) ElementType() reflect.Type

func (SamlIntegrationArray) ToSamlIntegrationArrayOutput added in v0.4.1

func (i SamlIntegrationArray) ToSamlIntegrationArrayOutput() SamlIntegrationArrayOutput

func (SamlIntegrationArray) ToSamlIntegrationArrayOutputWithContext added in v0.4.1

func (i SamlIntegrationArray) ToSamlIntegrationArrayOutputWithContext(ctx context.Context) SamlIntegrationArrayOutput

type SamlIntegrationArrayInput added in v0.4.1

type SamlIntegrationArrayInput interface {
	pulumi.Input

	ToSamlIntegrationArrayOutput() SamlIntegrationArrayOutput
	ToSamlIntegrationArrayOutputWithContext(context.Context) SamlIntegrationArrayOutput
}

SamlIntegrationArrayInput is an input type that accepts SamlIntegrationArray and SamlIntegrationArrayOutput values. You can construct a concrete instance of `SamlIntegrationArrayInput` via:

SamlIntegrationArray{ SamlIntegrationArgs{...} }

type SamlIntegrationArrayOutput added in v0.4.1

type SamlIntegrationArrayOutput struct{ *pulumi.OutputState }

func (SamlIntegrationArrayOutput) ElementType added in v0.4.1

func (SamlIntegrationArrayOutput) ElementType() reflect.Type

func (SamlIntegrationArrayOutput) Index added in v0.4.1

func (SamlIntegrationArrayOutput) ToSamlIntegrationArrayOutput added in v0.4.1

func (o SamlIntegrationArrayOutput) ToSamlIntegrationArrayOutput() SamlIntegrationArrayOutput

func (SamlIntegrationArrayOutput) ToSamlIntegrationArrayOutputWithContext added in v0.4.1

func (o SamlIntegrationArrayOutput) ToSamlIntegrationArrayOutputWithContext(ctx context.Context) SamlIntegrationArrayOutput

type SamlIntegrationInput added in v0.4.1

type SamlIntegrationInput interface {
	pulumi.Input

	ToSamlIntegrationOutput() SamlIntegrationOutput
	ToSamlIntegrationOutputWithContext(ctx context.Context) SamlIntegrationOutput
}

type SamlIntegrationMap added in v0.4.1

type SamlIntegrationMap map[string]SamlIntegrationInput

func (SamlIntegrationMap) ElementType added in v0.4.1

func (SamlIntegrationMap) ElementType() reflect.Type

func (SamlIntegrationMap) ToSamlIntegrationMapOutput added in v0.4.1

func (i SamlIntegrationMap) ToSamlIntegrationMapOutput() SamlIntegrationMapOutput

func (SamlIntegrationMap) ToSamlIntegrationMapOutputWithContext added in v0.4.1

func (i SamlIntegrationMap) ToSamlIntegrationMapOutputWithContext(ctx context.Context) SamlIntegrationMapOutput

type SamlIntegrationMapInput added in v0.4.1

type SamlIntegrationMapInput interface {
	pulumi.Input

	ToSamlIntegrationMapOutput() SamlIntegrationMapOutput
	ToSamlIntegrationMapOutputWithContext(context.Context) SamlIntegrationMapOutput
}

SamlIntegrationMapInput is an input type that accepts SamlIntegrationMap and SamlIntegrationMapOutput values. You can construct a concrete instance of `SamlIntegrationMapInput` via:

SamlIntegrationMap{ "key": SamlIntegrationArgs{...} }

type SamlIntegrationMapOutput added in v0.4.1

type SamlIntegrationMapOutput struct{ *pulumi.OutputState }

func (SamlIntegrationMapOutput) ElementType added in v0.4.1

func (SamlIntegrationMapOutput) ElementType() reflect.Type

func (SamlIntegrationMapOutput) MapIndex added in v0.4.1

func (SamlIntegrationMapOutput) ToSamlIntegrationMapOutput added in v0.4.1

func (o SamlIntegrationMapOutput) ToSamlIntegrationMapOutput() SamlIntegrationMapOutput

func (SamlIntegrationMapOutput) ToSamlIntegrationMapOutputWithContext added in v0.4.1

func (o SamlIntegrationMapOutput) ToSamlIntegrationMapOutputWithContext(ctx context.Context) SamlIntegrationMapOutput

type SamlIntegrationOutput added in v0.4.1

type SamlIntegrationOutput struct{ *pulumi.OutputState }

func (SamlIntegrationOutput) ElementType added in v0.4.1

func (SamlIntegrationOutput) ElementType() reflect.Type

func (SamlIntegrationOutput) ToSamlIntegrationOutput added in v0.4.1

func (o SamlIntegrationOutput) ToSamlIntegrationOutput() SamlIntegrationOutput

func (SamlIntegrationOutput) ToSamlIntegrationOutputWithContext added in v0.4.1

func (o SamlIntegrationOutput) ToSamlIntegrationOutputWithContext(ctx context.Context) SamlIntegrationOutput

type SamlIntegrationState added in v0.4.1

type SamlIntegrationState struct {
	// Date and time when the SAML integration was created.
	CreatedOn pulumi.StringPtrInput
	// Specifies whether this security integration is enabled or disabled.
	Enabled pulumi.BoolPtrInput
	// Specifies the name of the SAML2 integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account.
	Name                   pulumi.StringPtrInput
	Saml2DigestMethodsUsed pulumi.StringPtrInput
	// The Boolean indicating if the Log In With button will be shown on the login page. TRUE: displays the Log in WIth button on the login page.  FALSE: does not display the Log in With button on the login page.
	Saml2EnableSpInitiated pulumi.BoolPtrInput
	// The Boolean indicating whether users, during the initial authentication flow, are forced to authenticate again to access Snowflake. When set to TRUE, Snowflake sets the ForceAuthn SAML parameter to TRUE in the outgoing request from Snowflake to the identity provider. TRUE: forces users to authenticate again to access Snowflake, even if a valid session with the identity provider exists. FALSE: does not force users to authenticate again to access Snowflake.
	Saml2ForceAuthn pulumi.BoolPtrInput
	// The string containing the IdP EntityID / Issuer.
	Saml2Issuer pulumi.StringPtrInput
	// The endpoint to which Snowflake redirects users after clicking the Log Out button in the classic Snowflake web interface. Snowflake terminates the Snowflake session upon redirecting to the specified endpoint.
	Saml2PostLogoutRedirectUrl pulumi.StringPtrInput
	// The string describing the IdP. One of the following: OKTA, ADFS, Custom.
	Saml2Provider pulumi.StringPtrInput
	// The SAML NameID format allows Snowflake to set an expectation of the identifying attribute of the user (i.e. SAML Subject) in the SAML assertion from the IdP to ensure a valid authentication to Snowflake. If a value is not specified, Snowflake sends the urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress value in the authentication request to the IdP. NameID must be one of the following values: urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified, urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress, urn:oasis:names:tc:SAML:1.1:nameid-format:X509SubjectName, urn:oasis:names:tc:SAML:1.1:nameid-format:WindowsDomainQualifiedName, urn:oasis:names:tc:SAML:2.0:nameid-format:kerberos, urn:oasis:names:tc:SAML:2.0:nameid-format:persistent, urn:oasis:names:tc:SAML:2.0:nameid-format:transient .
	Saml2RequestedNameidFormat pulumi.StringPtrInput
	// The Boolean indicating whether SAML requests are signed. TRUE: allows SAML requests to be signed. FALSE: does not allow SAML requests to be signed.
	Saml2SignRequest          pulumi.BoolPtrInput
	Saml2SignatureMethodsUsed pulumi.StringPtrInput
	// The string containing the Snowflake Assertion Consumer Service URL to which the IdP will send its SAML authentication response back to Snowflake. This property will be set in the SAML authentication request generated by Snowflake when initiating a SAML SSO operation with the IdP. If an incorrect value is specified, Snowflake returns an error message indicating the acceptable values to use. Default: https://\n\n.\n\n.snowflakecomputing.com/fed/login
	Saml2SnowflakeAcsUrl pulumi.StringPtrInput
	// The string containing the EntityID / Issuer for the Snowflake service provider. If an incorrect value is specified, Snowflake returns an error message indicating the acceptable values to use.
	Saml2SnowflakeIssuerUrl pulumi.StringPtrInput
	// Metadata created by Snowflake to provide to SAML2 provider.
	Saml2SnowflakeMetadata pulumi.StringPtrInput
	// The Base64 encoded self-signed certificate generated by Snowflake for use with Encrypting SAML Assertions and Signed SAML Requests. You must have at least one of these features (encrypted SAML assertions or signed SAML responses) enabled in your Snowflake account to access the certificate value.
	Saml2SnowflakeX509Cert pulumi.StringPtrInput
	// The string containing the label to display after the Log In With button on the login page.
	Saml2SpInitiatedLoginPageLabel pulumi.StringPtrInput
	// The string containing the IdP SSO URL, where the user should be redirected by Snowflake (the Service Provider) with a SAML AuthnRequest message.
	Saml2SsoUrl pulumi.StringPtrInput
	// The Base64 encoded IdP signing certificate on a single line without the leading -----BEGIN CERTIFICATE----- and ending -----END CERTIFICATE----- markers.
	Saml2X509Cert pulumi.StringPtrInput
}

func (SamlIntegrationState) ElementType added in v0.4.1

func (SamlIntegrationState) ElementType() reflect.Type

type Schema

type Schema struct {
	pulumi.CustomResourceState

	// Specifies a comment for the schema.
	Comment pulumi.StringPtrOutput `pulumi:"comment"`
	// Specifies the number of days for which Time Travel actions (CLONE and UNDROP) can be performed on the schema, as well as specifying the default Time Travel retention time for all tables created in the schema.
	DataRetentionDays pulumi.IntPtrOutput `pulumi:"dataRetentionDays"`
	// The database in which to create the schema.
	Database pulumi.StringOutput `pulumi:"database"`
	// Specifies a managed schema. Managed access schemas centralize privilege management with the schema owner.
	IsManaged pulumi.BoolPtrOutput `pulumi:"isManaged"`
	// Specifies a schema as transient. Transient schemas do not have a Fail-safe period so they do not incur additional storage costs once they leave Time Travel; however, this means they are also not protected by Fail-safe in the event of a data loss.
	IsTransient pulumi.BoolPtrOutput `pulumi:"isTransient"`
	// Specifies the identifier for the schema; must be unique for the database in which the schema is created.
	Name pulumi.StringOutput `pulumi:"name"`
	// Definitions of a tag to associate with the resource.
	Tags SchemaTagArrayOutput `pulumi:"tags"`
}

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-snowflake/sdk/go/snowflake"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := snowflake.NewSchema(ctx, "schema", &snowflake.SchemaArgs{
			Comment:           pulumi.String("A schema."),
			DataRetentionDays: pulumi.Int(1),
			Database:          pulumi.String("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

type SchemaArgs

type SchemaArgs struct {
	// Specifies a comment for the schema.
	Comment pulumi.StringPtrInput
	// Specifies the number of days for which Time Travel actions (CLONE and UNDROP) can be performed on the schema, as well as specifying the default Time Travel retention time for all tables created in the schema.
	DataRetentionDays pulumi.IntPtrInput
	// The database in which to create the schema.
	Database pulumi.StringInput
	// Specifies a managed schema. Managed access schemas centralize privilege management with the schema owner.
	IsManaged pulumi.BoolPtrInput
	// Specifies a schema as transient. Transient schemas do not have a Fail-safe period so they do not incur additional storage costs once they leave Time Travel; however, this means they are also not protected by Fail-safe in the event of a data loss.
	IsTransient pulumi.BoolPtrInput
	// Specifies the identifier for the schema; must be unique for the database in which the schema is created.
	Name pulumi.StringPtrInput
	// Definitions of a tag to associate with the resource.
	Tags SchemaTagArrayInput
}

The set of arguments for constructing a Schema resource.

func (SchemaArgs) ElementType

func (SchemaArgs) ElementType() reflect.Type

type SchemaArray

type SchemaArray []SchemaInput

func (SchemaArray) ElementType

func (SchemaArray) ElementType() reflect.Type

func (SchemaArray) ToSchemaArrayOutput

func (i SchemaArray) ToSchemaArrayOutput() SchemaArrayOutput

func (SchemaArray) ToSchemaArrayOutputWithContext

func (i SchemaArray) ToSchemaArrayOutputWithContext(ctx context.Context) SchemaArrayOutput

type SchemaArrayInput

type SchemaArrayInput interface {
	pulumi.Input

	ToSchemaArrayOutput() SchemaArrayOutput
	ToSchemaArrayOutputWithContext(context.Context) SchemaArrayOutput
}

SchemaArrayInput is an input type that accepts SchemaArray and SchemaArrayOutput values. You can construct a concrete instance of `SchemaArrayInput` via:

SchemaArray{ SchemaArgs{...} }

type SchemaArrayOutput

type SchemaArrayOutput struct{ *pulumi.OutputState }

func (SchemaArrayOutput) ElementType

func (SchemaArrayOutput) ElementType() reflect.Type

func (SchemaArrayOutput) Index

func (SchemaArrayOutput) ToSchemaArrayOutput

func (o SchemaArrayOutput) ToSchemaArrayOutput() SchemaArrayOutput

func (SchemaArrayOutput) ToSchemaArrayOutputWithContext

func (o SchemaArrayOutput) ToSchemaArrayOutputWithContext(ctx context.Context) SchemaArrayOutput

type SchemaGrant

type SchemaGrant struct {
	pulumi.CustomResourceState

	// The name of the database containing the schema on which to grant privileges.
	DatabaseName pulumi.StringOutput `pulumi:"databaseName"`
	// When this is set to true, 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

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

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

type SchemaState

type SchemaState struct {
	// Specifies a comment for the schema.
	Comment pulumi.StringPtrInput
	// Specifies the number of days for which Time Travel actions (CLONE and UNDROP) can be performed on the schema, as well as specifying the default Time Travel retention time for all tables created in the schema.
	DataRetentionDays pulumi.IntPtrInput
	// The database in which to create the schema.
	Database pulumi.StringPtrInput
	// Specifies a managed schema. Managed access schemas centralize privilege management with the schema owner.
	IsManaged pulumi.BoolPtrInput
	// Specifies a schema as transient. Transient schemas do not have a Fail-safe period so they do not incur additional storage costs once they leave Time Travel; however, this means they are also not protected by Fail-safe in the event of a data loss.
	IsTransient pulumi.BoolPtrInput
	// Specifies the identifier for the schema; must be unique for the database in which the schema is created.
	Name pulumi.StringPtrInput
	// Definitions of a tag to associate with the resource.
	Tags SchemaTagArrayInput
}

func (SchemaState) ElementType

func (SchemaState) ElementType() reflect.Type

type SchemaTag added in v0.3.0

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

type SchemaTagArgs added in v0.3.0

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

func (SchemaTagArgs) ElementType added in v0.3.0

func (SchemaTagArgs) ElementType() reflect.Type

func (SchemaTagArgs) ToSchemaTagOutput added in v0.3.0

func (i SchemaTagArgs) ToSchemaTagOutput() SchemaTagOutput

func (SchemaTagArgs) ToSchemaTagOutputWithContext added in v0.3.0

func (i SchemaTagArgs) ToSchemaTagOutputWithContext(ctx context.Context) SchemaTagOutput

type SchemaTagArray added in v0.3.0

type SchemaTagArray []SchemaTagInput

func (SchemaTagArray) ElementType added in v0.3.0

func (SchemaTagArray) ElementType() reflect.Type

func (SchemaTagArray) ToSchemaTagArrayOutput added in v0.3.0

func (i SchemaTagArray) ToSchemaTagArrayOutput() SchemaTagArrayOutput

func (SchemaTagArray) ToSchemaTagArrayOutputWithContext added in v0.3.0

func (i SchemaTagArray) ToSchemaTagArrayOutputWithContext(ctx context.Context) SchemaTagArrayOutput

type SchemaTagArrayInput added in v0.3.0

type SchemaTagArrayInput interface {
	pulumi.Input

	ToSchemaTagArrayOutput() SchemaTagArrayOutput
	ToSchemaTagArrayOutputWithContext(context.Context) SchemaTagArrayOutput
}

SchemaTagArrayInput is an input type that accepts SchemaTagArray and SchemaTagArrayOutput values. You can construct a concrete instance of `SchemaTagArrayInput` via:

SchemaTagArray{ SchemaTagArgs{...} }

type SchemaTagArrayOutput added in v0.3.0

type SchemaTagArrayOutput struct{ *pulumi.OutputState }

func (SchemaTagArrayOutput) ElementType added in v0.3.0

func (SchemaTagArrayOutput) ElementType() reflect.Type

func (SchemaTagArrayOutput) Index added in v0.3.0

func (SchemaTagArrayOutput) ToSchemaTagArrayOutput added in v0.3.0

func (o SchemaTagArrayOutput) ToSchemaTagArrayOutput() SchemaTagArrayOutput

func (SchemaTagArrayOutput) ToSchemaTagArrayOutputWithContext added in v0.3.0

func (o SchemaTagArrayOutput) ToSchemaTagArrayOutputWithContext(ctx context.Context) SchemaTagArrayOutput

type SchemaTagInput added in v0.3.0

type SchemaTagInput interface {
	pulumi.Input

	ToSchemaTagOutput() SchemaTagOutput
	ToSchemaTagOutputWithContext(context.Context) SchemaTagOutput
}

SchemaTagInput is an input type that accepts SchemaTagArgs and SchemaTagOutput values. You can construct a concrete instance of `SchemaTagInput` via:

SchemaTagArgs{...}

type SchemaTagOutput added in v0.3.0

type SchemaTagOutput struct{ *pulumi.OutputState }

func (SchemaTagOutput) Database added in v0.3.0

func (o SchemaTagOutput) Database() pulumi.StringPtrOutput

Name of the database that the tag was created in.

func (SchemaTagOutput) ElementType added in v0.3.0

func (SchemaTagOutput) ElementType() reflect.Type

func (SchemaTagOutput) Name added in v0.3.0

Tag name, e.g. department.

func (SchemaTagOutput) Schema added in v0.3.0

Name of the schema that the tag was created in.

func (SchemaTagOutput) ToSchemaTagOutput added in v0.3.0

func (o SchemaTagOutput) ToSchemaTagOutput() SchemaTagOutput

func (SchemaTagOutput) ToSchemaTagOutputWithContext added in v0.3.0

func (o SchemaTagOutput) ToSchemaTagOutputWithContext(ctx context.Context) SchemaTagOutput

func (SchemaTagOutput) Value added in v0.3.0

Tag value, e.g. marketing_info.

type ScimIntegration

type ScimIntegration struct {
	pulumi.CustomResourceState

	// Date and time when the SCIM integration was created.
	CreatedOn pulumi.StringOutput `pulumi:"createdOn"`
	// Specifies the name of the SCIM integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account.
	Name pulumi.StringOutput `pulumi:"name"`
	// Specifies an existing network policy active for your account. The network policy restricts the list of user IP addresses when exchanging an authorization code for an access or refresh token and when using a refresh token to obtain a new access token. If this parameter is not set, the network policy for the account (if any) is used instead.
	NetworkPolicy pulumi.StringPtrOutput `pulumi:"networkPolicy"`
	// Specify the SCIM role in Snowflake that owns any users and roles that are imported from the identity provider into Snowflake using SCIM.
	ProvisionerRole pulumi.StringOutput `pulumi:"provisionerRole"`
	// Specifies the client type for the scim integration
	ScimClient pulumi.StringOutput `pulumi:"scimClient"`
}

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-snowflake/sdk/go/snowflake"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := snowflake.NewScimIntegration(ctx, "aad", &snowflake.ScimIntegrationArgs{
			NetworkPolicy:   pulumi.String("AAD_NETWORK_POLICY"),
			ProvisionerRole: pulumi.String("AAD_PROVISIONER"),
			ScimClient:      pulumi.String("AZURE"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

```sh

$ pulumi import snowflake:index/scimIntegration:ScimIntegration example name

```

func GetScimIntegration

func GetScimIntegration(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ScimIntegrationState, opts ...pulumi.ResourceOption) (*ScimIntegration, error)

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

func NewScimIntegration

func NewScimIntegration(ctx *pulumi.Context,
	name string, args *ScimIntegrationArgs, opts ...pulumi.ResourceOption) (*ScimIntegration, error)

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

func (*ScimIntegration) ElementType

func (*ScimIntegration) ElementType() reflect.Type

func (*ScimIntegration) ToScimIntegrationOutput

func (i *ScimIntegration) ToScimIntegrationOutput() ScimIntegrationOutput

func (*ScimIntegration) ToScimIntegrationOutputWithContext

func (i *ScimIntegration) ToScimIntegrationOutputWithContext(ctx context.Context) ScimIntegrationOutput

type ScimIntegrationArgs

type ScimIntegrationArgs struct {
	// Specifies the name of the SCIM integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account.
	Name pulumi.StringPtrInput
	// Specifies an existing network policy active for your account. The network policy restricts the list of user IP addresses when exchanging an authorization code for an access or refresh token and when using a refresh token to obtain a new access token. If this parameter is not set, the network policy for the account (if any) is used instead.
	NetworkPolicy pulumi.StringPtrInput
	// Specify the SCIM role in Snowflake that owns any users and roles that are imported from the identity provider into Snowflake using SCIM.
	ProvisionerRole pulumi.StringInput
	// Specifies the client type for the scim integration
	ScimClient pulumi.StringInput
}

The set of arguments for constructing a ScimIntegration resource.

func (ScimIntegrationArgs) ElementType

func (ScimIntegrationArgs) ElementType() reflect.Type

type ScimIntegrationArray

type ScimIntegrationArray []ScimIntegrationInput

func (ScimIntegrationArray) ElementType

func (ScimIntegrationArray) ElementType() reflect.Type

func (ScimIntegrationArray) ToScimIntegrationArrayOutput

func (i ScimIntegrationArray) ToScimIntegrationArrayOutput() ScimIntegrationArrayOutput

func (ScimIntegrationArray) ToScimIntegrationArrayOutputWithContext

func (i ScimIntegrationArray) ToScimIntegrationArrayOutputWithContext(ctx context.Context) ScimIntegrationArrayOutput

type ScimIntegrationArrayInput

type ScimIntegrationArrayInput interface {
	pulumi.Input

	ToScimIntegrationArrayOutput() ScimIntegrationArrayOutput
	ToScimIntegrationArrayOutputWithContext(context.Context) ScimIntegrationArrayOutput
}

ScimIntegrationArrayInput is an input type that accepts ScimIntegrationArray and ScimIntegrationArrayOutput values. You can construct a concrete instance of `ScimIntegrationArrayInput` via:

ScimIntegrationArray{ ScimIntegrationArgs{...} }

type ScimIntegrationArrayOutput

type ScimIntegrationArrayOutput struct{ *pulumi.OutputState }

func (ScimIntegrationArrayOutput) ElementType

func (ScimIntegrationArrayOutput) ElementType() reflect.Type

func (ScimIntegrationArrayOutput) Index

func (ScimIntegrationArrayOutput) ToScimIntegrationArrayOutput

func (o ScimIntegrationArrayOutput) ToScimIntegrationArrayOutput() ScimIntegrationArrayOutput

func (ScimIntegrationArrayOutput) ToScimIntegrationArrayOutputWithContext

func (o ScimIntegrationArrayOutput) ToScimIntegrationArrayOutputWithContext(ctx context.Context) ScimIntegrationArrayOutput

type ScimIntegrationInput

type ScimIntegrationInput interface {
	pulumi.Input

	ToScimIntegrationOutput() ScimIntegrationOutput
	ToScimIntegrationOutputWithContext(ctx context.Context) ScimIntegrationOutput
}

type ScimIntegrationMap

type ScimIntegrationMap map[string]ScimIntegrationInput

func (ScimIntegrationMap) ElementType

func (ScimIntegrationMap) ElementType() reflect.Type

func (ScimIntegrationMap) ToScimIntegrationMapOutput

func (i ScimIntegrationMap) ToScimIntegrationMapOutput() ScimIntegrationMapOutput

func (ScimIntegrationMap) ToScimIntegrationMapOutputWithContext

func (i ScimIntegrationMap) ToScimIntegrationMapOutputWithContext(ctx context.Context) ScimIntegrationMapOutput

type ScimIntegrationMapInput

type ScimIntegrationMapInput interface {
	pulumi.Input

	ToScimIntegrationMapOutput() ScimIntegrationMapOutput
	ToScimIntegrationMapOutputWithContext(context.Context) ScimIntegrationMapOutput
}

ScimIntegrationMapInput is an input type that accepts ScimIntegrationMap and ScimIntegrationMapOutput values. You can construct a concrete instance of `ScimIntegrationMapInput` via:

ScimIntegrationMap{ "key": ScimIntegrationArgs{...} }

type ScimIntegrationMapOutput

type ScimIntegrationMapOutput struct{ *pulumi.OutputState }

func (ScimIntegrationMapOutput) ElementType

func (ScimIntegrationMapOutput) ElementType() reflect.Type

func (ScimIntegrationMapOutput) MapIndex

func (ScimIntegrationMapOutput) ToScimIntegrationMapOutput

func (o ScimIntegrationMapOutput) ToScimIntegrationMapOutput() ScimIntegrationMapOutput

func (ScimIntegrationMapOutput) ToScimIntegrationMapOutputWithContext

func (o ScimIntegrationMapOutput) ToScimIntegrationMapOutputWithContext(ctx context.Context) ScimIntegrationMapOutput

type ScimIntegrationOutput

type ScimIntegrationOutput struct{ *pulumi.OutputState }

func (ScimIntegrationOutput) 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

type ScimIntegrationState

type ScimIntegrationState struct {
	// Date and time when the SCIM integration was created.
	CreatedOn pulumi.StringPtrInput
	// Specifies the name of the SCIM integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account.
	Name pulumi.StringPtrInput
	// Specifies an existing network policy active for your account. The network policy restricts the list of user IP addresses when exchanging an authorization code for an access or refresh token and when using a refresh token to obtain a new access token. If this parameter is not set, the network policy for the account (if any) is used instead.
	NetworkPolicy pulumi.StringPtrInput
	// Specify the SCIM role in Snowflake that owns any users and roles that are imported from the identity provider into Snowflake using SCIM.
	ProvisionerRole pulumi.StringPtrInput
	// Specifies the client type for the scim integration
	ScimClient pulumi.StringPtrInput
}

func (ScimIntegrationState) ElementType

func (ScimIntegrationState) ElementType() reflect.Type

type Sequence

type Sequence struct {
	pulumi.CustomResourceState

	// Specifies a comment for the sequence.
	Comment pulumi.StringPtrOutput `pulumi:"comment"`
	// The database in which to create the sequence. Don't use the | character.
	Database pulumi.StringOutput `pulumi:"database"`
	// The fully qualified name of the sequence.
	FullyQualifiedName pulumi.StringOutput `pulumi:"fullyQualifiedName"`
	// The amount the sequence will increase by each time it is used
	Increment pulumi.IntPtrOutput `pulumi:"increment"`
	// Specifies the name for the sequence.
	Name pulumi.StringOutput `pulumi:"name"`
	// The next value the sequence will provide.
	NextValue pulumi.IntOutput `pulumi:"nextValue"`
	// The schema in which to create the sequence. Don't use the | character.
	Schema pulumi.StringOutput `pulumi:"schema"`
}

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-snowflake/sdk/go/snowflake"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := snowflake.NewDatabase(ctx, "database", nil)
		if err != nil {
			return err
		}
		testSchema, err := snowflake.NewSchema(ctx, "testSchema", &snowflake.SchemaArgs{
			Database: pulumi.Any(snowflake_database.Test_database.Name),
		})
		if err != nil {
			return err
		}
		_, err = snowflake.NewSequence(ctx, "testSequence", &snowflake.SequenceArgs{
			Database: pulumi.Any(snowflake_database.Test_database.Name),
			Schema:   testSchema.Name,
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

format is database name | schema name | sequence name

```sh

$ pulumi import snowflake:index/sequence:Sequence example 'dbName|schemaName|sequenceName'

```

func GetSequence

func GetSequence(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *SequenceState, opts ...pulumi.ResourceOption) (*Sequence, error)

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

func NewSequence

func NewSequence(ctx *pulumi.Context,
	name string, args *SequenceArgs, opts ...pulumi.ResourceOption) (*Sequence, error)

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

func (*Sequence) ElementType

func (*Sequence) ElementType() reflect.Type

func (*Sequence) ToSequenceOutput

func (i *Sequence) ToSequenceOutput() SequenceOutput

func (*Sequence) ToSequenceOutputWithContext

func (i *Sequence) ToSequenceOutputWithContext(ctx context.Context) SequenceOutput

type SequenceArgs

type SequenceArgs struct {
	// Specifies a comment for the sequence.
	Comment pulumi.StringPtrInput
	// The database in which to create the sequence. Don't use the | character.
	Database pulumi.StringInput
	// The amount the sequence will increase by each time it is used
	Increment pulumi.IntPtrInput
	// Specifies the name for the sequence.
	Name pulumi.StringPtrInput
	// The schema in which to create the sequence. Don't use the | character.
	Schema pulumi.StringInput
}

The set of arguments for constructing a Sequence resource.

func (SequenceArgs) ElementType

func (SequenceArgs) ElementType() reflect.Type

type SequenceArray

type SequenceArray []SequenceInput

func (SequenceArray) ElementType

func (SequenceArray) ElementType() reflect.Type

func (SequenceArray) ToSequenceArrayOutput

func (i SequenceArray) ToSequenceArrayOutput() SequenceArrayOutput

func (SequenceArray) ToSequenceArrayOutputWithContext

func (i SequenceArray) ToSequenceArrayOutputWithContext(ctx context.Context) SequenceArrayOutput

type SequenceArrayInput

type SequenceArrayInput interface {
	pulumi.Input

	ToSequenceArrayOutput() SequenceArrayOutput
	ToSequenceArrayOutputWithContext(context.Context) SequenceArrayOutput
}

SequenceArrayInput is an input type that accepts SequenceArray and SequenceArrayOutput values. You can construct a concrete instance of `SequenceArrayInput` via:

SequenceArray{ SequenceArgs{...} }

type SequenceArrayOutput

type SequenceArrayOutput struct{ *pulumi.OutputState }

func (SequenceArrayOutput) ElementType

func (SequenceArrayOutput) ElementType() reflect.Type

func (SequenceArrayOutput) Index

func (SequenceArrayOutput) ToSequenceArrayOutput

func (o SequenceArrayOutput) ToSequenceArrayOutput() SequenceArrayOutput

func (SequenceArrayOutput) ToSequenceArrayOutputWithContext

func (o SequenceArrayOutput) ToSequenceArrayOutputWithContext(ctx context.Context) SequenceArrayOutput

type SequenceGrant

type SequenceGrant struct {
	pulumi.CustomResourceState

	// The name of the database containing the current or future sequences on which to grant privileges.
	DatabaseName pulumi.StringOutput `pulumi:"databaseName"`
	// When this is set to true 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

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

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

type SequenceState

type SequenceState struct {
	// Specifies a comment for the sequence.
	Comment pulumi.StringPtrInput
	// The database in which to create the sequence. Don't use the | character.
	Database pulumi.StringPtrInput
	// The fully qualified name of the sequence.
	FullyQualifiedName pulumi.StringPtrInput
	// The amount the sequence will increase by each time it is used
	Increment pulumi.IntPtrInput
	// Specifies the name for the sequence.
	Name pulumi.StringPtrInput
	// The next value the sequence will provide.
	NextValue pulumi.IntPtrInput
	// The schema in which to create the sequence. Don't use the | character.
	Schema pulumi.StringPtrInput
}

func (SequenceState) ElementType

func (SequenceState) ElementType() reflect.Type

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

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-snowflake/sdk/go/snowflake"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

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

```

## Import

```sh

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

```

func GetShare

func GetShare(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ShareState, opts ...pulumi.ResourceOption) (*Share, error)

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

func NewShare

func NewShare(ctx *pulumi.Context,
	name string, args *ShareArgs, opts ...pulumi.ResourceOption) (*Share, error)

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

func (*Share) ElementType

func (*Share) ElementType() reflect.Type

func (*Share) ToShareOutput

func (i *Share) ToShareOutput() ShareOutput

func (*Share) ToShareOutputWithContext

func (i *Share) ToShareOutputWithContext(ctx context.Context) ShareOutput

type ShareArgs

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

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 directory settings for the stage.
	Directory pulumi.StringPtrOutput `pulumi:"directory"`
	// Specifies the encryption settings for the stage.
	Encryption pulumi.StringPtrOutput `pulumi:"encryption"`
	// Specifies the file format for the stage.
	FileFormat pulumi.StringPtrOutput `pulumi:"fileFormat"`
	// Specifies the identifier for the stage; must be unique for the database and schema in which the stage is created.
	Name pulumi.StringOutput `pulumi:"name"`
	// The schema in which to create the stage.
	Schema           pulumi.StringOutput `pulumi:"schema"`
	SnowflakeIamUser pulumi.StringOutput `pulumi:"snowflakeIamUser"`
	// Specifies the name of the storage integration used to delegate authentication responsibility for external cloud storage to a Snowflake identity and access management (IAM) entity.
	StorageIntegration pulumi.StringPtrOutput `pulumi:"storageIntegration"`
	// Definitions of a tag to associate with the resource.
	Tags StageTagArrayOutput `pulumi:"tags"`
	// Specifies the URL for the stage.
	Url pulumi.StringPtrOutput `pulumi:"url"`
}

## Example Usage

```go package main

import (

"fmt"

"github.com/pulumi/pulumi-snowflake/sdk/go/snowflake"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleStage, err := snowflake.NewStage(ctx, "exampleStage", &snowflake.StageArgs{
			Url:         pulumi.String("s3://com.example.bucket/prefix"),
			Database:    pulumi.String("EXAMPLE_DB"),
			Schema:      pulumi.String("EXAMPLE_SCHEMA"),
			Credentials: pulumi.String(fmt.Sprintf("%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

type StageArgs

type StageArgs struct {
	AwsExternalId pulumi.StringPtrInput
	// Specifies a comment for the stage.
	Comment pulumi.StringPtrInput
	// Specifies the copy options for the stage.
	CopyOptions pulumi.StringPtrInput
	// Specifies the credentials for the stage.
	Credentials pulumi.StringPtrInput
	// The database in which to create the stage.
	Database pulumi.StringInput
	// Specifies the directory settings for the stage.
	Directory pulumi.StringPtrInput
	// Specifies the encryption settings for the stage.
	Encryption pulumi.StringPtrInput
	// Specifies the file format for the stage.
	FileFormat pulumi.StringPtrInput
	// Specifies the identifier for the stage; must be unique for the database and schema in which the stage is created.
	Name pulumi.StringPtrInput
	// The schema in which to create the stage.
	Schema           pulumi.StringInput
	SnowflakeIamUser pulumi.StringPtrInput
	// Specifies the name of the storage integration used to delegate authentication responsibility for external cloud storage to a Snowflake identity and access management (IAM) entity.
	StorageIntegration pulumi.StringPtrInput
	// Definitions of a tag to associate with the resource.
	Tags StageTagArrayInput
	// Specifies the URL for the stage.
	Url pulumi.StringPtrInput
}

The set of arguments for constructing a Stage resource.

func (StageArgs) ElementType

func (StageArgs) ElementType() reflect.Type

type StageArray

type StageArray []StageInput

func (StageArray) ElementType

func (StageArray) ElementType() reflect.Type

func (StageArray) ToStageArrayOutput

func (i StageArray) ToStageArrayOutput() StageArrayOutput

func (StageArray) ToStageArrayOutputWithContext

func (i StageArray) ToStageArrayOutputWithContext(ctx context.Context) StageArrayOutput

type StageArrayInput

type StageArrayInput interface {
	pulumi.Input

	ToStageArrayOutput() StageArrayOutput
	ToStageArrayOutputWithContext(context.Context) StageArrayOutput
}

StageArrayInput is an input type that accepts StageArray and StageArrayOutput values. You can construct a concrete instance of `StageArrayInput` via:

StageArray{ StageArgs{...} }

type StageArrayOutput

type StageArrayOutput struct{ *pulumi.OutputState }

func (StageArrayOutput) ElementType

func (StageArrayOutput) ElementType() reflect.Type

func (StageArrayOutput) Index

func (StageArrayOutput) ToStageArrayOutput

func (o StageArrayOutput) ToStageArrayOutput() StageArrayOutput

func (StageArrayOutput) ToStageArrayOutputWithContext

func (o StageArrayOutput) ToStageArrayOutputWithContext(ctx context.Context) StageArrayOutput

type StageGrant

type StageGrant struct {
	pulumi.CustomResourceState

	// The name of the database containing the current stage on which to grant privileges.
	DatabaseName pulumi.StringOutput `pulumi:"databaseName"`
	// When this is set to true 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

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

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

type StageState

type StageState struct {
	AwsExternalId pulumi.StringPtrInput
	// Specifies a comment for the stage.
	Comment pulumi.StringPtrInput
	// Specifies the copy options for the stage.
	CopyOptions pulumi.StringPtrInput
	// Specifies the credentials for the stage.
	Credentials pulumi.StringPtrInput
	// The database in which to create the stage.
	Database pulumi.StringPtrInput
	// Specifies the directory settings for the stage.
	Directory pulumi.StringPtrInput
	// Specifies the encryption settings for the stage.
	Encryption pulumi.StringPtrInput
	// Specifies the file format for the stage.
	FileFormat pulumi.StringPtrInput
	// Specifies the identifier for the stage; must be unique for the database and schema in which the stage is created.
	Name pulumi.StringPtrInput
	// The schema in which to create the stage.
	Schema           pulumi.StringPtrInput
	SnowflakeIamUser pulumi.StringPtrInput
	// Specifies the name of the storage integration used to delegate authentication responsibility for external cloud storage to a Snowflake identity and access management (IAM) entity.
	StorageIntegration pulumi.StringPtrInput
	// Definitions of a tag to associate with the resource.
	Tags StageTagArrayInput
	// Specifies the URL for the stage.
	Url pulumi.StringPtrInput
}

func (StageState) ElementType

func (StageState) ElementType() reflect.Type

type StageTag added in v0.3.0

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

type StageTagArgs added in v0.3.0

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

func (StageTagArgs) ElementType added in v0.3.0

func (StageTagArgs) ElementType() reflect.Type

func (StageTagArgs) ToStageTagOutput added in v0.3.0

func (i StageTagArgs) ToStageTagOutput() StageTagOutput

func (StageTagArgs) ToStageTagOutputWithContext added in v0.3.0

func (i StageTagArgs) ToStageTagOutputWithContext(ctx context.Context) StageTagOutput

type StageTagArray added in v0.3.0

type StageTagArray []StageTagInput

func (StageTagArray) ElementType added in v0.3.0

func (StageTagArray) ElementType() reflect.Type

func (StageTagArray) ToStageTagArrayOutput added in v0.3.0

func (i StageTagArray) ToStageTagArrayOutput() StageTagArrayOutput

func (StageTagArray) ToStageTagArrayOutputWithContext added in v0.3.0

func (i StageTagArray) ToStageTagArrayOutputWithContext(ctx context.Context) StageTagArrayOutput

type StageTagArrayInput added in v0.3.0

type StageTagArrayInput interface {
	pulumi.Input

	ToStageTagArrayOutput() StageTagArrayOutput
	ToStageTagArrayOutputWithContext(context.Context) StageTagArrayOutput
}

StageTagArrayInput is an input type that accepts StageTagArray and StageTagArrayOutput values. You can construct a concrete instance of `StageTagArrayInput` via:

StageTagArray{ StageTagArgs{...} }

type StageTagArrayOutput added in v0.3.0

type StageTagArrayOutput struct{ *pulumi.OutputState }

func (StageTagArrayOutput) ElementType added in v0.3.0

func (StageTagArrayOutput) ElementType() reflect.Type

func (StageTagArrayOutput) Index added in v0.3.0

func (StageTagArrayOutput) ToStageTagArrayOutput added in v0.3.0

func (o StageTagArrayOutput) ToStageTagArrayOutput() StageTagArrayOutput

func (StageTagArrayOutput) ToStageTagArrayOutputWithContext added in v0.3.0

func (o StageTagArrayOutput) ToStageTagArrayOutputWithContext(ctx context.Context) StageTagArrayOutput

type StageTagInput added in v0.3.0

type StageTagInput interface {
	pulumi.Input

	ToStageTagOutput() StageTagOutput
	ToStageTagOutputWithContext(context.Context) StageTagOutput
}

StageTagInput is an input type that accepts StageTagArgs and StageTagOutput values. You can construct a concrete instance of `StageTagInput` via:

StageTagArgs{...}

type StageTagOutput added in v0.3.0

type StageTagOutput struct{ *pulumi.OutputState }

func (StageTagOutput) Database added in v0.3.0

func (o StageTagOutput) Database() pulumi.StringPtrOutput

Name of the database that the tag was created in.

func (StageTagOutput) ElementType added in v0.3.0

func (StageTagOutput) ElementType() reflect.Type

func (StageTagOutput) Name added in v0.3.0

Tag name, e.g. department.

func (StageTagOutput) Schema added in v0.3.0

Name of the schema that the tag was created in.

func (StageTagOutput) ToStageTagOutput added in v0.3.0

func (o StageTagOutput) ToStageTagOutput() StageTagOutput

func (StageTagOutput) ToStageTagOutputWithContext added in v0.3.0

func (o StageTagOutput) ToStageTagOutputWithContext(ctx context.Context) StageTagOutput

func (StageTagOutput) Value added in v0.3.0

Tag value, e.g. marketing_info.

type StorageIntegration

type StorageIntegration struct {
	pulumi.CustomResourceState

	// The consent URL that is used to create an Azure Snowflake service principle inside your tenant.
	AzureConsentUrl pulumi.StringOutput `pulumi:"azureConsentUrl"`
	// This is the name of the Snowflake client application created for your account.
	AzureMultiTenantAppName pulumi.StringOutput    `pulumi:"azureMultiTenantAppName"`
	AzureTenantId           pulumi.StringPtrOutput `pulumi:"azureTenantId"`
	Comment                 pulumi.StringPtrOutput `pulumi:"comment"`
	// Date and time when the storage integration was created.
	CreatedOn pulumi.StringOutput  `pulumi:"createdOn"`
	Enabled   pulumi.BoolPtrOutput `pulumi:"enabled"`
	Name      pulumi.StringOutput  `pulumi:"name"`
	// Explicitly limits external stages that use the integration to reference one or more storage locations.
	StorageAllowedLocations pulumi.StringArrayOutput `pulumi:"storageAllowedLocations"`
	// The external ID that Snowflake will use when assuming the AWS role.
	StorageAwsExternalId pulumi.StringOutput `pulumi:"storageAwsExternalId"`
	// The Snowflake user that will attempt to assume the AWS role.
	StorageAwsIamUserArn pulumi.StringOutput `pulumi:"storageAwsIamUserArn"`
	// "bucket-owner-full-control" Enables support for AWS access control lists (ACLs) to grant the bucket owner full control.
	StorageAwsObjectAcl pulumi.StringPtrOutput `pulumi:"storageAwsObjectAcl"`
	StorageAwsRoleArn   pulumi.StringPtrOutput `pulumi:"storageAwsRoleArn"`
	// Explicitly prohibits external stages that use the integration from referencing one or more storage locations.
	StorageBlockedLocations pulumi.StringArrayOutput `pulumi:"storageBlockedLocations"`
	// This is the name of the Snowflake Google Service Account created for your account.
	StorageGcpServiceAccount pulumi.StringOutput    `pulumi:"storageGcpServiceAccount"`
	StorageProvider          pulumi.StringOutput    `pulumi:"storageProvider"`
	Type                     pulumi.StringPtrOutput `pulumi:"type"`
}

## Import

```sh

$ pulumi import snowflake:index/storageIntegration:StorageIntegration example name

```

func GetStorageIntegration

func GetStorageIntegration(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *StorageIntegrationState, opts ...pulumi.ResourceOption) (*StorageIntegration, error)

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

func NewStorageIntegration

func NewStorageIntegration(ctx *pulumi.Context,
	name string, args *StorageIntegrationArgs, opts ...pulumi.ResourceOption) (*StorageIntegration, error)

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

func (*StorageIntegration) ElementType

func (*StorageIntegration) ElementType() reflect.Type

func (*StorageIntegration) ToStorageIntegrationOutput

func (i *StorageIntegration) ToStorageIntegrationOutput() StorageIntegrationOutput

func (*StorageIntegration) ToStorageIntegrationOutputWithContext

func (i *StorageIntegration) ToStorageIntegrationOutputWithContext(ctx context.Context) StorageIntegrationOutput

type StorageIntegrationArgs

type StorageIntegrationArgs struct {
	AzureTenantId pulumi.StringPtrInput
	Comment       pulumi.StringPtrInput
	Enabled       pulumi.BoolPtrInput
	Name          pulumi.StringPtrInput
	// Explicitly limits external stages that use the integration to reference one or more storage locations.
	StorageAllowedLocations pulumi.StringArrayInput
	// "bucket-owner-full-control" Enables support for AWS access control lists (ACLs) to grant the bucket owner full control.
	StorageAwsObjectAcl pulumi.StringPtrInput
	StorageAwsRoleArn   pulumi.StringPtrInput
	// Explicitly prohibits external stages that use the integration from referencing one or more storage locations.
	StorageBlockedLocations pulumi.StringArrayInput
	StorageProvider         pulumi.StringInput
	Type                    pulumi.StringPtrInput
}

The set of arguments for constructing a StorageIntegration resource.

func (StorageIntegrationArgs) ElementType

func (StorageIntegrationArgs) ElementType() reflect.Type

type StorageIntegrationArray

type StorageIntegrationArray []StorageIntegrationInput

func (StorageIntegrationArray) ElementType

func (StorageIntegrationArray) ElementType() reflect.Type

func (StorageIntegrationArray) ToStorageIntegrationArrayOutput

func (i StorageIntegrationArray) ToStorageIntegrationArrayOutput() StorageIntegrationArrayOutput

func (StorageIntegrationArray) ToStorageIntegrationArrayOutputWithContext

func (i StorageIntegrationArray) ToStorageIntegrationArrayOutputWithContext(ctx context.Context) StorageIntegrationArrayOutput

type StorageIntegrationArrayInput

type StorageIntegrationArrayInput interface {
	pulumi.Input

	ToStorageIntegrationArrayOutput() StorageIntegrationArrayOutput
	ToStorageIntegrationArrayOutputWithContext(context.Context) StorageIntegrationArrayOutput
}

StorageIntegrationArrayInput is an input type that accepts StorageIntegrationArray and StorageIntegrationArrayOutput values. You can construct a concrete instance of `StorageIntegrationArrayInput` via:

StorageIntegrationArray{ StorageIntegrationArgs{...} }

type StorageIntegrationArrayOutput

type StorageIntegrationArrayOutput struct{ *pulumi.OutputState }

func (StorageIntegrationArrayOutput) ElementType

func (StorageIntegrationArrayOutput) Index

func (StorageIntegrationArrayOutput) ToStorageIntegrationArrayOutput

func (o StorageIntegrationArrayOutput) ToStorageIntegrationArrayOutput() StorageIntegrationArrayOutput

func (StorageIntegrationArrayOutput) ToStorageIntegrationArrayOutputWithContext

func (o StorageIntegrationArrayOutput) ToStorageIntegrationArrayOutputWithContext(ctx context.Context) StorageIntegrationArrayOutput

type StorageIntegrationInput

type StorageIntegrationInput interface {
	pulumi.Input

	ToStorageIntegrationOutput() StorageIntegrationOutput
	ToStorageIntegrationOutputWithContext(ctx context.Context) StorageIntegrationOutput
}

type StorageIntegrationMap

type StorageIntegrationMap map[string]StorageIntegrationInput

func (StorageIntegrationMap) ElementType

func (StorageIntegrationMap) ElementType() reflect.Type

func (StorageIntegrationMap) ToStorageIntegrationMapOutput

func (i StorageIntegrationMap) ToStorageIntegrationMapOutput() StorageIntegrationMapOutput

func (StorageIntegrationMap) ToStorageIntegrationMapOutputWithContext

func (i StorageIntegrationMap) ToStorageIntegrationMapOutputWithContext(ctx context.Context) StorageIntegrationMapOutput

type StorageIntegrationMapInput

type StorageIntegrationMapInput interface {
	pulumi.Input

	ToStorageIntegrationMapOutput() StorageIntegrationMapOutput
	ToStorageIntegrationMapOutputWithContext(context.Context) StorageIntegrationMapOutput
}

StorageIntegrationMapInput is an input type that accepts StorageIntegrationMap and StorageIntegrationMapOutput values. You can construct a concrete instance of `StorageIntegrationMapInput` via:

StorageIntegrationMap{ "key": StorageIntegrationArgs{...} }

type StorageIntegrationMapOutput

type StorageIntegrationMapOutput struct{ *pulumi.OutputState }

func (StorageIntegrationMapOutput) ElementType

func (StorageIntegrationMapOutput) MapIndex

func (StorageIntegrationMapOutput) ToStorageIntegrationMapOutput

func (o StorageIntegrationMapOutput) ToStorageIntegrationMapOutput() StorageIntegrationMapOutput

func (StorageIntegrationMapOutput) ToStorageIntegrationMapOutputWithContext

func (o StorageIntegrationMapOutput) ToStorageIntegrationMapOutputWithContext(ctx context.Context) StorageIntegrationMapOutput

type StorageIntegrationOutput

type StorageIntegrationOutput struct{ *pulumi.OutputState }

func (StorageIntegrationOutput) 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

type StorageIntegrationState

type StorageIntegrationState struct {
	// The consent URL that is used to create an Azure Snowflake service principle inside your tenant.
	AzureConsentUrl pulumi.StringPtrInput
	// This is the name of the Snowflake client application created for your account.
	AzureMultiTenantAppName pulumi.StringPtrInput
	AzureTenantId           pulumi.StringPtrInput
	Comment                 pulumi.StringPtrInput
	// Date and time when the storage integration was created.
	CreatedOn pulumi.StringPtrInput
	Enabled   pulumi.BoolPtrInput
	Name      pulumi.StringPtrInput
	// Explicitly limits external stages that use the integration to reference one or more storage locations.
	StorageAllowedLocations pulumi.StringArrayInput
	// The external ID that Snowflake will use when assuming the AWS role.
	StorageAwsExternalId pulumi.StringPtrInput
	// The Snowflake user that will attempt to assume the AWS role.
	StorageAwsIamUserArn pulumi.StringPtrInput
	// "bucket-owner-full-control" Enables support for AWS access control lists (ACLs) to grant the bucket owner full control.
	StorageAwsObjectAcl pulumi.StringPtrInput
	StorageAwsRoleArn   pulumi.StringPtrInput
	// Explicitly prohibits external stages that use the integration from referencing one or more storage locations.
	StorageBlockedLocations pulumi.StringArrayInput
	// This is the name of the Snowflake Google Service Account created for your account.
	StorageGcpServiceAccount pulumi.StringPtrInput
	StorageProvider          pulumi.StringPtrInput
	Type                     pulumi.StringPtrInput
}

func (StorageIntegrationState) ElementType

func (StorageIntegrationState) ElementType() reflect.Type

type Stream

type Stream struct {
	pulumi.CustomResourceState

	// Type of the stream that will be created.
	AppendOnly pulumi.BoolPtrOutput `pulumi:"appendOnly"`
	// Specifies a comment for the stream.
	Comment pulumi.StringPtrOutput `pulumi:"comment"`
	// The database in which to create the stream.
	Database pulumi.StringOutput `pulumi:"database"`
	// Create an insert only stream type.
	InsertOnly pulumi.BoolPtrOutput `pulumi:"insertOnly"`
	// Specifies the identifier for the stream; must be unique for the database and schema in which the stream is created.
	Name pulumi.StringOutput `pulumi:"name"`
	// Name of the 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 | stream name

```sh

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

```

func GetStream

func GetStream(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *StreamState, opts ...pulumi.ResourceOption) (*Stream, error)

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

func NewStream

func NewStream(ctx *pulumi.Context,
	name string, args *StreamArgs, opts ...pulumi.ResourceOption) (*Stream, error)

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

func (*Stream) ElementType

func (*Stream) ElementType() reflect.Type

func (*Stream) ToStreamOutput

func (i *Stream) ToStreamOutput() StreamOutput

func (*Stream) ToStreamOutputWithContext

func (i *Stream) ToStreamOutputWithContext(ctx context.Context) StreamOutput

type StreamArgs

type StreamArgs struct {
	// Type of the stream that will be created.
	AppendOnly pulumi.BoolPtrInput
	// Specifies a comment for the stream.
	Comment pulumi.StringPtrInput
	// The database in which to create the stream.
	Database pulumi.StringInput
	// Create an insert only stream type.
	InsertOnly pulumi.BoolPtrInput
	// Specifies the identifier for the stream; must be unique for the database and schema in which the stream is created.
	Name pulumi.StringPtrInput
	// Name of the 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

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

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

type StreamState

type StreamState struct {
	// Type of the stream that will be created.
	AppendOnly pulumi.BoolPtrInput
	// Specifies a comment for the stream.
	Comment pulumi.StringPtrInput
	// The database in which to create the stream.
	Database pulumi.StringPtrInput
	// Create an insert only stream type.
	InsertOnly pulumi.BoolPtrInput
	// Specifies the identifier for the stream; must be unique for the database and schema in which the stream is created.
	Name pulumi.StringPtrInput
	// Name of the 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

	// Specifies whether to enable change tracking on the table. Default false.
	ChangeTracking pulumi.BoolPtrOutput `pulumi:"changeTracking"`
	// A list of one or more table columns/expressions to be used as clustering key(s) for the table
	ClusterBies pulumi.StringArrayOutput `pulumi:"clusterBies"`
	// Definitions of a column to create in the table. Minimum one required.
	Columns TableColumnArrayOutput `pulumi:"columns"`
	// Specifies a comment for the table.
	Comment pulumi.StringPtrOutput `pulumi:"comment"`
	// Specifies the retention period for the table so that Time Travel actions (SELECT, CLONE, UNDROP) can be performed on historical data in the table. Default value is 1, if you wish to inherit the parent schema setting then pass in the schema attribute to this argument.
	DataRetentionDays pulumi.IntPtrOutput `pulumi:"dataRetentionDays"`
	// The database in which to create the table.
	Database pulumi.StringOutput `pulumi:"database"`
	// Specifies the identifier for the table; must be unique for the database and schema in which the table is created.
	Name pulumi.StringOutput `pulumi:"name"`
	// Name of the role that owns the table.
	Owner pulumi.StringOutput `pulumi:"owner"`
	// Definitions of primary key constraint to create on table
	PrimaryKey TablePrimaryKeyPtrOutput `pulumi:"primaryKey"`
	// The schema in which to create the table.
	Schema pulumi.StringOutput `pulumi:"schema"`
	// Definitions of a tag to associate with the resource.
	Tags TableTagArrayOutput `pulumi:"tags"`
}

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-snowflake/sdk/go/snowflake"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		schema, err := snowflake.NewSchema(ctx, "schema", &snowflake.SchemaArgs{
			Database:          pulumi.String("database"),
			DataRetentionDays: pulumi.Int(1),
		})
		if err != nil {
			return err
		}
		sequence, err := snowflake.NewSequence(ctx, "sequence", &snowflake.SequenceArgs{
			Database: schema.Database,
			Schema:   schema.Name,
		})
		if err != nil {
			return err
		}
		_, err = snowflake.NewTable(ctx, "table", &snowflake.TableArgs{
			Database: schema.Database,
			Schema:   schema.Name,
			Comment:  pulumi.String("A table."),
			ClusterBies: pulumi.StringArray{
				pulumi.String("to_date(DATE)"),
			},
			DataRetentionDays: schema.DataRetentionDays,
			ChangeTracking:    pulumi.Bool(false),
			Columns: TableColumnArray{
				&TableColumnArgs{
					Name:     pulumi.String("id"),
					Type:     pulumi.String("int"),
					Nullable: pulumi.Bool(true),
					Default: &TableColumnDefaultArgs{
						Sequence: sequence.FullyQualifiedName,
					},
				},
				&TableColumnArgs{
					Name:     pulumi.String("identity"),
					Type:     pulumi.String("NUMBER(38,0)"),
					Nullable: pulumi.Bool(true),
					Identity: &TableColumnIdentityArgs{
						StartNum: pulumi.Int(1),
						StepNum:  pulumi.Int(3),
					},
				},
				&TableColumnArgs{
					Name:     pulumi.String("data"),
					Type:     pulumi.String("text"),
					Nullable: pulumi.Bool(false),
				},
				&TableColumnArgs{
					Name: pulumi.String("DATE"),
					Type: pulumi.String("TIMESTAMP_NTZ(9)"),
				},
				&TableColumnArgs{
					Name:    pulumi.String("extra"),
					Type:    pulumi.String("VARIANT"),
					Comment: pulumi.String("extra data"),
				},
			},
			PrimaryKey: &TablePrimaryKeyArgs{
				Name: pulumi.String("my_key"),
				Keys: pulumi.StringArray{
					pulumi.String("data"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

format is database name | schema name | table name

```sh

$ pulumi import snowflake:index/table:Table example 'databaseName|schemaName|tableName'

```

func GetTable

func GetTable(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *TableState, opts ...pulumi.ResourceOption) (*Table, error)

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

func NewTable

func NewTable(ctx *pulumi.Context,
	name string, args *TableArgs, opts ...pulumi.ResourceOption) (*Table, error)

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

func (*Table) ElementType

func (*Table) ElementType() reflect.Type

func (*Table) ToTableOutput

func (i *Table) ToTableOutput() TableOutput

func (*Table) ToTableOutputWithContext

func (i *Table) ToTableOutputWithContext(ctx context.Context) TableOutput

type TableArgs

type TableArgs struct {
	// Specifies whether to enable change tracking on the table. Default false.
	ChangeTracking pulumi.BoolPtrInput
	// A list of one or more table columns/expressions to be used as clustering key(s) for the table
	ClusterBies pulumi.StringArrayInput
	// Definitions of a column to create in the table. Minimum one required.
	Columns TableColumnArrayInput
	// Specifies a comment for the table.
	Comment pulumi.StringPtrInput
	// Specifies the retention period for the table so that Time Travel actions (SELECT, CLONE, UNDROP) can be performed on historical data in the table. Default value is 1, if you wish to inherit the parent schema setting then pass in the schema attribute to this argument.
	DataRetentionDays pulumi.IntPtrInput
	// The database in which to create the table.
	Database pulumi.StringInput
	// Specifies the identifier for the table; must be unique for the database and schema in which the table is created.
	Name pulumi.StringPtrInput
	// Definitions of primary key constraint to create on table
	PrimaryKey TablePrimaryKeyPtrInput
	// The schema in which to create the table.
	Schema pulumi.StringInput
	// Definitions of a tag to associate with the resource.
	Tags TableTagArrayInput
}

The set of arguments for constructing a Table resource.

func (TableArgs) ElementType

func (TableArgs) ElementType() reflect.Type

type TableArray

type TableArray []TableInput

func (TableArray) ElementType

func (TableArray) ElementType() reflect.Type

func (TableArray) ToTableArrayOutput

func (i TableArray) ToTableArrayOutput() TableArrayOutput

func (TableArray) ToTableArrayOutputWithContext

func (i TableArray) ToTableArrayOutputWithContext(ctx context.Context) TableArrayOutput

type TableArrayInput

type TableArrayInput interface {
	pulumi.Input

	ToTableArrayOutput() TableArrayOutput
	ToTableArrayOutputWithContext(context.Context) TableArrayOutput
}

TableArrayInput is an input type that accepts TableArray and TableArrayOutput values. You can construct a concrete instance of `TableArrayInput` via:

TableArray{ TableArgs{...} }

type TableArrayOutput

type TableArrayOutput struct{ *pulumi.OutputState }

func (TableArrayOutput) ElementType

func (TableArrayOutput) ElementType() reflect.Type

func (TableArrayOutput) Index

func (TableArrayOutput) ToTableArrayOutput

func (o TableArrayOutput) ToTableArrayOutput() TableArrayOutput

func (TableArrayOutput) ToTableArrayOutputWithContext

func (o TableArrayOutput) ToTableArrayOutputWithContext(ctx context.Context) TableArrayOutput

type TableColumn

type TableColumn struct {
	// Column comment
	Comment *string `pulumi:"comment"`
	// Defines the column default value; note due to limitations of Snowflake's ALTER TABLE ADD/MODIFY COLUMN updates to default will not be applied
	Default *TableColumnDefault `pulumi:"default"`
	// Defines the identity start/step values for a column. **Note** Identity/default are mutually exclusive.
	Identity *TableColumnIdentity `pulumi:"identity"`
	// Column name
	Name string `pulumi:"name"`
	// Whether this column can contain null values. **Note**: Depending on your Snowflake version, the default value will not suffice if this column is used in a primary key constraint.
	Nullable *bool `pulumi:"nullable"`
	// Column type, e.g. VARIANT
	Type string `pulumi:"type"`
}

type TableColumnArgs

type TableColumnArgs struct {
	// Column comment
	Comment pulumi.StringPtrInput `pulumi:"comment"`
	// Defines the column default value; note due to limitations of Snowflake's ALTER TABLE ADD/MODIFY COLUMN updates to default will not be applied
	Default TableColumnDefaultPtrInput `pulumi:"default"`
	// Defines the identity start/step values for a column. **Note** Identity/default are mutually exclusive.
	Identity TableColumnIdentityPtrInput `pulumi:"identity"`
	// Column name
	Name pulumi.StringInput `pulumi:"name"`
	// Whether this column can contain null values. **Note**: Depending on your Snowflake version, the default value will not suffice if this column is used in a primary key constraint.
	Nullable pulumi.BoolPtrInput `pulumi:"nullable"`
	// Column type, e.g. VARIANT
	Type pulumi.StringInput `pulumi:"type"`
}

func (TableColumnArgs) ElementType

func (TableColumnArgs) ElementType() reflect.Type

func (TableColumnArgs) ToTableColumnOutput

func (i TableColumnArgs) ToTableColumnOutput() TableColumnOutput

func (TableColumnArgs) ToTableColumnOutputWithContext

func (i TableColumnArgs) ToTableColumnOutputWithContext(ctx context.Context) TableColumnOutput

type TableColumnArray

type TableColumnArray []TableColumnInput

func (TableColumnArray) ElementType

func (TableColumnArray) ElementType() reflect.Type

func (TableColumnArray) ToTableColumnArrayOutput

func (i TableColumnArray) ToTableColumnArrayOutput() TableColumnArrayOutput

func (TableColumnArray) ToTableColumnArrayOutputWithContext

func (i TableColumnArray) ToTableColumnArrayOutputWithContext(ctx context.Context) TableColumnArrayOutput

type TableColumnArrayInput

type TableColumnArrayInput interface {
	pulumi.Input

	ToTableColumnArrayOutput() TableColumnArrayOutput
	ToTableColumnArrayOutputWithContext(context.Context) TableColumnArrayOutput
}

TableColumnArrayInput is an input type that accepts TableColumnArray and TableColumnArrayOutput values. You can construct a concrete instance of `TableColumnArrayInput` via:

TableColumnArray{ TableColumnArgs{...} }

type TableColumnArrayOutput

type TableColumnArrayOutput struct{ *pulumi.OutputState }

func (TableColumnArrayOutput) ElementType

func (TableColumnArrayOutput) ElementType() reflect.Type

func (TableColumnArrayOutput) Index

func (TableColumnArrayOutput) ToTableColumnArrayOutput

func (o TableColumnArrayOutput) ToTableColumnArrayOutput() TableColumnArrayOutput

func (TableColumnArrayOutput) ToTableColumnArrayOutputWithContext

func (o TableColumnArrayOutput) ToTableColumnArrayOutputWithContext(ctx context.Context) TableColumnArrayOutput

type TableColumnDefault added in v0.1.3

type TableColumnDefault struct {
	Constant   *string `pulumi:"constant"`
	Expression *string `pulumi:"expression"`
	Sequence   *string `pulumi:"sequence"`
}

type TableColumnDefaultArgs added in v0.1.3

type TableColumnDefaultArgs struct {
	Constant   pulumi.StringPtrInput `pulumi:"constant"`
	Expression pulumi.StringPtrInput `pulumi:"expression"`
	Sequence   pulumi.StringPtrInput `pulumi:"sequence"`
}

func (TableColumnDefaultArgs) ElementType added in v0.1.3

func (TableColumnDefaultArgs) ElementType() reflect.Type

func (TableColumnDefaultArgs) ToTableColumnDefaultOutput added in v0.1.3

func (i TableColumnDefaultArgs) ToTableColumnDefaultOutput() TableColumnDefaultOutput

func (TableColumnDefaultArgs) ToTableColumnDefaultOutputWithContext added in v0.1.3

func (i TableColumnDefaultArgs) ToTableColumnDefaultOutputWithContext(ctx context.Context) TableColumnDefaultOutput

func (TableColumnDefaultArgs) ToTableColumnDefaultPtrOutput added in v0.1.3

func (i TableColumnDefaultArgs) ToTableColumnDefaultPtrOutput() TableColumnDefaultPtrOutput

func (TableColumnDefaultArgs) ToTableColumnDefaultPtrOutputWithContext added in v0.1.3

func (i TableColumnDefaultArgs) ToTableColumnDefaultPtrOutputWithContext(ctx context.Context) TableColumnDefaultPtrOutput

type TableColumnDefaultInput added in v0.1.3

type TableColumnDefaultInput interface {
	pulumi.Input

	ToTableColumnDefaultOutput() TableColumnDefaultOutput
	ToTableColumnDefaultOutputWithContext(context.Context) TableColumnDefaultOutput
}

TableColumnDefaultInput is an input type that accepts TableColumnDefaultArgs and TableColumnDefaultOutput values. You can construct a concrete instance of `TableColumnDefaultInput` via:

TableColumnDefaultArgs{...}

type TableColumnDefaultOutput added in v0.1.3

type TableColumnDefaultOutput struct{ *pulumi.OutputState }

func (TableColumnDefaultOutput) Constant added in v0.1.3

func (TableColumnDefaultOutput) ElementType added in v0.1.3

func (TableColumnDefaultOutput) ElementType() reflect.Type

func (TableColumnDefaultOutput) Expression added in v0.1.3

func (TableColumnDefaultOutput) Sequence added in v0.1.3

func (TableColumnDefaultOutput) ToTableColumnDefaultOutput added in v0.1.3

func (o TableColumnDefaultOutput) ToTableColumnDefaultOutput() TableColumnDefaultOutput

func (TableColumnDefaultOutput) ToTableColumnDefaultOutputWithContext added in v0.1.3

func (o TableColumnDefaultOutput) ToTableColumnDefaultOutputWithContext(ctx context.Context) TableColumnDefaultOutput

func (TableColumnDefaultOutput) ToTableColumnDefaultPtrOutput added in v0.1.3

func (o TableColumnDefaultOutput) ToTableColumnDefaultPtrOutput() TableColumnDefaultPtrOutput

func (TableColumnDefaultOutput) ToTableColumnDefaultPtrOutputWithContext added in v0.1.3

func (o TableColumnDefaultOutput) ToTableColumnDefaultPtrOutputWithContext(ctx context.Context) TableColumnDefaultPtrOutput

type TableColumnDefaultPtrInput added in v0.1.3

type TableColumnDefaultPtrInput interface {
	pulumi.Input

	ToTableColumnDefaultPtrOutput() TableColumnDefaultPtrOutput
	ToTableColumnDefaultPtrOutputWithContext(context.Context) TableColumnDefaultPtrOutput
}

TableColumnDefaultPtrInput is an input type that accepts TableColumnDefaultArgs, TableColumnDefaultPtr and TableColumnDefaultPtrOutput values. You can construct a concrete instance of `TableColumnDefaultPtrInput` via:

        TableColumnDefaultArgs{...}

or:

        nil

func TableColumnDefaultPtr added in v0.1.3

func TableColumnDefaultPtr(v *TableColumnDefaultArgs) TableColumnDefaultPtrInput

type TableColumnDefaultPtrOutput added in v0.1.3

type TableColumnDefaultPtrOutput struct{ *pulumi.OutputState }

func (TableColumnDefaultPtrOutput) Constant added in v0.1.3

func (TableColumnDefaultPtrOutput) Elem added in v0.1.3

func (TableColumnDefaultPtrOutput) ElementType added in v0.1.3

func (TableColumnDefaultPtrOutput) Expression added in v0.1.3

func (TableColumnDefaultPtrOutput) Sequence added in v0.1.3

func (TableColumnDefaultPtrOutput) ToTableColumnDefaultPtrOutput added in v0.1.3

func (o TableColumnDefaultPtrOutput) ToTableColumnDefaultPtrOutput() TableColumnDefaultPtrOutput

func (TableColumnDefaultPtrOutput) ToTableColumnDefaultPtrOutputWithContext added in v0.1.3

func (o TableColumnDefaultPtrOutput) ToTableColumnDefaultPtrOutputWithContext(ctx context.Context) TableColumnDefaultPtrOutput

type TableColumnIdentity added in v0.3.0

type TableColumnIdentity struct {
	StartNum *int `pulumi:"startNum"`
	StepNum  *int `pulumi:"stepNum"`
}

type TableColumnIdentityArgs added in v0.3.0

type TableColumnIdentityArgs struct {
	StartNum pulumi.IntPtrInput `pulumi:"startNum"`
	StepNum  pulumi.IntPtrInput `pulumi:"stepNum"`
}

func (TableColumnIdentityArgs) ElementType added in v0.3.0

func (TableColumnIdentityArgs) ElementType() reflect.Type

func (TableColumnIdentityArgs) ToTableColumnIdentityOutput added in v0.3.0

func (i TableColumnIdentityArgs) ToTableColumnIdentityOutput() TableColumnIdentityOutput

func (TableColumnIdentityArgs) ToTableColumnIdentityOutputWithContext added in v0.3.0

func (i TableColumnIdentityArgs) ToTableColumnIdentityOutputWithContext(ctx context.Context) TableColumnIdentityOutput

func (TableColumnIdentityArgs) ToTableColumnIdentityPtrOutput added in v0.3.0

func (i TableColumnIdentityArgs) ToTableColumnIdentityPtrOutput() TableColumnIdentityPtrOutput

func (TableColumnIdentityArgs) ToTableColumnIdentityPtrOutputWithContext added in v0.3.0

func (i TableColumnIdentityArgs) ToTableColumnIdentityPtrOutputWithContext(ctx context.Context) TableColumnIdentityPtrOutput

type TableColumnIdentityInput added in v0.3.0

type TableColumnIdentityInput interface {
	pulumi.Input

	ToTableColumnIdentityOutput() TableColumnIdentityOutput
	ToTableColumnIdentityOutputWithContext(context.Context) TableColumnIdentityOutput
}

TableColumnIdentityInput is an input type that accepts TableColumnIdentityArgs and TableColumnIdentityOutput values. You can construct a concrete instance of `TableColumnIdentityInput` via:

TableColumnIdentityArgs{...}

type TableColumnIdentityOutput added in v0.3.0

type TableColumnIdentityOutput struct{ *pulumi.OutputState }

func (TableColumnIdentityOutput) ElementType added in v0.3.0

func (TableColumnIdentityOutput) ElementType() reflect.Type

func (TableColumnIdentityOutput) StartNum added in v0.3.0

func (TableColumnIdentityOutput) StepNum added in v0.3.0

func (TableColumnIdentityOutput) ToTableColumnIdentityOutput added in v0.3.0

func (o TableColumnIdentityOutput) ToTableColumnIdentityOutput() TableColumnIdentityOutput

func (TableColumnIdentityOutput) ToTableColumnIdentityOutputWithContext added in v0.3.0

func (o TableColumnIdentityOutput) ToTableColumnIdentityOutputWithContext(ctx context.Context) TableColumnIdentityOutput

func (TableColumnIdentityOutput) ToTableColumnIdentityPtrOutput added in v0.3.0

func (o TableColumnIdentityOutput) ToTableColumnIdentityPtrOutput() TableColumnIdentityPtrOutput

func (TableColumnIdentityOutput) ToTableColumnIdentityPtrOutputWithContext added in v0.3.0

func (o TableColumnIdentityOutput) ToTableColumnIdentityPtrOutputWithContext(ctx context.Context) TableColumnIdentityPtrOutput

type TableColumnIdentityPtrInput added in v0.3.0

type TableColumnIdentityPtrInput interface {
	pulumi.Input

	ToTableColumnIdentityPtrOutput() TableColumnIdentityPtrOutput
	ToTableColumnIdentityPtrOutputWithContext(context.Context) TableColumnIdentityPtrOutput
}

TableColumnIdentityPtrInput is an input type that accepts TableColumnIdentityArgs, TableColumnIdentityPtr and TableColumnIdentityPtrOutput values. You can construct a concrete instance of `TableColumnIdentityPtrInput` via:

        TableColumnIdentityArgs{...}

or:

        nil

func TableColumnIdentityPtr added in v0.3.0

func TableColumnIdentityPtr(v *TableColumnIdentityArgs) TableColumnIdentityPtrInput

type TableColumnIdentityPtrOutput added in v0.3.0

type TableColumnIdentityPtrOutput struct{ *pulumi.OutputState }

func (TableColumnIdentityPtrOutput) Elem added in v0.3.0

func (TableColumnIdentityPtrOutput) ElementType added in v0.3.0

func (TableColumnIdentityPtrOutput) StartNum added in v0.3.0

func (TableColumnIdentityPtrOutput) StepNum added in v0.3.0

func (TableColumnIdentityPtrOutput) ToTableColumnIdentityPtrOutput added in v0.3.0

func (o TableColumnIdentityPtrOutput) ToTableColumnIdentityPtrOutput() TableColumnIdentityPtrOutput

func (TableColumnIdentityPtrOutput) ToTableColumnIdentityPtrOutputWithContext added in v0.3.0

func (o TableColumnIdentityPtrOutput) ToTableColumnIdentityPtrOutputWithContext(ctx context.Context) TableColumnIdentityPtrOutput

type TableColumnInput

type TableColumnInput interface {
	pulumi.Input

	ToTableColumnOutput() TableColumnOutput
	ToTableColumnOutputWithContext(context.Context) TableColumnOutput
}

TableColumnInput is an input type that accepts TableColumnArgs and TableColumnOutput values. You can construct a concrete instance of `TableColumnInput` via:

TableColumnArgs{...}

type TableColumnOutput

type TableColumnOutput struct{ *pulumi.OutputState }

func (TableColumnOutput) Comment added in v0.1.3

Column comment

func (TableColumnOutput) Default added in v0.1.3

Defines the column default value; note due to limitations of Snowflake's ALTER TABLE ADD/MODIFY COLUMN updates to default will not be applied

func (TableColumnOutput) ElementType

func (TableColumnOutput) ElementType() reflect.Type

func (TableColumnOutput) Identity added in v0.3.0

Defines the identity start/step values for a column. **Note** Identity/default are mutually exclusive.

func (TableColumnOutput) Name

Column name

func (TableColumnOutput) Nullable added in v0.1.2

func (o TableColumnOutput) Nullable() pulumi.BoolPtrOutput

Whether this column can contain null values. **Note**: Depending on your Snowflake version, the default value will not suffice if this column is used in a primary key constraint.

func (TableColumnOutput) ToTableColumnOutput

func (o TableColumnOutput) ToTableColumnOutput() TableColumnOutput

func (TableColumnOutput) ToTableColumnOutputWithContext

func (o TableColumnOutput) ToTableColumnOutputWithContext(ctx context.Context) TableColumnOutput

func (TableColumnOutput) Type

Column type, e.g. VARIANT

type 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

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

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

type TablePrimaryKey added in v0.1.2

type TablePrimaryKey struct {
	// Columns to use in primary key
	Keys []string `pulumi:"keys"`
	// Name of constraint
	Name *string `pulumi:"name"`
}

type TablePrimaryKeyArgs added in v0.1.2

type TablePrimaryKeyArgs struct {
	// Columns to use in primary key
	Keys pulumi.StringArrayInput `pulumi:"keys"`
	// Name of constraint
	Name pulumi.StringPtrInput `pulumi:"name"`
}

func (TablePrimaryKeyArgs) ElementType added in v0.1.2

func (TablePrimaryKeyArgs) ElementType() reflect.Type

func (TablePrimaryKeyArgs) ToTablePrimaryKeyOutput added in v0.1.2

func (i TablePrimaryKeyArgs) ToTablePrimaryKeyOutput() TablePrimaryKeyOutput

func (TablePrimaryKeyArgs) ToTablePrimaryKeyOutputWithContext added in v0.1.2

func (i TablePrimaryKeyArgs) ToTablePrimaryKeyOutputWithContext(ctx context.Context) TablePrimaryKeyOutput

func (TablePrimaryKeyArgs) ToTablePrimaryKeyPtrOutput added in v0.1.2

func (i TablePrimaryKeyArgs) ToTablePrimaryKeyPtrOutput() TablePrimaryKeyPtrOutput

func (TablePrimaryKeyArgs) ToTablePrimaryKeyPtrOutputWithContext added in v0.1.2

func (i TablePrimaryKeyArgs) ToTablePrimaryKeyPtrOutputWithContext(ctx context.Context) TablePrimaryKeyPtrOutput

type TablePrimaryKeyInput added in v0.1.2

type TablePrimaryKeyInput interface {
	pulumi.Input

	ToTablePrimaryKeyOutput() TablePrimaryKeyOutput
	ToTablePrimaryKeyOutputWithContext(context.Context) TablePrimaryKeyOutput
}

TablePrimaryKeyInput is an input type that accepts TablePrimaryKeyArgs and TablePrimaryKeyOutput values. You can construct a concrete instance of `TablePrimaryKeyInput` via:

TablePrimaryKeyArgs{...}

type TablePrimaryKeyOutput added in v0.1.2

type TablePrimaryKeyOutput struct{ *pulumi.OutputState }

func (TablePrimaryKeyOutput) ElementType added in v0.1.2

func (TablePrimaryKeyOutput) ElementType() reflect.Type

func (TablePrimaryKeyOutput) Keys added in v0.1.2

Columns to use in primary key

func (TablePrimaryKeyOutput) Name added in v0.1.2

Name of constraint

func (TablePrimaryKeyOutput) ToTablePrimaryKeyOutput added in v0.1.2

func (o TablePrimaryKeyOutput) ToTablePrimaryKeyOutput() TablePrimaryKeyOutput

func (TablePrimaryKeyOutput) ToTablePrimaryKeyOutputWithContext added in v0.1.2

func (o TablePrimaryKeyOutput) ToTablePrimaryKeyOutputWithContext(ctx context.Context) TablePrimaryKeyOutput

func (TablePrimaryKeyOutput) ToTablePrimaryKeyPtrOutput added in v0.1.2

func (o TablePrimaryKeyOutput) ToTablePrimaryKeyPtrOutput() TablePrimaryKeyPtrOutput

func (TablePrimaryKeyOutput) ToTablePrimaryKeyPtrOutputWithContext added in v0.1.2

func (o TablePrimaryKeyOutput) ToTablePrimaryKeyPtrOutputWithContext(ctx context.Context) TablePrimaryKeyPtrOutput

type TablePrimaryKeyPtrInput added in v0.1.2

type TablePrimaryKeyPtrInput interface {
	pulumi.Input

	ToTablePrimaryKeyPtrOutput() TablePrimaryKeyPtrOutput
	ToTablePrimaryKeyPtrOutputWithContext(context.Context) TablePrimaryKeyPtrOutput
}

TablePrimaryKeyPtrInput is an input type that accepts TablePrimaryKeyArgs, TablePrimaryKeyPtr and TablePrimaryKeyPtrOutput values. You can construct a concrete instance of `TablePrimaryKeyPtrInput` via:

        TablePrimaryKeyArgs{...}

or:

        nil

func TablePrimaryKeyPtr added in v0.1.2

func TablePrimaryKeyPtr(v *TablePrimaryKeyArgs) TablePrimaryKeyPtrInput

type TablePrimaryKeyPtrOutput added in v0.1.2

type TablePrimaryKeyPtrOutput struct{ *pulumi.OutputState }

func (TablePrimaryKeyPtrOutput) Elem added in v0.1.2

func (TablePrimaryKeyPtrOutput) ElementType added in v0.1.2

func (TablePrimaryKeyPtrOutput) ElementType() reflect.Type

func (TablePrimaryKeyPtrOutput) Keys added in v0.1.2

Columns to use in primary key

func (TablePrimaryKeyPtrOutput) Name added in v0.1.2

Name of constraint

func (TablePrimaryKeyPtrOutput) ToTablePrimaryKeyPtrOutput added in v0.1.2

func (o TablePrimaryKeyPtrOutput) ToTablePrimaryKeyPtrOutput() TablePrimaryKeyPtrOutput

func (TablePrimaryKeyPtrOutput) ToTablePrimaryKeyPtrOutputWithContext added in v0.1.2

func (o TablePrimaryKeyPtrOutput) ToTablePrimaryKeyPtrOutputWithContext(ctx context.Context) TablePrimaryKeyPtrOutput

type TableState

type TableState struct {
	// Specifies whether to enable change tracking on the table. Default false.
	ChangeTracking pulumi.BoolPtrInput
	// A list of one or more table columns/expressions to be used as clustering key(s) for the table
	ClusterBies pulumi.StringArrayInput
	// Definitions of a column to create in the table. Minimum one required.
	Columns TableColumnArrayInput
	// Specifies a comment for the table.
	Comment pulumi.StringPtrInput
	// Specifies the retention period for the table so that Time Travel actions (SELECT, CLONE, UNDROP) can be performed on historical data in the table. Default value is 1, if you wish to inherit the parent schema setting then pass in the schema attribute to this argument.
	DataRetentionDays pulumi.IntPtrInput
	// The database in which to create the table.
	Database pulumi.StringPtrInput
	// Specifies the identifier for the table; must be unique for the database and schema in which the table is created.
	Name pulumi.StringPtrInput
	// Name of the role that owns the table.
	Owner pulumi.StringPtrInput
	// Definitions of primary key constraint to create on table
	PrimaryKey TablePrimaryKeyPtrInput
	// The schema in which to create the table.
	Schema pulumi.StringPtrInput
	// Definitions of a tag to associate with the resource.
	Tags TableTagArrayInput
}

func (TableState) ElementType

func (TableState) ElementType() reflect.Type

type TableTag added in v0.3.0

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

type TableTagArgs added in v0.3.0

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

func (TableTagArgs) ElementType added in v0.3.0

func (TableTagArgs) ElementType() reflect.Type

func (TableTagArgs) ToTableTagOutput added in v0.3.0

func (i TableTagArgs) ToTableTagOutput() TableTagOutput

func (TableTagArgs) ToTableTagOutputWithContext added in v0.3.0

func (i TableTagArgs) ToTableTagOutputWithContext(ctx context.Context) TableTagOutput

type TableTagArray added in v0.3.0

type TableTagArray []TableTagInput

func (TableTagArray) ElementType added in v0.3.0

func (TableTagArray) ElementType() reflect.Type

func (TableTagArray) ToTableTagArrayOutput added in v0.3.0

func (i TableTagArray) ToTableTagArrayOutput() TableTagArrayOutput

func (TableTagArray) ToTableTagArrayOutputWithContext added in v0.3.0

func (i TableTagArray) ToTableTagArrayOutputWithContext(ctx context.Context) TableTagArrayOutput

type TableTagArrayInput added in v0.3.0

type TableTagArrayInput interface {
	pulumi.Input

	ToTableTagArrayOutput() TableTagArrayOutput
	ToTableTagArrayOutputWithContext(context.Context) TableTagArrayOutput
}

TableTagArrayInput is an input type that accepts TableTagArray and TableTagArrayOutput values. You can construct a concrete instance of `TableTagArrayInput` via:

TableTagArray{ TableTagArgs{...} }

type TableTagArrayOutput added in v0.3.0

type TableTagArrayOutput struct{ *pulumi.OutputState }

func (TableTagArrayOutput) ElementType added in v0.3.0

func (TableTagArrayOutput) ElementType() reflect.Type

func (TableTagArrayOutput) Index added in v0.3.0

func (TableTagArrayOutput) ToTableTagArrayOutput added in v0.3.0

func (o TableTagArrayOutput) ToTableTagArrayOutput() TableTagArrayOutput

func (TableTagArrayOutput) ToTableTagArrayOutputWithContext added in v0.3.0

func (o TableTagArrayOutput) ToTableTagArrayOutputWithContext(ctx context.Context) TableTagArrayOutput

type TableTagInput added in v0.3.0

type TableTagInput interface {
	pulumi.Input

	ToTableTagOutput() TableTagOutput
	ToTableTagOutputWithContext(context.Context) TableTagOutput
}

TableTagInput is an input type that accepts TableTagArgs and TableTagOutput values. You can construct a concrete instance of `TableTagInput` via:

TableTagArgs{...}

type TableTagOutput added in v0.3.0

type TableTagOutput struct{ *pulumi.OutputState }

func (TableTagOutput) Database added in v0.3.0

func (o TableTagOutput) Database() pulumi.StringPtrOutput

Name of the database that the tag was created in.

func (TableTagOutput) ElementType added in v0.3.0

func (TableTagOutput) ElementType() reflect.Type

func (TableTagOutput) Name added in v0.3.0

Tag name, e.g. department.

func (TableTagOutput) Schema added in v0.3.0

Name of the schema that the tag was created in.

func (TableTagOutput) ToTableTagOutput added in v0.3.0

func (o TableTagOutput) ToTableTagOutput() TableTagOutput

func (TableTagOutput) ToTableTagOutputWithContext added in v0.3.0

func (o TableTagOutput) ToTableTagOutputWithContext(ctx context.Context) TableTagOutput

func (TableTagOutput) Value added in v0.3.0

Tag value, e.g. marketing_info.

type Tag added in v0.3.0

type Tag struct {
	pulumi.CustomResourceState

	// Specifies a comment for the tag.
	Comment pulumi.StringPtrOutput `pulumi:"comment"`
	// The database in which to create the tag.
	Database pulumi.StringOutput `pulumi:"database"`
	// Specifies the identifier for the tag; must be unique for the database in which the tag is created.
	Name pulumi.StringOutput `pulumi:"name"`
	// The schema in which to create the tag.
	Schema pulumi.StringOutput `pulumi:"schema"`
}

func GetTag added in v0.3.0

func GetTag(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *TagState, opts ...pulumi.ResourceOption) (*Tag, error)

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

func NewTag added in v0.3.0

func NewTag(ctx *pulumi.Context,
	name string, args *TagArgs, opts ...pulumi.ResourceOption) (*Tag, error)

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

func (*Tag) ElementType added in v0.3.0

func (*Tag) ElementType() reflect.Type

func (*Tag) ToTagOutput added in v0.3.0

func (i *Tag) ToTagOutput() TagOutput

func (*Tag) ToTagOutputWithContext added in v0.3.0

func (i *Tag) ToTagOutputWithContext(ctx context.Context) TagOutput

type TagArgs added in v0.3.0

type TagArgs struct {
	// Specifies a comment for the tag.
	Comment pulumi.StringPtrInput
	// The database in which to create the tag.
	Database pulumi.StringInput
	// Specifies the identifier for the tag; must be unique for the database in which the tag is created.
	Name pulumi.StringPtrInput
	// The schema in which to create the tag.
	Schema pulumi.StringInput
}

The set of arguments for constructing a Tag resource.

func (TagArgs) ElementType added in v0.3.0

func (TagArgs) ElementType() reflect.Type

type TagArray added in v0.3.0

type TagArray []TagInput

func (TagArray) ElementType added in v0.3.0

func (TagArray) ElementType() reflect.Type

func (TagArray) ToTagArrayOutput added in v0.3.0

func (i TagArray) ToTagArrayOutput() TagArrayOutput

func (TagArray) ToTagArrayOutputWithContext added in v0.3.0

func (i TagArray) ToTagArrayOutputWithContext(ctx context.Context) TagArrayOutput

type TagArrayInput added in v0.3.0

type TagArrayInput interface {
	pulumi.Input

	ToTagArrayOutput() TagArrayOutput
	ToTagArrayOutputWithContext(context.Context) TagArrayOutput
}

TagArrayInput is an input type that accepts TagArray and TagArrayOutput values. You can construct a concrete instance of `TagArrayInput` via:

TagArray{ TagArgs{...} }

type TagArrayOutput added in v0.3.0

type TagArrayOutput struct{ *pulumi.OutputState }

func (TagArrayOutput) ElementType added in v0.3.0

func (TagArrayOutput) ElementType() reflect.Type

func (TagArrayOutput) Index added in v0.3.0

func (TagArrayOutput) ToTagArrayOutput added in v0.3.0

func (o TagArrayOutput) ToTagArrayOutput() TagArrayOutput

func (TagArrayOutput) ToTagArrayOutputWithContext added in v0.3.0

func (o TagArrayOutput) ToTagArrayOutputWithContext(ctx context.Context) TagArrayOutput

type TagInput added in v0.3.0

type TagInput interface {
	pulumi.Input

	ToTagOutput() TagOutput
	ToTagOutputWithContext(ctx context.Context) TagOutput
}

type TagMap added in v0.3.0

type TagMap map[string]TagInput

func (TagMap) ElementType added in v0.3.0

func (TagMap) ElementType() reflect.Type

func (TagMap) ToTagMapOutput added in v0.3.0

func (i TagMap) ToTagMapOutput() TagMapOutput

func (TagMap) ToTagMapOutputWithContext added in v0.3.0

func (i TagMap) ToTagMapOutputWithContext(ctx context.Context) TagMapOutput

type TagMapInput added in v0.3.0

type TagMapInput interface {
	pulumi.Input

	ToTagMapOutput() TagMapOutput
	ToTagMapOutputWithContext(context.Context) TagMapOutput
}

TagMapInput is an input type that accepts TagMap and TagMapOutput values. You can construct a concrete instance of `TagMapInput` via:

TagMap{ "key": TagArgs{...} }

type TagMapOutput added in v0.3.0

type TagMapOutput struct{ *pulumi.OutputState }

func (TagMapOutput) ElementType added in v0.3.0

func (TagMapOutput) ElementType() reflect.Type

func (TagMapOutput) MapIndex added in v0.3.0

func (o TagMapOutput) MapIndex(k pulumi.StringInput) TagOutput

func (TagMapOutput) ToTagMapOutput added in v0.3.0

func (o TagMapOutput) ToTagMapOutput() TagMapOutput

func (TagMapOutput) ToTagMapOutputWithContext added in v0.3.0

func (o TagMapOutput) ToTagMapOutputWithContext(ctx context.Context) TagMapOutput

type TagOutput added in v0.3.0

type TagOutput struct{ *pulumi.OutputState }

func (TagOutput) ElementType added in v0.3.0

func (TagOutput) ElementType() reflect.Type

func (TagOutput) ToTagOutput added in v0.3.0

func (o TagOutput) ToTagOutput() TagOutput

func (TagOutput) ToTagOutputWithContext added in v0.3.0

func (o TagOutput) ToTagOutputWithContext(ctx context.Context) TagOutput

type TagState added in v0.3.0

type TagState struct {
	// Specifies a comment for the tag.
	Comment pulumi.StringPtrInput
	// The database in which to create the tag.
	Database pulumi.StringPtrInput
	// Specifies the identifier for the tag; must be unique for the database in which the tag is created.
	Name pulumi.StringPtrInput
	// The schema in which to create the tag.
	Schema pulumi.StringPtrInput
}

func (TagState) ElementType added in v0.3.0

func (TagState) ElementType() reflect.Type

type Task

type Task struct {
	pulumi.CustomResourceState

	// Specifies 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). (Conflict with schedule)
	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 name of the notification integration used for error notifications.
	ErrorIntegration pulumi.StringPtrOutput `pulumi:"errorIntegration"`
	// Specifies the identifier for the task; must be unique for the database and schema in which the task is created.
	Name pulumi.StringOutput `pulumi:"name"`
	// The schedule for periodically running the task. This can be a cron or interval in minutes. (Conflict with after)
	Schedule pulumi.StringPtrOutput `pulumi:"schedule"`
	// The schema in which to create the task.
	Schema pulumi.StringOutput `pulumi:"schema"`
	// Specifies session parameters to set for the session when the task runs. A task supports all session parameters.
	SessionParameters pulumi.StringMapOutput `pulumi:"sessionParameters"`
	// Any single SQL statement, or a call to a stored procedure, executed when the task runs.
	SqlStatement pulumi.StringOutput `pulumi:"sqlStatement"`
	// Specifies the size of the compute resources to provision for the first run of the task, before a task history is available for Snowflake to determine an ideal size. Once a task has successfully completed a few runs, Snowflake ignores this parameter setting. (Conflicts with warehouse)
	UserTaskManagedInitialWarehouseSize pulumi.StringPtrOutput `pulumi:"userTaskManagedInitialWarehouseSize"`
	// Specifies the time limit on a single run of the task before it times out (in milliseconds).
	UserTaskTimeoutMs pulumi.IntPtrOutput `pulumi:"userTaskTimeoutMs"`
	// The warehouse the task will use. Omit this parameter to use Snowflake-managed compute resources for runs of this task. (Conflicts with user*task*managed*initial*warehouse_size)
	Warehouse pulumi.StringPtrOutput `pulumi:"warehouse"`
	// Specifies a Boolean SQL expression; multiple conditions joined with AND/OR are supported.
	When pulumi.StringPtrOutput `pulumi:"when"`
}

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-snowflake/sdk/go/snowflake"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, 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 MINUTE"),
			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
		}
		_, err = snowflake.NewTask(ctx, "serverlessTask", &snowflake.TaskArgs{
			Comment:      pulumi.String("my serverless task"),
			Database:     pulumi.String("db"),
			Schema:       pulumi.String("schema"),
			Schedule:     pulumi.String("10 MINUTE"),
			SqlStatement: pulumi.String("select * from foo;"),
			SessionParameters: pulumi.StringMap{
				"foo": pulumi.String("bar"),
			},
			UserTaskTimeoutMs:                   pulumi.Int(10000),
			UserTaskManagedInitialWarehouseSize: pulumi.String("XSMALL"),
			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

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). (Conflict with schedule)
	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 name of the notification integration used for error notifications.
	ErrorIntegration pulumi.StringPtrInput
	// Specifies the identifier for the task; must be unique for the database and schema in which the task is created.
	Name pulumi.StringPtrInput
	// The schedule for periodically running the task. This can be a cron or interval in minutes. (Conflict with after)
	Schedule pulumi.StringPtrInput
	// The schema in which to create the task.
	Schema pulumi.StringInput
	// Specifies session parameters to set for the session when the task runs. A task supports all session parameters.
	SessionParameters pulumi.StringMapInput
	// Any single SQL statement, or a call to a stored procedure, executed when the task runs.
	SqlStatement pulumi.StringInput
	// Specifies the size of the compute resources to provision for the first run of the task, before a task history is available for Snowflake to determine an ideal size. Once a task has successfully completed a few runs, Snowflake ignores this parameter setting. (Conflicts with warehouse)
	UserTaskManagedInitialWarehouseSize pulumi.StringPtrInput
	// Specifies the time limit on a single run of the task before it times out (in milliseconds).
	UserTaskTimeoutMs pulumi.IntPtrInput
	// The warehouse the task will use. Omit this parameter to use Snowflake-managed compute resources for runs of this task. (Conflicts with user*task*managed*initial*warehouse_size)
	Warehouse pulumi.StringPtrInput
	// Specifies a Boolean SQL expression; multiple conditions joined with AND/OR are supported.
	When pulumi.StringPtrInput
}

The set of arguments for constructing a Task resource.

func (TaskArgs) ElementType

func (TaskArgs) ElementType() reflect.Type

type TaskArray

type TaskArray []TaskInput

func (TaskArray) ElementType

func (TaskArray) ElementType() reflect.Type

func (TaskArray) ToTaskArrayOutput

func (i TaskArray) ToTaskArrayOutput() TaskArrayOutput

func (TaskArray) ToTaskArrayOutputWithContext

func (i TaskArray) ToTaskArrayOutputWithContext(ctx context.Context) TaskArrayOutput

type TaskArrayInput

type TaskArrayInput interface {
	pulumi.Input

	ToTaskArrayOutput() TaskArrayOutput
	ToTaskArrayOutputWithContext(context.Context) TaskArrayOutput
}

TaskArrayInput is an input type that accepts TaskArray and TaskArrayOutput values. You can construct a concrete instance of `TaskArrayInput` via:

TaskArray{ TaskArgs{...} }

type TaskArrayOutput

type TaskArrayOutput struct{ *pulumi.OutputState }

func (TaskArrayOutput) ElementType

func (TaskArrayOutput) ElementType() reflect.Type

func (TaskArrayOutput) Index

func (TaskArrayOutput) ToTaskArrayOutput

func (o TaskArrayOutput) ToTaskArrayOutput() TaskArrayOutput

func (TaskArrayOutput) ToTaskArrayOutputWithContext

func (o TaskArrayOutput) ToTaskArrayOutputWithContext(ctx context.Context) TaskArrayOutput

type TaskGrant added in v0.1.2

type TaskGrant struct {
	pulumi.CustomResourceState

	// The name of the database containing the current or future tasks on which to grant privileges.
	DatabaseName pulumi.StringOutput `pulumi:"databaseName"`
	// When this is set to true and a schema*name is provided, apply this grant on all future tasks in the given schema. When this is true and no schema*name is provided apply this grant on all future tasks in the given database. The task*name field must be unset in order to use on*future.
	OnFuture pulumi.BoolPtrOutput `pulumi:"onFuture"`
	// The privilege to grant on the current or future task.
	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 tasks on which to grant privileges.
	SchemaName pulumi.StringOutput `pulumi:"schemaName"`
	// The name of the task on which to grant privileges immediately (only valid if onFuture is false).
	TaskName pulumi.StringPtrOutput `pulumi:"taskName"`
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrOutput `pulumi:"withGrantOption"`
}

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-snowflake/sdk/go/snowflake"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := snowflake.NewTaskGrant(ctx, "grant", &snowflake.TaskGrantArgs{
			DatabaseName: pulumi.String("db"),
			OnFuture:     pulumi.Bool(false),
			Privilege:    pulumi.String("operate"),
			Roles: pulumi.StringArray{
				pulumi.String("role1"),
				pulumi.String("role2"),
			},
			SchemaName:      pulumi.String("schema"),
			TaskName:        pulumi.String("task"),
			WithGrantOption: pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

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

```sh

$ pulumi import snowflake:index/taskGrant:TaskGrant example 'dbName|schemaName|taskName|OPERATE|false'

```

func GetTaskGrant added in v0.1.2

func GetTaskGrant(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *TaskGrantState, opts ...pulumi.ResourceOption) (*TaskGrant, error)

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

func NewTaskGrant added in v0.1.2

func NewTaskGrant(ctx *pulumi.Context,
	name string, args *TaskGrantArgs, opts ...pulumi.ResourceOption) (*TaskGrant, error)

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

func (*TaskGrant) ElementType added in v0.1.2

func (*TaskGrant) ElementType() reflect.Type

func (*TaskGrant) ToTaskGrantOutput added in v0.1.2

func (i *TaskGrant) ToTaskGrantOutput() TaskGrantOutput

func (*TaskGrant) ToTaskGrantOutputWithContext added in v0.1.2

func (i *TaskGrant) ToTaskGrantOutputWithContext(ctx context.Context) TaskGrantOutput

type TaskGrantArgs added in v0.1.2

type TaskGrantArgs struct {
	// The name of the database containing the current or future tasks on which to grant privileges.
	DatabaseName pulumi.StringInput
	// When this is set to true and a schema*name is provided, apply this grant on all future tasks in the given schema. When this is true and no schema*name is provided apply this grant on all future tasks in the given database. The task*name field must be unset in order to use on*future.
	OnFuture pulumi.BoolPtrInput
	// The privilege to grant on the current or future task.
	Privilege pulumi.StringPtrInput
	// Grants privilege to these roles.
	Roles pulumi.StringArrayInput
	// The name of the schema containing the current or future tasks on which to grant privileges.
	SchemaName pulumi.StringInput
	// The name of the task on which to grant privileges immediately (only valid if onFuture is false).
	TaskName pulumi.StringPtrInput
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrInput
}

The set of arguments for constructing a TaskGrant resource.

func (TaskGrantArgs) ElementType added in v0.1.2

func (TaskGrantArgs) ElementType() reflect.Type

type TaskGrantArray added in v0.1.2

type TaskGrantArray []TaskGrantInput

func (TaskGrantArray) ElementType added in v0.1.2

func (TaskGrantArray) ElementType() reflect.Type

func (TaskGrantArray) ToTaskGrantArrayOutput added in v0.1.2

func (i TaskGrantArray) ToTaskGrantArrayOutput() TaskGrantArrayOutput

func (TaskGrantArray) ToTaskGrantArrayOutputWithContext added in v0.1.2

func (i TaskGrantArray) ToTaskGrantArrayOutputWithContext(ctx context.Context) TaskGrantArrayOutput

type TaskGrantArrayInput added in v0.1.2

type TaskGrantArrayInput interface {
	pulumi.Input

	ToTaskGrantArrayOutput() TaskGrantArrayOutput
	ToTaskGrantArrayOutputWithContext(context.Context) TaskGrantArrayOutput
}

TaskGrantArrayInput is an input type that accepts TaskGrantArray and TaskGrantArrayOutput values. You can construct a concrete instance of `TaskGrantArrayInput` via:

TaskGrantArray{ TaskGrantArgs{...} }

type TaskGrantArrayOutput added in v0.1.2

type TaskGrantArrayOutput struct{ *pulumi.OutputState }

func (TaskGrantArrayOutput) ElementType added in v0.1.2

func (TaskGrantArrayOutput) ElementType() reflect.Type

func (TaskGrantArrayOutput) Index added in v0.1.2

func (TaskGrantArrayOutput) ToTaskGrantArrayOutput added in v0.1.2

func (o TaskGrantArrayOutput) ToTaskGrantArrayOutput() TaskGrantArrayOutput

func (TaskGrantArrayOutput) ToTaskGrantArrayOutputWithContext added in v0.1.2

func (o TaskGrantArrayOutput) ToTaskGrantArrayOutputWithContext(ctx context.Context) TaskGrantArrayOutput

type TaskGrantInput added in v0.1.2

type TaskGrantInput interface {
	pulumi.Input

	ToTaskGrantOutput() TaskGrantOutput
	ToTaskGrantOutputWithContext(ctx context.Context) TaskGrantOutput
}

type TaskGrantMap added in v0.1.2

type TaskGrantMap map[string]TaskGrantInput

func (TaskGrantMap) ElementType added in v0.1.2

func (TaskGrantMap) ElementType() reflect.Type

func (TaskGrantMap) ToTaskGrantMapOutput added in v0.1.2

func (i TaskGrantMap) ToTaskGrantMapOutput() TaskGrantMapOutput

func (TaskGrantMap) ToTaskGrantMapOutputWithContext added in v0.1.2

func (i TaskGrantMap) ToTaskGrantMapOutputWithContext(ctx context.Context) TaskGrantMapOutput

type TaskGrantMapInput added in v0.1.2

type TaskGrantMapInput interface {
	pulumi.Input

	ToTaskGrantMapOutput() TaskGrantMapOutput
	ToTaskGrantMapOutputWithContext(context.Context) TaskGrantMapOutput
}

TaskGrantMapInput is an input type that accepts TaskGrantMap and TaskGrantMapOutput values. You can construct a concrete instance of `TaskGrantMapInput` via:

TaskGrantMap{ "key": TaskGrantArgs{...} }

type TaskGrantMapOutput added in v0.1.2

type TaskGrantMapOutput struct{ *pulumi.OutputState }

func (TaskGrantMapOutput) ElementType added in v0.1.2

func (TaskGrantMapOutput) ElementType() reflect.Type

func (TaskGrantMapOutput) MapIndex added in v0.1.2

func (TaskGrantMapOutput) ToTaskGrantMapOutput added in v0.1.2

func (o TaskGrantMapOutput) ToTaskGrantMapOutput() TaskGrantMapOutput

func (TaskGrantMapOutput) ToTaskGrantMapOutputWithContext added in v0.1.2

func (o TaskGrantMapOutput) ToTaskGrantMapOutputWithContext(ctx context.Context) TaskGrantMapOutput

type TaskGrantOutput added in v0.1.2

type TaskGrantOutput struct{ *pulumi.OutputState }

func (TaskGrantOutput) ElementType added in v0.1.2

func (TaskGrantOutput) ElementType() reflect.Type

func (TaskGrantOutput) ToTaskGrantOutput added in v0.1.2

func (o TaskGrantOutput) ToTaskGrantOutput() TaskGrantOutput

func (TaskGrantOutput) ToTaskGrantOutputWithContext added in v0.1.2

func (o TaskGrantOutput) ToTaskGrantOutputWithContext(ctx context.Context) TaskGrantOutput

type TaskGrantState added in v0.1.2

type TaskGrantState struct {
	// The name of the database containing the current or future tasks on which to grant privileges.
	DatabaseName pulumi.StringPtrInput
	// When this is set to true and a schema*name is provided, apply this grant on all future tasks in the given schema. When this is true and no schema*name is provided apply this grant on all future tasks in the given database. The task*name field must be unset in order to use on*future.
	OnFuture pulumi.BoolPtrInput
	// The privilege to grant on the current or future task.
	Privilege pulumi.StringPtrInput
	// Grants privilege to these roles.
	Roles pulumi.StringArrayInput
	// The name of the schema containing the current or future tasks on which to grant privileges.
	SchemaName pulumi.StringPtrInput
	// The name of the task on which to grant privileges immediately (only valid if onFuture is false).
	TaskName pulumi.StringPtrInput
	// When this is set to true, allows the recipient role to grant the privileges to other roles.
	WithGrantOption pulumi.BoolPtrInput
}

func (TaskGrantState) ElementType added in v0.1.2

func (TaskGrantState) ElementType() reflect.Type

type TaskInput

type TaskInput interface {
	pulumi.Input

	ToTaskOutput() TaskOutput
	ToTaskOutputWithContext(ctx context.Context) TaskOutput
}

type TaskMap

type TaskMap map[string]TaskInput

func (TaskMap) ElementType

func (TaskMap) ElementType() reflect.Type

func (TaskMap) ToTaskMapOutput

func (i TaskMap) ToTaskMapOutput() TaskMapOutput

func (TaskMap) ToTaskMapOutputWithContext

func (i TaskMap) ToTaskMapOutputWithContext(ctx context.Context) TaskMapOutput

type TaskMapInput

type TaskMapInput interface {
	pulumi.Input

	ToTaskMapOutput() TaskMapOutput
	ToTaskMapOutputWithContext(context.Context) TaskMapOutput
}

TaskMapInput is an input type that accepts TaskMap and TaskMapOutput values. You can construct a concrete instance of `TaskMapInput` via:

TaskMap{ "key": TaskArgs{...} }

type TaskMapOutput

type TaskMapOutput struct{ *pulumi.OutputState }

func (TaskMapOutput) ElementType

func (TaskMapOutput) ElementType() reflect.Type

func (TaskMapOutput) MapIndex

func (TaskMapOutput) ToTaskMapOutput

func (o TaskMapOutput) ToTaskMapOutput() TaskMapOutput

func (TaskMapOutput) ToTaskMapOutputWithContext

func (o TaskMapOutput) ToTaskMapOutputWithContext(ctx context.Context) TaskMapOutput

type TaskOutput

type TaskOutput struct{ *pulumi.OutputState }

func (TaskOutput) 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

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). (Conflict with schedule)
	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 name of the notification integration used for error notifications.
	ErrorIntegration pulumi.StringPtrInput
	// Specifies the identifier for the task; must be unique for the database and schema in which the task is created.
	Name pulumi.StringPtrInput
	// The schedule for periodically running the task. This can be a cron or interval in minutes. (Conflict with after)
	Schedule pulumi.StringPtrInput
	// The schema in which to create the task.
	Schema pulumi.StringPtrInput
	// Specifies session parameters to set for the session when the task runs. A task supports all session parameters.
	SessionParameters pulumi.StringMapInput
	// Any single SQL statement, or a call to a stored procedure, executed when the task runs.
	SqlStatement pulumi.StringPtrInput
	// Specifies the size of the compute resources to provision for the first run of the task, before a task history is available for Snowflake to determine an ideal size. Once a task has successfully completed a few runs, Snowflake ignores this parameter setting. (Conflicts with warehouse)
	UserTaskManagedInitialWarehouseSize pulumi.StringPtrInput
	// Specifies the time limit on a single run of the task before it times out (in milliseconds).
	UserTaskTimeoutMs pulumi.IntPtrInput
	// The warehouse the task will use. Omit this parameter to use Snowflake-managed compute resources for runs of this task. (Conflicts with user*task*managed*initial*warehouse_size)
	Warehouse pulumi.StringPtrInput
	// Specifies a Boolean SQL expression; multiple conditions joined with AND/OR are supported.
	When pulumi.StringPtrInput
}

func (TaskState) ElementType

func (TaskState) ElementType() reflect.Type

type User

type User struct {
	pulumi.CustomResourceState

	Comment pulumi.StringPtrOutput `pulumi:"comment"`
	// Specifies the namespace (database only or database and schema) that is active by default for the user’s session upon login.
	DefaultNamespace pulumi.StringPtrOutput `pulumi:"defaultNamespace"`
	// Specifies the role that is active by default for the user’s session upon login.
	DefaultRole pulumi.StringOutput `pulumi:"defaultRole"`
	// Specifies the virtual warehouse that is active by default for the user’s session upon login.
	DefaultWarehouse pulumi.StringPtrOutput `pulumi:"defaultWarehouse"`
	Disabled         pulumi.BoolOutput      `pulumi:"disabled"`
	// Name displayed for the user in the Snowflake web interface.
	DisplayName pulumi.StringOutput `pulumi:"displayName"`
	// Email address for the user.
	Email pulumi.StringPtrOutput `pulumi:"email"`
	// First name of the user.
	FirstName pulumi.StringPtrOutput `pulumi:"firstName"`
	// Will be true if user as an RSA key set.
	HasRsaPublicKey pulumi.BoolOutput `pulumi:"hasRsaPublicKey"`
	// Last name of the user.
	LastName pulumi.StringPtrOutput `pulumi:"lastName"`
	// The name users use to log in. If not supplied, snowflake will use name instead.
	LoginName pulumi.StringOutput `pulumi:"loginName"`
	// Specifies whether the user is forced to change their password on next login (including their first/initial login) into the system.
	MustChangePassword pulumi.BoolPtrOutput `pulumi:"mustChangePassword"`
	// Name of the user. Note that if you do not supply login*name this will be used as login*name. [doc](https://docs.snowflake.net/manuals/sql-reference/sql/create-user.html#required-parameters)
	Name pulumi.StringOutput `pulumi:"name"`
	// **WARNING:** this will put the password in the terraform state file. Use carefully.
	Password pulumi.StringPtrOutput `pulumi:"password"`
	// Specifies the user’s RSA public key; used for key-pair authentication. Must be on 1 line without header and trailer.
	RsaPublicKey pulumi.StringPtrOutput `pulumi:"rsaPublicKey"`
	// Specifies the user’s second RSA public key; used to rotate the public and private keys for key-pair authentication based on an expiration schedule set by your organization. Must be on 1 line without header and trailer.
	RsaPublicKey2 pulumi.StringPtrOutput `pulumi:"rsaPublicKey2"`
	// Definitions of a tag to associate with the resource.
	Tags UserTagArrayOutput `pulumi:"tags"`
}

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-snowflake/sdk/go/snowflake"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := snowflake.NewUser(ctx, "user", &snowflake.UserArgs{
			Comment:            pulumi.String("A user of snowflake."),
			DefaultRole:        pulumi.String("role1"),
			DefaultWarehouse:   pulumi.String("warehouse"),
			Disabled:           pulumi.Bool(false),
			DisplayName:        pulumi.String("Snowflake User"),
			Email:              pulumi.String("user@snowflake.example"),
			FirstName:          pulumi.String("Snowflake"),
			LastName:           pulumi.String("User"),
			LoginName:          pulumi.String("snowflake_user"),
			MustChangePassword: pulumi.Bool(false),
			Password:           pulumi.String("secret"),
			RsaPublicKey:       pulumi.String("..."),
			RsaPublicKey2:      pulumi.String("..."),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

```sh

$ pulumi import snowflake:index/user:User example userName

```

func GetUser

func GetUser(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *UserState, opts ...pulumi.ResourceOption) (*User, error)

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

func NewUser

func NewUser(ctx *pulumi.Context,
	name string, args *UserArgs, opts ...pulumi.ResourceOption) (*User, error)

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

func (*User) ElementType

func (*User) ElementType() reflect.Type

func (*User) ToUserOutput

func (i *User) ToUserOutput() UserOutput

func (*User) ToUserOutputWithContext

func (i *User) ToUserOutputWithContext(ctx context.Context) UserOutput

type UserArgs

type UserArgs struct {
	Comment pulumi.StringPtrInput
	// Specifies the namespace (database only or database and schema) that is active by default for the user’s session upon login.
	DefaultNamespace pulumi.StringPtrInput
	// Specifies the role that is active by default for the user’s session upon login.
	DefaultRole pulumi.StringPtrInput
	// Specifies the virtual warehouse that is active by default for the user’s session upon login.
	DefaultWarehouse pulumi.StringPtrInput
	Disabled         pulumi.BoolPtrInput
	// Name displayed for the user in the Snowflake web interface.
	DisplayName pulumi.StringPtrInput
	// Email address for the user.
	Email pulumi.StringPtrInput
	// First name of the user.
	FirstName pulumi.StringPtrInput
	// Last name of the user.
	LastName pulumi.StringPtrInput
	// The name users use to log in. If not supplied, snowflake will use name instead.
	LoginName pulumi.StringPtrInput
	// Specifies whether the user is forced to change their password on next login (including their first/initial login) into the system.
	MustChangePassword pulumi.BoolPtrInput
	// Name of the user. Note that if you do not supply login*name this will be used as login*name. [doc](https://docs.snowflake.net/manuals/sql-reference/sql/create-user.html#required-parameters)
	Name pulumi.StringPtrInput
	// **WARNING:** this will put the password in the terraform state file. Use carefully.
	Password pulumi.StringPtrInput
	// Specifies the user’s RSA public key; used for key-pair authentication. Must be on 1 line without header and trailer.
	RsaPublicKey pulumi.StringPtrInput
	// Specifies the user’s second RSA public key; used to rotate the public and private keys for key-pair authentication based on an expiration schedule set by your organization. Must be on 1 line without header and trailer.
	RsaPublicKey2 pulumi.StringPtrInput
	// Definitions of a tag to associate with the resource.
	Tags UserTagArrayInput
}

The set of arguments for constructing a User resource.

func (UserArgs) ElementType

func (UserArgs) ElementType() reflect.Type

type UserArray

type UserArray []UserInput

func (UserArray) ElementType

func (UserArray) ElementType() reflect.Type

func (UserArray) ToUserArrayOutput

func (i UserArray) ToUserArrayOutput() UserArrayOutput

func (UserArray) ToUserArrayOutputWithContext

func (i UserArray) ToUserArrayOutputWithContext(ctx context.Context) UserArrayOutput

type UserArrayInput

type UserArrayInput interface {
	pulumi.Input

	ToUserArrayOutput() UserArrayOutput
	ToUserArrayOutputWithContext(context.Context) UserArrayOutput
}

UserArrayInput is an input type that accepts UserArray and UserArrayOutput values. You can construct a concrete instance of `UserArrayInput` via:

UserArray{ UserArgs{...} }

type UserArrayOutput

type UserArrayOutput struct{ *pulumi.OutputState }

func (UserArrayOutput) ElementType

func (UserArrayOutput) ElementType() reflect.Type

func (UserArrayOutput) Index

func (UserArrayOutput) ToUserArrayOutput

func (o UserArrayOutput) ToUserArrayOutput() UserArrayOutput

func (UserArrayOutput) ToUserArrayOutputWithContext

func (o UserArrayOutput) ToUserArrayOutputWithContext(ctx context.Context) UserArrayOutput

type 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

type UserPublicKeys

type UserPublicKeys struct {
	pulumi.CustomResourceState

	// Name of the user.
	Name pulumi.StringOutput `pulumi:"name"`
	// Specifies the user’s RSA public key; used for key-pair authentication. Must be on 1 line without header and trailer.
	RsaPublicKey pulumi.StringPtrOutput `pulumi:"rsaPublicKey"`
	// Specifies the user’s second RSA public key; used to rotate the public and Public keys for key-pair authentication based on an expiration schedule set by your organization. Must be on 1 line without header and trailer.
	RsaPublicKey2 pulumi.StringPtrOutput `pulumi:"rsaPublicKey2"`
}

func GetUserPublicKeys

func GetUserPublicKeys(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *UserPublicKeysState, opts ...pulumi.ResourceOption) (*UserPublicKeys, error)

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

func NewUserPublicKeys

func NewUserPublicKeys(ctx *pulumi.Context,
	name string, args *UserPublicKeysArgs, opts ...pulumi.ResourceOption) (*UserPublicKeys, error)

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

func (*UserPublicKeys) ElementType

func (*UserPublicKeys) ElementType() reflect.Type

func (*UserPublicKeys) ToUserPublicKeysOutput

func (i *UserPublicKeys) ToUserPublicKeysOutput() UserPublicKeysOutput

func (*UserPublicKeys) ToUserPublicKeysOutputWithContext

func (i *UserPublicKeys) ToUserPublicKeysOutputWithContext(ctx context.Context) UserPublicKeysOutput

type UserPublicKeysArgs

type UserPublicKeysArgs struct {
	// Name of the user.
	Name pulumi.StringPtrInput
	// Specifies the user’s RSA public key; used for key-pair authentication. Must be on 1 line without header and trailer.
	RsaPublicKey pulumi.StringPtrInput
	// Specifies the user’s second RSA public key; used to rotate the public and Public keys for key-pair authentication based on an expiration schedule set by your organization. Must be on 1 line without header and trailer.
	RsaPublicKey2 pulumi.StringPtrInput
}

The set of arguments for constructing a UserPublicKeys resource.

func (UserPublicKeysArgs) ElementType

func (UserPublicKeysArgs) ElementType() reflect.Type

type UserPublicKeysArray

type UserPublicKeysArray []UserPublicKeysInput

func (UserPublicKeysArray) ElementType

func (UserPublicKeysArray) ElementType() reflect.Type

func (UserPublicKeysArray) ToUserPublicKeysArrayOutput

func (i UserPublicKeysArray) ToUserPublicKeysArrayOutput() UserPublicKeysArrayOutput

func (UserPublicKeysArray) ToUserPublicKeysArrayOutputWithContext

func (i UserPublicKeysArray) ToUserPublicKeysArrayOutputWithContext(ctx context.Context) UserPublicKeysArrayOutput

type UserPublicKeysArrayInput

type UserPublicKeysArrayInput interface {
	pulumi.Input

	ToUserPublicKeysArrayOutput() UserPublicKeysArrayOutput
	ToUserPublicKeysArrayOutputWithContext(context.Context) UserPublicKeysArrayOutput
}

UserPublicKeysArrayInput is an input type that accepts UserPublicKeysArray and UserPublicKeysArrayOutput values. You can construct a concrete instance of `UserPublicKeysArrayInput` via:

UserPublicKeysArray{ UserPublicKeysArgs{...} }

type UserPublicKeysArrayOutput

type UserPublicKeysArrayOutput struct{ *pulumi.OutputState }

func (UserPublicKeysArrayOutput) ElementType

func (UserPublicKeysArrayOutput) ElementType() reflect.Type

func (UserPublicKeysArrayOutput) Index

func (UserPublicKeysArrayOutput) ToUserPublicKeysArrayOutput

func (o UserPublicKeysArrayOutput) ToUserPublicKeysArrayOutput() UserPublicKeysArrayOutput

func (UserPublicKeysArrayOutput) ToUserPublicKeysArrayOutputWithContext

func (o UserPublicKeysArrayOutput) ToUserPublicKeysArrayOutputWithContext(ctx context.Context) UserPublicKeysArrayOutput

type UserPublicKeysInput

type UserPublicKeysInput interface {
	pulumi.Input

	ToUserPublicKeysOutput() UserPublicKeysOutput
	ToUserPublicKeysOutputWithContext(ctx context.Context) UserPublicKeysOutput
}

type UserPublicKeysMap

type UserPublicKeysMap map[string]UserPublicKeysInput

func (UserPublicKeysMap) ElementType

func (UserPublicKeysMap) ElementType() reflect.Type

func (UserPublicKeysMap) ToUserPublicKeysMapOutput

func (i UserPublicKeysMap) ToUserPublicKeysMapOutput() UserPublicKeysMapOutput

func (UserPublicKeysMap) ToUserPublicKeysMapOutputWithContext

func (i UserPublicKeysMap) ToUserPublicKeysMapOutputWithContext(ctx context.Context) UserPublicKeysMapOutput

type UserPublicKeysMapInput

type UserPublicKeysMapInput interface {
	pulumi.Input

	ToUserPublicKeysMapOutput() UserPublicKeysMapOutput
	ToUserPublicKeysMapOutputWithContext(context.Context) UserPublicKeysMapOutput
}

UserPublicKeysMapInput is an input type that accepts UserPublicKeysMap and UserPublicKeysMapOutput values. You can construct a concrete instance of `UserPublicKeysMapInput` via:

UserPublicKeysMap{ "key": UserPublicKeysArgs{...} }

type UserPublicKeysMapOutput

type UserPublicKeysMapOutput struct{ *pulumi.OutputState }

func (UserPublicKeysMapOutput) ElementType

func (UserPublicKeysMapOutput) ElementType() reflect.Type

func (UserPublicKeysMapOutput) MapIndex

func (UserPublicKeysMapOutput) ToUserPublicKeysMapOutput

func (o UserPublicKeysMapOutput) ToUserPublicKeysMapOutput() UserPublicKeysMapOutput

func (UserPublicKeysMapOutput) ToUserPublicKeysMapOutputWithContext

func (o UserPublicKeysMapOutput) ToUserPublicKeysMapOutputWithContext(ctx context.Context) UserPublicKeysMapOutput

type UserPublicKeysOutput

type UserPublicKeysOutput struct{ *pulumi.OutputState }

func (UserPublicKeysOutput) ElementType

func (UserPublicKeysOutput) ElementType() reflect.Type

func (UserPublicKeysOutput) ToUserPublicKeysOutput

func (o UserPublicKeysOutput) ToUserPublicKeysOutput() UserPublicKeysOutput

func (UserPublicKeysOutput) ToUserPublicKeysOutputWithContext

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

type UserPublicKeysState

type UserPublicKeysState struct {
	// Name of the user.
	Name pulumi.StringPtrInput
	// Specifies the user’s RSA public key; used for key-pair authentication. Must be on 1 line without header and trailer.
	RsaPublicKey pulumi.StringPtrInput
	// Specifies the user’s second RSA public key; used to rotate the public and Public keys for key-pair authentication based on an expiration schedule set by your organization. Must be on 1 line without header and trailer.
	RsaPublicKey2 pulumi.StringPtrInput
}

func (UserPublicKeysState) ElementType

func (UserPublicKeysState) ElementType() reflect.Type

type UserState

type UserState struct {
	Comment pulumi.StringPtrInput
	// Specifies the namespace (database only or database and schema) that is active by default for the user’s session upon login.
	DefaultNamespace pulumi.StringPtrInput
	// Specifies the role that is active by default for the user’s session upon login.
	DefaultRole pulumi.StringPtrInput
	// Specifies the virtual warehouse that is active by default for the user’s session upon login.
	DefaultWarehouse pulumi.StringPtrInput
	Disabled         pulumi.BoolPtrInput
	// Name displayed for the user in the Snowflake web interface.
	DisplayName pulumi.StringPtrInput
	// Email address for the user.
	Email pulumi.StringPtrInput
	// First name of the user.
	FirstName pulumi.StringPtrInput
	// Will be true if user as an RSA key set.
	HasRsaPublicKey pulumi.BoolPtrInput
	// Last name of the user.
	LastName pulumi.StringPtrInput
	// The name users use to log in. If not supplied, snowflake will use name instead.
	LoginName pulumi.StringPtrInput
	// Specifies whether the user is forced to change their password on next login (including their first/initial login) into the system.
	MustChangePassword pulumi.BoolPtrInput
	// Name of the user. Note that if you do not supply login*name this will be used as login*name. [doc](https://docs.snowflake.net/manuals/sql-reference/sql/create-user.html#required-parameters)
	Name pulumi.StringPtrInput
	// **WARNING:** this will put the password in the terraform state file. Use carefully.
	Password pulumi.StringPtrInput
	// Specifies the user’s RSA public key; used for key-pair authentication. Must be on 1 line without header and trailer.
	RsaPublicKey pulumi.StringPtrInput
	// Specifies the user’s second RSA public key; used to rotate the public and private keys for key-pair authentication based on an expiration schedule set by your organization. Must be on 1 line without header and trailer.
	RsaPublicKey2 pulumi.StringPtrInput
	// Definitions of a tag to associate with the resource.
	Tags UserTagArrayInput
}

func (UserState) ElementType

func (UserState) ElementType() reflect.Type

type UserTag added in v0.3.0

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

type UserTagArgs added in v0.3.0

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

func (UserTagArgs) ElementType added in v0.3.0

func (UserTagArgs) ElementType() reflect.Type

func (UserTagArgs) ToUserTagOutput added in v0.3.0

func (i UserTagArgs) ToUserTagOutput() UserTagOutput

func (UserTagArgs) ToUserTagOutputWithContext added in v0.3.0

func (i UserTagArgs) ToUserTagOutputWithContext(ctx context.Context) UserTagOutput

type UserTagArray added in v0.3.0

type UserTagArray []UserTagInput

func (UserTagArray) ElementType added in v0.3.0

func (UserTagArray) ElementType() reflect.Type

func (UserTagArray) ToUserTagArrayOutput added in v0.3.0

func (i UserTagArray) ToUserTagArrayOutput() UserTagArrayOutput

func (UserTagArray) ToUserTagArrayOutputWithContext added in v0.3.0

func (i UserTagArray) ToUserTagArrayOutputWithContext(ctx context.Context) UserTagArrayOutput

type UserTagArrayInput added in v0.3.0

type UserTagArrayInput interface {
	pulumi.Input

	ToUserTagArrayOutput() UserTagArrayOutput
	ToUserTagArrayOutputWithContext(context.Context) UserTagArrayOutput
}

UserTagArrayInput is an input type that accepts UserTagArray and UserTagArrayOutput values. You can construct a concrete instance of `UserTagArrayInput` via:

UserTagArray{ UserTagArgs{...} }

type UserTagArrayOutput added in v0.3.0

type UserTagArrayOutput struct{ *pulumi.OutputState }

func (UserTagArrayOutput) ElementType added in v0.3.0

func (UserTagArrayOutput) ElementType() reflect.Type

func (UserTagArrayOutput) Index added in v0.3.0

func (UserTagArrayOutput) ToUserTagArrayOutput added in v0.3.0

func (o UserTagArrayOutput) ToUserTagArrayOutput() UserTagArrayOutput

func (UserTagArrayOutput) ToUserTagArrayOutputWithContext added in v0.3.0

func (o UserTagArrayOutput) ToUserTagArrayOutputWithContext(ctx context.Context) UserTagArrayOutput

type UserTagInput added in v0.3.0

type UserTagInput interface {
	pulumi.Input

	ToUserTagOutput() UserTagOutput
	ToUserTagOutputWithContext(context.Context) UserTagOutput
}

UserTagInput is an input type that accepts UserTagArgs and UserTagOutput values. You can construct a concrete instance of `UserTagInput` via:

UserTagArgs{...}

type UserTagOutput added in v0.3.0

type UserTagOutput struct{ *pulumi.OutputState }

func (UserTagOutput) Database added in v0.3.0

func (o UserTagOutput) Database() pulumi.StringPtrOutput

Name of the database that the tag was created in.

func (UserTagOutput) ElementType added in v0.3.0

func (UserTagOutput) ElementType() reflect.Type

func (UserTagOutput) Name added in v0.3.0

Tag name, e.g. department.

func (UserTagOutput) Schema added in v0.3.0

Name of the schema that the tag was created in.

func (UserTagOutput) ToUserTagOutput added in v0.3.0

func (o UserTagOutput) ToUserTagOutput() UserTagOutput

func (UserTagOutput) ToUserTagOutputWithContext added in v0.3.0

func (o UserTagOutput) ToUserTagOutputWithContext(ctx context.Context) UserTagOutput

func (UserTagOutput) Value added in v0.3.0

func (o UserTagOutput) Value() pulumi.StringOutput

Tag value, e.g. marketing_info.

type View

type View struct {
	pulumi.CustomResourceState

	// Specifies a comment for the view.
	Comment pulumi.StringPtrOutput `pulumi:"comment"`
	// The database in which to create the view. Don't use the | character.
	Database pulumi.StringOutput `pulumi:"database"`
	// Specifies that the view is secure.
	IsSecure pulumi.BoolPtrOutput `pulumi:"isSecure"`
	// Specifies the identifier for the view; must be unique for the schema in which the view is created. Don't use the | character.
	Name pulumi.StringOutput `pulumi:"name"`
	// Overwrites the View if it exists.
	OrReplace pulumi.BoolPtrOutput `pulumi:"orReplace"`
	// The schema in which to create the view. Don't use the | character.
	Schema pulumi.StringOutput `pulumi:"schema"`
	// Specifies the query used to create the view.
	Statement pulumi.StringOutput `pulumi:"statement"`
	// Definitions of a tag to associate with the resource.
	Tags ViewTagArrayOutput `pulumi:"tags"`
}

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-snowflake/sdk/go/snowflake"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := snowflake.NewView(ctx, "view", &snowflake.ViewArgs{
			Database:  pulumi.String("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

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
	// Definitions of a tag to associate with the resource.
	Tags ViewTagArrayInput
}

The set of arguments for constructing a View resource.

func (ViewArgs) ElementType

func (ViewArgs) ElementType() reflect.Type

type ViewArray

type ViewArray []ViewInput

func (ViewArray) ElementType

func (ViewArray) ElementType() reflect.Type

func (ViewArray) ToViewArrayOutput

func (i ViewArray) ToViewArrayOutput() ViewArrayOutput

func (ViewArray) ToViewArrayOutputWithContext

func (i ViewArray) ToViewArrayOutputWithContext(ctx context.Context) ViewArrayOutput

type ViewArrayInput

type ViewArrayInput interface {
	pulumi.Input

	ToViewArrayOutput() ViewArrayOutput
	ToViewArrayOutputWithContext(context.Context) ViewArrayOutput
}

ViewArrayInput is an input type that accepts ViewArray and ViewArrayOutput values. You can construct a concrete instance of `ViewArrayInput` via:

ViewArray{ ViewArgs{...} }

type ViewArrayOutput

type ViewArrayOutput struct{ *pulumi.OutputState }

func (ViewArrayOutput) ElementType

func (ViewArrayOutput) ElementType() reflect.Type

func (ViewArrayOutput) Index

func (ViewArrayOutput) ToViewArrayOutput

func (o ViewArrayOutput) ToViewArrayOutput() ViewArrayOutput

func (ViewArrayOutput) ToViewArrayOutputWithContext

func (o ViewArrayOutput) ToViewArrayOutputWithContext(ctx context.Context) ViewArrayOutput

type ViewGrant

type ViewGrant struct {
	pulumi.CustomResourceState

	// The name of the database containing the current or future views on which to grant privileges.
	DatabaseName pulumi.StringOutput `pulumi:"databaseName"`
	// When this is set to true 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

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

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

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
	// Definitions of a tag to associate with the resource.
	Tags ViewTagArrayInput
}

func (ViewState) ElementType

func (ViewState) ElementType() reflect.Type

type ViewTag added in v0.3.0

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

type ViewTagArgs added in v0.3.0

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

func (ViewTagArgs) ElementType added in v0.3.0

func (ViewTagArgs) ElementType() reflect.Type

func (ViewTagArgs) ToViewTagOutput added in v0.3.0

func (i ViewTagArgs) ToViewTagOutput() ViewTagOutput

func (ViewTagArgs) ToViewTagOutputWithContext added in v0.3.0

func (i ViewTagArgs) ToViewTagOutputWithContext(ctx context.Context) ViewTagOutput

type ViewTagArray added in v0.3.0

type ViewTagArray []ViewTagInput

func (ViewTagArray) ElementType added in v0.3.0

func (ViewTagArray) ElementType() reflect.Type

func (ViewTagArray) ToViewTagArrayOutput added in v0.3.0

func (i ViewTagArray) ToViewTagArrayOutput() ViewTagArrayOutput

func (ViewTagArray) ToViewTagArrayOutputWithContext added in v0.3.0

func (i ViewTagArray) ToViewTagArrayOutputWithContext(ctx context.Context) ViewTagArrayOutput

type ViewTagArrayInput added in v0.3.0

type ViewTagArrayInput interface {
	pulumi.Input

	ToViewTagArrayOutput() ViewTagArrayOutput
	ToViewTagArrayOutputWithContext(context.Context) ViewTagArrayOutput
}

ViewTagArrayInput is an input type that accepts ViewTagArray and ViewTagArrayOutput values. You can construct a concrete instance of `ViewTagArrayInput` via:

ViewTagArray{ ViewTagArgs{...} }

type ViewTagArrayOutput added in v0.3.0

type ViewTagArrayOutput struct{ *pulumi.OutputState }

func (ViewTagArrayOutput) ElementType added in v0.3.0

func (ViewTagArrayOutput) ElementType() reflect.Type

func (ViewTagArrayOutput) Index added in v0.3.0

func (ViewTagArrayOutput) ToViewTagArrayOutput added in v0.3.0

func (o ViewTagArrayOutput) ToViewTagArrayOutput() ViewTagArrayOutput

func (ViewTagArrayOutput) ToViewTagArrayOutputWithContext added in v0.3.0

func (o ViewTagArrayOutput) ToViewTagArrayOutputWithContext(ctx context.Context) ViewTagArrayOutput

type ViewTagInput added in v0.3.0

type ViewTagInput interface {
	pulumi.Input

	ToViewTagOutput() ViewTagOutput
	ToViewTagOutputWithContext(context.Context) ViewTagOutput
}

ViewTagInput is an input type that accepts ViewTagArgs and ViewTagOutput values. You can construct a concrete instance of `ViewTagInput` via:

ViewTagArgs{...}

type ViewTagOutput added in v0.3.0

type ViewTagOutput struct{ *pulumi.OutputState }

func (ViewTagOutput) Database added in v0.3.0

func (o ViewTagOutput) Database() pulumi.StringPtrOutput

Name of the database that the tag was created in.

func (ViewTagOutput) ElementType added in v0.3.0

func (ViewTagOutput) ElementType() reflect.Type

func (ViewTagOutput) Name added in v0.3.0

Tag name, e.g. department.

func (ViewTagOutput) Schema added in v0.3.0

Name of the schema that the tag was created in.

func (ViewTagOutput) ToViewTagOutput added in v0.3.0

func (o ViewTagOutput) ToViewTagOutput() ViewTagOutput

func (ViewTagOutput) ToViewTagOutputWithContext added in v0.3.0

func (o ViewTagOutput) ToViewTagOutputWithContext(ctx context.Context) ViewTagOutput

func (ViewTagOutput) Value added in v0.3.0

func (o ViewTagOutput) Value() pulumi.StringOutput

Tag value, e.g. marketing_info.

type Warehouse

type Warehouse struct {
	pulumi.CustomResourceState

	// Specifies whether to automatically resume a warehouse when a SQL statement (e.g. query) is submitted to it.
	AutoResume pulumi.BoolOutput `pulumi:"autoResume"`
	// Specifies the number of seconds of inactivity after which a warehouse is automatically suspended.
	AutoSuspend pulumi.IntOutput       `pulumi:"autoSuspend"`
	Comment     pulumi.StringPtrOutput `pulumi:"comment"`
	// Specifies whether the warehouse is created initially in the ‘Suspended’ state.
	InitiallySuspended pulumi.BoolPtrOutput `pulumi:"initiallySuspended"`
	// Specifies the maximum number of server clusters for the warehouse.
	MaxClusterCount pulumi.IntOutput `pulumi:"maxClusterCount"`
	// Object parameter that specifies the concurrency level for SQL statements (i.e. queries and DML) executed by a warehouse.
	MaxConcurrencyLevel pulumi.IntPtrOutput `pulumi:"maxConcurrencyLevel"`
	// Specifies the minimum number of server clusters for the warehouse (only applies to multi-cluster warehouses).
	MinClusterCount pulumi.IntOutput `pulumi:"minClusterCount"`
	// Identifier for the virtual warehouse; must be unique for your account.
	Name pulumi.StringOutput `pulumi:"name"`
	// Specifies the 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"`
	// Definitions of a tag to associate with the resource.
	Tags WarehouseTagArrayOutput `pulumi:"tags"`
	// 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"`
	// Specifies the size of the virtual warehouse. Larger warehouse sizes 5X-Large and 6X-Large are currently in preview and only available on Amazon Web Services (AWS).
	WarehouseSize pulumi.StringOutput `pulumi:"warehouseSize"`
}

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-snowflake/sdk/go/snowflake"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := snowflake.NewWarehouse(ctx, "warehouse", &snowflake.WarehouseArgs{
			Comment:       pulumi.String("foo"),
			WarehouseSize: pulumi.String("small"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

```sh

$ pulumi import snowflake:index/warehouse:Warehouse example warehouseName

```

func GetWarehouse

func GetWarehouse(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *WarehouseState, opts ...pulumi.ResourceOption) (*Warehouse, error)

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

func NewWarehouse

func NewWarehouse(ctx *pulumi.Context,
	name string, args *WarehouseArgs, opts ...pulumi.ResourceOption) (*Warehouse, error)

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

func (*Warehouse) ElementType

func (*Warehouse) ElementType() reflect.Type

func (*Warehouse) ToWarehouseOutput

func (i *Warehouse) ToWarehouseOutput() WarehouseOutput

func (*Warehouse) ToWarehouseOutputWithContext

func (i *Warehouse) ToWarehouseOutputWithContext(ctx context.Context) WarehouseOutput

type WarehouseArgs

type WarehouseArgs struct {
	// Specifies whether to automatically resume a warehouse when a SQL statement (e.g. query) is submitted to it.
	AutoResume pulumi.BoolPtrInput
	// Specifies the number of seconds of inactivity after which a warehouse is automatically suspended.
	AutoSuspend pulumi.IntPtrInput
	Comment     pulumi.StringPtrInput
	// Specifies whether the warehouse is created initially in the ‘Suspended’ state.
	InitiallySuspended pulumi.BoolPtrInput
	// Specifies the maximum number of server clusters for the warehouse.
	MaxClusterCount pulumi.IntPtrInput
	// Object parameter that specifies the concurrency level for SQL statements (i.e. queries and DML) executed by a warehouse.
	MaxConcurrencyLevel pulumi.IntPtrInput
	// Specifies the minimum number of server clusters for the warehouse (only applies to multi-cluster warehouses).
	MinClusterCount pulumi.IntPtrInput
	// Identifier for the virtual warehouse; must be unique for your account.
	Name pulumi.StringPtrInput
	// Specifies the 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
	// Definitions of a tag to associate with the resource.
	Tags WarehouseTagArrayInput
	// Specifies whether the warehouse, after being resized, waits for all the servers to provision before executing any queued or new queries.
	WaitForProvisioning pulumi.BoolPtrInput
	// Specifies the size of the virtual warehouse. Larger warehouse sizes 5X-Large and 6X-Large are currently in preview and only available on Amazon Web Services (AWS).
	WarehouseSize pulumi.StringPtrInput
}

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

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

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

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
	// Identifier for the virtual warehouse; must be unique for your account.
	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
	// Definitions of a tag to associate with the resource.
	Tags WarehouseTagArrayInput
	// Specifies whether the warehouse, after being resized, waits for all the servers to provision before executing any queued or new queries.
	WaitForProvisioning pulumi.BoolPtrInput
	// Specifies the size of the virtual warehouse. Larger warehouse sizes 5X-Large and 6X-Large are currently in preview and only available on Amazon Web Services (AWS).
	WarehouseSize pulumi.StringPtrInput
}

func (WarehouseState) ElementType

func (WarehouseState) ElementType() reflect.Type

type WarehouseTag added in v0.3.0

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

type WarehouseTagArgs added in v0.3.0

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

func (WarehouseTagArgs) ElementType added in v0.3.0

func (WarehouseTagArgs) ElementType() reflect.Type

func (WarehouseTagArgs) ToWarehouseTagOutput added in v0.3.0

func (i WarehouseTagArgs) ToWarehouseTagOutput() WarehouseTagOutput

func (WarehouseTagArgs) ToWarehouseTagOutputWithContext added in v0.3.0

func (i WarehouseTagArgs) ToWarehouseTagOutputWithContext(ctx context.Context) WarehouseTagOutput

type WarehouseTagArray added in v0.3.0

type WarehouseTagArray []WarehouseTagInput

func (WarehouseTagArray) ElementType added in v0.3.0

func (WarehouseTagArray) ElementType() reflect.Type

func (WarehouseTagArray) ToWarehouseTagArrayOutput added in v0.3.0

func (i WarehouseTagArray) ToWarehouseTagArrayOutput() WarehouseTagArrayOutput

func (WarehouseTagArray) ToWarehouseTagArrayOutputWithContext added in v0.3.0

func (i WarehouseTagArray) ToWarehouseTagArrayOutputWithContext(ctx context.Context) WarehouseTagArrayOutput

type WarehouseTagArrayInput added in v0.3.0

type WarehouseTagArrayInput interface {
	pulumi.Input

	ToWarehouseTagArrayOutput() WarehouseTagArrayOutput
	ToWarehouseTagArrayOutputWithContext(context.Context) WarehouseTagArrayOutput
}

WarehouseTagArrayInput is an input type that accepts WarehouseTagArray and WarehouseTagArrayOutput values. You can construct a concrete instance of `WarehouseTagArrayInput` via:

WarehouseTagArray{ WarehouseTagArgs{...} }

type WarehouseTagArrayOutput added in v0.3.0

type WarehouseTagArrayOutput struct{ *pulumi.OutputState }

func (WarehouseTagArrayOutput) ElementType added in v0.3.0

func (WarehouseTagArrayOutput) ElementType() reflect.Type

func (WarehouseTagArrayOutput) Index added in v0.3.0

func (WarehouseTagArrayOutput) ToWarehouseTagArrayOutput added in v0.3.0

func (o WarehouseTagArrayOutput) ToWarehouseTagArrayOutput() WarehouseTagArrayOutput

func (WarehouseTagArrayOutput) ToWarehouseTagArrayOutputWithContext added in v0.3.0

func (o WarehouseTagArrayOutput) ToWarehouseTagArrayOutputWithContext(ctx context.Context) WarehouseTagArrayOutput

type WarehouseTagInput added in v0.3.0

type WarehouseTagInput interface {
	pulumi.Input

	ToWarehouseTagOutput() WarehouseTagOutput
	ToWarehouseTagOutputWithContext(context.Context) WarehouseTagOutput
}

WarehouseTagInput is an input type that accepts WarehouseTagArgs and WarehouseTagOutput values. You can construct a concrete instance of `WarehouseTagInput` via:

WarehouseTagArgs{...}

type WarehouseTagOutput added in v0.3.0

type WarehouseTagOutput struct{ *pulumi.OutputState }

func (WarehouseTagOutput) Database added in v0.3.0

Name of the database that the tag was created in.

func (WarehouseTagOutput) ElementType added in v0.3.0

func (WarehouseTagOutput) ElementType() reflect.Type

func (WarehouseTagOutput) Name added in v0.3.0

Tag name, e.g. department.

func (WarehouseTagOutput) Schema added in v0.3.0

Name of the schema that the tag was created in.

func (WarehouseTagOutput) ToWarehouseTagOutput added in v0.3.0

func (o WarehouseTagOutput) ToWarehouseTagOutput() WarehouseTagOutput

func (WarehouseTagOutput) ToWarehouseTagOutputWithContext added in v0.3.0

func (o WarehouseTagOutput) ToWarehouseTagOutputWithContext(ctx context.Context) WarehouseTagOutput

func (WarehouseTagOutput) Value added in v0.3.0

Tag value, e.g. marketing_info.

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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