Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.datacatalog/v1beta1.TagTemplate
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Creates a tag template. The user should enable the Data Catalog API in the project identified by the parent
parameter (see Data Catalog Resource Project for more information).
Create TagTemplate Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TagTemplate(name: string, args: TagTemplateArgs, opts?: CustomResourceOptions);
@overload
def TagTemplate(resource_name: str,
args: TagTemplateArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TagTemplate(resource_name: str,
opts: Optional[ResourceOptions] = None,
fields: Optional[Mapping[str, str]] = None,
tag_template_id: Optional[str] = None,
display_name: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
project: Optional[str] = None)
func NewTagTemplate(ctx *Context, name string, args TagTemplateArgs, opts ...ResourceOption) (*TagTemplate, error)
public TagTemplate(string name, TagTemplateArgs args, CustomResourceOptions? opts = null)
public TagTemplate(String name, TagTemplateArgs args)
public TagTemplate(String name, TagTemplateArgs args, CustomResourceOptions options)
type: google-native:datacatalog/v1beta1:TagTemplate
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 TagTemplateArgs
- 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 TagTemplateArgs
- 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 TagTemplateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TagTemplateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TagTemplateArgs
- 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 google_nativeTagTemplateResource = new GoogleNative.DataCatalog.V1Beta1.TagTemplate("google-nativeTagTemplateResource", new()
{
Fields =
{
{ "string", "string" },
},
TagTemplateId = "string",
DisplayName = "string",
Location = "string",
Name = "string",
Project = "string",
});
example, err := datacatalogv1beta1.NewTagTemplate(ctx, "google-nativeTagTemplateResource", &datacatalogv1beta1.TagTemplateArgs{
Fields: pulumi.StringMap{
"string": pulumi.String("string"),
},
TagTemplateId: pulumi.String("string"),
DisplayName: pulumi.String("string"),
Location: pulumi.String("string"),
Name: pulumi.String("string"),
Project: pulumi.String("string"),
})
var google_nativeTagTemplateResource = new TagTemplate("google-nativeTagTemplateResource", TagTemplateArgs.builder()
.fields(Map.of("string", "string"))
.tagTemplateId("string")
.displayName("string")
.location("string")
.name("string")
.project("string")
.build());
google_native_tag_template_resource = google_native.datacatalog.v1beta1.TagTemplate("google-nativeTagTemplateResource",
fields={
"string": "string",
},
tag_template_id="string",
display_name="string",
location="string",
name="string",
project="string")
const google_nativeTagTemplateResource = new google_native.datacatalog.v1beta1.TagTemplate("google-nativeTagTemplateResource", {
fields: {
string: "string",
},
tagTemplateId: "string",
displayName: "string",
location: "string",
name: "string",
project: "string",
});
type: google-native:datacatalog/v1beta1:TagTemplate
properties:
displayName: string
fields:
string: string
location: string
name: string
project: string
tagTemplateId: string
TagTemplate 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 TagTemplate resource accepts the following input properties:
- Fields Dictionary<string, string>
- Map of tag template field IDs to the settings for the field. This map is an exhaustive list of the allowed fields. This map must contain at least one field and at most 500 fields. The keys to this map are tag template field IDs. Field IDs can contain letters (both uppercase and lowercase), numbers (0-9) and underscores (_). Field IDs must be at least 1 character long and at most 64 characters long. Field IDs must start with a letter or underscore.
- Tag
Template stringId - Required. The id of the tag template to create.
- Display
Name string - The display name for this template. Defaults to an empty string.
- Location string
- Name string
- The resource name of the tag template in URL format. Example: * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id} Note that this TagTemplate and its child resources may not actually be stored in the location in this name.
- Project string
- Fields map[string]string
- Map of tag template field IDs to the settings for the field. This map is an exhaustive list of the allowed fields. This map must contain at least one field and at most 500 fields. The keys to this map are tag template field IDs. Field IDs can contain letters (both uppercase and lowercase), numbers (0-9) and underscores (_). Field IDs must be at least 1 character long and at most 64 characters long. Field IDs must start with a letter or underscore.
- Tag
Template stringId - Required. The id of the tag template to create.
- Display
Name string - The display name for this template. Defaults to an empty string.
- Location string
- Name string
- The resource name of the tag template in URL format. Example: * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id} Note that this TagTemplate and its child resources may not actually be stored in the location in this name.
- Project string
- fields Map<String,String>
- Map of tag template field IDs to the settings for the field. This map is an exhaustive list of the allowed fields. This map must contain at least one field and at most 500 fields. The keys to this map are tag template field IDs. Field IDs can contain letters (both uppercase and lowercase), numbers (0-9) and underscores (_). Field IDs must be at least 1 character long and at most 64 characters long. Field IDs must start with a letter or underscore.
- tag
Template StringId - Required. The id of the tag template to create.
- display
Name String - The display name for this template. Defaults to an empty string.
- location String
- name String
- The resource name of the tag template in URL format. Example: * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id} Note that this TagTemplate and its child resources may not actually be stored in the location in this name.
- project String
- fields {[key: string]: string}
- Map of tag template field IDs to the settings for the field. This map is an exhaustive list of the allowed fields. This map must contain at least one field and at most 500 fields. The keys to this map are tag template field IDs. Field IDs can contain letters (both uppercase and lowercase), numbers (0-9) and underscores (_). Field IDs must be at least 1 character long and at most 64 characters long. Field IDs must start with a letter or underscore.
- tag
Template stringId - Required. The id of the tag template to create.
- display
Name string - The display name for this template. Defaults to an empty string.
- location string
- name string
- The resource name of the tag template in URL format. Example: * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id} Note that this TagTemplate and its child resources may not actually be stored in the location in this name.
- project string
- fields Mapping[str, str]
- Map of tag template field IDs to the settings for the field. This map is an exhaustive list of the allowed fields. This map must contain at least one field and at most 500 fields. The keys to this map are tag template field IDs. Field IDs can contain letters (both uppercase and lowercase), numbers (0-9) and underscores (_). Field IDs must be at least 1 character long and at most 64 characters long. Field IDs must start with a letter or underscore.
- tag_
template_ strid - Required. The id of the tag template to create.
- display_
name str - The display name for this template. Defaults to an empty string.
- location str
- name str
- The resource name of the tag template in URL format. Example: * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id} Note that this TagTemplate and its child resources may not actually be stored in the location in this name.
- project str
- fields Map<String>
- Map of tag template field IDs to the settings for the field. This map is an exhaustive list of the allowed fields. This map must contain at least one field and at most 500 fields. The keys to this map are tag template field IDs. Field IDs can contain letters (both uppercase and lowercase), numbers (0-9) and underscores (_). Field IDs must be at least 1 character long and at most 64 characters long. Field IDs must start with a letter or underscore.
- tag
Template StringId - Required. The id of the tag template to create.
- display
Name String - The display name for this template. Defaults to an empty string.
- location String
- name String
- The resource name of the tag template in URL format. Example: * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id} Note that this TagTemplate and its child resources may not actually be stored in the location in this name.
- project String
Outputs
All input properties are implicitly available as output properties. Additionally, the TagTemplate 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.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.