1. Packages
  2. Snowflake Provider
  3. API Docs
  4. TagAssociation
Snowflake v1.2.0 published on Monday, Apr 14, 2025 by Pulumi

snowflake.TagAssociation

Explore with Pulumi AI

Import

~> Note Due to technical limitations of Terraform SDK, object_identifiers are not set during import state. Please run terraform refresh after importing to get this field populated.

$ pulumi import snowflake:index/tagAssociation:TagAssociation example '"TAG_DATABASE"."TAG_SCHEMA"."TAG_NAME"|TAG_VALUE|OBJECT_TYPE'
Copy

Create TagAssociation Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new TagAssociation(name: string, args: TagAssociationArgs, opts?: CustomResourceOptions);
@overload
def TagAssociation(resource_name: str,
                   args: TagAssociationArgs,
                   opts: Optional[ResourceOptions] = None)

@overload
def TagAssociation(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   object_identifiers: Optional[Sequence[str]] = None,
                   object_type: Optional[str] = None,
                   tag_id: Optional[str] = None,
                   tag_value: Optional[str] = None,
                   skip_validation: Optional[bool] = None)
func NewTagAssociation(ctx *Context, name string, args TagAssociationArgs, opts ...ResourceOption) (*TagAssociation, error)
public TagAssociation(string name, TagAssociationArgs args, CustomResourceOptions? opts = null)
public TagAssociation(String name, TagAssociationArgs args)
public TagAssociation(String name, TagAssociationArgs args, CustomResourceOptions options)
type: snowflake:TagAssociation
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. TagAssociationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. TagAssociationArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. TagAssociationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. TagAssociationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. TagAssociationArgs
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 tagAssociationResource = new Snowflake.TagAssociation("tagAssociationResource", new()
{
    ObjectIdentifiers = new[]
    {
        "string",
    },
    ObjectType = "string",
    TagId = "string",
    TagValue = "string",
    SkipValidation = false,
});
Copy
example, err := snowflake.NewTagAssociation(ctx, "tagAssociationResource", &snowflake.TagAssociationArgs{
	ObjectIdentifiers: pulumi.StringArray{
		pulumi.String("string"),
	},
	ObjectType:     pulumi.String("string"),
	TagId:          pulumi.String("string"),
	TagValue:       pulumi.String("string"),
	SkipValidation: pulumi.Bool(false),
})
Copy
var tagAssociationResource = new TagAssociation("tagAssociationResource", TagAssociationArgs.builder()
    .objectIdentifiers("string")
    .objectType("string")
    .tagId("string")
    .tagValue("string")
    .skipValidation(false)
    .build());
Copy
tag_association_resource = snowflake.TagAssociation("tagAssociationResource",
    object_identifiers=["string"],
    object_type="string",
    tag_id="string",
    tag_value="string",
    skip_validation=False)
Copy
const tagAssociationResource = new snowflake.TagAssociation("tagAssociationResource", {
    objectIdentifiers: ["string"],
    objectType: "string",
    tagId: "string",
    tagValue: "string",
    skipValidation: false,
});
Copy
type: snowflake:TagAssociation
properties:
    objectIdentifiers:
        - string
    objectType: string
    skipValidation: false
    tagId: string
    tagValue: string
Copy

TagAssociation 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 TagAssociation resource accepts the following input properties:

