@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
112 lines (111 loc) • 5.19 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
* Provides a resource to manage tls tag resource
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@volcengine/pulumi";
*
* // Example: Add tags to a TLS topic
* const foo = new volcengine.tls.TagResource("foo", {
* resourceId: "bdb87e4d-7dad-4b96-ac43-e1b09e9dc8ac",
* resourceType: "project",
* tags: [
* {
* key: "environment",
* value: "production",
* },
* {
* key: "key1",
* value: "value2",
* },
* ],
* });
* export const tlsTagId = foo.id;
* export const tlsTagResourceId = foo.resourceId;
* export const tlsTagResourceType = foo.resourceType;
* export const tlsTagTags = foo.tags;
* ```
*
* ## Import
*
* tls tag can be imported using the resource_id:resource_type, e.g.
*
* ```sh
* $ pulumi import volcengine:tls/tagResource:TagResource default resource-123456:project
* ```
*/
export declare class TagResource extends pulumi.CustomResource {
/**
* Get an existing TagResource resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: TagResourceState, opts?: pulumi.CustomResourceOptions): TagResource;
/**
* Returns true if the given object is an instance of TagResource. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj: any): obj is TagResource;
/**
* The ID of the resource.
*/
readonly resourceId: pulumi.Output<string>;
/**
* The type of the resource. Valid values: project, topic, shipper, host_group, host, consumer_group, rule, alarm, alarm_notify_group, etl_task, import_task, schedule_sql_task, download_task, trace_instance.
*/
readonly resourceType: pulumi.Output<string>;
/**
* Tags. The tag key must be unique within a resource, and the same tag key is not allowed to be repeated. The tag key must be 1 to 128 characters long, and can contain letters, digits, spaces, and the following special characters: _.:/=+-@. The tag value can be empty and must be 0 to 256 characters long, and can contain letters, digits, spaces, and the following special characters: _.:/=+-@.
*/
readonly tags: pulumi.Output<outputs.tls.TagResourceTag[]>;
/**
* Create a TagResource resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args: TagResourceArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering TagResource resources.
*/
export interface TagResourceState {
/**
* The ID of the resource.
*/
resourceId?: pulumi.Input<string>;
/**
* The type of the resource. Valid values: project, topic, shipper, host_group, host, consumer_group, rule, alarm, alarm_notify_group, etl_task, import_task, schedule_sql_task, download_task, trace_instance.
*/
resourceType?: pulumi.Input<string>;
/**
* Tags. The tag key must be unique within a resource, and the same tag key is not allowed to be repeated. The tag key must be 1 to 128 characters long, and can contain letters, digits, spaces, and the following special characters: _.:/=+-@. The tag value can be empty and must be 0 to 256 characters long, and can contain letters, digits, spaces, and the following special characters: _.:/=+-@.
*/
tags?: pulumi.Input<pulumi.Input<inputs.tls.TagResourceTag>[]>;
}
/**
* The set of arguments for constructing a TagResource resource.
*/
export interface TagResourceArgs {
/**
* The ID of the resource.
*/
resourceId: pulumi.Input<string>;
/**
* The type of the resource. Valid values: project, topic, shipper, host_group, host, consumer_group, rule, alarm, alarm_notify_group, etl_task, import_task, schedule_sql_task, download_task, trace_instance.
*/
resourceType: pulumi.Input<string>;
/**
* Tags. The tag key must be unique within a resource, and the same tag key is not allowed to be repeated. The tag key must be 1 to 128 characters long, and can contain letters, digits, spaces, and the following special characters: _.:/=+-@. The tag value can be empty and must be 0 to 256 characters long, and can contain letters, digits, spaces, and the following special characters: _.:/=+-@.
*/
tags: pulumi.Input<pulumi.Input<inputs.tls.TagResourceTag>[]>;
}