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

aws.servicecatalog.TagOptionResourceAssociation

Explore with Pulumi AI

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

    Manages a Service Catalog Tag Option Resource Association.

    Tip: A “resource” is either a Service Catalog portfolio or product.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.servicecatalog.TagOptionResourceAssociation("example", {
        resourceId: "prod-dnigbtea24ste",
        tagOptionId: "tag-pjtvyakdlyo3m",
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.servicecatalog.TagOptionResourceAssociation("example",
        resource_id="prod-dnigbtea24ste",
        tag_option_id="tag-pjtvyakdlyo3m")
    
    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.NewTagOptionResourceAssociation(ctx, "example", &servicecatalog.TagOptionResourceAssociationArgs{
    			ResourceId:  pulumi.String("prod-dnigbtea24ste"),
    			TagOptionId: pulumi.String("tag-pjtvyakdlyo3m"),
    		})
    		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.TagOptionResourceAssociation("example", new()
        {
            ResourceId = "prod-dnigbtea24ste",
            TagOptionId = "tag-pjtvyakdlyo3m",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.servicecatalog.TagOptionResourceAssociation;
    import com.pulumi.aws.servicecatalog.TagOptionResourceAssociationArgs;
    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 TagOptionResourceAssociation("example", TagOptionResourceAssociationArgs.builder()
                .resourceId("prod-dnigbtea24ste")
                .tagOptionId("tag-pjtvyakdlyo3m")
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:servicecatalog:TagOptionResourceAssociation
        properties:
          resourceId: prod-dnigbtea24ste
          tagOptionId: tag-pjtvyakdlyo3m
    

    Create TagOptionResourceAssociation Resource

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

    Constructor syntax

    new TagOptionResourceAssociation(name: string, args: TagOptionResourceAssociationArgs, opts?: CustomResourceOptions);
    @overload
    def TagOptionResourceAssociation(resource_name: str,
                                     args: TagOptionResourceAssociationArgs,
                                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def TagOptionResourceAssociation(resource_name: str,
                                     opts: Optional[ResourceOptions] = None,
                                     resource_id: Optional[str] = None,
                                     tag_option_id: Optional[str] = None)
    func NewTagOptionResourceAssociation(ctx *Context, name string, args TagOptionResourceAssociationArgs, opts ...ResourceOption) (*TagOptionResourceAssociation, error)
    public TagOptionResourceAssociation(string name, TagOptionResourceAssociationArgs args, CustomResourceOptions? opts = null)
    public TagOptionResourceAssociation(String name, TagOptionResourceAssociationArgs args)
    public TagOptionResourceAssociation(String name, TagOptionResourceAssociationArgs args, CustomResourceOptions options)
    
    type: aws:servicecatalog:TagOptionResourceAssociation
    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 TagOptionResourceAssociationArgs
    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 TagOptionResourceAssociationArgs
    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 TagOptionResourceAssociationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TagOptionResourceAssociationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TagOptionResourceAssociationArgs
    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 tagOptionResourceAssociationResource = new Aws.ServiceCatalog.TagOptionResourceAssociation("tagOptionResourceAssociationResource", new()
    {
        ResourceId = "string",
        TagOptionId = "string",
    });
    
    example, err := servicecatalog.NewTagOptionResourceAssociation(ctx, "tagOptionResourceAssociationResource", &servicecatalog.TagOptionResourceAssociationArgs{
    	ResourceId:  pulumi.String("string"),
    	TagOptionId: pulumi.String("string"),
    })
    
    var tagOptionResourceAssociationResource = new TagOptionResourceAssociation("tagOptionResourceAssociationResource", TagOptionResourceAssociationArgs.builder()
        .resourceId("string")
        .tagOptionId("string")
        .build());
    
    tag_option_resource_association_resource = aws.servicecatalog.TagOptionResourceAssociation("tagOptionResourceAssociationResource",
        resource_id="string",
        tag_option_id="string")
    
    const tagOptionResourceAssociationResource = new aws.servicecatalog.TagOptionResourceAssociation("tagOptionResourceAssociationResource", {
        resourceId: "string",
        tagOptionId: "string",
    });
    
    type: aws:servicecatalog:TagOptionResourceAssociation
    properties:
        resourceId: string
        tagOptionId: string
    

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

    ResourceId string
    Resource identifier.
    TagOptionId string
    Tag Option identifier.
    ResourceId string
    Resource identifier.
    TagOptionId string
    Tag Option identifier.
    resourceId String
    Resource identifier.
    tagOptionId String
    Tag Option identifier.
    resourceId string
    Resource identifier.
    tagOptionId string
    Tag Option identifier.
    resource_id str
    Resource identifier.
    tag_option_id str
    Tag Option identifier.
    resourceId String
    Resource identifier.
    tagOptionId String
    Tag Option identifier.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    ResourceArn string
    ARN of the resource.
    ResourceCreatedTime string
    Creation time of the resource.
    ResourceDescription string
    Description of the resource.
    ResourceName string
    Description of the resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    ResourceArn string
    ARN of the resource.
    ResourceCreatedTime string
    Creation time of the resource.
    ResourceDescription string
    Description of the resource.
    ResourceName string
    Description of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    resourceArn String
    ARN of the resource.
    resourceCreatedTime String
    Creation time of the resource.
    resourceDescription String
    Description of the resource.
    resourceName String
    Description of the resource.
    id string
    The provider-assigned unique ID for this managed resource.
    resourceArn string
    ARN of the resource.
    resourceCreatedTime string
    Creation time of the resource.
    resourceDescription string
    Description of the resource.
    resourceName string
    Description of the resource.
    id str
    The provider-assigned unique ID for this managed resource.
    resource_arn str
    ARN of the resource.
    resource_created_time str
    Creation time of the resource.
    resource_description str
    Description of the resource.
    resource_name str
    Description of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    resourceArn String
    ARN of the resource.
    resourceCreatedTime String
    Creation time of the resource.
    resourceDescription String
    Description of the resource.
    resourceName String
    Description of the resource.

    Look up Existing TagOptionResourceAssociation Resource

    Get an existing TagOptionResourceAssociation 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?: TagOptionResourceAssociationState, opts?: CustomResourceOptions): TagOptionResourceAssociation
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            resource_arn: Optional[str] = None,
            resource_created_time: Optional[str] = None,
            resource_description: Optional[str] = None,
            resource_id: Optional[str] = None,
            resource_name: Optional[str] = None,
            tag_option_id: Optional[str] = None) -> TagOptionResourceAssociation
    func GetTagOptionResourceAssociation(ctx *Context, name string, id IDInput, state *TagOptionResourceAssociationState, opts ...ResourceOption) (*TagOptionResourceAssociation, error)
    public static TagOptionResourceAssociation Get(string name, Input<string> id, TagOptionResourceAssociationState? state, CustomResourceOptions? opts = null)
    public static TagOptionResourceAssociation get(String name, Output<String> id, TagOptionResourceAssociationState 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:
    ResourceArn string
    ARN of the resource.
    ResourceCreatedTime string
    Creation time of the resource.
    ResourceDescription string
    Description of the resource.
    ResourceId string
    Resource identifier.
    ResourceName string
    Description of the resource.
    TagOptionId string
    Tag Option identifier.
    ResourceArn string
    ARN of the resource.
    ResourceCreatedTime string
    Creation time of the resource.
    ResourceDescription string
    Description of the resource.
    ResourceId string
    Resource identifier.
    ResourceName string
    Description of the resource.
    TagOptionId string
    Tag Option identifier.
    resourceArn String
    ARN of the resource.
    resourceCreatedTime String
    Creation time of the resource.
    resourceDescription String
    Description of the resource.
    resourceId String
    Resource identifier.
    resourceName String
    Description of the resource.
    tagOptionId String
    Tag Option identifier.
    resourceArn string
    ARN of the resource.
    resourceCreatedTime string
    Creation time of the resource.
    resourceDescription string
    Description of the resource.
    resourceId string
    Resource identifier.
    resourceName string
    Description of the resource.
    tagOptionId string
    Tag Option identifier.
    resource_arn str
    ARN of the resource.
    resource_created_time str
    Creation time of the resource.
    resource_description str
    Description of the resource.
    resource_id str
    Resource identifier.
    resource_name str
    Description of the resource.
    tag_option_id str
    Tag Option identifier.
    resourceArn String
    ARN of the resource.
    resourceCreatedTime String
    Creation time of the resource.
    resourceDescription String
    Description of the resource.
    resourceId String
    Resource identifier.
    resourceName String
    Description of the resource.
    tagOptionId String
    Tag Option identifier.

    Import

    Using pulumi import, import aws_servicecatalog_tag_option_resource_association using the tag option ID and resource ID. For example:

    $ pulumi import aws:servicecatalog/tagOptionResourceAssociation:TagOptionResourceAssociation example tag-pjtvyakdlyo3m:prod-dnigbtea24ste
    

    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