ObjectIdentifiers This property is required. List<string>
Specifies the object identifiers for the tag association.
ObjectType
This property is required.
Changes to this property will trigger replacement.
string
Specifies the type of object to add a tag. Allowed object types: [ACCOUNT APPLICATION APPLICATION PACKAGE DATABASE FAILOVER GROUP INTEGRATION NETWORK POLICY REPLICATION GROUP ROLE SHARE USER WAREHOUSE DATABASE ROLE SCHEMA ALERT SNOWFLAKE.CORE.BUDGET SNOWFLAKE.ML.CLASSIFICATION EXTERNAL FUNCTION EXTERNAL TABLE FUNCTION GIT REPOSITORY ICEBERG TABLE MATERIALIZED VIEW PIPE MASKING POLICY PASSWORD POLICY ROW ACCESS POLICY SESSION POLICY PRIVACY POLICY PROCEDURE STAGE STREAM TABLE TASK VIEW COLUMN EVENT TABLE].
TagId
This property is required.
Changes to this property will trigger replacement.
string
Specifies the identifier for the tag.
TagValue This property is required. string
Specifies the value of the tag, (e.g. 'finance' or 'engineering')
SkipValidation bool
(Default: true) If true, skips validation of the tag association.
ObjectIdentifiers This property is required. []string
Specifies the object identifiers for the tag association.
ObjectType
This property is required.
Changes to this property will trigger replacement.
string
Specifies the type of object to add a tag. Allowed object types: [ACCOUNT APPLICATION APPLICATION PACKAGE DATABASE FAILOVER GROUP INTEGRATION NETWORK POLICY REPLICATION GROUP ROLE SHARE USER WAREHOUSE DATABASE ROLE SCHEMA ALERT SNOWFLAKE.CORE.BUDGET SNOWFLAKE.ML.CLASSIFICATION EXTERNAL FUNCTION EXTERNAL TABLE FUNCTION GIT REPOSITORY ICEBERG TABLE MATERIALIZED VIEW PIPE MASKING POLICY PASSWORD POLICY ROW ACCESS POLICY SESSION POLICY PRIVACY POLICY PROCEDURE STAGE STREAM TABLE TASK VIEW COLUMN EVENT TABLE].
TagId
This property is required.
Changes to this property will trigger replacement.
string
Specifies the identifier for the tag.
TagValue This property is required. string
Specifies the value of the tag, (e.g. 'finance' or 'engineering')
SkipValidation bool
(Default: true) If true, skips validation of the tag association.
objectIdentifiers This property is required. List<String>
Specifies the object identifiers for the tag association.
objectType
This property is required.
Changes to this property will trigger replacement.
String
Specifies the type of object to add a tag. Allowed object types: [ACCOUNT APPLICATION APPLICATION PACKAGE DATABASE FAILOVER GROUP INTEGRATION NETWORK POLICY REPLICATION GROUP ROLE SHARE USER WAREHOUSE DATABASE ROLE SCHEMA ALERT SNOWFLAKE.CORE.BUDGET SNOWFLAKE.ML.CLASSIFICATION EXTERNAL FUNCTION EXTERNAL TABLE FUNCTION GIT REPOSITORY ICEBERG TABLE MATERIALIZED VIEW PIPE MASKING POLICY PASSWORD POLICY ROW ACCESS POLICY SESSION POLICY PRIVACY POLICY PROCEDURE STAGE STREAM TABLE TASK VIEW COLUMN EVENT TABLE].
tagId
This property is required.
Changes to this property will trigger replacement.
String
Specifies the identifier for the tag.
tagValue This property is required. String
Specifies the value of the tag, (e.g. 'finance' or 'engineering')
skipValidation Boolean
(Default: true) If true, skips validation of the tag association.
objectIdentifiers This property is required. string[]
Specifies the object identifiers for the tag association.
objectType
This property is required.
Changes to this property will trigger replacement.
string
Specifies the type of object to add a tag. Allowed object types: [ACCOUNT APPLICATION APPLICATION PACKAGE DATABASE FAILOVER GROUP INTEGRATION NETWORK POLICY REPLICATION GROUP ROLE SHARE USER WAREHOUSE DATABASE ROLE SCHEMA ALERT SNOWFLAKE.CORE.BUDGET SNOWFLAKE.ML.CLASSIFICATION EXTERNAL FUNCTION EXTERNAL TABLE FUNCTION GIT REPOSITORY ICEBERG TABLE MATERIALIZED VIEW PIPE MASKING POLICY PASSWORD POLICY ROW ACCESS POLICY SESSION POLICY PRIVACY POLICY PROCEDURE STAGE STREAM TABLE TASK VIEW COLUMN EVENT TABLE].
tagId
This property is required.
Changes to this property will trigger replacement.
string
Specifies the identifier for the tag.
tagValue This property is required. string
Specifies the value of the tag, (e.g. 'finance' or 'engineering')
skipValidation boolean
(Default: true) If true, skips validation of the tag association.
object_identifiers This property is required. Sequence[str]
Specifies the object identifiers for the tag association.
object_type
This property is required.
Changes to this property will trigger replacement.
str
Specifies the type of object to add a tag. Allowed object types: [ACCOUNT APPLICATION APPLICATION PACKAGE DATABASE FAILOVER GROUP INTEGRATION NETWORK POLICY REPLICATION GROUP ROLE SHARE USER WAREHOUSE DATABASE ROLE SCHEMA ALERT SNOWFLAKE.CORE.BUDGET SNOWFLAKE.ML.CLASSIFICATION EXTERNAL FUNCTION EXTERNAL TABLE FUNCTION GIT REPOSITORY ICEBERG TABLE MATERIALIZED VIEW PIPE MASKING POLICY PASSWORD POLICY ROW ACCESS POLICY SESSION POLICY PRIVACY POLICY PROCEDURE STAGE STREAM TABLE TASK VIEW COLUMN EVENT TABLE].
tag_id
This property is required.
Changes to this property will trigger replacement.
str
Specifies the identifier for the tag.
tag_value This property is required. str
Specifies the value of the tag, (e.g. 'finance' or 'engineering')
skip_validation bool
(Default: true) If true, skips validation of the tag association.
objectIdentifiers This property is required. List<String>
Specifies the object identifiers for the tag association.
objectType
This property is required.
Changes to this property will trigger replacement.
String
Specifies the type of object to add a tag. Allowed object types: [ACCOUNT APPLICATION APPLICATION PACKAGE DATABASE FAILOVER GROUP INTEGRATION NETWORK POLICY REPLICATION GROUP ROLE SHARE USER WAREHOUSE DATABASE ROLE SCHEMA ALERT SNOWFLAKE.CORE.BUDGET SNOWFLAKE.ML.CLASSIFICATION EXTERNAL FUNCTION EXTERNAL TABLE FUNCTION GIT REPOSITORY ICEBERG TABLE MATERIALIZED VIEW PIPE MASKING POLICY PASSWORD POLICY ROW ACCESS POLICY SESSION POLICY PRIVACY POLICY PROCEDURE STAGE STREAM TABLE TASK VIEW COLUMN EVENT TABLE].
tagId
This property is required.
Changes to this property will trigger replacement.
String
Specifies the identifier for the tag.
tagValue This property is required. String
Specifies the value of the tag, (e.g. 'finance' or 'engineering')
skipValidation Boolean
(Default: true) If true, skips validation of the tag association.

