resources

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: MIT Imports: 40 Imported by: 1

Documentation

Index

Constants

View Source
const (
	FullyQualifiedNameAttributeName = "fully_qualified_name"
	AtAttributeName                 = "at"
	BeforeAttributeName             = "before"
)
View Source
const (
	ShowOutputAttributeName        = "show_output"
	DescribeOutputAttributeName    = "describe_output"
	ParametersAttributeName        = "parameters"
	RelatedParametersAttributeName = "related_parameters"
)
View Source
const (
	BooleanTrue    = "true"
	BooleanFalse   = "false"
	BooleanDefault = "default"

	IntDefault       = -1
	IntDefaultString = "-1"
)
View Source
const (
	SnowflakeReaderAccountType = "READER"
)

Variables

DiffSuppressDataTypes handles data type suppression taking into account data type attributes for each type. It falls back to Snowflake defaults for arguments if no arguments were provided for the data type.

View Source
var IsDataTypeValid = sdkValidation(datatypes.ParseDataType)
View Source
var ObjectRenamingDatabaseInstance = &objectRenamingDatabase{
	List:                make([]ObjectRenamingDatabaseListItem, 0),
	OrderedList:         make([]objectRenamingDatabaseOrderedListItem, 0),
	ManuallyOrderedList: make([]ObjectRenamingDatabaseManuallyOrderedListItem, 0),
	ChangeLog:           ObjectRenamingDatabaseChangelog{},
}
View Source
var StreamOnViewSchema = func() map[string]*schema.Schema {
	streamOnView := map[string]*schema.Schema{
		"view": {
			Type:             schema.TypeString,
			Required:         true,
			Description:      relatedResourceDescription(blocklistedCharactersFieldDescription("Specifies an identifier for the view the stream will monitor."), resources.View),
			DiffSuppressFunc: SuppressIfAny(suppressIdentifierQuoting, IgnoreChangeToCurrentSnowflakeValueInShow("table_name")),
			ValidateDiagFunc: IsValidIdentifier[sdk.SchemaObjectIdentifier](),
		},
		"append_only": {
			Type:             schema.TypeString,
			Optional:         true,
			Default:          BooleanDefault,
			ValidateDiagFunc: validateBooleanString,
			DiffSuppressFunc: IgnoreChangeToCurrentSnowflakeValueInShowWithMapping("mode", func(x any) any {
				return x.(string) == string(sdk.StreamModeAppendOnly)
			}),
			Description: booleanStringFieldDescription("Specifies whether this is an append-only stream."),
		},
		"show_initial_rows": {
			Type:             schema.TypeString,
			Optional:         true,
			Default:          BooleanDefault,
			ValidateDiagFunc: validateBooleanString,
			Description:      externalChangesNotDetectedFieldDescription(booleanStringFieldDescription("Specifies whether to return all existing rows in the source table as row inserts the first time the stream is consumed.")),
		},
		AtAttributeName:     atSchema,
		BeforeAttributeName: beforeSchema,
	}
	return collections.MergeMaps(streamCommonSchema, streamOnView)
}()

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 AccountAuthenticationPolicyAttachment added in v0.98.0

func AccountAuthenticationPolicyAttachment() *schema.Resource

AccountAuthenticationPolicyAttachment returns a pointer to the resource representing an account authentication policy attachment.

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 account password policy attachment.

func AccountRole added in v0.94.0

func AccountRole() *schema.Resource

func Alert added in v0.62.0

func Alert() *schema.Resource

Alert returns a pointer to the resource representing an alert.

func ApiAuthenticationIntegrationWithAuthorizationCodeGrant added in v0.93.0

func ApiAuthenticationIntegrationWithAuthorizationCodeGrant() *schema.Resource

func ApiAuthenticationIntegrationWithClientCredentials added in v0.93.0

func ApiAuthenticationIntegrationWithClientCredentials() *schema.Resource

func ApiAuthenticationIntegrationWithJwtBearer added in v0.93.0

func ApiAuthenticationIntegrationWithJwtBearer() *schema.Resource

func AuthenticationPolicy added in v0.98.0

func AuthenticationPolicy() *schema.Resource

AuthenticationPolicy returns a pointer to the resource representing an authentication policy.

func BoolParameterValueComputedIf added in v0.93.0

func BoolParameterValueComputedIf[T ~string](key string, params []*sdk.Parameter, parameterLevel sdk.ParameterType, parameter T) schema.CustomizeDiffFunc

func ComputedIfAnyAttributeChanged added in v0.93.0

func ComputedIfAnyAttributeChanged(resourceSchema map[string]*schema.Schema, key string, changedAttributeKeys ...string) schema.CustomizeDiffFunc

ComputedIfAnyAttributeChanged marks the given fields as computed if any of the listed fields changes. It takes field-level diffSuppress into consideration based on the schema passed. If the field is not found in the given schema, it continues without error. Only top level schema fields should be used.

func CortexSearchService added in v0.93.0

func CortexSearchService() *schema.Resource

CortexSearchService returns a pointer to the resource representing a Cortex search service.

func CreateAPIIntegration added in v0.34.0

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

CreateAPIIntegration implements schema.CreateFunc.

func CreateAccount added in v0.56.0

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

func CreateAccountAuthenticationPolicyAttachment added in v0.98.0

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

CreateAccountAuthenticationPolicyAttachment implements schema.CreateFunc.

func CreateAccountParameter added in v0.54.0

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

CreateAccountParameter implements schema.CreateFunc.

