1. Packages
  2. Pulumi Cloud (Pulumi Service provider)
  3. API Docs
  4. StackTag

This provider is currently in preview.

Pulumi Cloud v0.29.1 published on Tuesday, Apr 1, 2025 by Pulumi

pulumiservice.StackTag

Explore with Pulumi AI

This provider is currently in preview.

Pulumi Cloud v0.29.1 published on Tuesday, Apr 1, 2025 by Pulumi

Stacks have associated metadata in the form of tags. Each tag consists of a name and value.

Create StackTag Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new StackTag(name: string, args: StackTagArgs, opts?: CustomResourceOptions);
@overload
def StackTag(resource_name: str,
             args: StackTagArgs,
             opts: Optional[ResourceOptions] = None)

@overload
def StackTag(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             name: Optional[str] = None,
             organization: Optional[str] = None,
             project: Optional[str] = None,
             stack: Optional[str] = None,
             value: Optional[str] = None)
func NewStackTag(ctx *Context, name string, args StackTagArgs, opts ...ResourceOption) (*StackTag, error)
public StackTag(string name, StackTagArgs args, CustomResourceOptions? opts = null)
public StackTag(String name, StackTagArgs args)
public StackTag(String name, StackTagArgs args, CustomResourceOptions options)
type: pulumiservice:StackTag
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. StackTagArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. StackTagArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. StackTagArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. StackTagArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. StackTagArgs
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 stackTagResource = new PulumiService.StackTag("stackTagResource", new()
{
    Name = "string",
    Organization = "string",
    Project = "string",
    Stack = "string",
    Value = "string",
});
Copy
example, err := pulumiservice.NewStackTag(ctx, "stackTagResource", &pulumiservice.StackTagArgs{
	Name:         pulumi.String("string"),
	Organization: pulumi.String("string"),
	Project:      pulumi.String("string"),
	Stack:        pulumi.String("string"),
	Value:        pulumi.String("string"),
})
Copy
var stackTagResource = new StackTag("stackTagResource", StackTagArgs.builder()
    .name("string")
    .organization("string")
    .project("string")
    .stack("string")
    .value("string")
    .build());
Copy
stack_tag_resource = pulumiservice.StackTag("stackTagResource",
    name="string",
    organization="string",
    project="string",
    stack="string",
    value="string")
Copy
const stackTagResource = new pulumiservice.StackTag("stackTagResource", {
    name: "string",
    organization: "string",
    project: "string",
    stack: "string",
    value: "string",
});
Copy
type: pulumiservice:StackTag
properties:
    name: string
    organization: string
    project: string
    stack: string
    value: string
Copy

StackTag 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 StackTag resource accepts the following input properties:

Name
This property is required.
Changes to this property will trigger replacement.
string
Name of the tag. The 'key' part of the key=value pair
Organization
This property is required.
Changes to this property will trigger replacement.
string
Organization name.
Project
This property is required.
Changes to this property will trigger replacement.
string
Project name.
Stack
This property is required.
Changes to this property will trigger replacement.
string
Stack name.
Value This property is required. string
Value of the tag. The 'value' part of the key=value pair
Name
This property is required.
Changes to this property will trigger replacement.
string
Name of the tag. The 'key' part of the key=value pair
Organization
This property is required.
Changes to this property will trigger replacement.
string
Organization name.
Project
This property is required.
Changes to this property will trigger replacement.
string
Project name.
Stack
This property is required.
Changes to this property will trigger replacement.
string
Stack name.
Value This property is required. string
Value of the tag. The 'value' part of the key=value pair
name
This property is required.
Changes to this property will trigger replacement.
String
Name of the tag. The 'key' part of the key=value pair
organization
This property is required.
Changes to this property will trigger replacement.
String
Organization name.
project
This property is required.
Changes to this property will trigger replacement.
String
Project name.
stack
This property is required.
Changes to this property will trigger replacement.
String
Stack name.
value This property is required. String
Value of the tag. The 'value' part of the key=value pair
name
This property is required.
Changes to this property will trigger replacement.
string
Name of the tag. The 'key' part of the key=value pair
organization
This property is required.
Changes to this property will trigger replacement.
string
Organization name.
project
This property is required.
Changes to this property will trigger replacement.
string
Project name.
stack
This property is required.
Changes to this property will trigger replacement.
string
Stack name.
value This property is required. string
Value of the tag. The 'value' part of the key=value pair
name
This property is required.
Changes to this property will trigger replacement.
str
Name of the tag. The 'key' part of the key=value pair
organization
This property is required.
Changes to this property will trigger replacement.
str
Organization name.
project
This property is required.
Changes to this property will trigger replacement.
str
Project name.
stack
This property is required.
Changes to this property will trigger replacement.
str
Stack name.
value This property is required. str
Value of the tag. The 'value' part of the key=value pair
name
This property is required.
Changes to this property will trigger replacement.
String
Name of the tag. The 'key' part of the key=value pair
organization
This property is required.
Changes to this property will trigger replacement.
String
Organization name.
project
This property is required.
Changes to this property will trigger replacement.
String
Project name.
stack
This property is required.
Changes to this property will trigger replacement.
String
Stack name.
value This property is required. String
Value of the tag. The 'value' part of the key=value pair

Outputs

All input properties are implicitly available as output properties. Additionally, the StackTag 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
pulumiservice pulumi/pulumi-pulumiservice
License
Apache-2.0

This provider is currently in preview.

Pulumi Cloud v0.29.1 published on Tuesday, Apr 1, 2025 by Pulumi