1. Packages
  2. AWS
  3. API Docs
  4. servicecatalog
  5. TagOption
AWS v6.54.0 published on Friday, Sep 27, 2024 by Pulumi

aws.servicecatalog.TagOption

Explore with Pulumi AI

aws logo
AWS v6.54.0 published on Friday, Sep 27, 2024 by Pulumi

    Manages a Service Catalog Tag Option.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.servicecatalog.TagOption("example", {
        key: "nyckel",
        value: "värde",
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.servicecatalog.TagOption("example",
        key="nyckel",
        value="värde")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/servicecatalog"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := servicecatalog.NewTagOption(ctx, "example", &servicecatalog.TagOptionArgs{
    			Key:   pulumi.String("nyckel"),
    			Value: pulumi.String("värde"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Aws.ServiceCatalog.TagOption("example", new()
        {
            Key = "nyckel",
            Value = "värde",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.servicecatalog.TagOption;
    import com.pulumi.aws.servicecatalog.TagOptionArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var example = new TagOption("example", TagOptionArgs.builder()
                .key("nyckel")
                .value("värde")
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:servicecatalog:TagOption
        properties:
          key: nyckel
          value: värde
    

    Create TagOption Resource

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

    Constructor syntax

    new TagOption(name: string, args: TagOptionArgs, opts?: CustomResourceOptions);
    @overload
    def TagOption(resource_name: str,
                  args: TagOptionArgs,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def TagOption(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  key: Optional[str] = None,
                  value: Optional[str] = None,
                  active: Optional[bool] = None)
    func NewTagOption(ctx *Context, name string, args TagOptionArgs, opts ...ResourceOption) (*TagOption, error)
    public TagOption(string name, TagOptionArgs args, CustomResourceOptions? opts = null)
    public TagOption(String name, TagOptionArgs args)
    public TagOption(String name, TagOptionArgs args, CustomResourceOptions options)
    
    type: aws:servicecatalog:TagOption
    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 TagOptionArgs
    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 TagOptionArgs
    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 TagOptionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TagOptionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TagOptionArgs
    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 tagOptionResource = new Aws.ServiceCatalog.TagOption("tagOptionResource", new()
    {
        Key = "string",
        Value = "string",
        Active = false,
    });
    
    example, err := servicecatalog.NewTagOption(ctx, "tagOptionResource", &servicecatalog.TagOptionArgs{
    	Key:    pulumi.String("string"),
    	Value:  pulumi.String("string"),
    	Active: pulumi.Bool(false),
    })
    
    var tagOptionResource = new TagOption("tagOptionResource", TagOptionArgs.builder()
        .key("string")
        .value("string")
        .active(false)
        .build());
    
    tag_option_resource = aws.servicecatalog.TagOption("tagOptionResource",
        key="string",
        value="string",
        active=False)
    
    const tagOptionResource = new aws.servicecatalog.TagOption("tagOptionResource", {
        key: "string",
        value: "string",
        active: false,
    });
    
    type: aws:servicecatalog:TagOption
    properties:
        active: false
        key: string
        value: string
    

    TagOption Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The TagOption resource accepts the following input properties:

    Key string
    Tag option key.
    Value string

    Tag option value.

    The following arguments are optional:

    Active bool
    Whether tag option is active. Default is true.
    Key string
    Tag option key.
    Value string

    Tag option value.

    The following arguments are optional:

    Active bool
    Whether tag option is active. Default is true.
    key String
    Tag option key.
    value String

    Tag option value.

    The following arguments are optional:

    active Boolean
    Whether tag option is active. Default is true.
    key string
    Tag option key.
    value string

    Tag option value.

    The following arguments are optional:

    active boolean
    Whether tag option is active. Default is true.
    key str
    Tag option key.
    value str

    Tag option value.

    The following arguments are optional:

    active bool
    Whether tag option is active. Default is true.
    key String
    Tag option key.
    value String

    Tag option value.

    The following arguments are optional:

    active Boolean
    Whether tag option is active. Default is true.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the TagOption resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Owner string
    Id string
    The provider-assigned unique ID for this managed resource.
    Owner string
    id String
    The provider-assigned unique ID for this managed resource.
    owner String
    id string
    The provider-assigned unique ID for this managed resource.
    owner string
    id str
    The provider-assigned unique ID for this managed resource.
    owner str
    id String
    The provider-assigned unique ID for this managed resource.
    owner String

    Look up Existing TagOption Resource

    Get an existing TagOption 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?: TagOptionState, opts?: CustomResourceOptions): TagOption
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            active: Optional[bool] = None,
            key: Optional[str] = None,
            owner: Optional[str] = None,
            value: Optional[str] = None) -> TagOption
    func GetTagOption(ctx *Context, name string, id IDInput, state *TagOptionState, opts ...ResourceOption) (*TagOption, error)
    public static TagOption Get(string name, Input<string> id, TagOptionState? state, CustomResourceOptions? opts = null)
    public static TagOption get(String name, Output<String> id, TagOptionState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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.
    The following state arguments are supported:
    Active bool
    Whether tag option is active. Default is true.
    Key string
    Tag option key.
    Owner string
    Value string

    Tag option value.

    The following arguments are optional:

    Active bool
    Whether tag option is active. Default is true.
    Key string
    Tag option key.
    Owner string
    Value string

    Tag option value.

    The following arguments are optional:

    active Boolean
    Whether tag option is active. Default is true.
    key String
    Tag option key.
    owner String
    value String

    Tag option value.

    The following arguments are optional:

    active boolean
    Whether tag option is active. Default is true.
    key string
    Tag option key.
    owner string
    value string

    Tag option value.

    The following arguments are optional:

    active bool
    Whether tag option is active. Default is true.
    key str
    Tag option key.
    owner str
    value str

    Tag option value.

    The following arguments are optional:

    active Boolean
    Whether tag option is active. Default is true.
    key String
    Tag option key.
    owner String
    value String

    Tag option value.

    The following arguments are optional:

    Import

    Using pulumi import, import aws_servicecatalog_tag_option using the tag option ID. For example:

    $ pulumi import aws:servicecatalog/tagOption:TagOption example tag-pjtvagohlyo3m
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo
    AWS v6.54.0 published on Friday, Sep 27, 2024 by Pulumi