Viewing docs for Volcengine v0.0.47
published on Friday, Mar 13, 2026 by Volcengine
published on Friday, Mar 13, 2026 by Volcengine
Viewing docs for Volcengine v0.0.47
published on Friday, Mar 13, 2026 by Volcengine
published on Friday, Mar 13, 2026 by Volcengine
Create Tag Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Tag(name: string, args: TagArgs, opts?: CustomResourceOptions);@overload
def Tag(resource_name: str,
args: TagArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Tag(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_id: Optional[str] = None,
resource_type: Optional[str] = None,
tags: Optional[Sequence[TagTagArgs]] = None)func NewTag(ctx *Context, name string, args TagArgs, opts ...ResourceOption) (*Tag, error)public Tag(string name, TagArgs args, CustomResourceOptions? opts = null)type: volcengine:nlb:Tag
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 TagArgs
- 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 TagArgs
- 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 TagArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TagArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TagArgs
- 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 exampletagResourceResourceFromNlbtag = new Volcengine.Nlb.Tag("exampletagResourceResourceFromNlbtag", new()
{
ResourceId = "string",
ResourceType = "string",
Tags = new[]
{
new Volcengine.Nlb.Inputs.TagTagArgs
{
Key = "string",
Value = "string",
},
},
});
example, err := nlb.NewTag(ctx, "exampletagResourceResourceFromNlbtag", &nlb.TagArgs{
ResourceId: pulumi.String("string"),
ResourceType: pulumi.String("string"),
Tags: nlb.TagTagArray{
&nlb.TagTagArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
})
var exampletagResourceResourceFromNlbtag = new com.pulumi.volcengine.nlb.Tag("exampletagResourceResourceFromNlbtag", com.pulumi.volcengine.nlb.TagArgs.builder()
.resourceId("string")
.resourceType("string")
.tags(TagTagArgs.builder()
.key("string")
.value("string")
.build())
.build());
exampletag_resource_resource_from_nlbtag = volcengine.nlb.Tag("exampletagResourceResourceFromNlbtag",
resource_id="string",
resource_type="string",
tags=[{
"key": "string",
"value": "string",
}])
const exampletagResourceResourceFromNlbtag = new volcengine.nlb.Tag("exampletagResourceResourceFromNlbtag", {
resourceId: "string",
resourceType: "string",
tags: [{
key: "string",
value: "string",
}],
});
type: volcengine:nlb:Tag
properties:
resourceId: string
resourceType: string
tags:
- key: string
value: string
Tag 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 Tag resource accepts the following input properties:
- Resource
Id string - The id of the resource.
- Resource
Type string - The type of the resource. Valid values:
nlb,nlb_listener,nlb_servergroup,nlb_security_policy. -
List<Tag
Tag>
- Resource
Id string - The id of the resource.
- Resource
Type string - The type of the resource. Valid values:
nlb,nlb_listener,nlb_servergroup,nlb_security_policy. -
[]Tag
Tag Args
- resource
Id String - The id of the resource.
- resource
Type String - The type of the resource. Valid values:
nlb,nlb_listener,nlb_servergroup,nlb_security_policy. -
List<Tag
Tag>
- resource
Id string - The id of the resource.
- resource
Type string - The type of the resource. Valid values:
nlb,nlb_listener,nlb_servergroup,nlb_security_policy. -
Tag
Tag[]
- resource_
id str - The id of the resource.
- resource_
type str - The type of the resource. Valid values:
nlb,nlb_listener,nlb_servergroup,nlb_security_policy. -
Sequence[Tag
Tag Args]
- resource
Id String - The id of the resource.
- resource
Type String - The type of the resource. Valid values:
nlb,nlb_listener,nlb_servergroup,nlb_security_policy. - List<Property Map>
Outputs
All input properties are implicitly available as output properties. Additionally, the Tag 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 Tag Resource
Get an existing Tag 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?: TagState, opts?: CustomResourceOptions): Tag@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
resource_id: Optional[str] = None,
resource_type: Optional[str] = None,
tags: Optional[Sequence[TagTagArgs]] = None) -> Tagfunc GetTag(ctx *Context, name string, id IDInput, state *TagState, opts ...ResourceOption) (*Tag, error)public static Tag Get(string name, Input<string> id, TagState? state, CustomResourceOptions? opts = null)public static Tag get(String name, Output<String> id, TagState state, CustomResourceOptions options)resources: _: type: volcengine:nlb:Tag get: id: ${id}- 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.
- Resource
Id string - The id of the resource.
- Resource
Type string - The type of the resource. Valid values:
nlb,nlb_listener,nlb_servergroup,nlb_security_policy. -
List<Tag
Tag>
- Resource
Id string - The id of the resource.
- Resource
Type string - The type of the resource. Valid values:
nlb,nlb_listener,nlb_servergroup,nlb_security_policy. -
[]Tag
Tag Args
- resource
Id String - The id of the resource.
- resource
Type String - The type of the resource. Valid values:
nlb,nlb_listener,nlb_servergroup,nlb_security_policy. -
List<Tag
Tag>
- resource
Id string - The id of the resource.
- resource
Type string - The type of the resource. Valid values:
nlb,nlb_listener,nlb_servergroup,nlb_security_policy. -
Tag
Tag[]
- resource_
id str - The id of the resource.
- resource_
type str - The type of the resource. Valid values:
nlb,nlb_listener,nlb_servergroup,nlb_security_policy. -
Sequence[Tag
Tag Args]
- resource
Id String - The id of the resource.
- resource
Type String - The type of the resource. Valid values:
nlb,nlb_listener,nlb_servergroup,nlb_security_policy. - List<Property Map>
Supporting Types
TagTag, TagTagArgs
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengineTerraform Provider.
Viewing docs for Volcengine v0.0.47
published on Friday, Mar 13, 2026 by Volcengine
published on Friday, Mar 13, 2026 by Volcengine