func CreateAccountPasswordPolicyAttachment added in v0.67.0

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

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(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics

CreateAlert implements schema.CreateContextFunc.

func CreateContextApiAuthenticationIntegrationWithAuthorizationCodeGrant added in v0.93.0

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

func CreateContextApiAuthenticationIntegrationWithClientCredentials added in v0.93.0

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

func CreateContextApiAuthenticationIntegrationWithJwtBearer added in v0.93.0

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

func CreateContextAuthenticationPolicy added in v0.98.0

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

func CreateContextExternalFunction added in v0.86.0

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

func CreateContextExternalOauthIntegration added in v0.93.0

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

func CreateContextExternalVolume added in v0.98.0

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

func CreateContextFunctionJava added in v1.0.0

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

func CreateContextFunctionJavascript added in v1.0.0

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

func CreateContextFunctionPython added in v1.0.0

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

func CreateContextFunctionScala added in v1.0.0

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

func CreateContextFunctionSql added in v1.0.0

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

func CreateContextGrantApplicationRole added in v0.91.0

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

func CreateContextNetworkPolicy added in v0.92.0

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

func CreateContextNetworkRule added in v0.92.0

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

func CreateContextOauthIntegrationForCustomClients added in v0.93.0

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

func CreateContextOauthIntegrationForPartnerApplications added in v0.93.0

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

func CreateContextPrimaryConnection added in v0.98.0

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

func CreateContextProcedureJava added in v1.0.0

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

func CreateContextProcedureJavascript added in v1.0.0

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

func CreateContextProcedurePython added in v1.0.0

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

func CreateContextProcedureScala added in v1.0.0

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

func CreateContextProcedureSql added in v1.0.0

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

func CreateContextSAML2Integration added in v0.93.0

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

func CreateContextSCIMIntegration added in v0.93.0

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

func CreateContextSchema added in v0.94.0

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

func CreateContextSecondaryConnection added in v0.98.0

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

func CreateContextSecretWithAuthorizationCodeGrant added in v0.98.0

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

func CreateContextSecretWithBasicAuthentication added in v0.98.0

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

func CreateContextSecretWithClientCredentials added in v0.98.0

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

func CreateContextSecretWithGenericString added in v0.98.0

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

func CreateContextStreamlit added in v0.94.0

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

func CreateContextTag added in v0.87.1

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

func CreateContextTagAssociation added in v0.87.1

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

func CreateCortexSearchService added in v0.93.0

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

CreateCortexSearchService implements schema.CreateFunc.

func CreateDatabase

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

func CreateDatabaseRole added in v0.62.0

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

func CreateDynamicTable added in v0.74.0

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

CreateDynamicTable implements schema.CreateFunc.

func CreateEmailNotificationIntegration added in v0.64.0

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

CreateEmailNotificationIntegration implements schema.CreateFunc.

func CreateExecute added in v1.0.0

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

func CreateExternalTable added in v0.34.0

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

CreateExternalTable implements schema.CreateFunc.

func CreateFailoverGroup added in v0.49.0

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

CreateFailoverGroup implements schema.CreateFunc.

func CreateFileFormat added in v0.34.0

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

CreateFileFormat implements schema.CreateFunc.

func CreateGrantAccountRole added in v0.84.0

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

CreateGrantAccountRole implements schema.CreateFunc.

func CreateGrantDatabaseRole added in v0.84.0

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

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 CreateGrantPrivilegesToShare added in v0.85.0

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

func CreateManagedAccount added in v0.34.0

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

CreateManagedAccount implements schema.CreateFunc.

func CreateMaskingPolicy added in v0.34.0

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

func CreateMaterializedView added in v0.34.0

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

CreateMaterializedView implements schema.CreateFunc.

func CreateNetworkPolicyAttachment added in v0.34.0

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

CreateNetworkPolicyAttachment implements schema.CreateFunc.

func CreateNotificationIntegration added in v0.34.0

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

CreateNotificationIntegration implements schema.CreateFunc.

func CreateObjectParameter added in v0.54.0

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

CreateObjectParameter implements schema.CreateFunc.

func CreateObjectRenamingListsAndSets added in v0.98.0

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

func CreatePasswordPolicy added in v0.62.0

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

CreatePasswordPolicy implements schema.CreateFunc.

func CreatePipe added in v0.34.0

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

CreatePipe implements schema.CreateFunc.

func CreateResourceMonitor added in v0.34.0

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

func CreateRowAccessPolicy added in v0.34.0

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

func CreateSecondaryDatabase added in v0.92.0

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

func CreateSequence added in v0.34.0

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

func CreateShare added in v0.34.0

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

CreateShare implements schema.CreateFunc.

func CreateSharedDatabase added in v0.92.0

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

func CreateStage added in v0.34.0

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

func CreateStorageIntegration added in v0.34.0

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

func CreateStreamOnDirectoryTable added in v0.98.0

func CreateStreamOnDirectoryTable(orReplace bool) schema.CreateContextFunc

func CreateStreamOnExternalTable added in v0.97.0

func CreateStreamOnExternalTable(orReplace bool) schema.CreateContextFunc

func CreateStreamOnTable added in v0.97.0

func CreateStreamOnTable(orReplace bool) schema.CreateContextFunc

func CreateStreamOnView added in v0.98.0

func CreateStreamOnView(orReplace bool) schema.CreateContextFunc

func CreateTable added in v0.34.0

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

CreateTable implements schema.CreateFunc.

func CreateTableColumnMaskingPolicyApplication added in v0.63.0

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

CreateTableColumnMaskingPolicyApplication implements schema.CreateFunc.

func CreateTableConstraint added in v0.47.0

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

CreateTableConstraint implements schema.CreateFunc.

func CreateTask added in v0.34.0

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

func CreateUserAuthenticationPolicyAttachment added in v0.98.0

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

func CreateUserPasswordPolicyAttachment added in v0.86.0

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

func CreateUserPublicKeys added in v0.34.0

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

func CreateView added in v0.34.0

func CreateView(orReplace bool) schema.CreateContextFunc

func CreateWarehouse

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

CreateWarehouse implements schema.CreateFunc.

func Database

func Database() *schema.Resource

func DatabaseRole added in v0.62.0

func DatabaseRole() *schema.Resource

func DeleteAPIIntegration added in v0.34.0

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

DeleteAPIIntegration implements schema.DeleteFunc.

func DeleteAccount added in v0.56.0

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

func DeleteAccountAuthenticationPolicyAttachment added in v0.98.0

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

DeleteAccountAuthenticationPolicyAttachment implements schema.DeleteFunc.

func DeleteAccountParameter added in v0.54.0

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

DeleteAccountParameter implements schema.DeleteFunc.

func DeleteAccountPasswordPolicyAttachment added in v0.67.0

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

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(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics

DeleteAlert implements schema.DeleteContextFunc.

func DeleteContextApiAuthenticationIntegrationWithAuthorizationCodeGrant added in v0.93.0

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

func DeleteContextApiAuthenticationIntegrationWithClientCredentials added in v0.93.0

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

func DeleteContextApiAuthenticationIntegrationWithJwtBearer added in v0.93.0

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

func DeleteContextAuthenticationPolicy added in v0.98.0

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

func DeleteContextExternalFunction added in v0.86.0

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

func DeleteContextExternalOauthIntegration added in v0.93.0

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

func DeleteContextExternalVolume added in v0.98.0

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

func DeleteContextGrantApplicationRole added in v0.91.0

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

func DeleteContextNetworkPolicy added in v0.92.0

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

func DeleteContextNetworkRule added in v0.92.0

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

func DeleteContextOauthIntegrationForCustomClients added in v0.93.0

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

func DeleteContextPrimaryConnection added in v0.98.0

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

func DeleteContextSAM2LIntegration added in v0.93.0

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

func DeleteContextSCIMIntegration added in v0.93.0

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

func DeleteContextSchema added in v0.94.0

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

func DeleteContextSecondaryConnection added in v0.98.0

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

func DeleteContextSecret added in v0.98.0

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

func DeleteContextSecurityIntegration added in v0.93.0

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

func DeleteContextStreamlit added in v0.94.0

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

func DeleteContextTag added in v0.87.1

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

func DeleteContextTagAssociation added in v0.87.1

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

func DeleteCortexSearchService added in v0.93.0

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

DeleteCortexSearchService implements schema.DeleteFunc.

func DeleteDatabase

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

func DeleteDatabaseRole added in v0.62.0

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

func DeleteDynamicTable added in v0.74.0

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

DeleteDynamicTable implements schema.DeleteFunc.

func DeleteEmailNotificationIntegration added in v0.64.0

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

DeleteEmailNotificationIntegration implements schema.DeleteFunc.

func DeleteExecute added in v1.0.0

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

func DeleteExternalTable added in v0.34.0

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

DeleteExternalTable implements schema.DeleteFunc.

func DeleteFailoverGroup added in v0.49.0

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

DeleteFailoverGroup implements schema.DeleteFunc.

func DeleteFileFormat added in v0.34.0

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

DeleteFileFormat implements schema.DeleteFunc.

func DeleteFunction added in v0.34.0

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

func DeleteGrantAccountRole added in v0.84.0

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

func DeleteGrantDatabaseRole added in v0.84.0

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

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 DeleteGrantPrivilegesToShare added in v0.85.0

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

func DeleteManagedAccount added in v0.34.0

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

DeleteManagedAccount implements schema.DeleteFunc.

func DeleteMaskingPolicy added in v0.34.0

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

func DeleteMaterializedView added in v0.34.0

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

DeleteMaterializedView implements schema.DeleteFunc.

func DeleteNetworkPolicyAttachment added in v0.34.0

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

DeleteNetworkPolicyAttachment implements schema.DeleteFunc.

func DeleteNotificationIntegration added in v0.34.0

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

DeleteNotificationIntegration implements schema.DeleteFunc.

func DeleteObjectParameter added in v0.54.0

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

DeleteObjectParameter implements schema.DeleteFunc.

func DeleteObjectRenamingListsAndSets added in v0.98.0

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

func DeletePasswordPolicy added in v0.62.0

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

DeletePasswordPolicy implements schema.DeleteFunc.

func DeletePipe added in v0.34.0

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

DeletePipe implements schema.DeleteFunc.

func DeleteProcedure added in v0.34.0

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

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(ctx context.Context, d *schema.ResourceData, meta any) diag.Diagnostics

func DeleteRowAccessPolicy added in v0.34.0

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

func DeleteSecondaryDatabase added in v0.92.0

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

func DeleteSequence added in v0.34.0

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

func DeleteShare added in v0.34.0

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

DeleteShare implements schema.DeleteFunc.

func DeleteSharedDatabase added in v0.92.0

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

func DeleteStage added in v0.34.0

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

func DeleteStorageIntegration added in v0.34.0

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

func DeleteStreamContext added in v0.97.0

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

func DeleteTable added in v0.34.0

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

DeleteTable implements schema.DeleteFunc.

func DeleteTableColumnMaskingPolicyApplication added in v0.63.0

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

DeleteTableColumnMaskingPolicyApplication implements schema.DeleteFunc.

func DeleteTableConstraint added in v0.47.0

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

DeleteTableConstraint implements schema.DeleteFunc.

func DeleteTask added in v0.34.0

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

func DeleteUser

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

func DeleteUserAuthenticationPolicyAttachment added in v0.98.0

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

func DeleteUserPasswordPolicyAttachment added in v0.86.0

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

func DeleteUserPublicKeys added in v0.34.0

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

func DeleteView added in v0.34.0

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

func DeleteWarehouse

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

DeleteWarehouse 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 Execute added in v1.0.0

func Execute() *schema.Resource

func ExpandObjectIdentifierSet added in v1.0.0

func ExpandObjectIdentifierSet(configured []any, objectType sdk.ObjectType) ([]sdk.ObjectIdentifier, error)

func ExternalFunction added in v0.34.0

func ExternalFunction() *schema.Resource

func ExternalOauthIntegration added in v0.34.0

func ExternalOauthIntegration() *schema.Resource

func ExternalTable added in v0.34.0

func ExternalTable() *schema.Resource

func ExternalVolume added in v0.98.0

func ExternalVolume() *schema.Resource

ExternalVolume returns a pointer to the resource representing an external volume.

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 ForceNewIfAllKeysAreNotSet added in v0.96.0

func ForceNewIfAllKeysAreNotSet(key string, keys ...string) schema.CustomizeDiffFunc

func ForceNewIfChangeToEmptySet added in v0.93.0

func ForceNewIfChangeToEmptySet(key string) schema.CustomizeDiffFunc

ForceNewIfChangeToEmptySet sets a ForceNew for a list field which was set to an empty value.

func ForceNewIfChangeToEmptySlice added in v0.93.0

func ForceNewIfChangeToEmptySlice[T any](key string) schema.CustomizeDiffFunc

ForceNewIfChangeToEmptySlice sets a ForceNew for a list field which was set to an empty value.

func ForceNewIfChangeToEmptyString added in v0.93.0

func ForceNewIfChangeToEmptyString(key string) schema.CustomizeDiffFunc

ForceNewIfChangeToEmptyString sets a ForceNew for a string field which was set to an empty value.

func FormatFullyQualifiedObjectID added in v0.93.0

func FormatFullyQualifiedObjectID(dbName, schemaName, objectName string) string

TODO [SNOW-1634872]: replace during identifiers rework follow-up

func FunctionJava added in v1.0.0

func FunctionJava() *schema.Resource

func FunctionJavascript added in v1.0.0

func FunctionJavascript() *schema.Resource

func FunctionPython added in v1.0.0

func FunctionPython() *schema.Resource

func FunctionScala added in v1.0.0

func FunctionScala() *schema.Resource

func FunctionSql added in v1.0.0

func FunctionSql() *schema.Resource

func GetConfigPropertyAsPointerAllowingZeroValue added in v0.93.0

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

func GetCreateUserFunc added in v0.97.0

func GetCreateUserFunc(userType sdk.UserType) func(ctx context.Context, d *schema.ResourceData, meta any) diag.Diagnostics

func GetImportUserFunc added in v0.97.0

func GetImportUserFunc(userType sdk.UserType) func(ctx context.Context, d *schema.ResourceData, meta any) ([]*schema.ResourceData, error)

func GetOnObjectIdentifier added in v1.0.0

func GetOnObjectIdentifier(objectType sdk.ObjectType, objectName string) (sdk.ObjectIdentifier, error)

TODO(SNOW-1229218): Make sdk.ObjectType + string objectName to sdk.ObjectIdentifier mapping available in the sdk (for all object types).

func GetPropertyAsPointer added in v0.74.0

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

func GetPropertyOfFirstNestedObjectByKey added in v0.92.0

func GetPropertyOfFirstNestedObjectByKey[T any](d *schema.ResourceData, propertyKey string, nestedValueKey string) (*T, error)

GetPropertyOfFirstNestedObjectByKey should be used for single objects defined in the Terraform schema as schema.TypeList with MaxItems set to one and inner schema with single value. To easily retrieve the inner value, you can specify the top-level property with propertyKey and the nested value with nestedValueKey.

func GetPropertyOfFirstNestedObjectByValueKey added in v0.93.0

func GetPropertyOfFirstNestedObjectByValueKey[T any](d *schema.ResourceData, propertyKey string) (*T, error)

func GetReadUserFunc added in v0.95.0

func GetReadUserFunc(userType sdk.UserType, withExternalChangesMarking bool) schema.ReadContextFunc

func GetReadWarehouseFunc added in v0.93.0

func GetReadWarehouseFunc(withExternalChangesMarking bool) schema.ReadContextFunc

func GetTagsDiff added in v0.80.0

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

func GetUpdateUserFunc added in v0.97.0

func GetUpdateUserFunc(userType sdk.UserType) func(ctx context.Context, d *schema.ResourceData, meta any) diag.Diagnostics

func GrantAccountRole added in v0.84.0

func GrantAccountRole() *schema.Resource

func GrantApplicationRole added in v0.91.0

func GrantApplicationRole() *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 GrantPrivilegesToShare added in v0.85.0

func GrantPrivilegesToShare() *schema.Resource

func IgnoreAfterCreation added in v0.93.0

func IgnoreAfterCreation(_, _, _ string, d *schema.ResourceData) bool

IgnoreAfterCreation should be used to ignore changes to the given attribute post creation.

func IgnoreChangeToCurrentSnowflakeListValueInDescribe added in v0.94.0

func IgnoreChangeToCurrentSnowflakeListValueInDescribe(keyInDescribeOutput string) schema.SchemaDiffSuppressFunc

IgnoreChangeToCurrentSnowflakeListValueInDescribe works similarly to IgnoreChangeToCurrentSnowflakeValueInDescribe, but assumes that in `describe_output` the value is saved in nested `value` field.

func IgnoreChangeToCurrentSnowflakePlainValueInOutput added in v0.94.0

func IgnoreChangeToCurrentSnowflakePlainValueInOutput(attrName, keyInOutput string) schema.SchemaDiffSuppressFunc

IgnoreChangeToCurrentSnowflakePlainValueInOutput should be used to ignore changes to the given attribute when its value is equal to value in provided `attrName`.

func IgnoreChangeToCurrentSnowflakePlainValueInOutputWithMapping added in v0.94.0

func IgnoreChangeToCurrentSnowflakePlainValueInOutputWithMapping(attrName, keyInOutput string, mapping func(any) any) schema.SchemaDiffSuppressFunc

IgnoreChangeToCurrentSnowflakePlainValueInOutput should be used to ignore changes to the given attribute when its value is equal to value in provided `attrName`.

func IgnoreChangeToCurrentSnowflakeValueInDescribe added in v0.93.0

func IgnoreChangeToCurrentSnowflakeValueInDescribe(keyInOutput string) schema.SchemaDiffSuppressFunc

IgnoreChangeToCurrentSnowflakeValueInDescribe should be used to ignore changes to the given attribute when its value is equal to value in describe_output.

func IgnoreChangeToCurrentSnowflakeValueInShow added in v0.93.0

func IgnoreChangeToCurrentSnowflakeValueInShow(keyInOutput string) schema.SchemaDiffSuppressFunc

IgnoreChangeToCurrentSnowflakeValueInShow should be used to ignore changes to the given attribute when its value is equal to value in show_output.

func IgnoreChangeToCurrentSnowflakeValueInShowWithMapping added in v0.94.0

func IgnoreChangeToCurrentSnowflakeValueInShowWithMapping(keyInOutput string, mapping func(any) any) schema.SchemaDiffSuppressFunc

IgnoreChangeToCurrentSnowflakeValueInShowWithMapping should be used to ignore changes to the given attribute when its value is equal to value in show_output after applying the mapping.

func IgnoreMatchingColumnNameAndMaskingPolicyUsingFirstElem added in v1.0.0

func IgnoreMatchingColumnNameAndMaskingPolicyUsingFirstElem() schema.SchemaDiffSuppressFunc

IgnoreMatchingColumnNameAndMaskingPolicyUsingFirstElem ignores when the first element of USING is matching the column name. see USING section in https://docs.snowflake.com/en/sql-reference/sql/create-view#optional-parameters TODO(SNOW-1852423): improve docs and add more tests

func IgnoreNewEmptyListOrSubfields added in v0.96.0

func IgnoreNewEmptyListOrSubfields(ignoredSubfields ...string) schema.SchemaDiffSuppressFunc

IgnoreNewEmptyListOrSubfields suppresses the diff if `new` list is empty or compared subfield is ignored. Subfields can be nested.

func IgnoreValuesFromSetIfParamSet added in v0.93.0

func IgnoreValuesFromSetIfParamSet(key, param string, values []string) schema.SchemaDiffSuppressFunc

func ImportAccount added in v1.0.0

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

func ImportApiAuthenticationWithAuthorizationCodeGrant added in v0.93.0

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

func ImportApiAuthenticationWithClientCredentials added in v0.93.0

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

func ImportApiAuthenticationWithJwtBearer added in v0.93.0

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

func ImportAuthenticationPolicy added in v0.98.0

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

func ImportExternalOauthIntegration added in v0.93.0

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

func ImportExternalVolume added in v0.98.0

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

func ImportFunction added in v1.0.0

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

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 ImportMaskingPolicy added in v0.96.0

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

func ImportOauthForCustomClientsIntegration added in v0.93.0

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

func ImportOauthForPartnerApplicationIntegration added in v0.93.0

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

func ImportProcedure added in v1.0.0

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

func ImportResourceMonitor added in v0.96.0

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

func ImportRowAccessPolicy added in v0.96.0

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

func ImportSaml2Integration added in v0.93.0

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

func ImportSchema added in v0.94.0

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

func ImportScimIntegration added in v0.93.0

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

func ImportSecretWithAuthorizationCodeGrant added in v0.98.0

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

func ImportSecretWithBasicAuthentication added in v0.98.0

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

func ImportSecretWithClientCredentials added in v0.98.0

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

func ImportSecretWithGenericString added in v0.98.0

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

func ImportStreamOnExternalTable added in v0.97.0

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

func ImportStreamOnTable added in v0.97.0

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

func ImportStreamOnView added in v0.98.0

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

func ImportStreamlit added in v0.94.0

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

func ImportTagAssociation added in v1.0.0

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

func ImportTask added in v0.99.0

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

func ImportView added in v0.95.0

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

func ImportWarehouse added in v0.93.0

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

func IntInSlice added in v0.95.0

func IntInSlice(valid []int) schema.SchemaValidateDiagFunc

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

func IntParameterValueComputedIf added in v0.93.0

func IntParameterValueComputedIf[T ~string](key string, params []*sdk.Parameter, parameterLevel sdk.ParameterType, parameter T) schema.CustomizeDiffFunc

func IsValidAccountIdentifier added in v0.93.0

func IsValidAccountIdentifier() schema.SchemaValidateDiagFunc

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

Provider supported both account locators and organization name + account name pairs. The account locators are not supported, so this function accepts only the new format.

func JoinDiags added in v0.93.0

func JoinDiags(diagnostics ...diag.Diagnostics) diag.Diagnostics

TODO(SNOW-1479870): Test JoinDiags iterates through passed diag.Diagnostics and joins them into one diag.Diagnostics. If none of the passed diagnostics contained any element a nil reference will be returned.

func LegacyServiceUser added in v0.97.0

func LegacyServiceUser() *schema.Resource

func ListDiff added in v0.93.0

func ListDiff[T comparable](beforeList []T, afterList []T) (added []T, removed []T)

ListDiff compares two lists (before and after), then compares and returns two lists that include added and removed items between those lists.

func ListDiffWithCommonItems added in v1.0.0

func ListDiffWithCommonItems[T comparable](beforeList []T, afterList []T) (added []T, removed []T, common []T)

ListDiffWithCommonItems compares two lists (before and after), then compares and returns three lists that include added, removed and common items between those lists.

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

func NetworkPolicyAttachment added in v0.34.0

func NetworkPolicyAttachment() *schema.Resource

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

func NetworkRule added in v0.92.0

func NetworkRule() *schema.Resource

NetworkRule returns a pointer to the resource representing a network rule.

func NormalizeAndCompare added in v0.93.0

func NormalizeAndCompare[T comparable](normalize func(string) (T, error)) schema.SchemaDiffSuppressFunc

func NormalizeAndCompareIdentifiersInSet added in v0.94.0

func NormalizeAndCompareIdentifiersInSet(key string) schema.SchemaDiffSuppressFunc

NormalizeAndCompareIdentifiersInSet is a diff suppression function that should be used at top-level TypeSet fields that hold identifiers to avoid diffs like: - "DATABASE"."SCHEMA"."OBJECT" + DATABASE.SCHEMA.OBJECT where both identifiers are pointing to the same object, but have different structure. When a diff occurs in the list or set, we have to handle two suppressions (one that prevents adding and one that prevents the removal). It's handled by the two statements with the help of helpers.ContainsIdentifierIgnoringQuotes and by getting the current state of ids to compare against. The diff suppressions for lists and sets are running for each element one by one, and the first diff is usually .# referring to the collection length (we skip those).

func NormalizeAndCompareUsingFunc added in v1.0.0

func NormalizeAndCompareUsingFunc[T any](normalize func(string) (T, error), compareFunc func(a, b T) bool) schema.SchemaDiffSuppressFunc

func NotificationIntegration added in v0.34.0

func NotificationIntegration() *schema.Resource

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

func OauthIntegrationForCustomClients added in v0.93.0

func OauthIntegrationForCustomClients() *schema.Resource

func OauthIntegrationForPartnerApplications added in v0.93.0

func OauthIntegrationForPartnerApplications() *schema.Resource

func ObjectParameter added in v0.54.0

func ObjectParameter() *schema.Resource

func ObjectRenamingListsAndSets added in v0.98.0

func ObjectRenamingListsAndSets() *schema.Resource

func ParameterValueComputedIf added in v0.93.0

func ParameterValueComputedIf[T ~string](key string, parameters []*sdk.Parameter, objectParameterLevel sdk.ParameterType, param T, valueToString func(v any) string) schema.CustomizeDiffFunc

func ParametersCustomDiff added in v0.93.0

func ParametersCustomDiff[T ~string](parametersProvider func(context.Context, ResourceIdProvider, any) ([]*sdk.Parameter, error), parameters ...parameter[T]) schema.CustomizeDiffFunc

func ParseFullyQualifiedObjectID added in v0.93.0

func ParseFullyQualifiedObjectID(s string) (dbName, schemaName, objectName string)

TODO [SNOW-1634872]: replace during identifiers rework follow-up

func PasswordPolicy added in v0.62.0

func PasswordPolicy() *schema.Resource

func Pipe added in v0.34.0

func Pipe() *schema.Resource

func PreviewFeatureCreateContextWrapper added in v1.0.0

func PreviewFeatureCreateContextWrapper(featureRaw string, createFunc schema.CreateContextFunc) schema.CreateContextFunc

func PreviewFeatureDeleteContextWrapper added in v1.0.0

func PreviewFeatureDeleteContextWrapper(featureRaw string, deleteFunc schema.DeleteContextFunc) schema.DeleteContextFunc

func PreviewFeatureReadContextWrapper added in v1.0.0

func PreviewFeatureReadContextWrapper(featureRaw string, readFunc schema.ReadContextFunc) schema.ReadContextFunc

func PreviewFeatureUpdateContextWrapper added in v1.0.0

func PreviewFeatureUpdateContextWrapper(featureRaw string, updateFunc schema.UpdateContextFunc) schema.UpdateContextFunc

func PrimaryConnection added in v0.98.0

func PrimaryConnection() *schema.Resource

func ProcedureJava added in v1.0.0

func ProcedureJava() *schema.Resource

func ProcedureJavascript added in v1.0.0

func ProcedureJavascript() *schema.Resource

func ProcedurePython added in v1.0.0

func ProcedurePython() *schema.Resource

func ProcedureScala added in v1.0.0

func ProcedureScala() *schema.Resource

func ProcedureSql added in v1.0.0

func ProcedureSql() *schema.Resource

func ReadAPIIntegration added in v0.34.0

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

ReadAPIIntegration implements schema.ReadFunc.

func ReadAccount added in v0.56.0

func ReadAccount(withExternalChangesMarking bool) schema.ReadContextFunc

func ReadAccountAuthenticationPolicyAttachment added in v0.98.0

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

func ReadAccountParameter added in v0.54.0

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

ReadAccountParameter implements schema.ReadFunc.

func ReadAccountPasswordPolicyAttachment added in v0.67.0

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

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(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics

ReadAlert implements schema.ReadContextFunc.

func ReadContextApiAuthenticationIntegrationWithAuthorizationCodeGrant added in v0.93.0

func ReadContextApiAuthenticationIntegrationWithAuthorizationCodeGrant(withExternalChangesMarking bool) schema.ReadContextFunc

func ReadContextApiAuthenticationIntegrationWithClientCredentials added in v0.93.0

func ReadContextApiAuthenticationIntegrationWithClientCredentials(withExternalChangesMarking bool) schema.ReadContextFunc

func ReadContextApiAuthenticationIntegrationWithJwtBearer added in v0.93.0

func ReadContextApiAuthenticationIntegrationWithJwtBearer(withExternalChangesMarking bool) schema.ReadContextFunc

func ReadContextAuthenticationPolicy added in v0.98.0

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

func ReadContextExternalFunction added in v0.86.0

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

func ReadContextExternalOauthIntegration added in v0.93.0

func ReadContextExternalOauthIntegration(withExternalChangesMarking bool) schema.ReadContextFunc

func ReadContextExternalVolume added in v0.98.0

func ReadContextExternalVolume(withExternalChangesMarking bool) schema.ReadContextFunc

func ReadContextFunctionJava added in v1.0.0

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

func ReadContextFunctionJavascript added in v1.0.0

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

func ReadContextFunctionPython added in v1.0.0

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

func ReadContextFunctionScala added in v1.0.0

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

func ReadContextFunctionSql added in v1.0.0

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

func ReadContextGrantApplicationRole added in v0.91.0

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

func ReadContextNetworkPolicy added in v0.92.0

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

func ReadContextNetworkRule added in v0.92.0

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

func ReadContextOauthIntegrationForCustomClients added in v0.93.0

func ReadContextOauthIntegrationForCustomClients(withExternalChangesMarking bool) schema.ReadContextFunc

func ReadContextOauthIntegrationForPartnerApplications added in v0.93.0

func ReadContextOauthIntegrationForPartnerApplications(withExternalChangesMarking bool) schema.ReadContextFunc

func ReadContextPrimaryConnection added in v0.98.0

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

func ReadContextProcedureJava added in v1.0.0

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

func ReadContextProcedureJavascript added in v1.0.0

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

func ReadContextProcedurePython added in v1.0.0

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

func ReadContextProcedureScala added in v1.0.0

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

func ReadContextProcedureSql added in v1.0.0

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

func ReadContextSAML2Integration added in v0.93.0

func ReadContextSAML2Integration(withExternalChangesMarking bool) schema.ReadContextFunc

func ReadContextSCIMIntegration added in v0.93.0

func ReadContextSCIMIntegration(withExternalChangesMarking bool) schema.ReadContextFunc

func ReadContextSchema added in v0.94.0

func ReadContextSchema(withExternalChangesMarking bool) schema.ReadContextFunc

func ReadContextSecondaryConnection added in v0.98.0

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

func ReadContextSecretWithAuthorizationCodeGrant added in v0.98.0

func ReadContextSecretWithAuthorizationCodeGrant(withExternalChangesMarking bool) schema.ReadContextFunc

func ReadContextSecretWithBasicAuthentication added in v0.98.0

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

func ReadContextSecretWithClientCredentials added in v0.98.0

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

func ReadContextSecretWithGenericString added in v0.98.0

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

func ReadContextStreamlit added in v0.94.0

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

func ReadContextTag added in v0.87.1

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

func ReadContextTagAssociation added in v0.87.1

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

func ReadCortexSearchService added in v0.93.0

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

ReadCortexSearchServicee implements schema.ReadFunc.

func ReadDatabase

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

func ReadDatabaseRole added in v0.62.0

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

func ReadDynamicTable added in v0.74.0

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

ReadDynamicTable implements schema.ReadFunc.

func ReadEmailNotificationIntegration added in v0.64.0

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

ReadEmailNotificationIntegration implements schema.ReadFunc.

func ReadExecute added in v1.0.0

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

func ReadExternalTable added in v0.34.0

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

ReadExternalTable implements schema.ReadFunc.

func ReadFailoverGroup added in v0.49.0

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

ReadFailoverGroup implements schema.ReadFunc.

func ReadFileFormat added in v0.34.0

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

ReadFileFormat implements schema.ReadFunc.

func ReadGrantAccountRole added in v0.84.0

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

func ReadGrantDatabaseRole added in v0.84.0

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

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 ReadGrantPrivilegesToShare added in v0.85.0

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

func ReadManagedAccount added in v0.34.0

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

ReadManagedAccount implements schema.ReadFunc.

func ReadMaskingPolicy added in v0.34.0

func ReadMaskingPolicy(withExternalChangesMarking bool) schema.ReadContextFunc

func ReadMaterializedView added in v0.34.0

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

ReadMaterializedView implements schema.ReadFunc.

func ReadNetworkPolicyAttachment added in v0.34.0

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

ReadNetworkPolicyAttachment implements schema.ReadFunc.

func ReadNotificationIntegration added in v0.34.0

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

ReadNotificationIntegration implements schema.ReadFunc.

func ReadObjectParameter added in v0.54.0

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

ReadObjectParameter implements schema.ReadFunc.

func ReadObjectRenamingListsAndSets added in v0.98.0

func ReadObjectRenamingListsAndSets(withExternalChangesMarking bool) schema.ReadContextFunc

func ReadPasswordPolicy added in v0.62.0

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

ReadPasswordPolicy implements schema.ReadFunc.

func ReadPipe added in v0.34.0

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

ReadPipe implements schema.ReadFunc.

func ReadResourceMonitor added in v0.34.0

func ReadResourceMonitor(withExternalChangesMarking bool) schema.ReadContextFunc

func ReadRowAccessPolicy added in v0.34.0

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

func ReadSecondaryDatabase added in v0.92.0

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

func ReadSequence added in v0.34.0

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

func ReadShare added in v0.34.0

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

ReadShare implements schema.ReadFunc.

func ReadSharedDatabase added in v0.92.0

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

func ReadStage added in v0.34.0

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

func ReadStorageIntegration added in v0.34.0

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

func ReadStreamOnDirectoryTable added in v0.98.0

func ReadStreamOnDirectoryTable(withDirectoryChangesMarking bool) schema.ReadContextFunc

func ReadStreamOnExternalTable added in v0.97.0

func ReadStreamOnExternalTable(withExternalChangesMarking bool) schema.ReadContextFunc

func ReadStreamOnTable added in v0.97.0

func ReadStreamOnTable(withExternalChangesMarking bool) schema.ReadContextFunc

func ReadStreamOnView added in v0.98.0

func ReadStreamOnView(withExternalChangesMarking bool) schema.ReadContextFunc

func ReadTable added in v0.34.0

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

ReadTable implements schema.ReadFunc.

func ReadTableColumnMaskingPolicyApplication added in v0.63.0

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

ReadTableColumnMaskingPolicyApplication implements schema.ReadFunc.

func ReadTableConstraint added in v0.47.0

func ReadTableConstraint(ctx context.Context, _ *schema.ResourceData, _ interface{}) diag.Diagnostics

ReadTableConstraint implements schema.ReadFunc.

func ReadTask added in v0.34.0

func ReadTask(withExternalChangesMarking bool) schema.ReadContextFunc

func ReadUserAuthenticationPolicyAttachment added in v0.98.0

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

func ReadUserPasswordPolicyAttachment added in v0.86.0

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

func ReadUserPublicKeys added in v0.34.0

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

func ReadView added in v0.34.0

func ReadView(withExternalChangesMarking bool) schema.ReadContextFunc

func RecreateWhenResourceBoolFieldChangedExternally added in v0.98.0

func RecreateWhenResourceBoolFieldChangedExternally(boolField string, wantValue bool) schema.CustomizeDiffFunc

RecreateWhenResourceBoolFieldChangedExternally recreates a resource when wantValue is different than value in boolField.

func RecreateWhenResourceStringFieldChangedExternally added in v1.0.0

func RecreateWhenResourceStringFieldChangedExternally(field string, wantValue string) schema.CustomizeDiffFunc

RecreateWhenResourceStringFieldChangedExternally recreates a resource when wantValue is different from value in field. TODO [SNOW-1850370]: merge with above? test.

func RecreateWhenResourceTypeChangedExternally added in v0.98.0

func RecreateWhenResourceTypeChangedExternally[T ~string](typeField string, wantType T, toType func(string) (T, error)) schema.CustomizeDiffFunc

RecreateWhenResourceTypeChangedExternally recreates a resource when argument wantType is different than the value in typeField.

func RecreateWhenSecretTypeChangedExternally added in v0.98.0

func RecreateWhenSecretTypeChangedExternally(secretType sdk.SecretType) schema.CustomizeDiffFunc

func RecreateWhenStreamIsStale added in v0.98.0

func RecreateWhenStreamIsStale() schema.CustomizeDiffFunc

RecreateWhenStreamIsStale detects when the stream is stale, and sets a `false` value for `stale` field. This means that the provider can detect that change in `stale` from `true` to `false`, where `false` is our desired state.

func RecreateWhenStreamTypeChangedExternally added in v0.98.0

func RecreateWhenStreamTypeChangedExternally(streamType sdk.StreamSourceType) schema.CustomizeDiffFunc

RecreateWhenStreamTypeChangedExternally recreates a stream when argument streamType is different than in the state.

func RecreateWhenUserTypeChangedExternally added in v0.97.0

func RecreateWhenUserTypeChangedExternally(userType sdk.UserType) schema.CustomizeDiffFunc

func ResourceMonitor added in v0.34.0

func ResourceMonitor() *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 SAML2Integration added in v0.93.0

func SAML2Integration() *schema.Resource

func SCIMIntegration added in v0.34.0

func SCIMIntegration() *schema.Resource

func Schema added in v0.34.0

func Schema() *schema.Resource

Schema returns a pointer to the resource representing a schema.

func SecondaryConnection added in v0.98.0

func SecondaryConnection() *schema.Resource

func SecondaryDatabase added in v0.92.0

func SecondaryDatabase() *schema.Resource

func SecretWithAuthorizationCodeGrant added in v0.98.0

func SecretWithAuthorizationCodeGrant() *schema.Resource

func SecretWithBasicAuthentication added in v0.98.0

func SecretWithBasicAuthentication() *schema.Resource

func SecretWithClientCredentials added in v0.98.0

func SecretWithClientCredentials() *schema.Resource

func SecretWithGenericString added in v0.98.0

func SecretWithGenericString() *schema.Resource

func Sequence added in v0.34.0

func Sequence() *schema.Resource

func ServiceUser added in v0.97.0

func ServiceUser() *schema.Resource

func SetPropertyOfFirstNestedObjectByKey added in v0.93.0

func SetPropertyOfFirstNestedObjectByKey[T any](d *schema.ResourceData, propertyKey string, nestedValueKey string, value T) error

SetPropertyOfFirstNestedObjectByKey should be used for single objects defined in the Terraform schema as schema.TypeList with MaxItems set to one and inner schema with single value. To easily set the inner value, you can specify top-level property with propertyKey, nested value with nestedValueKey and value at the end.

func SetPropertyOfFirstNestedObjectByValueKey added in v0.93.0

func SetPropertyOfFirstNestedObjectByValueKey[T any](d *schema.ResourceData, propertyKey string, value T) error

func Share added in v0.34.0

func Share() *schema.Resource

Share returns a pointer to the resource representing a share.

func SharedDatabase added in v0.92.0

func SharedDatabase() *schema.Resource

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 StreamOnDirectoryTable added in v0.98.0

func StreamOnDirectoryTable() *schema.Resource

func StreamOnExternalTable added in v0.97.0

func StreamOnExternalTable() *schema.Resource

func StreamOnTable added in v0.97.0

func StreamOnTable() *schema.Resource

func StreamOnView added in v0.98.0

func StreamOnView() *schema.Resource

func Streamlit added in v0.94.0

func Streamlit() *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 StringParameterValueComputedIf added in v0.93.0

func StringParameterValueComputedIf[T ~string](key string, params []*sdk.Parameter, parameterLevel sdk.ParameterType, parameter T) schema.CustomizeDiffFunc

func SuppressCaseInSet added in v0.95.0

func SuppressCaseInSet(key string) schema.SchemaDiffSuppressFunc

func SuppressIfAny added in v0.93.0

func SuppressIfAny(diffSuppressFunctions ...schema.SchemaDiffSuppressFunc) schema.SchemaDiffSuppressFunc

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, error)

func Task added in v0.34.0

func Task() *schema.Resource

func TrackingCreateWrapper added in v0.99.0

func TrackingCreateWrapper(resourceName resources.Resource, createImplementation schema.CreateContextFunc) schema.CreateContextFunc

func TrackingCustomDiffWrapper added in v0.99.0

func TrackingCustomDiffWrapper(resourceName resources.Resource, customdiffImplementation schema.CustomizeDiffFunc) schema.CustomizeDiffFunc

func TrackingDeleteWrapper added in v0.99.0

func TrackingDeleteWrapper(resourceName resources.Resource, deleteImplementation schema.DeleteContextFunc) schema.DeleteContextFunc

func TrackingImportWrapper added in v0.99.0

func TrackingImportWrapper(resourceName resources.Resource, importImplementation schema.StateContextFunc) schema.StateContextFunc

func TrackingReadWrapper added in v0.99.0

func TrackingReadWrapper(resourceName resources.Resource, readImplementation schema.ReadContextFunc) schema.ReadContextFunc

func TrackingUpdateWrapper added in v0.99.0

func TrackingUpdateWrapper(resourceName resources.Resource, updateImplementation schema.UpdateContextFunc) schema.UpdateContextFunc

func UpdateAPIIntegration added in v0.34.0

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

UpdateAPIIntegration implements schema.UpdateFunc.

func UpdateAccount added in v0.56.0

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

func UpdateAccountParameter added in v0.54.0

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

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(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics

UpdateAlert implements schema.UpdateContextFunc.

func UpdateContextApiAuthenticationIntegrationWithAuthorizationCodeGrant added in v0.93.0

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

func UpdateContextApiAuthenticationIntegrationWithClientCredentials added in v0.93.0

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

func UpdateContextApiAuthenticationIntegrationWithJwtBearer added in v0.93.0

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

func UpdateContextAuthenticationPolicy added in v0.98.0

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

func UpdateContextExternalFunction added in v0.86.0

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

func UpdateContextExternalOauthIntegration added in v0.93.0

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

func UpdateContextExternalVolume added in v0.98.0

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

func UpdateContextNetworkPolicy added in v0.92.0

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

func UpdateContextNetworkRule added in v0.92.0

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

func UpdateContextOauthIntegrationForCustomClients added in v0.93.0

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

func UpdateContextOauthIntegrationForPartnerApplications added in v0.93.0

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

func UpdateContextPrimaryConnection added in v0.98.0

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

func UpdateContextSAML2Integration added in v0.93.0

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

func UpdateContextSCIMIntegration added in v0.93.0

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

func UpdateContextSchema added in v0.94.0

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

func UpdateContextSecondaryConnection added in v0.98.0

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

func UpdateContextSecretWithAuthorizationCodeGrant added in v0.98.0

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

func UpdateContextSecretWithBasicAuthentication added in v0.98.0

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

func UpdateContextSecretWithClientCredentials added in v0.98.0

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

func UpdateContextSecretWithGenericString added in v0.98.0

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

func UpdateContextStreamlit added in v0.94.0

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

func UpdateContextTag added in v0.87.1

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

func UpdateContextTagAssociation added in v0.87.1

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

func UpdateCortexSearchService added in v0.93.0

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

UpdateCortexSearchService implements schema.UpdateFunc.

func UpdateDatabase

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

func UpdateDatabaseRole added in v0.62.0

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

func UpdateDynamicTable added in v0.74.0

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

UpdateDynamicTable implements schema.UpdateFunc.

func UpdateEmailNotificationIntegration added in v0.64.0

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

UpdateEmailNotificationIntegration implements schema.UpdateFunc.

func UpdateExecute added in v1.0.0

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

func UpdateExternalTable added in v0.34.0

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

UpdateExternalTable implements schema.UpdateFunc.

func UpdateFailoverGroup added in v0.49.0

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

UpdateFailoverGroup implements schema.UpdateFunc.

func UpdateFileFormat added in v0.34.0

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

UpdateFileFormat implements schema.UpdateFunc.

func UpdateFunction added in v0.34.0

func UpdateFunction(language string, readFunc func(ctx context.Context, d *schema.ResourceData, meta any) diag.Diagnostics) func(ctx context.Context, d *schema.ResourceData, meta any) diag.Diagnostics

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 UpdateGrantPrivilegesToShare added in v0.85.0

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

func UpdateMaskingPolicy added in v0.34.0

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

func UpdateMaterializedView added in v0.34.0

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

UpdateMaterializedView implements schema.UpdateFunc.

func UpdateNetworkPolicyAttachment added in v0.34.0

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

UpdateNetworkPolicyAttachment implements schema.UpdateFunc.

func UpdateNotificationIntegration added in v0.34.0

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

UpdateNotificationIntegration implements schema.UpdateFunc.

func UpdateObjectParameter added in v0.54.0

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

UpdateObjectParameter implements schema.UpdateFunc.

func UpdateObjectRenamingListsAndSets added in v0.98.0

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

func UpdatePasswordPolicy added in v0.62.0

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

UpdatePasswordPolicy implements schema.UpdateFunc.

func UpdatePipe added in v0.34.0

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

UpdatePipe implements schema.UpdateFunc.

func UpdateProcedure added in v0.34.0

func UpdateProcedure(language string, readFunc func(ctx context.Context, d *schema.ResourceData, meta any) diag.Diagnostics) func(ctx context.Context, d *schema.ResourceData, meta any) diag.Diagnostics

func UpdateResourceMonitor added in v0.55.0

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

func UpdateRowAccessPolicy added in v0.34.0

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

UpdateRowAccessPolicy implements schema.UpdateFunc.

func UpdateSecondaryDatabase added in v0.92.0

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

func UpdateSequence added in v0.34.0

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

func UpdateShare added in v0.34.0

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

UpdateShare implements schema.UpdateFunc.

func UpdateSharedDatabase added in v0.92.0

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

func UpdateStage added in v0.34.0

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

func UpdateStorageIntegration added in v0.34.0

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

func UpdateStreamOnDirectoryTable added in v0.98.0

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

func UpdateStreamOnExternalTable added in v0.97.0

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

func UpdateStreamOnTable added in v0.97.0

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

func UpdateStreamOnView added in v0.98.0

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

func UpdateTable added in v0.34.0

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

UpdateTable implements schema.UpdateFunc.

func UpdateTableConstraint added in v0.47.0

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

UpdateTableConstraint implements schema.UpdateFunc.

func UpdateTask added in v0.34.0

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

func UpdateUserPublicKeys added in v0.34.0

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

func UpdateView added in v0.34.0

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

func UpdateWarehouse

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

UpdateWarehouse implements schema.UpdateFunc.

func User

func User() *schema.Resource

func UserAuthenticationPolicyAttachment added in v0.98.0

func UserAuthenticationPolicyAttachment() *schema.Resource

UserAuthenticationPolicyAttachment returns a pointer to the resource representing a user authentication policy attachment.

func UserPasswordPolicyAttachment added in v0.86.0

func UserPasswordPolicyAttachment() *schema.Resource

UserPasswordPolicyAttachment returns a pointer to the resource representing a user password policy attachment.

func UserPublicKeys added in v0.34.0

func UserPublicKeys() *schema.Resource

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 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 GrantPrivilegesToShareId, err error)

func (*GrantPrivilegesToShareId) String added in v0.85.0

func (id *GrantPrivilegesToShareId) String() string

type ObjectRenamingDatabaseChangelog added in v0.98.0

type ObjectRenamingDatabaseChangelog struct {
	Added   []map[string]any
	Removed []map[string]any
	Changed []ObjectRenamingDatabaseChangelogChange
}

ObjectRenamingDatabaseChangelog is used for testing purposes to track actions taken in the Update method like Add/Remove/Change. It's only supported the manually_ordered_list option.

type ObjectRenamingDatabaseChangelogChange added in v0.98.0

type ObjectRenamingDatabaseChangelogChange struct {
	Before map[string]any
	After  map[string]any
}

type ObjectRenamingDatabaseListItem added in v0.98.0

type ObjectRenamingDatabaseListItem struct {
	String string
	Int    int
}

type ObjectRenamingDatabaseManuallyOrderedListItem added in v0.98.0

type ObjectRenamingDatabaseManuallyOrderedListItem struct {
	Name string
	Type 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 PlanCheckFunc added in v1.0.0

type PlanCheckFunc func(ctx context.Context, req plancheck.CheckPlanRequest, resp *plancheck.CheckPlanResponse)

func (PlanCheckFunc) CheckPlan added in v1.0.0

type ResourceIdProvider added in v0.93.0

type ResourceIdProvider interface {
	Id() string
}

type ResourceValueSetter added in v0.95.0

type ResourceValueSetter interface {
	Set(string, any) error
}

type ShareGrantKind added in v0.85.0

type ShareGrantKind string
const (
	OnDatabaseShareGrantKind          ShareGrantKind = "OnDatabase"
	OnSchemaShareGrantKind            ShareGrantKind = "OnSchema"
	OnFunctionShareGrantKind          ShareGrantKind = "OnFunction"
	OnTableShareGrantKind             ShareGrantKind = "OnTable"
	OnAllTablesInSchemaShareGrantKind ShareGrantKind = "OnAllTablesInSchema"
	OnTagShareGrantKind               ShareGrantKind = "OnTag"
	OnViewShareGrantKind              ShareGrantKind = "OnView"
)

type ViewDataMetricFunctionConfig added in v0.95.0

type ViewDataMetricFunctionConfig struct {
	DataMetricFunction sdk.SchemaObjectIdentifier
	On                 []sdk.Column
	ScheduleStatus     string
}

Source Files

Jump to

Keyboard shortcuts

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