resources

package
v0.87.3-pre Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: MIT Imports: 28 Imported by: 1

Documentation

Index

Constants

View Source
const (
	SnowflakeReaderAccountType = "READER"
)

Variables

This section is empty.

Functions

func ADiffB added in v0.69.0

func ADiffB(setA []interface{}, setB []interface{}) []string

ADiffB takes all the elements of A that are not also present in B, A-B in set notation

func APIIntegration added in v0.34.0

func APIIntegration() *schema.Resource

APIIntegration returns a pointer to the resource representing an api integration.

func Account added in v0.56.0

func Account() *schema.Resource

func AccountParameter added in v0.54.0

func AccountParameter() *schema.Resource

func AccountPasswordPolicyAttachment added in v0.67.0

func AccountPasswordPolicyAttachment() *schema.Resource

AccountPasswordPolicyAttachment returns a pointer to the resource representing an api integration.

func Alert added in v0.62.0

func Alert() *schema.Resource

Alert returns a pointer to the resource representing an alert.

func CreateAPIIntegration added in v0.34.0

func CreateAPIIntegration(d *schema.ResourceData, meta interface{}) error

CreateAPIIntegration implements schema.CreateFunc.

func CreateAccount added in v0.56.0

func CreateAccount(d *schema.ResourceData, meta interface{}) error

CreateAccount implements schema.CreateFunc.

func CreateAccountGrant added in v0.34.0

func CreateAccountGrant(d *schema.ResourceData, meta interface{}) error

CreateAccountGrant implements schema.CreateFunc.

func CreateAccountParameter added in v0.54.0

func CreateAccountParameter(d *schema.ResourceData, meta interface{}) error

CreateAccountParameter implements schema.CreateFunc.

func CreateAccountPasswordPolicyAttachment added in v0.67.0

func CreateAccountPasswordPolicyAttachment(d *schema.ResourceData, meta interface{}) error

CreateAccountPasswordPolicyAttachment implements schema.CreateFunc.

func CreateAccountRole added in v0.85.0

func CreateAccountRole(ctx context.Context, d *schema.ResourceData, meta any) diag.Diagnostics

func CreateAlert added in v0.62.0

func CreateAlert(d *schema.ResourceData, meta interface{}) error

CreateAlert implements schema.CreateFunc.

func CreateContextExternalFunction added in v0.86.0

