snowflake.TagAssociation
Explore with Pulumi AI
Import
format is dbName.schemaName.tagName or dbName.schemaName.tagName
$ pulumi import snowflake:index/tagAssociation:TagAssociation example 'dbName.schemaName.tagName'
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[TagAssociationObjectIdentifierArgs]] = None,
object_type: Optional[str] = None,
tag_id: Optional[str] = None,
tag_value: Optional[str] = None,
object_name: 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 string
- The unique name of the resource.
- args TagAssociationArgs
- 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 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 string
- The unique name of the resource.
- args TagAssociationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TagAssociationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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[]
{
new Snowflake.Inputs.TagAssociationObjectIdentifierArgs
{
Name = "string",
Database = "string",
Schema = "string",
},
},
ObjectType = "string",
TagId = "string",
TagValue = "string",
SkipValidation = false,
});
example, err := snowflake.NewTagAssociation(ctx, "tagAssociationResource", &snowflake.TagAssociationArgs{
ObjectIdentifiers: snowflake.TagAssociationObjectIdentifierArray{
&snowflake.TagAssociationObjectIdentifierArgs{
Name: pulumi.String("string"),
Database: pulumi.String("string"),
Schema: pulumi.String("string"),
},
},
ObjectType: pulumi.String("string"),
TagId: pulumi.String("string"),
TagValue: pulumi.String("string"),
SkipValidation: pulumi.Bool(false),
})
var tagAssociationResource = new TagAssociation("tagAssociationResource", TagAssociationArgs.builder()
.objectIdentifiers(TagAssociationObjectIdentifierArgs.builder()
.name("string")
.database("string")
.schema("string")
.build())
.objectType("string")
.tagId("string")
.tagValue("string")
.skipValidation(false)
.build());
tag_association_resource = snowflake.TagAssociation("tagAssociationResource",
object_identifiers=[{
"name": "string",
"database": "string",
"schema": "string",
}],
object_type="string",
tag_id="string",
tag_value="string",
skip_validation=False)
const tagAssociationResource = new snowflake.TagAssociation("tagAssociationResource", {
objectIdentifiers: [{
name: "string",
database: "string",
schema: "string",
}],
objectType: "string",
tagId: "string",
tagValue: "string",
skipValidation: false,
});
type: snowflake:TagAssociation
properties:
objectIdentifiers:
- database: string
name: string
schema: string
objectType: string
skipValidation: false
tagId: string
tagValue: string
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:
- Object
Identifiers List<TagAssociation Object Identifier> - Specifies the object identifier for the tag association.
- Object
Type 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].
- Tag
Id string - Specifies the identifier for the tag. Note: format must follow: "databaseName"."schemaName"."tagName" or "databaseName.schemaName.tagName" or "databaseName|schemaName.tagName" (snowflake_tag.tag.id)
- Tag
Value string - Specifies the value of the tag, (e.g. 'finance' or 'engineering')
- Object
Name string - Specifies the object identifier for the tag association.
- Skip
Validation bool - If true, skips validation of the tag association.
- Object
Identifiers []TagAssociation Object Identifier Args - Specifies the object identifier for the tag association.
- Object
Type 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].
- Tag
Id string - Specifies the identifier for the tag. Note: format must follow: "databaseName"."schemaName"."tagName" or "databaseName.schemaName.tagName" or "databaseName|schemaName.tagName" (snowflake_tag.tag.id)
- Tag
Value string - Specifies the value of the tag, (e.g. 'finance' or 'engineering')
- Object
Name string - Specifies the object identifier for the tag association.
- Skip
Validation bool - If true, skips validation of the tag association.
- object
Identifiers List<TagAssociation Object Identifier> - Specifies the object identifier for the tag association.
- object
Type 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].
- tag
Id String - Specifies the identifier for the tag. Note: format must follow: "databaseName"."schemaName"."tagName" or "databaseName.schemaName.tagName" or "databaseName|schemaName.tagName" (snowflake_tag.tag.id)
- tag
Value String - Specifies the value of the tag, (e.g. 'finance' or 'engineering')
- object
Name String - Specifies the object identifier for the tag association.
- skip
Validation Boolean - If true, skips validation of the tag association.
- object
Identifiers TagAssociation Object Identifier[] - Specifies the object identifier for the tag association.
- object
Type 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].
- tag
Id string - Specifies the identifier for the tag. Note: format must follow: "databaseName"."schemaName"."tagName" or "databaseName.schemaName.tagName" or "databaseName|schemaName.tagName" (snowflake_tag.tag.id)
- tag
Value string - Specifies the value of the tag, (e.g. 'finance' or 'engineering')
- object
Name string - Specifies the object identifier for the tag association.
- skip
Validation boolean - If true, skips validation of the tag association.
- object_
identifiers Sequence[TagAssociation Object Identifier Args] - Specifies the object identifier for the tag association.
- object_
type 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 str - Specifies the identifier for the tag. Note: format must follow: "databaseName"."schemaName"."tagName" or "databaseName.schemaName.tagName" or "databaseName|schemaName.tagName" (snowflake_tag.tag.id)
- tag_
value str - Specifies the value of the tag, (e.g. 'finance' or 'engineering')
- object_
name str - Specifies the object identifier for the tag association.
- skip_
validation bool - If true, skips validation of the tag association.
- object
Identifiers List<Property Map> - Specifies the object identifier for the tag association.
- object
Type 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].
- tag
Id String - Specifies the identifier for the tag. Note: format must follow: "databaseName"."schemaName"."tagName" or "databaseName.schemaName.tagName" or "databaseName|schemaName.tagName" (snowflake_tag.tag.id)
- tag
Value String - Specifies the value of the tag, (e.g. 'finance' or 'engineering')
- object
Name String - Specifies the object identifier for the tag association.
- skip
Validation Boolean - 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[TagAssociationObjectIdentifierArgs]] = None,
object_name: Optional[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)
Resource lookup is not supported in YAML
- 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.
- Object
Identifiers List<TagAssociation Object Identifier> - Specifies the object identifier for the tag association.
- Object
Name string - Specifies the object identifier for the tag association.
- Object
Type 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].
- Skip
Validation bool - If true, skips validation of the tag association.
- Tag
Id string - Specifies the identifier for the tag. Note: format must follow: "databaseName"."schemaName"."tagName" or "databaseName.schemaName.tagName" or "databaseName|schemaName.tagName" (snowflake_tag.tag.id)
- Tag
Value string - Specifies the value of the tag, (e.g. 'finance' or 'engineering')
- Object
Identifiers []TagAssociation Object Identifier Args - Specifies the object identifier for the tag association.
- Object
Name string - Specifies the object identifier for the tag association.
- Object
Type 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].
- Skip
Validation bool - If true, skips validation of the tag association.
- Tag
Id string - Specifies the identifier for the tag. Note: format must follow: "databaseName"."schemaName"."tagName" or "databaseName.schemaName.tagName" or "databaseName|schemaName.tagName" (snowflake_tag.tag.id)
- Tag
Value string - Specifies the value of the tag, (e.g. 'finance' or 'engineering')
- object
Identifiers List<TagAssociation Object Identifier> - Specifies the object identifier for the tag association.
- object
Name String - Specifies the object identifier for the tag association.
- object
Type 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].
- skip
Validation Boolean - If true, skips validation of the tag association.
- tag
Id String - Specifies the identifier for the tag. Note: format must follow: "databaseName"."schemaName"."tagName" or "databaseName.schemaName.tagName" or "databaseName|schemaName.tagName" (snowflake_tag.tag.id)
- tag
Value String - Specifies the value of the tag, (e.g. 'finance' or 'engineering')
- object
Identifiers TagAssociation Object Identifier[] - Specifies the object identifier for the tag association.
- object
Name string - Specifies the object identifier for the tag association.
- object
Type 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].
- skip
Validation boolean - If true, skips validation of the tag association.
- tag
Id string - Specifies the identifier for the tag. Note: format must follow: "databaseName"."schemaName"."tagName" or "databaseName.schemaName.tagName" or "databaseName|schemaName.tagName" (snowflake_tag.tag.id)
- tag
Value string - Specifies the value of the tag, (e.g. 'finance' or 'engineering')
- object_
identifiers Sequence[TagAssociation Object Identifier Args] - Specifies the object identifier for the tag association.
- object_
name str - Specifies the object identifier for the tag association.
- object_
type 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 - If true, skips validation of the tag association.
- tag_
id str - Specifies the identifier for the tag. Note: format must follow: "databaseName"."schemaName"."tagName" or "databaseName.schemaName.tagName" or "databaseName|schemaName.tagName" (snowflake_tag.tag.id)
- tag_
value str - Specifies the value of the tag, (e.g. 'finance' or 'engineering')
- object
Identifiers List<Property Map> - Specifies the object identifier for the tag association.
- object
Name String - Specifies the object identifier for the tag association.
- object
Type 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].
- skip
Validation Boolean - If true, skips validation of the tag association.
- tag
Id String - Specifies the identifier for the tag. Note: format must follow: "databaseName"."schemaName"."tagName" or "databaseName.schemaName.tagName" or "databaseName|schemaName.tagName" (snowflake_tag.tag.id)
- tag
Value String - Specifies the value of the tag, (e.g. 'finance' or 'engineering')
Supporting Types
TagAssociationObjectIdentifier, TagAssociationObjectIdentifierArgs
Package Details
- Repository
- Snowflake pulumi/pulumi-snowflake
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
snowflake
Terraform Provider.