Outputs

All input properties are implicitly available as output properties. Additionally, the TagAssociation resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing TagAssociation Resource

Get an existing TagAssociation 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?: TagAssociationState, opts?: CustomResourceOptions): TagAssociation
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        object_identifiers: Optional[Sequence[str]] = None,
        object_type: Optional[str] = None,
        skip_validation: Optional[bool] = None,
        tag_id: Optional[str] = None,
        tag_value: Optional[str] = None) -> TagAssociation
func GetTagAssociation(ctx *Context, name string, id IDInput, state *TagAssociationState, opts ...ResourceOption) (*TagAssociation, error)
public static TagAssociation Get(string name, Input<string> id, TagAssociationState? state, CustomResourceOptions? opts = null)
public static TagAssociation get(String name, Output<String> id, TagAssociationState state, CustomResourceOptions options)
resources:  _:    type: snowflake:TagAssociation    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.
The following state arguments are supported:
ObjectIdentifiers List<string>
Specifies the object identifiers for the tag association.
ObjectType Changes to this property will trigger replacement. string
Specifies the type of object to add a tag. Allowed object types: [ACCOUNT APPLICATION APPLICATION PACKAGE DATABASE FAILOVER GROUP INTEGRATION NETWORK POLICY REPLICATION GROUP ROLE SHARE USER WAREHOUSE DATABASE ROLE SCHEMA ALERT SNOWFLAKE.CORE.BUDGET SNOWFLAKE.ML.CLASSIFICATION EXTERNAL FUNCTION EXTERNAL TABLE FUNCTION GIT REPOSITORY ICEBERG TABLE MATERIALIZED VIEW PIPE MASKING POLICY PASSWORD POLICY ROW ACCESS POLICY SESSION POLICY PRIVACY POLICY PROCEDURE STAGE STREAM TABLE TASK VIEW COLUMN EVENT TABLE].
SkipValidation bool
(Default: true) If true, skips validation of the tag association.
TagId Changes to this property will trigger replacement. string
Specifies the identifier for the tag.
TagValue string
Specifies the value of the tag, (e.g. 'finance' or 'engineering')
ObjectIdentifiers []string
Specifies the object identifiers for the tag association.
ObjectType Changes to this property will trigger replacement. string
Specifies the type of object to add a tag. Allowed object types: [ACCOUNT APPLICATION APPLICATION PACKAGE DATABASE FAILOVER GROUP INTEGRATION NETWORK POLICY REPLICATION GROUP ROLE SHARE USER WAREHOUSE DATABASE ROLE SCHEMA ALERT SNOWFLAKE.CORE.BUDGET SNOWFLAKE.ML.CLASSIFICATION EXTERNAL FUNCTION EXTERNAL TABLE FUNCTION GIT REPOSITORY ICEBERG TABLE MATERIALIZED VIEW PIPE MASKING POLICY PASSWORD POLICY ROW ACCESS POLICY SESSION POLICY PRIVACY POLICY PROCEDURE STAGE STREAM TABLE TASK VIEW COLUMN EVENT TABLE].
SkipValidation bool
(Default: true) If true, skips validation of the tag association.
TagId Changes to this property will trigger replacement. string
Specifies the identifier for the tag.
TagValue string
Specifies the value of the tag, (e.g. 'finance' or 'engineering')
objectIdentifiers List<String>
Specifies the object identifiers for the tag association.
objectType Changes to this property will trigger replacement. String
Specifies the type of object to add a tag. Allowed object types: [ACCOUNT APPLICATION APPLICATION PACKAGE DATABASE FAILOVER GROUP INTEGRATION NETWORK POLICY REPLICATION GROUP ROLE SHARE USER WAREHOUSE DATABASE ROLE SCHEMA ALERT SNOWFLAKE.CORE.BUDGET SNOWFLAKE.ML.CLASSIFICATION EXTERNAL FUNCTION EXTERNAL TABLE FUNCTION GIT REPOSITORY ICEBERG TABLE MATERIALIZED VIEW PIPE MASKING POLICY PASSWORD POLICY ROW ACCESS POLICY SESSION POLICY PRIVACY POLICY PROCEDURE STAGE STREAM TABLE TASK VIEW COLUMN EVENT TABLE].
skipValidation Boolean
(Default: true) If true, skips validation of the tag association.
tagId Changes to this property will trigger replacement. String
Specifies the identifier for the tag.
tagValue String
Specifies the value of the tag, (e.g. 'finance' or 'engineering')
objectIdentifiers string[]
Specifies the object identifiers for the tag association.
objectType Changes to this property will trigger replacement. string
Specifies the type of object to add a tag. Allowed object types: [ACCOUNT APPLICATION APPLICATION PACKAGE DATABASE FAILOVER GROUP INTEGRATION NETWORK POLICY REPLICATION GROUP ROLE SHARE USER WAREHOUSE DATABASE ROLE SCHEMA ALERT SNOWFLAKE.CORE.BUDGET SNOWFLAKE.ML.CLASSIFICATION EXTERNAL FUNCTION EXTERNAL TABLE FUNCTION GIT REPOSITORY ICEBERG TABLE MATERIALIZED VIEW PIPE MASKING POLICY PASSWORD POLICY ROW ACCESS POLICY SESSION POLICY PRIVACY POLICY PROCEDURE STAGE STREAM TABLE TASK VIEW COLUMN EVENT TABLE].
skipValidation boolean
(Default: true) If true, skips validation of the tag association.
tagId Changes to this property will trigger replacement. string
Specifies the identifier for the tag.
tagValue string
Specifies the value of the tag, (e.g. 'finance' or 'engineering')
object_identifiers Sequence[str]
Specifies the object identifiers for the tag association.
object_type Changes to this property will trigger replacement. str
Specifies the type of object to add a tag. Allowed object types: [ACCOUNT APPLICATION APPLICATION PACKAGE DATABASE FAILOVER GROUP INTEGRATION NETWORK POLICY REPLICATION GROUP ROLE SHARE USER WAREHOUSE DATABASE ROLE SCHEMA ALERT SNOWFLAKE.CORE.BUDGET SNOWFLAKE.ML.CLASSIFICATION EXTERNAL FUNCTION EXTERNAL TABLE FUNCTION GIT REPOSITORY ICEBERG TABLE MATERIALIZED VIEW PIPE MASKING POLICY PASSWORD POLICY ROW ACCESS POLICY SESSION POLICY PRIVACY POLICY PROCEDURE STAGE STREAM TABLE TASK VIEW COLUMN EVENT TABLE].
skip_validation bool
(Default: true) If true, skips validation of the tag association.
tag_id Changes to this property will trigger replacement. str
Specifies the identifier for the tag.
tag_value str
Specifies the value of the tag, (e.g. 'finance' or 'engineering')
objectIdentifiers List<String>
Specifies the object identifiers for the tag association.
objectType Changes to this property will trigger replacement. String
Specifies the type of object to add a tag. Allowed object types: [ACCOUNT APPLICATION APPLICATION PACKAGE DATABASE FAILOVER GROUP INTEGRATION NETWORK POLICY REPLICATION GROUP ROLE SHARE USER WAREHOUSE DATABASE ROLE SCHEMA ALERT SNOWFLAKE.CORE.BUDGET SNOWFLAKE.ML.CLASSIFICATION EXTERNAL FUNCTION EXTERNAL TABLE FUNCTION GIT REPOSITORY ICEBERG TABLE MATERIALIZED VIEW PIPE MASKING POLICY PASSWORD POLICY ROW ACCESS POLICY SESSION POLICY PRIVACY POLICY PROCEDURE STAGE STREAM TABLE TASK VIEW COLUMN EVENT TABLE].
skipValidation Boolean
(Default: true) If true, skips validation of the tag association.
tagId Changes to this property will trigger replacement. String
Specifies the identifier for the tag.
tagValue String
Specifies the value of the tag, (e.g. 'finance' or 'engineering')

Package Details

Repository
Snowflake pulumi/pulumi-snowflake
License
Apache-2.0
Notes
This Pulumi package is based on the snowflake Terraform Provider.