func CreateContextExternalFunction(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics

func CreateContextFunction added in v0.86.0

func CreateContextFunction(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics

func CreateContextProcedure added in v0.86.0

func CreateContextProcedure(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics

func CreateContextTag added in v0.87.1

func CreateContextTag(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics

func CreateContextTagAssociation added in v0.87.1

func CreateContextTagAssociation(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics

func CreateContextTagMaskingPolicyAssociation added in v0.87.1

func CreateContextTagMaskingPolicyAssociation(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics

func CreateDatabase

func CreateDatabase(d *schema.ResourceData, meta interface{}) error

CreateDatabase implements schema.CreateFunc.

func CreateDatabaseGrant added in v0.34.0

func CreateDatabaseGrant(d *schema.ResourceData, meta interface{}) error

CreateDatabaseGrant implements schema.CreateFunc.

func CreateDatabaseRole added in v0.62.0

func CreateDatabaseRole(d *schema.ResourceData, meta interface{}) error

CreateDatabaseRole implements schema.CreateFunc.

func CreateDynamicTable added in v0.74.0

func CreateDynamicTable(d *schema.ResourceData, meta interface{}) error

CreateDynamicTable implements schema.CreateFunc.

func CreateEmailNotificationIntegration added in v0.64.0

func CreateEmailNotificationIntegration(d *schema.ResourceData, meta interface{}) error

CreateEmailNotificationIntegration implements schema.CreateFunc.

func CreateExternalOauthIntegration added in v0.34.0

func CreateExternalOauthIntegration(d *schema.ResourceData, meta interface{}) error

CreateExternalOauthIntegration implements schema.CreateFunc.

func CreateExternalTable added in v0.34.0

func CreateExternalTable(d *schema.ResourceData, meta any) error

CreateExternalTable implements schema.CreateFunc.

func CreateExternalTableGrant added in v0.34.0

func CreateExternalTableGrant(d *schema.ResourceData, meta interface{}) error

CreateExternalTableGrant implements schema.CreateFunc.

func CreateFailoverGroup added in v0.49.0

func CreateFailoverGroup(d *schema.ResourceData, meta interface{}) error

CreateFailoverGroup implements schema.CreateFunc.

func CreateFailoverGroupGrant added in v0.65.0

func CreateFailoverGroupGrant(d *schema.ResourceData, meta interface{}) error

CreateFailoverGroupGrant implements schema.CreateFunc.

func CreateFileFormat added in v0.34.0

func CreateFileFormat(d *schema.ResourceData, meta interface{}) error

CreateFileFormat implements schema.CreateFunc.

func CreateFileFormatGrant added in v0.34.0

func CreateFileFormatGrant(d *schema.ResourceData, meta interface{}) error

CreateFileFormatGrant implements schema.CreateFunc.

func CreateFunctionGrant added in v0.34.0

func CreateFunctionGrant(d *schema.ResourceData, meta interface{}) error

CreateFunctionGrant implements schema.CreateFunc.

func CreateGrantAccountRole added in v0.84.0

func CreateGrantAccountRole(d *schema.ResourceData, meta interface{}) error

CreateGrantAccountRole implements schema.CreateFunc.

func CreateGrantDatabaseRole added in v0.84.0

func CreateGrantDatabaseRole(d *schema.ResourceData, meta interface{}) error

CreateGrantDatabaseRole implements schema.CreateFunc.

func CreateGrantOwnership added in v0.88.0

func CreateGrantOwnership(ctx context.Context, d *schema.ResourceData, meta any) diag.Diagnostics

func CreateGrantPrivilegesToAccountRole added in v0.85.0

func CreateGrantPrivilegesToAccountRole(ctx context.Context, d *schema.ResourceData, meta any) diag.Diagnostics

func CreateGrantPrivilegesToDatabaseRole added in v0.83.0

func CreateGrantPrivilegesToDatabaseRole(ctx context.Context, d *schema.ResourceData, meta any) diag.Diagnostics

func CreateGrantPrivilegesToRole added in v0.68.0

func CreateGrantPrivilegesToRole(d *schema.ResourceData, meta interface{}) error

func CreateGrantPrivilegesToShare added in v0.85.0

func CreateGrantPrivilegesToShare(ctx context.Context, d *schema.ResourceData, meta any) diag.Diagnostics

func CreateIntegrationGrant added in v0.34.0

func CreateIntegrationGrant(d *schema.ResourceData, meta interface{}) error

CreateIntegrationGrant implements schema.CreateFunc.

func CreateManagedAccount added in v0.34.0

func CreateManagedAccount(d *schema.ResourceData, meta interface{}) error

CreateManagedAccount implements schema.CreateFunc.

func CreateMaskingPolicy added in v0.34.0

func CreateMaskingPolicy(d *schema.ResourceData, meta interface{}) error

CreateMaskingPolicy implements schema.CreateFunc.

func CreateMaskingPolicyGrant added in v0.34.0

func CreateMaskingPolicyGrant(d *schema.ResourceData, meta interface{}) error

CreateMaskingPolicyGrant implements schema.CreateFunc.

func CreateMaterializedView added in v0.34.0

func CreateMaterializedView(d *schema.ResourceData, meta interface{}) error

CreateMaterializedView implements schema.CreateFunc.

func CreateMaterializedViewGrant added in v0.34.0

func CreateMaterializedViewGrant(d *schema.ResourceData, meta interface{}) error

CreateMaterializedViewGrant implements schema.CreateFunc.

func CreateNetworkPolicy added in v0.34.0

func CreateNetworkPolicy(d *schema.ResourceData, meta interface{}) error

CreateNetworkPolicy implements schema.CreateFunc.

func CreateNetworkPolicyAttachment added in v0.34.0

func CreateNetworkPolicyAttachment(d *schema.ResourceData, meta interface{}) error

CreateNetworkPolicyAttachment implements schema.CreateFunc.

func CreateNotificationIntegration added in v0.34.0

func CreateNotificationIntegration(d *schema.ResourceData, meta interface{}) error

CreateNotificationIntegration implements schema.CreateFunc.

func CreateOAuthIntegration added in v0.34.0

func CreateOAuthIntegration(d *schema.ResourceData, meta interface{}) error

CreateOAuthIntegration implements schema.CreateFunc.

func CreateObjectParameter added in v0.54.0

func CreateObjectParameter(d *schema.ResourceData, meta interface{}) error

CreateObjectParameter implements schema.CreateFunc.

func CreatePasswordPolicy added in v0.62.0

func CreatePasswordPolicy(d *schema.ResourceData, meta interface{}) error

CreatePasswordPolicy implements schema.CreateFunc.

func CreatePipe added in v0.34.0

func CreatePipe(d *schema.ResourceData, meta interface{}) error

CreatePipe implements schema.CreateFunc.

func CreatePipeGrant added in v0.34.0

func CreatePipeGrant(d *schema.ResourceData, meta interface{}) error

CreatePipeGrant implements schema.CreateFunc.

func CreateProcedureGrant added in v0.34.0

func CreateProcedureGrant(d *schema.ResourceData, meta interface{}) error

CreateProcedureGrant implements schema.CreateFunc.

func CreateResourceMonitor added in v0.34.0

func CreateResourceMonitor(d *schema.ResourceData, meta interface{}) error

CreateResourceMonitor implements schema.CreateFunc.

func CreateResourceMonitorGrant added in v0.34.0

func CreateResourceMonitorGrant(d *schema.ResourceData, meta interface{}) error

CreateResourceMonitorGrant implements schema.CreateFunc.

func CreateRoleGrants

func CreateRoleGrants(d *schema.ResourceData, meta interface{}) error

func CreateRoleOwnershipGrant added in v0.34.0

func CreateRoleOwnershipGrant(d *schema.ResourceData, meta interface{}) error

func CreateRowAccessPolicy added in v0.34.0

func CreateRowAccessPolicy(d *schema.ResourceData, meta interface{}) error

CreateRowAccessPolicy implements schema.CreateFunc.

func CreateRowAccessPolicyGrant added in v0.34.0

func CreateRowAccessPolicyGrant(d *schema.ResourceData, meta interface{}) error

CreateRowAccessPolicyGrant implements schema.CreateFunc.

func CreateSAMLIntegration added in v0.34.0

func CreateSAMLIntegration(d *schema.ResourceData, meta interface{}) error

CreateSAMLIntegration implements schema.CreateFunc.

func CreateSCIMIntegration added in v0.34.0

func CreateSCIMIntegration(d *schema.ResourceData, meta interface{}) error

CreateSCIMIntegration implements schema.CreateFunc.

func CreateSchema added in v0.34.0

func CreateSchema(d *schema.ResourceData, meta interface{}) error

CreateSchema implements schema.CreateFunc.

func CreateSchemaGrant added in v0.34.0

func CreateSchemaGrant(d *schema.ResourceData, meta interface{}) error

CreateSchemaGrant implements schema.CreateFunc.

func CreateSequence added in v0.34.0

func CreateSequence(d *schema.ResourceData, meta interface{}) error

func CreateSequenceGrant added in v0.34.0

func CreateSequenceGrant(d *schema.ResourceData, meta interface{}) error

CreateSequenceGrant implements schema.CreateFunc.

func CreateSessionParameter added in v0.54.0

func CreateSessionParameter(d *schema.ResourceData, meta interface{}) error

CreateSessionParameter implements schema.CreateFunc.

func CreateShare added in v0.34.0

func CreateShare(d *schema.ResourceData, meta interface{}) error

CreateShare implements schema.CreateFunc.

func CreateStage added in v0.34.0

func CreateStage(ctx context.Context, d *schema.ResourceData, meta any) diag.Diagnostics

func CreateStageGrant added in v0.34.0

func CreateStageGrant(d *schema.ResourceData, meta interface{}) error

CreateStageGrant implements schema.CreateFunc.

func CreateStorageIntegration added in v0.34.0

func CreateStorageIntegration(d *schema.ResourceData, meta any) error

func CreateStream added in v0.34.0

func CreateStream(d *schema.ResourceData, meta interface{}) error

CreateStream implements schema.CreateFunc.

func CreateStreamGrant added in v0.34.0

func CreateStreamGrant(d *schema.ResourceData, meta interface{}) error

CreateStreamGrant implements schema.CreateFunc.

func CreateTable added in v0.34.0

func CreateTable(d *schema.ResourceData, meta interface{}) error

CreateTable implements schema.CreateFunc.

func CreateTableColumnMaskingPolicyApplication added in v0.63.0

func CreateTableColumnMaskingPolicyApplication(d *schema.ResourceData, meta interface{}) error

CreateTableColumnMaskingPolicyApplication implements schema.CreateFunc.

func CreateTableConstraint added in v0.47.0

func CreateTableConstraint(d *schema.ResourceData, meta interface{}) error

CreateTableConstraint implements schema.CreateFunc.

func CreateTableGrant added in v0.34.0

func CreateTableGrant(d *schema.ResourceData, meta interface{}) error

CreateTableGrant implements schema.CreateFunc.

func CreateTagGrant added in v0.41.0

func CreateTagGrant(d *schema.ResourceData, meta interface{}) error

CreateTagGrant implements schema.CreateFunc.

func CreateTask added in v0.34.0

func CreateTask(d *schema.ResourceData, meta interface{}) error

CreateTask implements schema.CreateFunc.

func CreateTaskGrant added in v0.34.0

func CreateTaskGrant(d *schema.ResourceData, meta interface{}) error

CreateTaskGrant implements schema.CreateFunc.

func CreateUnsafeExecute added in v0.77.0

func CreateUnsafeExecute(d *schema.ResourceData, meta interface{}) error

func CreateUser

func CreateUser(d *schema.ResourceData, meta interface{}) error

func CreateUserGrant added in v0.44.0

func CreateUserGrant(d *schema.ResourceData, meta interface{}) error

CreateUserGrant implements schema.CreateFunc.

func CreateUserOwnershipGrant added in v0.34.0

func CreateUserOwnershipGrant(d *schema.ResourceData, meta interface{}) error

func CreateUserPasswordPolicyAttachment added in v0.86.0

func CreateUserPasswordPolicyAttachment(d *schema.ResourceData, meta any) error

func CreateUserPublicKeys added in v0.34.0

func CreateUserPublicKeys(d *schema.ResourceData, meta interface{}) error

func CreateView added in v0.34.0

func CreateView(d *schema.ResourceData, meta interface{}) error

CreateView implements schema.CreateFunc.

func CreateViewGrant added in v0.34.0

func CreateViewGrant(d *schema.ResourceData, meta interface{}) error

CreateViewGrant implements schema.CreateFunc.

func CreateWarehouse

func CreateWarehouse(d *schema.ResourceData, meta interface{}) error

CreateWarehouse implements schema.CreateFunc.

func CreateWarehouseGrant added in v0.34.0

func CreateWarehouseGrant(d *schema.ResourceData, meta interface{}) error

CreateWarehouseGrant implements schema.CreateFunc.

func Database

func Database() *schema.Resource

Database returns a pointer to the resource representing a database.

func DatabaseRole added in v0.62.0

func DatabaseRole() *schema.Resource

DatabaseRole returns a pointer to the resource representing a database role.

func DeleteAPIIntegration added in v0.34.0

func DeleteAPIIntegration(d *schema.ResourceData, meta interface{}) error

DeleteAPIIntegration implements schema.DeleteFunc.

func DeleteAccount added in v0.56.0

func DeleteAccount(d *schema.ResourceData, meta interface{}) error

DeleteAccount implements schema.DeleteFunc.

func DeleteAccountGrant added in v0.34.0

func DeleteAccountGrant(d *schema.ResourceData, meta interface{}) error

DeleteAccountGrant implements schema.DeleteFunc.

func DeleteAccountParameter added in v0.54.0

func DeleteAccountParameter(d *schema.ResourceData, meta interface{}) error

DeleteAccountParameter implements schema.DeleteFunc.

func DeleteAccountPasswordPolicyAttachment added in v0.67.0

func DeleteAccountPasswordPolicyAttachment(d *schema.ResourceData, meta interface{}) error

DeleteAccountPasswordPolicyAttachment implements schema.DeleteFunc.

func DeleteAccountRole added in v0.85.0

func DeleteAccountRole(ctx context.Context, d *schema.ResourceData, meta any) diag.Diagnostics

func DeleteAlert added in v0.62.0

func DeleteAlert(d *schema.ResourceData, meta interface{}) error

DeleteAlert implements schema.DeleteFunc.

func DeleteContextExternalFunction added in v0.86.0

func DeleteContextExternalFunction(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics

func DeleteContextFunction added in v0.86.0

func DeleteContextFunction(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics

func DeleteContextProcedure added in v0.86.0

func DeleteContextProcedure(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics

func DeleteContextTag added in v0.87.1

func DeleteContextTag(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics

func DeleteContextTagAssociation added in v0.87.1

func DeleteContextTagAssociation(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics

func DeleteContextTagMaskingPolicyAssociation added in v0.87.1

func DeleteContextTagMaskingPolicyAssociation(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics

func DeleteDatabase

func DeleteDatabase(d *schema.ResourceData, meta interface{}) error

func DeleteDatabaseGrant added in v0.34.0

func DeleteDatabaseGrant(d *schema.ResourceData, meta interface{}) error

DeleteDatabaseGrant implements schema.DeleteFunc.

func DeleteDatabaseRole added in v0.62.0

func DeleteDatabaseRole(d *schema.ResourceData, meta interface{}) error

DeleteDatabaseRole implements schema.DeleteFunc.

func DeleteDynamicTable added in v0.74.0

func DeleteDynamicTable(d *schema.ResourceData, meta interface{}) error

DeleteDynamicTable implements schema.DeleteFunc.

func DeleteEmailNotificationIntegration added in v0.64.0

func DeleteEmailNotificationIntegration(d *schema.ResourceData, meta interface{}) error

DeleteEmailNotificationIntegration implements schema.DeleteFunc.

func DeleteExternalOauthIntegration added in v0.34.0

func DeleteExternalOauthIntegration(d *schema.ResourceData, meta interface{}) error

DeleteExternalOauthIntegration implements schema.DeleteFunc.

func DeleteExternalTable added in v0.34.0

func DeleteExternalTable(d *schema.ResourceData, meta any) error

DeleteExternalTable implements schema.DeleteFunc.

func DeleteExternalTableGrant added in v0.34.0

func DeleteExternalTableGrant(d *schema.ResourceData, meta interface{}) error

DeleteExternalTableGrant implements schema.DeleteFunc.

func DeleteFailoverGroup added in v0.49.0

func DeleteFailoverGroup(d *schema.ResourceData, meta interface{}) error

DeleteFailoverGroup implements schema.DeleteFunc.

func DeleteFailoverGroupGrant added in v0.65.0

func DeleteFailoverGroupGrant(d *schema.ResourceData, meta interface{}) error

DeleteFailoverGroupGrant implements schema.DeleteFunc.

func DeleteFileFormat added in v0.34.0

func DeleteFileFormat(d *schema.ResourceData, meta interface{}) error

DeleteFileFormat implements schema.DeleteFunc.

func DeleteFileFormatGrant added in v0.34.0

func DeleteFileFormatGrant(d *schema.ResourceData, meta interface{}) error

DeleteFileFormatGrant implements schema.DeleteFunc.

func DeleteFunctionGrant added in v0.34.0

func DeleteFunctionGrant(d *schema.ResourceData, meta interface{}) error

DeleteFunctionGrant implements schema.DeleteFunc.

func DeleteGrantAccountRole added in v0.84.0

func DeleteGrantAccountRole(d *schema.ResourceData, meta interface{}) error

func DeleteGrantDatabaseRole added in v0.84.0

func DeleteGrantDatabaseRole(d *schema.ResourceData, meta interface{}) error

DeleteGrantDatabaseRole implements schema.DeleteFunc.

func DeleteGrantOwnership added in v0.88.0

func DeleteGrantOwnership(ctx context.Context, d *schema.ResourceData, meta any) diag.Diagnostics

func DeleteGrantPrivilegesToAccountRole added in v0.85.0

func DeleteGrantPrivilegesToAccountRole(ctx context.Context, d *schema.ResourceData, meta any) diag.Diagnostics

func DeleteGrantPrivilegesToDatabaseRole added in v0.83.0

func DeleteGrantPrivilegesToDatabaseRole(ctx context.Context, d *schema.ResourceData, meta any) diag.Diagnostics

func DeleteGrantPrivilegesToRole added in v0.68.0

func DeleteGrantPrivilegesToRole(d *schema.ResourceData, meta interface{}) error

func DeleteGrantPrivilegesToShare added in v0.85.0

func DeleteGrantPrivilegesToShare(ctx context.Context, d *schema.ResourceData, meta any) diag.Diagnostics

func DeleteIntegrationGrant added in v0.34.0

func DeleteIntegrationGrant(d *schema.ResourceData, meta interface{}) error

DeleteIntegrationGrant implements schema.DeleteFunc.

func DeleteManagedAccount added in v0.34.0

func DeleteManagedAccount(d *schema.ResourceData, meta interface{}) error

DeleteManagedAccount implements schema.DeleteFunc.

func DeleteMaskingPolicy added in v0.34.0

func DeleteMaskingPolicy(d *schema.ResourceData, meta interface{}) error

DeleteMaskingPolicy implements schema.DeleteFunc.

func DeleteMaskingPolicyGrant added in v0.34.0

func DeleteMaskingPolicyGrant(d *schema.ResourceData, meta interface{}) error

DeleteMaskingPolicyGrant implements schema.DeleteFunc.

func DeleteMaterializedView added in v0.34.0

func DeleteMaterializedView(d *schema.ResourceData, meta interface{}) error

DeleteMaterializedView implements schema.DeleteFunc.

func DeleteMaterializedViewGrant added in v0.34.0

func DeleteMaterializedViewGrant(d *schema.ResourceData, meta interface{}) error

DeleteMaterializedViewGrant implements schema.DeleteFunc.

func DeleteNetworkPolicy added in v0.34.0

func DeleteNetworkPolicy(d *schema.ResourceData, meta interface{}) error

DeleteNetworkPolicy implements schema.DeleteFunc.

func DeleteNetworkPolicyAttachment added in v0.34.0

func DeleteNetworkPolicyAttachment(d *schema.ResourceData, meta interface{}) error

DeleteNetworkPolicyAttachment implements schema.DeleteFunc.

func DeleteNotificationIntegration added in v0.34.0

func DeleteNotificationIntegration(d *schema.ResourceData, meta interface{}) error

DeleteNotificationIntegration implements schema.DeleteFunc.

func DeleteOAuthIntegration added in v0.34.0

func DeleteOAuthIntegration(d *schema.ResourceData, meta interface{}) error

DeleteOAuthIntegration implements schema.DeleteFunc.

func DeleteObjectParameter added in v0.54.0

func DeleteObjectParameter(d *schema.ResourceData, meta interface{}) error

DeleteObjectParameter implements schema.DeleteFunc.

func DeletePasswordPolicy added in v0.62.0

func DeletePasswordPolicy(d *schema.ResourceData, meta interface{}) error

DeletePasswordPolicy implements schema.DeleteFunc.

func DeletePipe added in v0.34.0

func DeletePipe(d *schema.ResourceData, meta interface{}) error

DeletePipe implements schema.DeleteFunc.

func DeletePipeGrant added in v0.34.0

func DeletePipeGrant(d *schema.ResourceData, meta interface{}) error

DeletePipeGrant implements schema.DeleteFunc.

func DeleteProcedureGrant added in v0.34.0

func DeleteProcedureGrant(d *schema.ResourceData, meta interface{}) error

DeleteProcedureGrant implements schema.DeleteFunc.

func DeleteResource added in v0.3.0

func DeleteResource(t string, builder func(string) *snowflake.Builder) func(*schema.ResourceData, interface{}) error

func DeleteResourceMonitor added in v0.34.0

func DeleteResourceMonitor(d *schema.ResourceData, meta interface{}) error

DeleteResourceMonitor implements schema.DeleteFunc.

func DeleteResourceMonitorGrant added in v0.34.0

func DeleteResourceMonitorGrant(d *schema.ResourceData, meta interface{}) error

DeleteResourceMonitorGrant implements schema.DeleteFunc.

func DeleteRoleGrants

func DeleteRoleGrants(d *schema.ResourceData, meta interface{}) error

func DeleteRoleOwnershipGrant added in v0.34.0

func DeleteRoleOwnershipGrant(d *schema.ResourceData, meta interface{}) error

func DeleteRowAccessPolicy added in v0.34.0

func DeleteRowAccessPolicy(d *schema.ResourceData, meta interface{}) error

DeleteRowAccessPolicy implements schema.DeleteFunc.

func DeleteRowAccessPolicyGrant added in v0.34.0

func DeleteRowAccessPolicyGrant(d *schema.ResourceData, meta interface{}) error

DeleteRowAccessPolicyGrant implements schema.DeleteFunc.

func DeleteSAMLIntegration added in v0.34.0

func DeleteSAMLIntegration(d *schema.ResourceData, meta interface{}) error

DeleteSAMLIntegration implements schema.DeleteFunc.

func DeleteSCIMIntegration added in v0.34.0

func DeleteSCIMIntegration(d *schema.ResourceData, meta interface{}) error

DeleteSCIMIntegration implements schema.DeleteFunc.

func DeleteSchema added in v0.34.0

func DeleteSchema(d *schema.ResourceData, meta interface{}) error

DeleteSchema implements schema.DeleteFunc.

func DeleteSchemaGrant added in v0.34.0

func DeleteSchemaGrant(d *schema.ResourceData, meta interface{}) error

DeleteSchemaGrant implements schema.DeleteFunc.

func DeleteSequence added in v0.34.0

func DeleteSequence(d *schema.ResourceData, meta interface{}) error

func DeleteSequenceGrant added in v0.34.0

func DeleteSequenceGrant(d *schema.ResourceData, meta interface{}) error

DeleteSequenceGrant implements schema.DeleteFunc.

func DeleteSessionParameter added in v0.54.0

func DeleteSessionParameter(d *schema.ResourceData, meta interface{}) error

DeleteSessionParameter implements schema.DeleteFunc.

func DeleteShare added in v0.34.0

func DeleteShare(d *schema.ResourceData, meta interface{}) error

DeleteShare implements schema.DeleteFunc.

func DeleteStage added in v0.34.0

func DeleteStage(ctx context.Context, d *schema.ResourceData, meta any) diag.Diagnostics

func DeleteStageGrant added in v0.34.0

func DeleteStageGrant(d *schema.ResourceData, meta interface{}) error

DeleteStageGrant implements schema.DeleteFunc.

func DeleteStorageIntegration added in v0.34.0

func DeleteStorageIntegration(d *schema.ResourceData, meta any) error

func DeleteStream added in v0.34.0

func DeleteStream(d *schema.ResourceData, meta interface{}) error

DeleteStream implements schema.DeleteFunc.

func DeleteStreamGrant added in v0.34.0

func DeleteStreamGrant(d *schema.ResourceData, meta interface{}) error

DeleteStreamGrant implements schema.DeleteFunc.

func DeleteTable added in v0.34.0

func DeleteTable(d *schema.ResourceData, meta interface{}) error

DeleteTable implements schema.DeleteFunc.

func DeleteTableColumnMaskingPolicyApplication added in v0.63.0

func DeleteTableColumnMaskingPolicyApplication(d *schema.ResourceData, meta interface{}) error

DeleteTableColumnMaskingPolicyApplication implements schema.DeleteFunc.

func DeleteTableConstraint added in v0.47.0

func DeleteTableConstraint(d *schema.ResourceData, meta interface{}) error

DeleteTableConstraint implements schema.DeleteFunc.

func DeleteTableGrant added in v0.34.0

func DeleteTableGrant(d *schema.ResourceData, meta interface{}) error

DeleteTableGrant implements schema.DeleteFunc.

func DeleteTagGrant added in v0.41.0

func DeleteTagGrant(d *schema.ResourceData, meta interface{}) error

DeleteTagGrant implements schema.DeleteFunc.

func DeleteTask added in v0.34.0

func DeleteTask(d *schema.ResourceData, meta interface{}) error

DeleteTask implements schema.DeleteFunc.

func DeleteTaskGrant added in v0.34.0

func DeleteTaskGrant(d *schema.ResourceData, meta interface{}) error

DeleteTaskGrant implements schema.DeleteFunc.

func DeleteUnsafeExecute added in v0.77.0

func DeleteUnsafeExecute(d *schema.ResourceData, meta interface{}) error

func DeleteUser

func DeleteUser(d *schema.ResourceData, meta interface{}) error

func DeleteUserGrant added in v0.44.0

func DeleteUserGrant(d *schema.ResourceData, meta interface{}) error

DeleteUserGrant implements schema.DeleteFunc.

func DeleteUserOwnershipGrant added in v0.34.0

func DeleteUserOwnershipGrant(d *schema.ResourceData, meta interface{}) error

func DeleteUserPasswordPolicyAttachment added in v0.86.0

func DeleteUserPasswordPolicyAttachment(d *schema.ResourceData, meta any) error

func DeleteUserPublicKeys added in v0.34.0

func DeleteUserPublicKeys(d *schema.ResourceData, meta interface{}) error

func DeleteView added in v0.34.0

func DeleteView(d *schema.ResourceData, meta interface{}) error

DeleteView implements schema.DeleteFunc.

func DeleteViewGrant added in v0.34.0

func DeleteViewGrant(d *schema.ResourceData, meta interface{}) error

DeleteViewGrant implements schema.DeleteFunc.

func DeleteWarehouse

func DeleteWarehouse(d *schema.ResourceData, meta interface{}) error

DeleteWarehouse implements schema.DeleteFunc.

func DeleteWarehouseGrant added in v0.34.0

func DeleteWarehouseGrant(d *schema.ResourceData, meta interface{}) error

DeleteWarehouseGrant implements schema.DeleteFunc.

func DiffSuppressStatement added in v0.34.0

func DiffSuppressStatement(_, old, new string, _ *schema.ResourceData) bool

DiffSuppressStatement will suppress diffs between statements if they differ in only case or in runs of whitespace (\s+ = \s). This is needed because the snowflake api does not faithfully round-trip queries, so we cannot do a simple character-wise comparison to detect changes.

Warnings: We will have false positives in cases where a change in case or run of whitespace is semantically significant.

If we can find a sql parser that can handle the snowflake dialect then we should switch to parsing queries and either comparing ASTs or emitting a canonical serialization for comparison. I couldn't find such a library.

func DynamicTable added in v0.74.0

func DynamicTable() *schema.Resource

DynamicTable returns a pointer to the resource representing a dynamic table.

func EmailNotificationIntegration added in v0.64.0

func EmailNotificationIntegration() *schema.Resource

EmailNotificationIntegration returns a pointer to the resource representing a notification integration.

func ExternalFunction added in v0.34.0

func ExternalFunction() *schema.Resource

ExternalFunction returns a pointer to the resource representing an external function.

func ExternalOauthIntegration added in v0.34.0

func ExternalOauthIntegration() *schema.Resource

ExternalOauthIntegration returns a pointer to the resource representing a network policy.

func ExternalOauthIntegrationID added in v0.62.0

func ExternalOauthIntegrationID(eoi *snowflake.ExternalOauthIntegration3) string

func ExternalOauthIntegrationIdentifier added in v0.62.0

func ExternalOauthIntegrationIdentifier(id string) *snowflake.TopLevelIdentifier

func ExternalTable added in v0.34.0

func ExternalTable() *schema.Resource

func FailoverGroup added in v0.49.0

func FailoverGroup() *schema.Resource

FailoverGroup returns a pointer to the resource representing a failover group.

func FileFormat added in v0.34.0

func FileFormat() *schema.Resource

FileFormat returns a pointer to the resource representing a file format.

func Function added in v0.34.0

func Function() *schema.Resource

Function returns a pointer to the resource representing a stored function.

func GetPropertyAsPointer added in v0.74.0

func GetPropertyAsPointer[T any](d *schema.ResourceData, property string) *T

func GetTagsDiff added in v0.80.0

func GetTagsDiff(d *schema.ResourceData, key string) (unsetTags []sdk.ObjectIdentifier, setTags []sdk.TagAssociation)

func GrantAccountRole added in v0.84.0

func GrantAccountRole() *schema.Resource

func GrantDatabaseRole added in v0.84.0

func GrantDatabaseRole() *schema.Resource

func GrantOwnership added in v0.88.0

func GrantOwnership() *schema.Resource

func GrantPrivilegesToAccountRole added in v0.85.0

func GrantPrivilegesToAccountRole() *schema.Resource

func GrantPrivilegesToDatabaseRole added in v0.83.0

func GrantPrivilegesToDatabaseRole() *schema.Resource

func GrantPrivilegesToRole added in v0.68.0

func GrantPrivilegesToRole() *schema.Resource

func GrantPrivilegesToShare added in v0.85.0

func GrantPrivilegesToShare() *schema.Resource

func ImportGrantOwnership added in v0.88.0

func ImportGrantOwnership() schema.StateContextFunc

func ImportGrantPrivilegesToAccountRole added in v0.85.0

func ImportGrantPrivilegesToAccountRole() func(ctx context.Context, d *schema.ResourceData, m interface{}) ([]*schema.ResourceData, error)

func ImportGrantPrivilegesToDatabaseRole added in v0.83.0

func ImportGrantPrivilegesToDatabaseRole(ctx context.Context, d *schema.ResourceData, meta any) ([]*schema.ResourceData, error)

func ImportGrantPrivilegesToShare added in v0.85.0

func ImportGrantPrivilegesToShare() func(ctx context.Context, d *schema.ResourceData, m interface{}) ([]*schema.ResourceData, error)

func IsDataType added in v0.80.0

func IsDataType() schema.SchemaValidateFunc

func IsValidIdentifier added in v0.81.0

IsValidIdentifier is a validator that can be used for validating identifiers passed in resources and data sources.

Typically, we expect passed identifiers to be a variation of sdk.ObjectIdentifier. For now, we're expecting implementations of sdk.ObjectIdentifier, because we won't support sdk.ExternalObjectIdentifiers. The reason behind it is that the functions that parse identifiers are not able to differentiate between sdk.ExternalObjectIdentifiers and sdk.DatabaseObjectIdentifier or sdk.SchemaObjectIdentifier. That's because sdk.ExternalObjectIdentifiers has varying parts count (2 or 3).

To use this function, pass it as a validation function on identifier field with generic parameter set to the desired sdk.ObjectIdentifier implementation.

func ManagedAccount added in v0.34.0

func ManagedAccount() *schema.Resource

ManagedAccount returns a pointer to the resource representing a managed account.

func MaskingPolicy added in v0.34.0

func MaskingPolicy() *schema.Resource

MaskingPolicy returns a pointer to the resource representing a masking policy.

func MaterializedView added in v0.34.0

func MaterializedView() *schema.Resource

MaterializedView returns a pointer to the resource representing a view.

func NetworkPolicy added in v0.34.0

func NetworkPolicy() *schema.Resource

NetworkPolicy returns a pointer to the resource representing a network policy.

func NetworkPolicyAttachment added in v0.34.0

func NetworkPolicyAttachment() *schema.Resource

NetworkPolicyAttachment returns a pointer to the resource representing a network policy attachment.

func NotificationIntegration added in v0.34.0

func NotificationIntegration() *schema.Resource

NotificationIntegration returns a pointer to the resource representing a notification integration.

func OAuthIntegration added in v0.34.0

func OAuthIntegration() *schema.Resource

OAuthIntegration returns a pointer to the resource representing an OAuth integration.

func ObjectParameter added in v0.54.0

func ObjectParameter() *schema.Resource

func PasswordPolicy added in v0.62.0

func PasswordPolicy() *schema.Resource

func Pipe added in v0.34.0

func Pipe() *schema.Resource

func Procedure added in v0.34.0

func Procedure() *schema.Resource

Procedure returns a pointer to the resource representing a stored procedure.

func ReadAPIIntegration added in v0.34.0

func ReadAPIIntegration(d *schema.ResourceData, meta interface{}) error

ReadAPIIntegration implements schema.ReadFunc.

func ReadAccount added in v0.56.0

func ReadAccount(d *schema.ResourceData, meta interface{}) error

ReadAccount implements schema.ReadFunc.

func ReadAccountGrant added in v0.34.0

func ReadAccountGrant(d *schema.ResourceData, meta interface{}) error

ReadAccountGrant implements schema.ReadFunc.

func ReadAccountParameter added in v0.54.0

func ReadAccountParameter(d *schema.ResourceData, meta interface{}) error

ReadAccountParameter implements schema.ReadFunc.

func ReadAccountPasswordPolicyAttachment added in v0.67.0

func ReadAccountPasswordPolicyAttachment(d *schema.ResourceData, meta interface{}) error

func ReadAccountRole added in v0.85.0

func ReadAccountRole(ctx context.Context, d *schema.ResourceData, meta any) diag.Diagnostics

func ReadAlert added in v0.62.0

func ReadAlert(d *schema.ResourceData, meta interface{}) error

ReadAlert implements schema.ReadFunc.

func ReadContextExternalFunction added in v0.86.0

func ReadContextExternalFunction(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics

func ReadContextFunction added in v0.86.0

func ReadContextFunction(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics

func ReadContextProcedure added in v0.86.0

func ReadContextProcedure(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics

func ReadContextTag added in v0.87.1

func ReadContextTag(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics

func ReadContextTagAssociation added in v0.87.1

func ReadContextTagAssociation(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics

func ReadContextTagMaskingPolicyAssociation added in v0.87.1

func ReadContextTagMaskingPolicyAssociation(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics

func ReadDatabase

func ReadDatabase(d *schema.ResourceData, meta interface{}) error

func ReadDatabaseGrant added in v0.34.0

func ReadDatabaseGrant(d *schema.ResourceData, meta interface{}) error

ReadDatabaseGrant implements schema.ReadFunc.

func ReadDatabaseRole added in v0.62.0

func ReadDatabaseRole(d *schema.ResourceData, meta interface{}) error

ReadDatabaseRole implements schema.ReadFunc.

func ReadDynamicTable added in v0.74.0

func ReadDynamicTable(d *schema.ResourceData, meta interface{}) error

ReadDynamicTable implements schema.ReadFunc.

func ReadEmailNotificationIntegration added in v0.64.0

func ReadEmailNotificationIntegration(d *schema.ResourceData, meta interface{}) error

ReadEmailNotificationIntegration implements schema.ReadFunc.

func ReadExternalOauthIntegration added in v0.34.0

func ReadExternalOauthIntegration(d *schema.ResourceData, meta interface{}) error

ReadExternalOauthIntegration implements schema.ReadFunc.

func ReadExternalTable added in v0.34.0

func ReadExternalTable(d *schema.ResourceData, meta any) error

ReadExternalTable implements schema.ReadFunc.

func ReadExternalTableGrant added in v0.34.0

func ReadExternalTableGrant(d *schema.ResourceData, meta interface{}) error

ReadExternalTableGrant implements schema.ReadFunc.

func ReadFailoverGroup added in v0.49.0

func ReadFailoverGroup(d *schema.ResourceData, meta interface{}) error

ReadFailoverGroup implements schema.ReadFunc.

func ReadFailoverGroupGrant added in v0.65.0

func ReadFailoverGroupGrant(d *schema.ResourceData, meta interface{}) error

ReadFailoverGroupGrant implements schema.ReadFunc.

func ReadFileFormat added in v0.34.0

func ReadFileFormat(d *schema.ResourceData, meta interface{}) error

ReadFileFormat implements schema.ReadFunc.

func ReadFileFormatGrant added in v0.34.0

func ReadFileFormatGrant(d *schema.ResourceData, meta interface{}) error

ReadFileFormatGrant implements schema.ReadFunc.

func ReadFunctionGrant added in v0.34.0

func ReadFunctionGrant(d *schema.ResourceData, meta interface{}) error

ReadFunctionGrant implements schema.ReadFunc.

func ReadGrantAccountRole added in v0.84.0

func ReadGrantAccountRole(d *schema.ResourceData, meta interface{}) error

func ReadGrantDatabaseRole added in v0.84.0

func ReadGrantDatabaseRole(d *schema.ResourceData, meta interface{}) error

ReadGrantDatabaseRole implements schema.ReadFunc.

func ReadGrantOwnership added in v0.88.0

func ReadGrantOwnership(ctx context.Context, d *schema.ResourceData, meta any) diag.Diagnostics

func ReadGrantPrivilegesToAccountRole added in v0.85.0

func ReadGrantPrivilegesToAccountRole(ctx context.Context, d *schema.ResourceData, meta any) diag.Diagnostics

func ReadGrantPrivilegesToDatabaseRole added in v0.83.0

func ReadGrantPrivilegesToDatabaseRole(ctx context.Context, d *schema.ResourceData, meta any) diag.Diagnostics

func ReadGrantPrivilegesToRole added in v0.68.0

func ReadGrantPrivilegesToRole(d *schema.ResourceData, meta interface{}) error

func ReadGrantPrivilegesToShare added in v0.85.0

func ReadGrantPrivilegesToShare(ctx context.Context, d *schema.ResourceData, meta any) diag.Diagnostics

func ReadIntegrationGrant added in v0.34.0

func ReadIntegrationGrant(d *schema.ResourceData, meta interface{}) error

ReadIntegrationGrant implements schema.ReadFunc.

func ReadManagedAccount added in v0.34.0

func ReadManagedAccount(d *schema.ResourceData, meta interface{}) error

ReadManagedAccount implements schema.ReadFunc.

func ReadMaskingPolicy added in v0.34.0

func ReadMaskingPolicy(d *schema.ResourceData, meta interface{}) error

ReadMaskingPolicy implements schema.ReadFunc.

func ReadMaskingPolicyGrant added in v0.34.0

func ReadMaskingPolicyGrant(d *schema.ResourceData, meta interface{}) error

ReadMaskingPolicyGrant implements schema.ReadFunc.

func ReadMaterializedView added in v0.34.0

func ReadMaterializedView(d *schema.ResourceData, meta interface{}) error

ReadMaterializedView implements schema.ReadFunc.

func ReadMaterializedViewGrant added in v0.34.0

func ReadMaterializedViewGrant(d *schema.ResourceData, meta interface{}) error

ReadMaterializedViewGrant implements schema.ReadFunc.

func ReadNetworkPolicy added in v0.34.0

func ReadNetworkPolicy(d *schema.ResourceData, meta interface{}) error

ReadNetworkPolicy implements schema.ReadFunc.

func ReadNetworkPolicyAttachment added in v0.34.0

func ReadNetworkPolicyAttachment(d *schema.ResourceData, meta interface{}) error

ReadNetworkPolicyAttachment implements schema.ReadFunc.

func ReadNotificationIntegration added in v0.34.0

func ReadNotificationIntegration(d *schema.ResourceData, meta interface{}) error

ReadNotificationIntegration implements schema.ReadFunc.

func ReadOAuthIntegration added in v0.34.0

func ReadOAuthIntegration(d *schema.ResourceData, meta interface{}) error

ReadOAuthIntegration implements schema.ReadFunc.

func ReadObjectParameter added in v0.54.0

func ReadObjectParameter(d *schema.ResourceData, meta interface{}) error

ReadObjectParameter implements schema.ReadFunc.

func ReadPasswordPolicy added in v0.62.0

func ReadPasswordPolicy(d *schema.ResourceData, meta interface{}) error

ReadPasswordPolicy implements schema.ReadFunc.

func ReadPipe added in v0.34.0

func ReadPipe(d *schema.ResourceData, meta interface{}) error

ReadPipe implements schema.ReadFunc.

func ReadPipeGrant added in v0.34.0

func ReadPipeGrant(d *schema.ResourceData, meta interface{}) error

ReadPipeGrant implements schema.ReadFunc.

func ReadProcedureGrant added in v0.34.0

func ReadProcedureGrant(d *schema.ResourceData, meta interface{}) error

ReadProcedureGrant implements schema.ReadFunc.

func ReadResourceMonitor added in v0.34.0

func ReadResourceMonitor(d *schema.ResourceData, meta interface{}) error

ReadResourceMonitor implements schema.ReadFunc.

func ReadResourceMonitorGrant added in v0.34.0

func ReadResourceMonitorGrant(d *schema.ResourceData, meta interface{}) error

ReadResourceMonitorGrant implements schema.ReadFunc.

func ReadRoleGrants

func ReadRoleGrants(d *schema.ResourceData, meta interface{}) error

func ReadRoleOwnershipGrant added in v0.34.0

func ReadRoleOwnershipGrant(d *schema.ResourceData, meta interface{}) error

func ReadRowAccessPolicy added in v0.34.0

func ReadRowAccessPolicy(d *schema.ResourceData, meta interface{}) error

ReadRowAccessPolicy implements schema.ReadFunc.

func ReadRowAccessPolicyGrant added in v0.34.0

func ReadRowAccessPolicyGrant(d *schema.ResourceData, meta interface{}) error

ReadRowAccessPolicyGrant implements schema.ReadFunc.

func ReadSAMLIntegration added in v0.34.0

func ReadSAMLIntegration(d *schema.ResourceData, meta interface{}) error

ReadSAMLIntegration implements schema.ReadFunc.

func ReadSCIMIntegration added in v0.34.0

func ReadSCIMIntegration(d *schema.ResourceData, meta interface{}) error

ReadSCIMIntegration implements schema.ReadFunc.

func ReadSchema added in v0.34.0

func ReadSchema(d *schema.ResourceData, meta interface{}) error

ReadSchema implements schema.ReadFunc.

func ReadSchemaGrant added in v0.34.0

func ReadSchemaGrant(d *schema.ResourceData, meta interface{}) error

ReadSchemaGrant implements schema.ReadFunc.

func ReadSequence added in v0.34.0

func ReadSequence(d *schema.ResourceData, meta interface{}) error

func ReadSequenceGrant added in v0.34.0

func ReadSequenceGrant(d *schema.ResourceData, meta interface{}) error

ReadSequenceGrant implements schema.ReadFunc.

func ReadSessionParameter added in v0.54.0

func ReadSessionParameter(d *schema.ResourceData, meta interface{}) error

ReadSessionParameter implements schema.ReadFunc.

func ReadShare added in v0.34.0

func ReadShare(d *schema.ResourceData, meta interface{}) error

ReadShare implements schema.ReadFunc.

func ReadStage added in v0.34.0

func ReadStage(ctx context.Context, d *schema.ResourceData, meta any) diag.Diagnostics

func ReadStageGrant added in v0.34.0

func ReadStageGrant(d *schema.ResourceData, meta interface{}) error

ReadStageGrant implements schema.ReadFunc.

func ReadStorageIntegration added in v0.34.0

func ReadStorageIntegration(d *schema.ResourceData, meta any) error

func ReadStream added in v0.34.0

func ReadStream(d *schema.ResourceData, meta interface{}) error

ReadStream implements schema.ReadFunc.

func ReadStreamGrant added in v0.34.0

func ReadStreamGrant(d *schema.ResourceData, meta interface{}) error

ReadStreamGrant implements schema.ReadFunc.

func ReadTable added in v0.34.0

func ReadTable(d *schema.ResourceData, meta interface{}) error

ReadTable implements schema.ReadFunc.

func ReadTableColumnMaskingPolicyApplication added in v0.63.0

func ReadTableColumnMaskingPolicyApplication(d *schema.ResourceData, meta interface{}) error

ReadTableColumnMaskingPolicyApplication implements schema.ReadFunc.

func ReadTableConstraint added in v0.47.0

func ReadTableConstraint(_ *schema.ResourceData, _ interface{}) error

ReadTableConstraint implements schema.ReadFunc.

func ReadTableGrant added in v0.34.0

func ReadTableGrant(d *schema.ResourceData, meta interface{}) error

ReadTableGrant implements schema.ReadFunc.

func ReadTagGrant added in v0.41.0

func ReadTagGrant(d *schema.ResourceData, meta interface{}) error

ReadTagGrant implements schema.ReadFunc.

func ReadTask added in v0.34.0

func ReadTask(d *schema.ResourceData, meta interface{}) error

ReadTask implements schema.ReadFunc.

func ReadTaskGrant added in v0.34.0

func ReadTaskGrant(d *schema.ResourceData, meta interface{}) error

ReadTaskGrant implements schema.ReadFunc.

func ReadUnsafeExecute added in v0.77.0

func ReadUnsafeExecute(d *schema.ResourceData, meta interface{}) error

func ReadUser

func ReadUser(d *schema.ResourceData, meta interface{}) error

func ReadUserGrant added in v0.44.0

func ReadUserGrant(d *schema.ResourceData, meta interface{}) error

ReadUserGrant implements schema.ReadFunc.

func ReadUserOwnershipGrant added in v0.34.0

func ReadUserOwnershipGrant(d *schema.ResourceData, meta interface{}) error

func ReadUserPasswordPolicyAttachment added in v0.86.0

func ReadUserPasswordPolicyAttachment(d *schema.ResourceData, meta any) error

func ReadUserPublicKeys added in v0.34.0

func ReadUserPublicKeys(d *schema.ResourceData, meta interface{}) error

func ReadView added in v0.34.0

func ReadView(d *schema.ResourceData, meta interface{}) error

ReadView implements schema.ReadFunc.

func ReadViewGrant added in v0.34.0

func ReadViewGrant(d *schema.ResourceData, meta interface{}) error

ReadViewGrant implements schema.ReadFunc.

func ReadWarehouse

func ReadWarehouse(d *schema.ResourceData, meta interface{}) error

ReadWarehouse implements schema.ReadFunc.

func ReadWarehouseGrant added in v0.34.0

func ReadWarehouseGrant(d *schema.ResourceData, meta interface{}) error

ReadWarehouseGrant implements schema.ReadFunc.

func ResourceMonitor added in v0.34.0

func ResourceMonitor() *schema.Resource

ResourceMonitor returns a pointer to the resource representing a resource monitor.

func Role

func Role() *schema.Resource

func RoleGrants

func RoleGrants() *schema.Resource

func RoleOwnershipGrant added in v0.34.0

func RoleOwnershipGrant() *schema.Resource

func RowAccessPolicy added in v0.34.0

func RowAccessPolicy() *schema.Resource

RowAccessPolicy returns a pointer to the resource representing a row access policy.

func SAMLIntegration added in v0.34.0

func SAMLIntegration() *schema.Resource

SAMLIntegration returns a pointer to the resource representing a SAML2 security integration.

func SCIMIntegration added in v0.34.0

func SCIMIntegration() *schema.Resource

SCIMIntegration returns a pointer to the resource representing a network policy.

func Schema added in v0.34.0

func Schema() *schema.Resource

Schema returns a pointer to the resource representing a schema.

func Sequence added in v0.34.0

func Sequence() *schema.Resource

func SessionParameter added in v0.54.0

func SessionParameter() *schema.Resource

func Share added in v0.34.0

func Share() *schema.Resource

Share returns a pointer to the resource representing a share.

func Stage added in v0.34.0

func Stage() *schema.Resource

TODO (SNOW-1019005): Remove snowflake package that is used in Create and Update operations

func StorageIntegration added in v0.34.0

func StorageIntegration() *schema.Resource

StorageIntegration returns a pointer to the resource representing a storage integration.

func Stream added in v0.34.0

func Stream() *schema.Resource

func StringInSlice added in v0.83.0

func StringInSlice(valid []string, ignoreCase bool) schema.SchemaValidateDiagFunc

StringInSlice has the same implementation as validation.StringInSlice, but adapted to schema.SchemaValidateDiagFunc

func Table added in v0.34.0

func Table() *schema.Resource

func TableColumnMaskingPolicyApplication added in v0.63.0

func TableColumnMaskingPolicyApplication() *schema.Resource

func TableColumnMaskingPolicyApplicationID added in v0.63.0

func TableColumnMaskingPolicyApplicationID(mpa *snowflake.TableColumnMaskingPolicyApplication) string

func TableColumnMaskingPolicyApplicationIdentifier added in v0.63.0

func TableColumnMaskingPolicyApplicationIdentifier(id string) (table *snowflake.SchemaObjectIdentifier, column string)

func TableConstraint added in v0.47.0

func TableConstraint() *schema.Resource

func Tag added in v0.34.0

func Tag() *schema.Resource

Schema returns a pointer to the resource representing a schema.

func TagAssociation added in v0.42.0

func TagAssociation() *schema.Resource

TagAssociation returns a pointer to the resource representing a schema.

func TagIdentifierAndObjectIdentifier added in v0.87.1

func TagIdentifierAndObjectIdentifier(d *schema.ResourceData) (sdk.SchemaObjectIdentifier, []sdk.ObjectIdentifier, sdk.ObjectType)

func TagMaskingPolicyAssociation added in v0.43.0

func TagMaskingPolicyAssociation() *schema.Resource

Schema returns a pointer to the resource representing a schema.

func Task added in v0.34.0

func Task() *schema.Resource

Task returns a pointer to the resource representing a task.

func UnsafeExecute added in v0.77.0

func UnsafeExecute() *schema.Resource

func UpdateAPIIntegration added in v0.34.0

func UpdateAPIIntegration(d *schema.ResourceData, meta interface{}) error

UpdateAPIIntegration implements schema.UpdateFunc.

func UpdateAccount added in v0.56.0

func UpdateAccount(d *schema.ResourceData, meta interface{}) error

UpdateAccount implements schema.UpdateFunc.

func UpdateAccountGrant added in v0.34.0

func UpdateAccountGrant(d *schema.ResourceData, meta interface{}) error

UpdateAccountGrant implements schema.UpdateFunc.

func UpdateAccountParameter added in v0.54.0

func UpdateAccountParameter(d *schema.ResourceData, meta interface{}) error

UpdateAccountParameter implements schema.UpdateFunc.

func UpdateAccountRole added in v0.85.0

func UpdateAccountRole(ctx context.Context, d *schema.ResourceData, meta any) diag.Diagnostics

func UpdateAlert added in v0.62.0

func UpdateAlert(d *schema.ResourceData, meta interface{}) error

UpdateAlert implements schema.UpdateFunc.

func UpdateContextExternalFunction added in v0.86.0

func UpdateContextExternalFunction(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics

func UpdateContextFunction added in v0.86.0

func UpdateContextFunction(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics

func UpdateContextProcedure added in v0.86.0

func UpdateContextProcedure(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics

func UpdateContextTag added in v0.87.1

func UpdateContextTag(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics

func UpdateContextTagAssociation added in v0.87.1

func UpdateContextTagAssociation(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics

func UpdateDatabase

func UpdateDatabase(d *schema.ResourceData, meta interface{}) error

func UpdateDatabaseGrant added in v0.34.0

func UpdateDatabaseGrant(d *schema.ResourceData, meta interface{}) error

UpdateDatabaseGrant implements schema.UpdateFunc.

func UpdateDatabaseRole added in v0.62.0

func UpdateDatabaseRole(d *schema.ResourceData, meta interface{}) error

UpdateDatabaseRole implements schema.UpdateFunc.

func UpdateDynamicTable added in v0.74.0

func UpdateDynamicTable(d *schema.ResourceData, meta interface{}) error

UpdateDynamicTable implements schema.UpdateFunc.

func UpdateEmailNotificationIntegration added in v0.64.0

func UpdateEmailNotificationIntegration(d *schema.ResourceData, meta interface{}) error

UpdateEmailNotificationIntegration implements schema.UpdateFunc.

func UpdateExternalOauthIntegration added in v0.34.0

func UpdateExternalOauthIntegration(d *schema.ResourceData, meta interface{}) error

UpdateExternalOauthIntegration implements schema.UpdateFunc.

func UpdateExternalTable added in v0.34.0

func UpdateExternalTable(d *schema.ResourceData, meta any) error

UpdateExternalTable implements schema.UpdateFunc.

func UpdateExternalTableGrant added in v0.46.0

func UpdateExternalTableGrant(d *schema.ResourceData, meta interface{}) error

UpdateExternalTableGrant implements schema.UpdateFunc.

func UpdateFailoverGroup added in v0.49.0

func UpdateFailoverGroup(d *schema.ResourceData, meta interface{}) error

UpdateFailoverGroup implements schema.UpdateFunc.

func UpdateFailoverGroupGrant added in v0.65.0

func UpdateFailoverGroupGrant(d *schema.ResourceData, meta interface{}) error

UpdateFailoverGroupGrant implements schema.UpdateFunc.

func UpdateFileFormat added in v0.34.0

func UpdateFileFormat(d *schema.ResourceData, meta interface{}) error

UpdateFileFormat implements schema.UpdateFunc.

func UpdateFileFormatGrant added in v0.46.0

func UpdateFileFormatGrant(d *schema.ResourceData, meta interface{}) error

UpdateFileFormatGrant implements schema.UpdateFunc.

func UpdateFunctionGrant added in v0.46.0

func UpdateFunctionGrant(d *schema.ResourceData, meta interface{}) error

UpdateFunctionGrant implements schema.UpdateFunc.

func UpdateGrantPrivilegesToAccountRole added in v0.85.0

func UpdateGrantPrivilegesToAccountRole(ctx context.Context, d *schema.ResourceData, meta any) diag.Diagnostics

func UpdateGrantPrivilegesToDatabaseRole added in v0.83.0

func UpdateGrantPrivilegesToDatabaseRole(ctx context.Context, d *schema.ResourceData, meta any) diag.Diagnostics

func UpdateGrantPrivilegesToRole added in v0.68.0

func UpdateGrantPrivilegesToRole(d *schema.ResourceData, meta interface{}) error

func UpdateGrantPrivilegesToShare added in v0.85.0

func UpdateGrantPrivilegesToShare(ctx context.Context, d *schema.ResourceData, meta any) diag.Diagnostics

func UpdateIntegrationGrant added in v0.46.0

func UpdateIntegrationGrant(d *schema.ResourceData, meta interface{}) error

UpdateIntegrationGrant implements schema.UpdateFunc.

func UpdateMaskingPolicy added in v0.34.0

func UpdateMaskingPolicy(d *schema.ResourceData, meta interface{}) error

UpdateMaskingPolicy implements schema.UpdateFunc.

func UpdateMaskingPolicyGrant added in v0.46.0

func UpdateMaskingPolicyGrant(d *schema.ResourceData, meta interface{}) error

UpdateMaskingPolicyGrant implements schema.UpdateFunc.

func UpdateMaterializedView added in v0.34.0

func UpdateMaterializedView(d *schema.ResourceData, meta interface{}) error

UpdateMaterializedView implements schema.UpdateFunc.

func UpdateMaterializedViewGrant added in v0.46.0

func UpdateMaterializedViewGrant(d *schema.ResourceData, meta interface{}) error

UpdateMaterializedViewGrant implements schema.UpdateFunc.

func UpdateNetworkPolicy added in v0.34.0

func UpdateNetworkPolicy(d *schema.ResourceData, meta interface{}) error

UpdateNetworkPolicy implements schema.UpdateFunc.

func UpdateNetworkPolicyAttachment added in v0.34.0

func UpdateNetworkPolicyAttachment(d *schema.ResourceData, meta interface{}) error

UpdateNetworkPolicyAttachment implements schema.UpdateFunc.

func UpdateNotificationIntegration added in v0.34.0

func UpdateNotificationIntegration(d *schema.ResourceData, meta interface{}) error

UpdateNotificationIntegration implements schema.UpdateFunc.

func UpdateOAuthIntegration added in v0.34.0

func UpdateOAuthIntegration(d *schema.ResourceData, meta interface{}) error

UpdateOAuthIntegration implements schema.UpdateFunc.

func UpdateObjectParameter added in v0.54.0

func UpdateObjectParameter(d *schema.ResourceData, meta interface{}) error

UpdateObjectParameter implements schema.UpdateFunc.

func UpdatePasswordPolicy added in v0.62.0

func UpdatePasswordPolicy(d *schema.ResourceData, meta interface{}) error

UpdatePasswordPolicy implements schema.UpdateFunc.

func UpdatePipe added in v0.34.0

func UpdatePipe(d *schema.ResourceData, meta interface{}) error

UpdatePipe implements schema.UpdateFunc.

func UpdatePipeGrant added in v0.46.0

func UpdatePipeGrant(d *schema.ResourceData, meta interface{}) error

UpdatePipeGrant implements schema.UpdateFunc.

func UpdateProcedureGrant added in v0.46.0

func UpdateProcedureGrant(d *schema.ResourceData, meta interface{}) error

UpdateProcedureGrant implements schema.UpdateFunc.

func UpdateResourceMonitor added in v0.55.0

func UpdateResourceMonitor(d *schema.ResourceData, meta interface{}) error

UpdateResourceMonitor implements schema.UpdateFunc.

func UpdateResourceMonitorGrant added in v0.46.0

func UpdateResourceMonitorGrant(d *schema.ResourceData, meta interface{}) error

UpdateResourceMonitorGrant implements schema.UpdateFunc.

func UpdateRoleGrants

func UpdateRoleGrants(d *schema.ResourceData, meta interface{}) error

func UpdateRoleOwnershipGrant added in v0.34.0

func UpdateRoleOwnershipGrant(d *schema.ResourceData, meta interface{}) error

func UpdateRowAccessPolicy added in v0.34.0

func UpdateRowAccessPolicy(d *schema.ResourceData, meta interface{}) error

UpdateRowAccessPolicy implements schema.UpdateFunc.

func UpdateRowAccessPolicyGrant added in v0.46.0

func UpdateRowAccessPolicyGrant(d *schema.ResourceData, meta interface{}) error

UpdateRowAccessPolicyGrant implements schema.UpdateFunc.

func UpdateSAMLIntegration added in v0.34.0

func UpdateSAMLIntegration(d *schema.ResourceData, meta interface{}) error

UpdateSAMLIntegration implements schema.UpdateFunc.

func UpdateSCIMIntegration added in v0.34.0

func UpdateSCIMIntegration(d *schema.ResourceData, meta interface{}) error

UpdateSCIMIntegration implements schema.UpdateFunc.

func UpdateSchema added in v0.34.0

func UpdateSchema(d *schema.ResourceData, meta interface{}) error

UpdateSchema implements schema.UpdateFunc.

func UpdateSchemaGrant added in v0.34.0

func UpdateSchemaGrant(d *schema.ResourceData, meta interface{}) error

UpdateSchemaGrant implements schema.UpdateFunc.

func UpdateSequence added in v0.34.0

func UpdateSequence(d *schema.ResourceData, meta interface{}) error

func UpdateSequenceGrant added in v0.46.0

func UpdateSequenceGrant(d *schema.ResourceData, meta interface{}) error

UpdateSequenceGrant implements schema.UpdateFunc.

func UpdateSessionParameter added in v0.54.0

func UpdateSessionParameter(d *schema.ResourceData, meta interface{}) error

UpdateSessionParameter implements schema.UpdateFunc.

func UpdateShare added in v0.34.0

func UpdateShare(d *schema.ResourceData, meta interface{}) error

UpdateShare implements schema.UpdateFunc.

func UpdateStage added in v0.34.0

func UpdateStage(ctx context.Context, d *schema.ResourceData, meta any) diag.Diagnostics

func UpdateStageGrant added in v0.46.0

func UpdateStageGrant(d *schema.ResourceData, meta interface{}) error

UpdateStageGrant implements schema.UpdateFunc.

func UpdateStorageIntegration added in v0.34.0

func UpdateStorageIntegration(d *schema.ResourceData, meta any) error

func UpdateStream added in v0.34.0

func UpdateStream(d *schema.ResourceData, meta interface{}) error

UpdateStream implements schema.UpdateFunc.

func UpdateStreamGrant added in v0.46.0

func UpdateStreamGrant(d *schema.ResourceData, meta interface{}) error

UpdateStreamGrant implements schema.UpdateFunc.

func UpdateTable added in v0.34.0

func UpdateTable(d *schema.ResourceData, meta interface{}) error

UpdateTable implements schema.UpdateFunc.

func UpdateTableConstraint added in v0.47.0

func UpdateTableConstraint(d *schema.ResourceData, meta interface{}) error

UpdateTableConstraint implements schema.UpdateFunc.

func UpdateTableGrant added in v0.34.0

func UpdateTableGrant(d *schema.ResourceData, meta interface{}) error

UpdateTableGrant implements schema.UpdateFunc.

func UpdateTagGrant added in v0.41.0

func UpdateTagGrant(d *schema.ResourceData, meta interface{}) error

UpdateTagGrant implements schema.UpdateFunc.

func UpdateTask added in v0.34.0

func UpdateTask(d *schema.ResourceData, meta interface{}) error

UpdateTask implements schema.UpdateFunc.

func UpdateTaskGrant added in v0.46.0

func UpdateTaskGrant(d *schema.ResourceData, meta interface{}) error

UpdateTaskGrant implements schema.UpdateFunc.

func UpdateUnsafeExecute added in v0.77.0

func UpdateUnsafeExecute(d *schema.ResourceData, meta interface{}) error

func UpdateUser

func UpdateUser(d *schema.ResourceData, meta interface{}) error

func UpdateUserGrant added in v0.44.0

func UpdateUserGrant(d *schema.ResourceData, meta interface{}) error

UpdateUserGrant implements schema.UpdateFunc.

func UpdateUserOwnershipGrant added in v0.34.0

func UpdateUserOwnershipGrant(d *schema.ResourceData, meta interface{}) error

func UpdateUserPublicKeys added in v0.34.0

func UpdateUserPublicKeys(d *schema.ResourceData, meta interface{}) error

func UpdateView added in v0.34.0

func UpdateView(d *schema.ResourceData, meta interface{}) error

UpdateView implements schema.UpdateFunc.

func UpdateViewGrant added in v0.34.0

func UpdateViewGrant(d *schema.ResourceData, meta interface{}) error

UpdateViewGrant implements schema.UpdateFunc.

func UpdateWarehouse

func UpdateWarehouse(d *schema.ResourceData, meta interface{}) error

UpdateWarehouse implements schema.UpdateFunc.

func UpdateWarehouseGrant added in v0.34.0

func UpdateWarehouseGrant(d *schema.ResourceData, meta interface{}) error

UpdateWarehouseGrant implements schema.UpdateFunc.

func User

func User() *schema.Resource

func UserOwnershipGrant added in v0.34.0

func UserOwnershipGrant() *schema.Resource

func UserPasswordPolicyAttachment added in v0.86.0

func UserPasswordPolicyAttachment() *schema.Resource

func UserPublicKeys added in v0.34.0

func UserPublicKeys() *schema.Resource

func ValidGrantedObjectType added in v0.85.0

func ValidGrantedObjectType() schema.SchemaValidateDiagFunc

func ValidGrantedPluralObjectType added in v0.85.0

func ValidGrantedPluralObjectType() schema.SchemaValidateDiagFunc

func View added in v0.34.0

func View() *schema.Resource

View returns a pointer to the resource representing a view.

func Warehouse

func Warehouse() *schema.Resource

Warehouse returns a pointer to the resource representing a warehouse.

Types

type AccountRoleGrantKind added in v0.85.0

type AccountRoleGrantKind string
const (
	OnAccountAccountRoleGrantKind       AccountRoleGrantKind = "OnAccount"
	OnAccountObjectAccountRoleGrantKind AccountRoleGrantKind = "OnAccountObject"
	OnSchemaAccountRoleGrantKind        AccountRoleGrantKind = "OnSchema"
	OnSchemaObjectAccountRoleGrantKind  AccountRoleGrantKind = "OnSchemaObject"
)

type BulkOperationGrantData added in v0.83.0

type BulkOperationGrantData struct {
	ObjectNamePlural sdk.PluralObjectType
	Kind             BulkOperationGrantKind
	Database         *sdk.AccountObjectIdentifier
	Schema           *sdk.DatabaseObjectIdentifier
}

func (*BulkOperationGrantData) String added in v0.88.0

func (d *BulkOperationGrantData) String() string

type BulkOperationGrantKind added in v0.83.0

type BulkOperationGrantKind string
const (
	InDatabaseBulkOperationGrantKind BulkOperationGrantKind = "InDatabase"
	InSchemaBulkOperationGrantKind   BulkOperationGrantKind = "InSchema"
)

type DatabaseRoleGrantKind added in v0.83.0

type DatabaseRoleGrantKind string
const (
	OnDatabaseDatabaseRoleGrantKind     DatabaseRoleGrantKind = "OnDatabase"
	OnSchemaDatabaseRoleGrantKind       DatabaseRoleGrantKind = "OnSchema"
	OnSchemaObjectDatabaseRoleGrantKind DatabaseRoleGrantKind = "OnSchemaObject"
)

type GrantOwnershipId added in v0.88.0

type GrantOwnershipId struct {
	GrantOwnershipTargetRoleKind GrantOwnershipTargetRoleKind
	AccountRoleName              sdk.AccountObjectIdentifier
	DatabaseRoleName             sdk.DatabaseObjectIdentifier
	OutboundPrivilegesBehavior   *OutboundPrivilegesBehavior
	Kind                         GrantOwnershipKind
	Data                         fmt.Stringer
}

func ParseGrantOwnershipId added in v0.88.0

func ParseGrantOwnershipId(id string) (*GrantOwnershipId, error)

func (*GrantOwnershipId) String added in v0.88.0

func (g *GrantOwnershipId) String() string

type GrantOwnershipKind added in v0.88.0

type GrantOwnershipKind string
const (
	OnObjectGrantOwnershipKind GrantOwnershipKind = "OnObject"
	OnAllGrantOwnershipKind    GrantOwnershipKind = "OnAll"
	OnFutureGrantOwnershipKind GrantOwnershipKind = "OnFuture"
)

type GrantOwnershipTargetRoleKind added in v0.88.0

type GrantOwnershipTargetRoleKind string
const (
	ToAccountGrantOwnershipTargetRoleKind  GrantOwnershipTargetRoleKind = "ToAccountRole"
	ToDatabaseGrantOwnershipTargetRoleKind GrantOwnershipTargetRoleKind = "ToDatabaseRole"
)

type GrantPrivilegesToAccountRoleId added in v0.85.0

type GrantPrivilegesToAccountRoleId struct {
	RoleName        sdk.AccountObjectIdentifier
	WithGrantOption bool
	AlwaysApply     bool
	AllPrivileges   bool
	Privileges      []string
	Kind            AccountRoleGrantKind
	Data            fmt.Stringer
}

func ParseGrantPrivilegesToAccountRoleId added in v0.85.0

func ParseGrantPrivilegesToAccountRoleId(id string) (GrantPrivilegesToAccountRoleId, error)

func (*GrantPrivilegesToAccountRoleId) String added in v0.85.0

type GrantPrivilegesToDatabaseRoleId added in v0.83.0

type GrantPrivilegesToDatabaseRoleId struct {
	DatabaseRoleName sdk.DatabaseObjectIdentifier
	WithGrantOption  bool
	AlwaysApply      bool
	AllPrivileges    bool
	Privileges       []string
	Kind             DatabaseRoleGrantKind
	Data             fmt.Stringer
}

func ParseGrantPrivilegesToDatabaseRoleId added in v0.83.0

func ParseGrantPrivilegesToDatabaseRoleId(id string) (GrantPrivilegesToDatabaseRoleId, error)

func (*GrantPrivilegesToDatabaseRoleId) String added in v0.83.0

type GrantPrivilegesToRoleID added in v0.85.0

type GrantPrivilegesToRoleID struct {
	RoleName         string
	Privileges       []string
	AllPrivileges    bool
	WithGrantOption  bool
	OnAccount        bool
	OnAccountObject  bool
	OnSchema         bool
	OnSchemaObject   bool
	All              bool
	Future           bool
	ObjectType       string
	ObjectName       string
	ObjectTypePlural string
	InSchema         bool
	SchemaName       string
	InDatabase       bool
	DatabaseName     string
}

we need to keep track of literally everything to construct a unique identifier that can be imported

func NewGrantPrivilegesToRoleID added in v0.85.0

func NewGrantPrivilegesToRoleID(id string) GrantPrivilegesToRoleID

func (GrantPrivilegesToRoleID) String added in v0.85.0

func (v GrantPrivilegesToRoleID) String() string

type GrantPrivilegesToShareId added in v0.85.0

type GrantPrivilegesToShareId struct {
	ShareName  sdk.AccountObjectIdentifier
	Privileges []string
	Kind       ShareGrantKind
	Identifier sdk.ObjectIdentifier
}

func ParseGrantPrivilegesToShareId added in v0.85.0

func ParseGrantPrivilegesToShareId(idString string) (GrantPrivilegesToShareId, error)

func (*GrantPrivilegesToShareId) String added in v0.85.0

func (id *GrantPrivilegesToShareId) String() string

type OnAccountGrantData added in v0.85.0

type OnAccountGrantData struct{}

func (*OnAccountGrantData) String added in v0.85.0

func (d *OnAccountGrantData) String() string

type OnAccountObjectGrantData added in v0.85.0

type OnAccountObjectGrantData struct {
	ObjectType sdk.ObjectType
	ObjectName sdk.AccountObjectIdentifier
}

func (*OnAccountObjectGrantData) String added in v0.85.0

func (d *OnAccountObjectGrantData) String() string

type OnDatabaseGrantData added in v0.83.0

type OnDatabaseGrantData struct {
	DatabaseName sdk.AccountObjectIdentifier
}

func (*OnDatabaseGrantData) String added in v0.83.0

func (d *OnDatabaseGrantData) String() string

type OnObjectGrantOwnershipData added in v0.88.0

type OnObjectGrantOwnershipData struct {
	ObjectType sdk.ObjectType
	ObjectName sdk.ObjectIdentifier
}

func (*OnObjectGrantOwnershipData) String added in v0.88.0

func (g *OnObjectGrantOwnershipData) String() string

type OnSchemaGrantData added in v0.83.0

type OnSchemaGrantData struct {
	Kind         OnSchemaGrantKind
	SchemaName   *sdk.DatabaseObjectIdentifier
	DatabaseName *sdk.AccountObjectIdentifier
}

func (*OnSchemaGrantData) String added in v0.83.0

func (d *OnSchemaGrantData) String() string

type OnSchemaGrantKind added in v0.83.0

type OnSchemaGrantKind string
const (
	OnSchemaSchemaGrantKind                  OnSchemaGrantKind = "OnSchema"
	OnAllSchemasInDatabaseSchemaGrantKind    OnSchemaGrantKind = "OnAllSchemasInDatabase"
	OnFutureSchemasInDatabaseSchemaGrantKind OnSchemaGrantKind = "OnFutureSchemasInDatabase"
)

type OnSchemaObjectGrantData added in v0.83.0

type OnSchemaObjectGrantData struct {
	Kind          OnSchemaObjectGrantKind
	Object        *sdk.Object
	OnAllOrFuture *BulkOperationGrantData
}

func (*OnSchemaObjectGrantData) String added in v0.83.0

func (d *OnSchemaObjectGrantData) String() string

type OnSchemaObjectGrantKind added in v0.83.0

type OnSchemaObjectGrantKind string
const (
	OnObjectSchemaObjectGrantKind OnSchemaObjectGrantKind = "OnObject"
	OnAllSchemaObjectGrantKind    OnSchemaObjectGrantKind = "OnAll"
	OnFutureSchemaObjectGrantKind OnSchemaObjectGrantKind = "OnFuture"
)

type OutboundPrivilegesBehavior added in v0.88.0

type OutboundPrivilegesBehavior string
const (
	CopyOutboundPrivilegesBehavior   OutboundPrivilegesBehavior = "COPY"
	RevokeOutboundPrivilegesBehavior OutboundPrivilegesBehavior = "REVOKE"
)

func (OutboundPrivilegesBehavior) ToOwnershipCurrentGrantsOutboundPrivileges added in v0.88.0

func (o OutboundPrivilegesBehavior) ToOwnershipCurrentGrantsOutboundPrivileges() *sdk.OwnershipCurrentGrantsOutboundPrivileges

type Privilege added in v0.34.0

type Privilege string

func (Privilege) String added in v0.34.0

func (p Privilege) String() string

type PrivilegeSet added in v0.34.0

type PrivilegeSet map[Privilege]struct{}

func NewPrivilegeSet added in v0.34.0

func NewPrivilegeSet(privileges ...Privilege) PrivilegeSet

func (PrivilegeSet) ToList added in v0.34.0

func (ps PrivilegeSet) ToList() []string

type ShareGrantKind added in v0.85.0

type ShareGrantKind string
const (
	OnDatabaseShareGrantKind ShareGrantKind = "OnDatabase"
	OnSchemaShareGrantKind   ShareGrantKind = "OnSchema"
	//	TODO(SNOW-1021686): Because function identifier contains arguments which are not supported right now
	// OnFunctionShareGrantKind          ShareGrantKind = "OnFunction"
	OnTableShareGrantKind             ShareGrantKind = "OnTable"
	OnAllTablesInSchemaShareGrantKind ShareGrantKind = "OnAllTablesInSchema"
	OnTagShareGrantKind               ShareGrantKind = "OnTag"
	OnViewShareGrantKind              ShareGrantKind = "OnView"
)

type TerraformGrantResource added in v0.34.0

type TerraformGrantResource struct {
	Resource   *schema.Resource
	ValidPrivs PrivilegeSet
}

TerraformGrantResource augments terraform's *schema.Resource with extra context.

func AccountGrant added in v0.34.0

func AccountGrant() *TerraformGrantResource

AccountGrant returns a pointer to the resource representing an account grant.

func DatabaseGrant added in v0.34.0

func DatabaseGrant() *TerraformGrantResource

DatabaseGrant returns a pointer to the resource representing a database grant.

func ExternalTableGrant added in v0.34.0

func ExternalTableGrant() *TerraformGrantResource

ExternalTableGrant returns a pointer to the resource representing a external table grant.

func FailoverGroupGrant added in v0.65.0

func FailoverGroupGrant() *TerraformGrantResource

FailoverGroup returns a pointer to the resource representing a file format grant.

func FileFormatGrant added in v0.34.0

func FileFormatGrant() *TerraformGrantResource

FileFormatGrant returns a pointer to the resource representing a file format grant.

func FunctionGrant added in v0.34.0

func FunctionGrant() *TerraformGrantResource

FunctionGrant returns a pointer to the resource representing a function grant.

func IntegrationGrant added in v0.34.0

func IntegrationGrant() *TerraformGrantResource

IntegrationGrant returns a pointer to the resource representing a integration grant.

func MaskingPolicyGrant added in v0.34.0

func MaskingPolicyGrant() *TerraformGrantResource

MaskingPolicyGrant returns a pointer to the resource representing a masking policy grant.

func MaterializedViewGrant added in v0.34.0

func MaterializedViewGrant() *TerraformGrantResource

MaterializedViewGrant returns a pointer to the resource representing a view grant.

func PipeGrant added in v0.34.0

func PipeGrant() *TerraformGrantResource

PipeGrant returns a pointer to the resource representing a pipe grant.

func ProcedureGrant added in v0.34.0

func ProcedureGrant() *TerraformGrantResource

ProcedureGrant returns a pointer to the resource representing a procedure grant.

func ResourceMonitorGrant added in v0.34.0

func ResourceMonitorGrant() *TerraformGrantResource

ResourceMonitorGrant returns a pointer to the resource representing a resource monitor grant.

func RowAccessPolicyGrant added in v0.34.0

func RowAccessPolicyGrant() *TerraformGrantResource

RowAccessPolicyGrant returns a pointer to the resource representing a row access policy grant.

func SchemaGrant added in v0.34.0

func SchemaGrant() *TerraformGrantResource

SchemaGrant returns a pointer to the resource representing a view grant.

func SequenceGrant added in v0.34.0

func SequenceGrant() *TerraformGrantResource

SequenceGrant returns a pointer to the resource representing a sequence grant.

func StageGrant added in v0.34.0

func StageGrant() *TerraformGrantResource

StageGrant returns a pointer to the resource representing a stage grant.

func StreamGrant added in v0.34.0

func StreamGrant() *TerraformGrantResource

StreamGrant returns a pointer to the resource representing a stream grant.

func TableGrant added in v0.34.0

func TableGrant() *TerraformGrantResource

TableGrant returns a pointer to the resource representing a Table grant.

func TagGrant added in v0.41.0

func TagGrant() *TerraformGrantResource

TagGrant returns a pointer to the resource representing a tag grant.

func TaskGrant added in v0.34.0

func TaskGrant() *TerraformGrantResource

TaskGrant returns a pointer to the resource representing a task grant.

func UserGrant added in v0.44.0

func UserGrant() *TerraformGrantResource

UserGrant returns a pointer to the resource representing a user grant.

func ViewGrant added in v0.34.0

func ViewGrant() *TerraformGrantResource

ViewGrant returns a pointer to the resource representing a view grant.

func WarehouseGrant added in v0.34.0

func WarehouseGrant() *TerraformGrantResource

WarehouseGrant returns a pointer to the resource representing a warehouse grant.

type TerraformGrantResources added in v0.34.0

type TerraformGrantResources map[string]*TerraformGrantResource

func (TerraformGrantResources) GetTfSchemas added in v0.34.0

func (t TerraformGrantResources) GetTfSchemas() map[string]*schema.Resource

Source Files

Jump to

Keyboard shortcuts

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