Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.datacatalog/v1beta1.PolicyTag
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Creates a policy tag in the specified taxonomy. Auto-naming is currently not supported for this resource.
Create PolicyTag Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PolicyTag(name: string, args: PolicyTagArgs, opts?: CustomResourceOptions);
@overload
def PolicyTag(resource_name: str,
args: PolicyTagArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PolicyTag(resource_name: str,
opts: Optional[ResourceOptions] = None,
display_name: Optional[str] = None,
taxonomy_id: Optional[str] = None,
description: Optional[str] = None,
location: Optional[str] = None,
parent_policy_tag: Optional[str] = None,
project: Optional[str] = None)
func NewPolicyTag(ctx *Context, name string, args PolicyTagArgs, opts ...ResourceOption) (*PolicyTag, error)
public PolicyTag(string name, PolicyTagArgs args, CustomResourceOptions? opts = null)
public PolicyTag(String name, PolicyTagArgs args)
public PolicyTag(String name, PolicyTagArgs args, CustomResourceOptions options)
type: google-native:datacatalog/v1beta1:PolicyTag
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 PolicyTagArgs
- 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 PolicyTagArgs
- 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 PolicyTagArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PolicyTagArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PolicyTagArgs
- 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_nativePolicyTagResource = new GoogleNative.DataCatalog.V1Beta1.PolicyTag("google-nativePolicyTagResource", new()
{
DisplayName = "string",
TaxonomyId = "string",
Description = "string",
Location = "string",
ParentPolicyTag = "string",
Project = "string",
});
example, err := datacatalogv1beta1.NewPolicyTag(ctx, "google-nativePolicyTagResource", &datacatalogv1beta1.PolicyTagArgs{
DisplayName: pulumi.String("string"),
TaxonomyId: pulumi.String("string"),
Description: pulumi.String("string"),
Location: pulumi.String("string"),
ParentPolicyTag: pulumi.String("string"),
Project: pulumi.String("string"),
})
var google_nativePolicyTagResource = new PolicyTag("google-nativePolicyTagResource", PolicyTagArgs.builder()
.displayName("string")
.taxonomyId("string")
.description("string")
.location("string")
.parentPolicyTag("string")
.project("string")
.build());
google_native_policy_tag_resource = google_native.datacatalog.v1beta1.PolicyTag("google-nativePolicyTagResource",
display_name="string",
taxonomy_id="string",
description="string",
location="string",
parent_policy_tag="string",
project="string")
const google_nativePolicyTagResource = new google_native.datacatalog.v1beta1.PolicyTag("google-nativePolicyTagResource", {
displayName: "string",
taxonomyId: "string",
description: "string",
location: "string",
parentPolicyTag: "string",
project: "string",
});
type: google-native:datacatalog/v1beta1:PolicyTag
properties:
description: string
displayName: string
location: string
parentPolicyTag: string
project: string
taxonomyId: string
PolicyTag 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 PolicyTag resource accepts the following input properties:
- Display
Name string - User defined name of this policy tag. It must: be unique within the parent taxonomy; contain only unicode letters, numbers, underscores, dashes and spaces; not start or end with spaces; and be at most 200 bytes long when encoded in UTF-8.
- Taxonomy
Id string - Description string
- Description of this policy tag. It must: contain only unicode characters, tabs, newlines, carriage returns and page breaks; and be at most 2000 bytes long when encoded in UTF-8. If not set, defaults to an empty description. If not set, defaults to an empty description.
- Location string
- Parent
Policy stringTag - Resource name of this policy tag's parent policy tag (e.g. for the "LatLong" policy tag in the example above, this field contains the resource name of the "Geolocation" policy tag). If empty, it means this policy tag is a top level policy tag (e.g. this field is empty for the "Geolocation" policy tag in the example above). If not set, defaults to an empty string.
- Project string
- Display
Name string - User defined name of this policy tag. It must: be unique within the parent taxonomy; contain only unicode letters, numbers, underscores, dashes and spaces; not start or end with spaces; and be at most 200 bytes long when encoded in UTF-8.
- Taxonomy
Id string - Description string
- Description of this policy tag. It must: contain only unicode characters, tabs, newlines, carriage returns and page breaks; and be at most 2000 bytes long when encoded in UTF-8. If not set, defaults to an empty description. If not set, defaults to an empty description.
- Location string
- Parent
Policy stringTag - Resource name of this policy tag's parent policy tag (e.g. for the "LatLong" policy tag in the example above, this field contains the resource name of the "Geolocation" policy tag). If empty, it means this policy tag is a top level policy tag (e.g. this field is empty for the "Geolocation" policy tag in the example above). If not set, defaults to an empty string.
- Project string
- display
Name String - User defined name of this policy tag. It must: be unique within the parent taxonomy; contain only unicode letters, numbers, underscores, dashes and spaces; not start or end with spaces; and be at most 200 bytes long when encoded in UTF-8.
- taxonomy
Id String - description String
- Description of this policy tag. It must: contain only unicode characters, tabs, newlines, carriage returns and page breaks; and be at most 2000 bytes long when encoded in UTF-8. If not set, defaults to an empty description. If not set, defaults to an empty description.
- location String
- parent
Policy StringTag - Resource name of this policy tag's parent policy tag (e.g. for the "LatLong" policy tag in the example above, this field contains the resource name of the "Geolocation" policy tag). If empty, it means this policy tag is a top level policy tag (e.g. this field is empty for the "Geolocation" policy tag in the example above). If not set, defaults to an empty string.
- project String
- display
Name string - User defined name of this policy tag. It must: be unique within the parent taxonomy; contain only unicode letters, numbers, underscores, dashes and spaces; not start or end with spaces; and be at most 200 bytes long when encoded in UTF-8.
- taxonomy
Id string - description string
- Description of this policy tag. It must: contain only unicode characters, tabs, newlines, carriage returns and page breaks; and be at most 2000 bytes long when encoded in UTF-8. If not set, defaults to an empty description. If not set, defaults to an empty description.
- location string
- parent
Policy stringTag - Resource name of this policy tag's parent policy tag (e.g. for the "LatLong" policy tag in the example above, this field contains the resource name of the "Geolocation" policy tag). If empty, it means this policy tag is a top level policy tag (e.g. this field is empty for the "Geolocation" policy tag in the example above). If not set, defaults to an empty string.
- project string
- display_
name str - User defined name of this policy tag. It must: be unique within the parent taxonomy; contain only unicode letters, numbers, underscores, dashes and spaces; not start or end with spaces; and be at most 200 bytes long when encoded in UTF-8.
- taxonomy_
id str - description str
- Description of this policy tag. It must: contain only unicode characters, tabs, newlines, carriage returns and page breaks; and be at most 2000 bytes long when encoded in UTF-8. If not set, defaults to an empty description. If not set, defaults to an empty description.
- location str
- parent_
policy_ strtag - Resource name of this policy tag's parent policy tag (e.g. for the "LatLong" policy tag in the example above, this field contains the resource name of the "Geolocation" policy tag). If empty, it means this policy tag is a top level policy tag (e.g. this field is empty for the "Geolocation" policy tag in the example above). If not set, defaults to an empty string.
- project str
- display
Name String - User defined name of this policy tag. It must: be unique within the parent taxonomy; contain only unicode letters, numbers, underscores, dashes and spaces; not start or end with spaces; and be at most 200 bytes long when encoded in UTF-8.
- taxonomy
Id String - description String
- Description of this policy tag. It must: contain only unicode characters, tabs, newlines, carriage returns and page breaks; and be at most 2000 bytes long when encoded in UTF-8. If not set, defaults to an empty description. If not set, defaults to an empty description.
- location String
- parent
Policy StringTag - Resource name of this policy tag's parent policy tag (e.g. for the "LatLong" policy tag in the example above, this field contains the resource name of the "Geolocation" policy tag). If empty, it means this policy tag is a top level policy tag (e.g. this field is empty for the "Geolocation" policy tag in the example above). If not set, defaults to an empty string.
- project String
Outputs
All input properties are implicitly available as output properties. Additionally, the PolicyTag resource produces the following output properties:
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.