1. Packages
  2. Outscale Provider
  3. API Docs
  4. Tag
outscale 1.1.0 published on Thursday, Apr 3, 2025 by outscale

outscale.Tag

Explore with Pulumi AI

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: Optional[TagArgs] = None,
        opts: Optional[ResourceOptions] = None)

@overload
def Tag(resource_name: str,
        opts: Optional[ResourceOptions] = None,
        resource_ids: Optional[Sequence[str]] = None,
        tag: Optional[Sequence[TagTagArgs]] = None,
        tag_id: Optional[str] = None,
        timeouts: Optional[TagTimeoutsArgs] = None)
func NewTag(ctx *Context, name string, args *TagArgs, opts ...ResourceOption) (*Tag, error)
public Tag(string name, TagArgs? args = null, CustomResourceOptions? opts = null)
public Tag(String name, TagArgs args)
public Tag(String name, TagArgs args, CustomResourceOptions options)
type: outscale:Tag
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 TagArgs
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 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 This property is required. 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 This property is required. 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 This property is required. String
The unique name of the resource.
args This property is required. 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 tagResource = new Outscale.Tag("tagResource", new()
{
    ResourceIds = new[]
    {
        "string",
    },
    Tag = new[]
    {
        new Outscale.Inputs.TagTagArgs
        {
            Key = "string",
            ResourceId = "string",
            ResourceType = "string",
            Value = "string",
        },
    },
    TagId = "string",
    Timeouts = new Outscale.Inputs.TagTimeoutsArgs
    {
        Create = "string",
        Delete = "string",
    },
});
Copy
example, err := outscale.NewTag(ctx, "tagResource", &outscale.TagArgs{
ResourceIds: pulumi.StringArray{
pulumi.String("string"),
},
Tag: .TagTagArray{
&.TagTagArgs{
Key: pulumi.String("string"),
ResourceId: pulumi.String("string"),
ResourceType: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
TagId: pulumi.String("string"),
Timeouts: &.TagTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
})
Copy
var tagResource = new Tag("tagResource", TagArgs.builder()
    .resourceIds("string")
    .tag(TagTagArgs.builder()
        .key("string")
        .resourceId("string")
        .resourceType("string")
        .value("string")
        .build())
    .tagId("string")
    .timeouts(TagTimeoutsArgs.builder()
        .create("string")
        .delete("string")
        .build())
    .build());
Copy
tag_resource = outscale.Tag("tagResource",
    resource_ids=["string"],
    tag=[{
        "key": "string",
        "resource_id": "string",
        "resource_type": "string",
        "value": "string",
    }],
    tag_id="string",
    timeouts={
        "create": "string",
        "delete": "string",
    })
Copy
const tagResource = new outscale.Tag("tagResource", {
    resourceIds: ["string"],
    tag: [{
        key: "string",
        resourceId: "string",
        resourceType: "string",
        value: "string",
    }],
    tagId: "string",
    timeouts: {
        create: "string",
        "delete": "string",
    },
});
Copy
type: outscale:Tag
properties:
    resourceIds:
        - string
    tag:
        - key: string
          resourceId: string
          resourceType: string
          value: string
    tagId: string
    timeouts:
        create: string
        delete: string
Copy

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:

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.
RequestId string
Tags List<TagTag>
Id string
The provider-assigned unique ID for this managed resource.
RequestId string
Tags []TagTag
id String
The provider-assigned unique ID for this managed resource.
requestId String
tags List<TagTag>
id string
The provider-assigned unique ID for this managed resource.
requestId string
tags TagTag[]
id str
The provider-assigned unique ID for this managed resource.
request_id str
tags Sequence[TagTag]
id String
The provider-assigned unique ID for this managed resource.
requestId String
tags List<Property Map>

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,
        request_id: Optional[str] = None,
        resource_ids: Optional[Sequence[str]] = None,
        tag: Optional[Sequence[TagTagArgs]] = None,
        tag_id: Optional[str] = None,
        tags: Optional[Sequence[TagTagArgs]] = None,
        timeouts: Optional[TagTimeoutsArgs] = None) -> Tag
func 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: outscale:Tag    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.

Supporting Types

TagTag
, TagTagArgs

Key This property is required. string
ResourceId This property is required. string
ResourceType This property is required. string
Value This property is required. string
Key This property is required. string
ResourceId This property is required. string
ResourceType This property is required. string
Value This property is required. string
key This property is required. String
resourceId This property is required. String
resourceType This property is required. String
value This property is required. String
key This property is required. string
resourceId This property is required. string
resourceType This property is required. string
value This property is required. string
key This property is required. str
resource_id This property is required. str
resource_type This property is required. str
value This property is required. str
key This property is required. String
resourceId This property is required. String
resourceType This property is required. String
value This property is required. String

TagTimeouts
, TagTimeoutsArgs

Create string
Delete string
Create string
Delete string
create String
delete String
create string
delete string
create str
delete str
create String
delete String

Package Details

Repository
outscale outscale/terraform-provider-outscale
License
Notes
This Pulumi package is based on the outscale Terraform Provider.