published on Saturday, May 9, 2026 by Pulumi
published on Saturday, May 9, 2026 by Pulumi
Required warehouse For this resource, the provider now uses tag references to get information about masking policies attached to tags. This function requires a warehouse in the connection. Please, make sure you have either set a
DEFAULT_WAREHOUSEfor the user, or specified a warehouse in the provider configuration.
Deprecation notice The
allowedValuesfield (unordered set) is deprecated and will be removed in the next major version. UseorderedAllowedValues(ordered list) instead.orderedAllowedValuespreserves the order you specify, which is required when usingon_conflict.allowed_values_sequencefor tag propagation conflict resolution. See the migration guide for details.
Note A new
TAGS_ALLOW_EMPTY_ALLOWED_VALUESexperimental feature is available for this resource. When enabled, it improves howallowedValues/orderedAllowedValuesare handled — removing the field from the configuration correctly reverts the tag to accepting any value, and a newnoAllowedValuesfield allows you to explicitly block any value from being set on the tag (note that sometimes to enter this state, the provider may temporarily add and dropSNOWFLAKE_TERRAFORM_TEMP_TAG_ALLOWED_VALUEvalue). Without the flag, the behavior is unchanged from previous versions and thenoAllowedValuesfield has no effect. To enable it, addTAGS_ALLOW_EMPTY_ALLOWED_VALUESto theexperimentalFeaturesEnabledprovider field. See the migration guide for more details.
Resource used to manage tags. For more information, check tag documentation. For assigning tags to Snowflake objects, see tagAssociation resource.
Create Tag Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Tag(name: string, args: TagArgs, opts?: CustomResourceOptions);@overload
def Tag(resource_name: str,
args: TagArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Tag(resource_name: str,
opts: Optional[ResourceOptions] = None,
database: Optional[str] = None,
schema: Optional[str] = None,
allowed_values: Optional[Sequence[str]] = None,
comment: Optional[str] = None,
masking_policies: Optional[Sequence[str]] = None,
name: Optional[str] = None,
no_allowed_values: Optional[bool] = None,
on_conflict: Optional[TagOnConflictArgs] = None,
ordered_allowed_values: Optional[Sequence[str]] = None,
propagate: Optional[str] = None)func NewTag(ctx *Context, name string, args TagArgs, opts ...ResourceOption) (*Tag, error)public Tag(string name, TagArgs args, CustomResourceOptions? opts = null)type: snowflake:Tag
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "snowflake_tag" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args TagArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args TagArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args TagArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TagArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TagArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var tagResource = new Snowflake.Tag("tagResource", new()
{
Database = "string",
Schema = "string",
Comment = "string",
MaskingPolicies = new[]
{
"string",
},
Name = "string",
NoAllowedValues = false,
OnConflict = new Snowflake.Inputs.TagOnConflictArgs
{
AllowedValuesSequence = false,
CustomValue = "string",
},
OrderedAllowedValues = new[]
{
"string",
},
Propagate = "string",
});
example, err := snowflake.NewTag(ctx, "tagResource", &snowflake.TagArgs{
Database: pulumi.String("string"),
Schema: pulumi.String("string"),
Comment: pulumi.String("string"),
MaskingPolicies: pulumi.StringArray{
pulumi.String("string"),
},
Name: pulumi.String("string"),
NoAllowedValues: pulumi.Bool(false),
OnConflict: &snowflake.TagOnConflictArgs{
AllowedValuesSequence: pulumi.Bool(false),
CustomValue: pulumi.String("string"),
},
OrderedAllowedValues: pulumi.StringArray{
pulumi.String("string"),
},
Propagate: pulumi.String("string"),
})
resource "snowflake_tag" "tagResource" {
database = "string"
schema = "string"
comment = "string"
masking_policies = ["string"]
name = "string"
no_allowed_values = false
on_conflict = {
allowed_values_sequence = false
custom_value = "string"
}
ordered_allowed_values = ["string"]
propagate = "string"
}
var tagResource = new Tag("tagResource", TagArgs.builder()
.database("string")
.schema("string")
.comment("string")
.maskingPolicies("string")
.name("string")
.noAllowedValues(false)
.onConflict(TagOnConflictArgs.builder()
.allowedValuesSequence(false)
.customValue("string")
.build())
.orderedAllowedValues("string")
.propagate("string")
.build());
tag_resource = snowflake.Tag("tagResource",
database="string",
schema="string",
comment="string",
masking_policies=["string"],
name="string",
no_allowed_values=False,
on_conflict={
"allowed_values_sequence": False,
"custom_value": "string",
},
ordered_allowed_values=["string"],
propagate="string")
const tagResource = new snowflake.Tag("tagResource", {
database: "string",
schema: "string",
comment: "string",
maskingPolicies: ["string"],
name: "string",
noAllowedValues: false,
onConflict: {
allowedValuesSequence: false,
customValue: "string",
},
orderedAllowedValues: ["string"],
propagate: "string",
});
type: snowflake:Tag
properties:
comment: string
database: string
maskingPolicies:
- string
name: string
noAllowedValues: false
onConflict:
allowedValuesSequence: false
customValue: string
orderedAllowedValues:
- string
propagate: string
schema: string
Tag Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Tag resource accepts the following input properties:
- Database string
- The database in which to create the tag. Due to technical limitations (read more here), avoid using the following characters:
|,.,". - Schema string
- The schema in which to create the tag. Due to technical limitations (read more here), avoid using the following characters:
|,.,". - Allowed
Values List<string> - Set of allowed values for the tag (unordered). When specified, only these values can be assigned. When the
TAGS_ALLOW_EMPTY_ALLOWED_VALUESexperiment is enabled, removing this field from the configuration reverts the tag to accepting any value. Conflicts withnoAllowedValuesandorderedAllowedValues. - Comment string
- Specifies a comment for the tag.
- Masking
Policies List<string> - Set of masking policies for the tag. A tag can support one masking policy for each data type. If masking policies are assigned to the tag, before dropping the tag, the provider automatically unassigns them. For more information about this resource, see docs.
- Name string
- Specifies the identifier for the tag; must be unique for the database in which the tag is created. Due to technical limitations (read more here), avoid using the following characters:
|,.,". - No
Allowed boolValues - When set to true, the tag explicitly disallows any value from being assigned. This is different from omitting
allowedValues, which means any value is accepted. Available only when theTAGS_ALLOW_EMPTY_ALLOWED_VALUESexperiment is enabled. Conflicts withallowedValuesandorderedAllowedValues. - On
Conflict TagOn Conflict - Specifies what happens when there is a conflict between the values of propagated tags. External changes for this field won't be detected. In case you want to apply external changes, you can re-create the resource manually using "terraform taint".
- Ordered
Allowed List<string>Values - Ordered list of allowed values for the tag. The order is preserved in Snowflake and is significant when
on_conflict.allowed_values_sequenceis used — the first matching value in the sequence wins. Use this instead ofallowedValueswhen order matters. Conflicts withallowedValuesandnoAllowedValues. - Propagate string
- Specifies that the tag will be automatically propagated from source objects to target objects. See more about tag propagation in the official documentation. Valid options are:
NONE|ON_DEPENDENCY|ON_DATA_MOVEMENT|ON_DEPENDENCY_AND_DATA_MOVEMENT
- Database string
- The database in which to create the tag. Due to technical limitations (read more here), avoid using the following characters:
|,.,". - Schema string
- The schema in which to create the tag. Due to technical limitations (read more here), avoid using the following characters:
|,.,". - Allowed
Values []string - Set of allowed values for the tag (unordered). When specified, only these values can be assigned. When the
TAGS_ALLOW_EMPTY_ALLOWED_VALUESexperiment is enabled, removing this field from the configuration reverts the tag to accepting any value. Conflicts withnoAllowedValuesandorderedAllowedValues. - Comment string
- Specifies a comment for the tag.
- Masking
Policies []string - Set of masking policies for the tag. A tag can support one masking policy for each data type. If masking policies are assigned to the tag, before dropping the tag, the provider automatically unassigns them. For more information about this resource, see docs.
- Name string
- Specifies the identifier for the tag; must be unique for the database in which the tag is created. Due to technical limitations (read more here), avoid using the following characters:
|,.,". - No
Allowed boolValues - When set to true, the tag explicitly disallows any value from being assigned. This is different from omitting
allowedValues, which means any value is accepted. Available only when theTAGS_ALLOW_EMPTY_ALLOWED_VALUESexperiment is enabled. Conflicts withallowedValuesandorderedAllowedValues. - On
Conflict TagOn Conflict Args - Specifies what happens when there is a conflict between the values of propagated tags. External changes for this field won't be detected. In case you want to apply external changes, you can re-create the resource manually using "terraform taint".
- Ordered
Allowed []stringValues - Ordered list of allowed values for the tag. The order is preserved in Snowflake and is significant when
on_conflict.allowed_values_sequenceis used — the first matching value in the sequence wins. Use this instead ofallowedValueswhen order matters. Conflicts withallowedValuesandnoAllowedValues. - Propagate string
- Specifies that the tag will be automatically propagated from source objects to target objects. See more about tag propagation in the official documentation. Valid options are:
NONE|ON_DEPENDENCY|ON_DATA_MOVEMENT|ON_DEPENDENCY_AND_DATA_MOVEMENT
- database string
- The database in which to create the tag. Due to technical limitations (read more here), avoid using the following characters:
|,.,". - schema string
- The schema in which to create the tag. Due to technical limitations (read more here), avoid using the following characters:
|,.,". - allowed_
values list(string) - Set of allowed values for the tag (unordered). When specified, only these values can be assigned. When the
TAGS_ALLOW_EMPTY_ALLOWED_VALUESexperiment is enabled, removing this field from the configuration reverts the tag to accepting any value. Conflicts withnoAllowedValuesandorderedAllowedValues. - comment string
- Specifies a comment for the tag.
- masking_
policies list(string) - Set of masking policies for the tag. A tag can support one masking policy for each data type. If masking policies are assigned to the tag, before dropping the tag, the provider automatically unassigns them. For more information about this resource, see docs.
- name string
- Specifies the identifier for the tag; must be unique for the database in which the tag is created. Due to technical limitations (read more here), avoid using the following characters:
|,.,". - no_
allowed_ boolvalues - When set to true, the tag explicitly disallows any value from being assigned. This is different from omitting
allowedValues, which means any value is accepted. Available only when theTAGS_ALLOW_EMPTY_ALLOWED_VALUESexperiment is enabled. Conflicts withallowedValuesandorderedAllowedValues. - on_
conflict object - Specifies what happens when there is a conflict between the values of propagated tags. External changes for this field won't be detected. In case you want to apply external changes, you can re-create the resource manually using "terraform taint".
- ordered_
allowed_ list(string)values - Ordered list of allowed values for the tag. The order is preserved in Snowflake and is significant when
on_conflict.allowed_values_sequenceis used — the first matching value in the sequence wins. Use this instead ofallowedValueswhen order matters. Conflicts withallowedValuesandnoAllowedValues. - propagate string
- Specifies that the tag will be automatically propagated from source objects to target objects. See more about tag propagation in the official documentation. Valid options are:
NONE|ON_DEPENDENCY|ON_DATA_MOVEMENT|ON_DEPENDENCY_AND_DATA_MOVEMENT
- database String
- The database in which to create the tag. Due to technical limitations (read more here), avoid using the following characters:
|,.,". - schema String
- The schema in which to create the tag. Due to technical limitations (read more here), avoid using the following characters:
|,.,". - allowed
Values List<String> - Set of allowed values for the tag (unordered). When specified, only these values can be assigned. When the
TAGS_ALLOW_EMPTY_ALLOWED_VALUESexperiment is enabled, removing this field from the configuration reverts the tag to accepting any value. Conflicts withnoAllowedValuesandorderedAllowedValues. - comment String
- Specifies a comment for the tag.
- masking
Policies List<String> - Set of masking policies for the tag. A tag can support one masking policy for each data type. If masking policies are assigned to the tag, before dropping the tag, the provider automatically unassigns them. For more information about this resource, see docs.
- name String
- Specifies the identifier for the tag; must be unique for the database in which the tag is created. Due to technical limitations (read more here), avoid using the following characters:
|,.,". - no
Allowed BooleanValues - When set to true, the tag explicitly disallows any value from being assigned. This is different from omitting
allowedValues, which means any value is accepted. Available only when theTAGS_ALLOW_EMPTY_ALLOWED_VALUESexperiment is enabled. Conflicts withallowedValuesandorderedAllowedValues. - on
Conflict TagOn Conflict - Specifies what happens when there is a conflict between the values of propagated tags. External changes for this field won't be detected. In case you want to apply external changes, you can re-create the resource manually using "terraform taint".
- ordered
Allowed List<String>Values - Ordered list of allowed values for the tag. The order is preserved in Snowflake and is significant when
on_conflict.allowed_values_sequenceis used — the first matching value in the sequence wins. Use this instead ofallowedValueswhen order matters. Conflicts withallowedValuesandnoAllowedValues. - propagate String
- Specifies that the tag will be automatically propagated from source objects to target objects. See more about tag propagation in the official documentation. Valid options are:
NONE|ON_DEPENDENCY|ON_DATA_MOVEMENT|ON_DEPENDENCY_AND_DATA_MOVEMENT
- database string
- The database in which to create the tag. Due to technical limitations (read more here), avoid using the following characters:
|,.,". - schema string
- The schema in which to create the tag. Due to technical limitations (read more here), avoid using the following characters:
|,.,". - allowed
Values string[] - Set of allowed values for the tag (unordered). When specified, only these values can be assigned. When the
TAGS_ALLOW_EMPTY_ALLOWED_VALUESexperiment is enabled, removing this field from the configuration reverts the tag to accepting any value. Conflicts withnoAllowedValuesandorderedAllowedValues. - comment string
- Specifies a comment for the tag.
- masking
Policies string[] - Set of masking policies for the tag. A tag can support one masking policy for each data type. If masking policies are assigned to the tag, before dropping the tag, the provider automatically unassigns them. For more information about this resource, see docs.
- name string
- Specifies the identifier for the tag; must be unique for the database in which the tag is created. Due to technical limitations (read more here), avoid using the following characters:
|,.,". - no
Allowed booleanValues - When set to true, the tag explicitly disallows any value from being assigned. This is different from omitting
allowedValues, which means any value is accepted. Available only when theTAGS_ALLOW_EMPTY_ALLOWED_VALUESexperiment is enabled. Conflicts withallowedValuesandorderedAllowedValues. - on
Conflict TagOn Conflict - Specifies what happens when there is a conflict between the values of propagated tags. External changes for this field won't be detected. In case you want to apply external changes, you can re-create the resource manually using "terraform taint".
- ordered
Allowed string[]Values - Ordered list of allowed values for the tag. The order is preserved in Snowflake and is significant when
on_conflict.allowed_values_sequenceis used — the first matching value in the sequence wins. Use this instead ofallowedValueswhen order matters. Conflicts withallowedValuesandnoAllowedValues. - propagate string
- Specifies that the tag will be automatically propagated from source objects to target objects. See more about tag propagation in the official documentation. Valid options are:
NONE|ON_DEPENDENCY|ON_DATA_MOVEMENT|ON_DEPENDENCY_AND_DATA_MOVEMENT
- database str
- The database in which to create the tag. Due to technical limitations (read more here), avoid using the following characters:
|,.,". - schema str
- The schema in which to create the tag. Due to technical limitations (read more here), avoid using the following characters:
|,.,". - allowed_
values Sequence[str] - Set of allowed values for the tag (unordered). When specified, only these values can be assigned. When the
TAGS_ALLOW_EMPTY_ALLOWED_VALUESexperiment is enabled, removing this field from the configuration reverts the tag to accepting any value. Conflicts withnoAllowedValuesandorderedAllowedValues. - comment str
- Specifies a comment for the tag.
- masking_
policies Sequence[str] - Set of masking policies for the tag. A tag can support one masking policy for each data type. If masking policies are assigned to the tag, before dropping the tag, the provider automatically unassigns them. For more information about this resource, see docs.
- name str
- Specifies the identifier for the tag; must be unique for the database in which the tag is created. Due to technical limitations (read more here), avoid using the following characters:
|,.,". - no_
allowed_ boolvalues - When set to true, the tag explicitly disallows any value from being assigned. This is different from omitting
allowedValues, which means any value is accepted. Available only when theTAGS_ALLOW_EMPTY_ALLOWED_VALUESexperiment is enabled. Conflicts withallowedValuesandorderedAllowedValues. - on_
conflict TagOn Conflict Args - Specifies what happens when there is a conflict between the values of propagated tags. External changes for this field won't be detected. In case you want to apply external changes, you can re-create the resource manually using "terraform taint".
- ordered_
allowed_ Sequence[str]values - Ordered list of allowed values for the tag. The order is preserved in Snowflake and is significant when
on_conflict.allowed_values_sequenceis used — the first matching value in the sequence wins. Use this instead ofallowedValueswhen order matters. Conflicts withallowedValuesandnoAllowedValues. - propagate str
- Specifies that the tag will be automatically propagated from source objects to target objects. See more about tag propagation in the official documentation. Valid options are:
NONE|ON_DEPENDENCY|ON_DATA_MOVEMENT|ON_DEPENDENCY_AND_DATA_MOVEMENT
- database String
- The database in which to create the tag. Due to technical limitations (read more here), avoid using the following characters:
|,.,". - schema String
- The schema in which to create the tag. Due to technical limitations (read more here), avoid using the following characters:
|,.,". - allowed
Values List<String> - Set of allowed values for the tag (unordered). When specified, only these values can be assigned. When the
TAGS_ALLOW_EMPTY_ALLOWED_VALUESexperiment is enabled, removing this field from the configuration reverts the tag to accepting any value. Conflicts withnoAllowedValuesandorderedAllowedValues. - comment String
- Specifies a comment for the tag.
- masking
Policies List<String> - Set of masking policies for the tag. A tag can support one masking policy for each data type. If masking policies are assigned to the tag, before dropping the tag, the provider automatically unassigns them. For more information about this resource, see docs.
- name String
- Specifies the identifier for the tag; must be unique for the database in which the tag is created. Due to technical limitations (read more here), avoid using the following characters:
|,.,". - no
Allowed BooleanValues - When set to true, the tag explicitly disallows any value from being assigned. This is different from omitting
allowedValues, which means any value is accepted. Available only when theTAGS_ALLOW_EMPTY_ALLOWED_VALUESexperiment is enabled. Conflicts withallowedValuesandorderedAllowedValues. - on
Conflict Property Map - Specifies what happens when there is a conflict between the values of propagated tags. External changes for this field won't be detected. In case you want to apply external changes, you can re-create the resource manually using "terraform taint".
- ordered
Allowed List<String>Values - Ordered list of allowed values for the tag. The order is preserved in Snowflake and is significant when
on_conflict.allowed_values_sequenceis used — the first matching value in the sequence wins. Use this instead ofallowedValueswhen order matters. Conflicts withallowedValuesandnoAllowedValues. - propagate String
- Specifies that the tag will be automatically propagated from source objects to target objects. See more about tag propagation in the official documentation. Valid options are:
NONE|ON_DEPENDENCY|ON_DATA_MOVEMENT|ON_DEPENDENCY_AND_DATA_MOVEMENT
Outputs
All input properties are implicitly available as output properties. Additionally, the Tag resource produces the following output properties:
- Fully
Qualified stringName - Fully qualified name of the resource. For more information, see object name resolution.
- Id string
- The provider-assigned unique ID for this managed resource.
- Show
Outputs List<TagShow Output> - Outputs the result of
SHOW TAGSfor the given tag.
- Fully
Qualified stringName - Fully qualified name of the resource. For more information, see object name resolution.
- Id string
- The provider-assigned unique ID for this managed resource.
- Show
Outputs []TagShow Output - Outputs the result of
SHOW TAGSfor the given tag.
- fully_
qualified_ stringname - Fully qualified name of the resource. For more information, see object name resolution.
- id string
- The provider-assigned unique ID for this managed resource.
- show_
outputs list(object) - Outputs the result of
SHOW TAGSfor the given tag.
- fully
Qualified StringName - Fully qualified name of the resource. For more information, see object name resolution.
- id String
- The provider-assigned unique ID for this managed resource.
- show
Outputs List<TagShow Output> - Outputs the result of
SHOW TAGSfor the given tag.
- fully
Qualified stringName - Fully qualified name of the resource. For more information, see object name resolution.
- id string
- The provider-assigned unique ID for this managed resource.
- show
Outputs TagShow Output[] - Outputs the result of
SHOW TAGSfor the given tag.
- fully_
qualified_ strname - Fully qualified name of the resource. For more information, see object name resolution.
- id str
- The provider-assigned unique ID for this managed resource.
- show_
outputs Sequence[TagShow Output] - Outputs the result of
SHOW TAGSfor the given tag.
- fully
Qualified StringName - Fully qualified name of the resource. For more information, see object name resolution.
- id String
- The provider-assigned unique ID for this managed resource.
- show
Outputs List<Property Map> - Outputs the result of
SHOW TAGSfor the given tag.
Look up Existing Tag Resource
Get an existing Tag resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: TagState, opts?: CustomResourceOptions): Tag@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
allowed_values: Optional[Sequence[str]] = None,
comment: Optional[str] = None,
database: Optional[str] = None,
fully_qualified_name: Optional[str] = None,
masking_policies: Optional[Sequence[str]] = None,
name: Optional[str] = None,
no_allowed_values: Optional[bool] = None,
on_conflict: Optional[TagOnConflictArgs] = None,
ordered_allowed_values: Optional[Sequence[str]] = None,
propagate: Optional[str] = None,
schema: Optional[str] = None,
show_outputs: Optional[Sequence[TagShowOutputArgs]] = None) -> Tagfunc GetTag(ctx *Context, name string, id IDInput, state *TagState, opts ...ResourceOption) (*Tag, error)public static Tag Get(string name, Input<string> id, TagState? state, CustomResourceOptions? opts = null)public static Tag get(String name, Output<String> id, TagState state, CustomResourceOptions options)resources: _: type: snowflake:Tag get: id: ${id}import {
to = snowflake_tag.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Allowed
Values List<string> - Set of allowed values for the tag (unordered). When specified, only these values can be assigned. When the
TAGS_ALLOW_EMPTY_ALLOWED_VALUESexperiment is enabled, removing this field from the configuration reverts the tag to accepting any value. Conflicts withnoAllowedValuesandorderedAllowedValues. - Comment string
- Specifies a comment for the tag.
- Database string
- The database in which to create the tag. Due to technical limitations (read more here), avoid using the following characters:
|,.,". - Fully
Qualified stringName - Fully qualified name of the resource. For more information, see object name resolution.
- Masking
Policies List<string> - Set of masking policies for the tag. A tag can support one masking policy for each data type. If masking policies are assigned to the tag, before dropping the tag, the provider automatically unassigns them. For more information about this resource, see docs.
- Name string
- Specifies the identifier for the tag; must be unique for the database in which the tag is created. Due to technical limitations (read more here), avoid using the following characters:
|,.,". - No
Allowed boolValues - When set to true, the tag explicitly disallows any value from being assigned. This is different from omitting
allowedValues, which means any value is accepted. Available only when theTAGS_ALLOW_EMPTY_ALLOWED_VALUESexperiment is enabled. Conflicts withallowedValuesandorderedAllowedValues. - On
Conflict TagOn Conflict - Specifies what happens when there is a conflict between the values of propagated tags. External changes for this field won't be detected. In case you want to apply external changes, you can re-create the resource manually using "terraform taint".
- Ordered
Allowed List<string>Values - Ordered list of allowed values for the tag. The order is preserved in Snowflake and is significant when
on_conflict.allowed_values_sequenceis used — the first matching value in the sequence wins. Use this instead ofallowedValueswhen order matters. Conflicts withallowedValuesandnoAllowedValues. - Propagate string
- Specifies that the tag will be automatically propagated from source objects to target objects. See more about tag propagation in the official documentation. Valid options are:
NONE|ON_DEPENDENCY|ON_DATA_MOVEMENT|ON_DEPENDENCY_AND_DATA_MOVEMENT - Schema string
- The schema in which to create the tag. Due to technical limitations (read more here), avoid using the following characters:
|,.,". - Show
Outputs List<TagShow Output> - Outputs the result of
SHOW TAGSfor the given tag.
- Allowed
Values []string - Set of allowed values for the tag (unordered). When specified, only these values can be assigned. When the
TAGS_ALLOW_EMPTY_ALLOWED_VALUESexperiment is enabled, removing this field from the configuration reverts the tag to accepting any value. Conflicts withnoAllowedValuesandorderedAllowedValues. - Comment string
- Specifies a comment for the tag.
- Database string
- The database in which to create the tag. Due to technical limitations (read more here), avoid using the following characters:
|,.,". - Fully
Qualified stringName - Fully qualified name of the resource. For more information, see object name resolution.
- Masking
Policies []string - Set of masking policies for the tag. A tag can support one masking policy for each data type. If masking policies are assigned to the tag, before dropping the tag, the provider automatically unassigns them. For more information about this resource, see docs.
- Name string
- Specifies the identifier for the tag; must be unique for the database in which the tag is created. Due to technical limitations (read more here), avoid using the following characters:
|,.,". - No
Allowed boolValues - When set to true, the tag explicitly disallows any value from being assigned. This is different from omitting
allowedValues, which means any value is accepted. Available only when theTAGS_ALLOW_EMPTY_ALLOWED_VALUESexperiment is enabled. Conflicts withallowedValuesandorderedAllowedValues. - On
Conflict TagOn Conflict Args - Specifies what happens when there is a conflict between the values of propagated tags. External changes for this field won't be detected. In case you want to apply external changes, you can re-create the resource manually using "terraform taint".
- Ordered
Allowed []stringValues - Ordered list of allowed values for the tag. The order is preserved in Snowflake and is significant when
on_conflict.allowed_values_sequenceis used — the first matching value in the sequence wins. Use this instead ofallowedValueswhen order matters. Conflicts withallowedValuesandnoAllowedValues. - Propagate string
- Specifies that the tag will be automatically propagated from source objects to target objects. See more about tag propagation in the official documentation. Valid options are:
NONE|ON_DEPENDENCY|ON_DATA_MOVEMENT|ON_DEPENDENCY_AND_DATA_MOVEMENT - Schema string
- The schema in which to create the tag. Due to technical limitations (read more here), avoid using the following characters:
|,.,". - Show
Outputs []TagShow Output Args - Outputs the result of
SHOW TAGSfor the given tag.
- allowed_
values list(string) - Set of allowed values for the tag (unordered). When specified, only these values can be assigned. When the
TAGS_ALLOW_EMPTY_ALLOWED_VALUESexperiment is enabled, removing this field from the configuration reverts the tag to accepting any value. Conflicts withnoAllowedValuesandorderedAllowedValues. - comment string
- Specifies a comment for the tag.
- database string
- The database in which to create the tag. Due to technical limitations (read more here), avoid using the following characters:
|,.,". - fully_
qualified_ stringname - Fully qualified name of the resource. For more information, see object name resolution.
- masking_
policies list(string) - Set of masking policies for the tag. A tag can support one masking policy for each data type. If masking policies are assigned to the tag, before dropping the tag, the provider automatically unassigns them. For more information about this resource, see docs.
- name string
- Specifies the identifier for the tag; must be unique for the database in which the tag is created. Due to technical limitations (read more here), avoid using the following characters:
|,.,". - no_
allowed_ boolvalues - When set to true, the tag explicitly disallows any value from being assigned. This is different from omitting
allowedValues, which means any value is accepted. Available only when theTAGS_ALLOW_EMPTY_ALLOWED_VALUESexperiment is enabled. Conflicts withallowedValuesandorderedAllowedValues. - on_
conflict object - Specifies what happens when there is a conflict between the values of propagated tags. External changes for this field won't be detected. In case you want to apply external changes, you can re-create the resource manually using "terraform taint".
- ordered_
allowed_ list(string)values - Ordered list of allowed values for the tag. The order is preserved in Snowflake and is significant when
on_conflict.allowed_values_sequenceis used — the first matching value in the sequence wins. Use this instead ofallowedValueswhen order matters. Conflicts withallowedValuesandnoAllowedValues. - propagate string
- Specifies that the tag will be automatically propagated from source objects to target objects. See more about tag propagation in the official documentation. Valid options are:
NONE|ON_DEPENDENCY|ON_DATA_MOVEMENT|ON_DEPENDENCY_AND_DATA_MOVEMENT - schema string
- The schema in which to create the tag. Due to technical limitations (read more here), avoid using the following characters:
|,.,". - show_
outputs list(object) - Outputs the result of
SHOW TAGSfor the given tag.
- allowed
Values List<String> - Set of allowed values for the tag (unordered). When specified, only these values can be assigned. When the
TAGS_ALLOW_EMPTY_ALLOWED_VALUESexperiment is enabled, removing this field from the configuration reverts the tag to accepting any value. Conflicts withnoAllowedValuesandorderedAllowedValues. - comment String
- Specifies a comment for the tag.
- database String
- The database in which to create the tag. Due to technical limitations (read more here), avoid using the following characters:
|,.,". - fully
Qualified StringName - Fully qualified name of the resource. For more information, see object name resolution.
- masking
Policies List<String> - Set of masking policies for the tag. A tag can support one masking policy for each data type. If masking policies are assigned to the tag, before dropping the tag, the provider automatically unassigns them. For more information about this resource, see docs.
- name String
- Specifies the identifier for the tag; must be unique for the database in which the tag is created. Due to technical limitations (read more here), avoid using the following characters:
|,.,". - no
Allowed BooleanValues - When set to true, the tag explicitly disallows any value from being assigned. This is different from omitting
allowedValues, which means any value is accepted. Available only when theTAGS_ALLOW_EMPTY_ALLOWED_VALUESexperiment is enabled. Conflicts withallowedValuesandorderedAllowedValues. - on
Conflict TagOn Conflict - Specifies what happens when there is a conflict between the values of propagated tags. External changes for this field won't be detected. In case you want to apply external changes, you can re-create the resource manually using "terraform taint".
- ordered
Allowed List<String>Values - Ordered list of allowed values for the tag. The order is preserved in Snowflake and is significant when
on_conflict.allowed_values_sequenceis used — the first matching value in the sequence wins. Use this instead ofallowedValueswhen order matters. Conflicts withallowedValuesandnoAllowedValues. - propagate String
- Specifies that the tag will be automatically propagated from source objects to target objects. See more about tag propagation in the official documentation. Valid options are:
NONE|ON_DEPENDENCY|ON_DATA_MOVEMENT|ON_DEPENDENCY_AND_DATA_MOVEMENT - schema String
- The schema in which to create the tag. Due to technical limitations (read more here), avoid using the following characters:
|,.,". - show
Outputs List<TagShow Output> - Outputs the result of
SHOW TAGSfor the given tag.
- allowed
Values string[] - Set of allowed values for the tag (unordered). When specified, only these values can be assigned. When the
TAGS_ALLOW_EMPTY_ALLOWED_VALUESexperiment is enabled, removing this field from the configuration reverts the tag to accepting any value. Conflicts withnoAllowedValuesandorderedAllowedValues. - comment string
- Specifies a comment for the tag.
- database string
- The database in which to create the tag. Due to technical limitations (read more here), avoid using the following characters:
|,.,". - fully
Qualified stringName - Fully qualified name of the resource. For more information, see object name resolution.
- masking
Policies string[] - Set of masking policies for the tag. A tag can support one masking policy for each data type. If masking policies are assigned to the tag, before dropping the tag, the provider automatically unassigns them. For more information about this resource, see docs.
- name string
- Specifies the identifier for the tag; must be unique for the database in which the tag is created. Due to technical limitations (read more here), avoid using the following characters:
|,.,". - no
Allowed booleanValues - When set to true, the tag explicitly disallows any value from being assigned. This is different from omitting
allowedValues, which means any value is accepted. Available only when theTAGS_ALLOW_EMPTY_ALLOWED_VALUESexperiment is enabled. Conflicts withallowedValuesandorderedAllowedValues. - on
Conflict TagOn Conflict - Specifies what happens when there is a conflict between the values of propagated tags. External changes for this field won't be detected. In case you want to apply external changes, you can re-create the resource manually using "terraform taint".
- ordered
Allowed string[]Values - Ordered list of allowed values for the tag. The order is preserved in Snowflake and is significant when
on_conflict.allowed_values_sequenceis used — the first matching value in the sequence wins. Use this instead ofallowedValueswhen order matters. Conflicts withallowedValuesandnoAllowedValues. - propagate string
- Specifies that the tag will be automatically propagated from source objects to target objects. See more about tag propagation in the official documentation. Valid options are:
NONE|ON_DEPENDENCY|ON_DATA_MOVEMENT|ON_DEPENDENCY_AND_DATA_MOVEMENT - schema string
- The schema in which to create the tag. Due to technical limitations (read more here), avoid using the following characters:
|,.,". - show
Outputs TagShow Output[] - Outputs the result of
SHOW TAGSfor the given tag.
- allowed_
values Sequence[str] - Set of allowed values for the tag (unordered). When specified, only these values can be assigned. When the
TAGS_ALLOW_EMPTY_ALLOWED_VALUESexperiment is enabled, removing this field from the configuration reverts the tag to accepting any value. Conflicts withnoAllowedValuesandorderedAllowedValues. - comment str
- Specifies a comment for the tag.
- database str
- The database in which to create the tag. Due to technical limitations (read more here), avoid using the following characters:
|,.,". - fully_
qualified_ strname - Fully qualified name of the resource. For more information, see object name resolution.
- masking_
policies Sequence[str] - Set of masking policies for the tag. A tag can support one masking policy for each data type. If masking policies are assigned to the tag, before dropping the tag, the provider automatically unassigns them. For more information about this resource, see docs.
- name str
- Specifies the identifier for the tag; must be unique for the database in which the tag is created. Due to technical limitations (read more here), avoid using the following characters:
|,.,". - no_
allowed_ boolvalues - When set to true, the tag explicitly disallows any value from being assigned. This is different from omitting
allowedValues, which means any value is accepted. Available only when theTAGS_ALLOW_EMPTY_ALLOWED_VALUESexperiment is enabled. Conflicts withallowedValuesandorderedAllowedValues. - on_
conflict TagOn Conflict Args - Specifies what happens when there is a conflict between the values of propagated tags. External changes for this field won't be detected. In case you want to apply external changes, you can re-create the resource manually using "terraform taint".
- ordered_
allowed_ Sequence[str]values - Ordered list of allowed values for the tag. The order is preserved in Snowflake and is significant when
on_conflict.allowed_values_sequenceis used — the first matching value in the sequence wins. Use this instead ofallowedValueswhen order matters. Conflicts withallowedValuesandnoAllowedValues. - propagate str
- Specifies that the tag will be automatically propagated from source objects to target objects. See more about tag propagation in the official documentation. Valid options are:
NONE|ON_DEPENDENCY|ON_DATA_MOVEMENT|ON_DEPENDENCY_AND_DATA_MOVEMENT - schema str
- The schema in which to create the tag. Due to technical limitations (read more here), avoid using the following characters:
|,.,". - show_
outputs Sequence[TagShow Output Args] - Outputs the result of
SHOW TAGSfor the given tag.
- allowed
Values List<String> - Set of allowed values for the tag (unordered). When specified, only these values can be assigned. When the
TAGS_ALLOW_EMPTY_ALLOWED_VALUESexperiment is enabled, removing this field from the configuration reverts the tag to accepting any value. Conflicts withnoAllowedValuesandorderedAllowedValues. - comment String
- Specifies a comment for the tag.
- database String
- The database in which to create the tag. Due to technical limitations (read more here), avoid using the following characters:
|,.,". - fully
Qualified StringName - Fully qualified name of the resource. For more information, see object name resolution.
- masking
Policies List<String> - Set of masking policies for the tag. A tag can support one masking policy for each data type. If masking policies are assigned to the tag, before dropping the tag, the provider automatically unassigns them. For more information about this resource, see docs.
- name String
- Specifies the identifier for the tag; must be unique for the database in which the tag is created. Due to technical limitations (read more here), avoid using the following characters:
|,.,". - no
Allowed BooleanValues - When set to true, the tag explicitly disallows any value from being assigned. This is different from omitting
allowedValues, which means any value is accepted. Available only when theTAGS_ALLOW_EMPTY_ALLOWED_VALUESexperiment is enabled. Conflicts withallowedValuesandorderedAllowedValues. - on
Conflict Property Map - Specifies what happens when there is a conflict between the values of propagated tags. External changes for this field won't be detected. In case you want to apply external changes, you can re-create the resource manually using "terraform taint".
- ordered
Allowed List<String>Values - Ordered list of allowed values for the tag. The order is preserved in Snowflake and is significant when
on_conflict.allowed_values_sequenceis used — the first matching value in the sequence wins. Use this instead ofallowedValueswhen order matters. Conflicts withallowedValuesandnoAllowedValues. - propagate String
- Specifies that the tag will be automatically propagated from source objects to target objects. See more about tag propagation in the official documentation. Valid options are:
NONE|ON_DEPENDENCY|ON_DATA_MOVEMENT|ON_DEPENDENCY_AND_DATA_MOVEMENT - schema String
- The schema in which to create the tag. Due to technical limitations (read more here), avoid using the following characters:
|,.,". - show
Outputs List<Property Map> - Outputs the result of
SHOW TAGSfor the given tag.
Supporting Types
TagOnConflict, TagOnConflictArgs
- Allowed
Values boolSequence - The order of the values in the ALLOWED_VALUES property of the tag determines which value is used when there is a conflict. External changes for this field won't be detected. In case you want to apply external changes, you can re-create the resource manually using "terraform taint".
- Custom
Value string - Whenever there is a conflict, the value of tag is set to custom_value. If
allowedValuesare set, the value set in this field should be one of the values in theallowedValueslist. External changes for this field won't be detected. In case you want to apply external changes, you can re-create the resource manually using "terraform taint".
- Allowed
Values boolSequence - The order of the values in the ALLOWED_VALUES property of the tag determines which value is used when there is a conflict. External changes for this field won't be detected. In case you want to apply external changes, you can re-create the resource manually using "terraform taint".
- Custom
Value string - Whenever there is a conflict, the value of tag is set to custom_value. If
allowedValuesare set, the value set in this field should be one of the values in theallowedValueslist. External changes for this field won't be detected. In case you want to apply external changes, you can re-create the resource manually using "terraform taint".
- allowed_
values_ boolsequence - The order of the values in the ALLOWED_VALUES property of the tag determines which value is used when there is a conflict. External changes for this field won't be detected. In case you want to apply external changes, you can re-create the resource manually using "terraform taint".
- custom_
value string - Whenever there is a conflict, the value of tag is set to custom_value. If
allowedValuesare set, the value set in this field should be one of the values in theallowedValueslist. External changes for this field won't be detected. In case you want to apply external changes, you can re-create the resource manually using "terraform taint".
- allowed
Values BooleanSequence - The order of the values in the ALLOWED_VALUES property of the tag determines which value is used when there is a conflict. External changes for this field won't be detected. In case you want to apply external changes, you can re-create the resource manually using "terraform taint".
- custom
Value String - Whenever there is a conflict, the value of tag is set to custom_value. If
allowedValuesare set, the value set in this field should be one of the values in theallowedValueslist. External changes for this field won't be detected. In case you want to apply external changes, you can re-create the resource manually using "terraform taint".
- allowed
Values booleanSequence - The order of the values in the ALLOWED_VALUES property of the tag determines which value is used when there is a conflict. External changes for this field won't be detected. In case you want to apply external changes, you can re-create the resource manually using "terraform taint".
- custom
Value string - Whenever there is a conflict, the value of tag is set to custom_value. If
allowedValuesare set, the value set in this field should be one of the values in theallowedValueslist. External changes for this field won't be detected. In case you want to apply external changes, you can re-create the resource manually using "terraform taint".
- allowed_
values_ boolsequence - The order of the values in the ALLOWED_VALUES property of the tag determines which value is used when there is a conflict. External changes for this field won't be detected. In case you want to apply external changes, you can re-create the resource manually using "terraform taint".
- custom_
value str - Whenever there is a conflict, the value of tag is set to custom_value. If
allowedValuesare set, the value set in this field should be one of the values in theallowedValueslist. External changes for this field won't be detected. In case you want to apply external changes, you can re-create the resource manually using "terraform taint".
- allowed
Values BooleanSequence - The order of the values in the ALLOWED_VALUES property of the tag determines which value is used when there is a conflict. External changes for this field won't be detected. In case you want to apply external changes, you can re-create the resource manually using "terraform taint".
- custom
Value String - Whenever there is a conflict, the value of tag is set to custom_value. If
allowedValuesare set, the value set in this field should be one of the values in theallowedValueslist. External changes for this field won't be detected. In case you want to apply external changes, you can re-create the resource manually using "terraform taint".
TagShowOutput, TagShowOutputArgs
- Allowed
Values List<string> - Comment string
- Created
On string - Database
Name string - Name string
- Owner string
- Owner
Role stringType - Propagate string
- Schema
Name string
- Allowed
Values []string - Comment string
- Created
On string - Database
Name string - Name string
- Owner string
- Owner
Role stringType - Propagate string
- Schema
Name string
- allowed_
values list(string) - comment string
- created_
on string - database_
name string - name string
- owner string
- owner_
role_ stringtype - propagate string
- schema_
name string
- allowed
Values List<String> - comment String
- created
On String - database
Name String - name String
- owner String
- owner
Role StringType - propagate String
- schema
Name String
- allowed
Values string[] - comment string
- created
On string - database
Name string - name string
- owner string
- owner
Role stringType - propagate string
- schema
Name string
- allowed_
values Sequence[str] - comment str
- created_
on str - database_
name str - name str
- owner str
- owner_
role_ strtype - propagate str
- schema_
name str
- allowed
Values List<String> - comment String
- created
On String - database
Name String - name String
- owner String
- owner
Role StringType - propagate String
- schema
Name String
Import
$ pulumi import snowflake:index/tag:Tag example '"<database_name>"."<schema_name>"."<tag_name>"'
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Snowflake pulumi/pulumi-snowflake
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
snowflakeTerraform Provider.
published on Saturday, May 9, 2026 by Pulumi
