aws.servicecatalog.TagOptionResourceAssociation
Explore with Pulumi AI
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:
- Resource
Id string - Resource identifier.
- Tag
Option stringId - Tag Option identifier.
- Resource
Id string - Resource identifier.
- Tag
Option stringId - Tag Option identifier.
- resource
Id String - Resource identifier.
- tag
Option StringId - Tag Option identifier.
- resource
Id string - Resource identifier.
- tag
Option stringId - Tag Option identifier.
- resource_
id str - Resource identifier.
- tag_
option_ strid - Tag Option identifier.
- resource
Id String - Resource identifier.
- tag
Option StringId - 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.
- Resource
Arn string - ARN of the resource.
- Resource
Created stringTime - Creation time of the resource.
- Resource
Description string - Description of the resource.
- Resource
Name string - Description of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Resource
Arn string - ARN of the resource.
- Resource
Created stringTime - Creation time of the resource.
- Resource
Description string - Description of the resource.
- Resource
Name string - Description of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- resource
Arn String - ARN of the resource.
- resource
Created StringTime - Creation time of the resource.
- resource
Description String - Description of the resource.
- resource
Name String - Description of the resource.
- id string
- The provider-assigned unique ID for this managed resource.
- resource
Arn string - ARN of the resource.
- resource
Created stringTime - Creation time of the resource.
- resource
Description string - Description of the resource.
- resource
Name 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_ strtime - 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.
- resource
Arn String - ARN of the resource.
- resource
Created StringTime - Creation time of the resource.
- resource
Description String - Description of the resource.
- resource
Name 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.
- Resource
Arn string - ARN of the resource.
- Resource
Created stringTime - Creation time of the resource.
- Resource
Description string - Description of the resource.
- Resource
Id string - Resource identifier.
- Resource
Name string - Description of the resource.
- Tag
Option stringId - Tag Option identifier.
- Resource
Arn string - ARN of the resource.
- Resource
Created stringTime - Creation time of the resource.
- Resource
Description string - Description of the resource.
- Resource
Id string - Resource identifier.
- Resource
Name string - Description of the resource.
- Tag
Option stringId - Tag Option identifier.
- resource
Arn String - ARN of the resource.
- resource
Created StringTime - Creation time of the resource.
- resource
Description String - Description of the resource.
- resource
Id String - Resource identifier.
- resource
Name String - Description of the resource.
- tag
Option StringId - Tag Option identifier.
- resource
Arn string - ARN of the resource.
- resource
Created stringTime - Creation time of the resource.
- resource
Description string - Description of the resource.
- resource
Id string - Resource identifier.
- resource
Name string - Description of the resource.
- tag
Option stringId - Tag Option identifier.
- resource_
arn str - ARN of the resource.
- resource_
created_ strtime - 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_ strid - Tag Option identifier.
- resource
Arn String - ARN of the resource.
- resource
Created StringTime - Creation time of the resource.
- resource
Description String - Description of the resource.
- resource
Id String - Resource identifier.
- resource
Name String - Description of the resource.
- tag
Option StringId - 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.