// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.aws.servicecatalog;

import com.pulumi.aws.Utilities;
import com.pulumi.aws.servicecatalog.TagOptionResourceAssociationArgs;
import com.pulumi.aws.servicecatalog.inputs.TagOptionResourceAssociationState;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.String;
import javax.annotation.Nullable;

/**
 * Manages a Service Catalog Tag Option Resource Association.
 * 
 * &gt; **Tip:** A &#34;resource&#34; is either a Service Catalog portfolio or product.
 * 
 * ## Example Usage
 * ### Basic Usage
 * ```java
 * 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(&#34;example&#34;, TagOptionResourceAssociationArgs.builder()        
 *             .resourceId(&#34;prod-dnigbtea24ste&#34;)
 *             .tagOptionId(&#34;tag-pjtvyakdlyo3m&#34;)
 *             .build());
 * 
 *     }
 * }
 * ```
 * 
 * ## Import
 * 
 * `aws_servicecatalog_tag_option_resource_association` can be imported using the tag option ID and resource ID, e.g.,
 * 
 * ```sh
 *  $ pulumi import aws:servicecatalog/tagOptionResourceAssociation:TagOptionResourceAssociation example tag-pjtvyakdlyo3m:prod-dnigbtea24ste
 * ```
 * 
 */
@ResourceType(type="aws:servicecatalog/tagOptionResourceAssociation:TagOptionResourceAssociation")
public class TagOptionResourceAssociation extends com.pulumi.resources.CustomResource {
    /**
     * ARN of the resource.
     * 
     */
    @Export(name="resourceArn", refs={String.class}, tree="[0]")
    private Output<String> resourceArn;

    /**
     * @return ARN of the resource.
     * 
     */
    public Output<String> resourceArn() {
        return this.resourceArn;
    }
    /**
     * Creation time of the resource.
     * 
     */
    @Export(name="resourceCreatedTime", refs={String.class}, tree="[0]")
    private Output<String> resourceCreatedTime;

    /**
     * @return Creation time of the resource.
     * 
     */
    public Output<String> resourceCreatedTime() {
        return this.resourceCreatedTime;
    }
    /**
     * Description of the resource.
     * 
     */
    @Export(name="resourceDescription", refs={String.class}, tree="[0]")
    private Output<String> resourceDescription;

    /**
     * @return Description of the resource.
     * 
     */
    public Output<String> resourceDescription() {
        return this.resourceDescription;
    }
    /**
     * Resource identifier.
     * 
     */
    @Export(name="resourceId", refs={String.class}, tree="[0]")
    private Output<String> resourceId;

    /**
     * @return Resource identifier.
     * 
     */
    public Output<String> resourceId() {
        return this.resourceId;
    }
    /**
     * Description of the resource.
     * 
     */
    @Export(name="resourceName", refs={String.class}, tree="[0]")
    private Output<String> resourceName;

    /**
     * @return Description of the resource.
     * 
     */
    public Output<String> resourceName() {
        return this.resourceName;
    }
    /**
     * Tag Option identifier.
     * 
     */
    @Export(name="tagOptionId", refs={String.class}, tree="[0]")
    private Output<String> tagOptionId;

    /**
     * @return Tag Option identifier.
     * 
     */
    public Output<String> tagOptionId() {
        return this.tagOptionId;
    }

    /**
     *
     * @param name The _unique_ name of the resulting resource.
     */
    public TagOptionResourceAssociation(String name) {
        this(name, TagOptionResourceAssociationArgs.Empty);
    }
    /**
     *
     * @param name The _unique_ name of the resulting resource.
     * @param args The arguments to use to populate this resource's properties.
     */
    public TagOptionResourceAssociation(String name, TagOptionResourceAssociationArgs args) {
        this(name, args, null);
    }
    /**
     *
     * @param name The _unique_ name of the resulting resource.
     * @param args The arguments to use to populate this resource's properties.
     * @param options A bag of options that control this resource's behavior.
     */
    public TagOptionResourceAssociation(String name, TagOptionResourceAssociationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        super("aws:servicecatalog/tagOptionResourceAssociation:TagOptionResourceAssociation", name, args == null ? TagOptionResourceAssociationArgs.Empty : args, makeResourceOptions(options, Codegen.empty()));
    }

    private TagOptionResourceAssociation(String name, Output<String> id, @Nullable TagOptionResourceAssociationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        super("aws:servicecatalog/tagOptionResourceAssociation:TagOptionResourceAssociation", name, state, makeResourceOptions(options, id));
    }

    private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output<String> id) {
        var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder()
            .version(Utilities.getVersion())
            .build();
        return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id);
    }

    /**
     * Get an existing Host resource's state with the given name, ID, and optional extra
     * properties used to qualify the lookup.
     *
     * @param name The _unique_ name of the resulting resource.
     * @param id The _unique_ provider ID of the resource to lookup.
     * @param state
     * @param options Optional settings to control the behavior of the CustomResource.
     */
    public static TagOptionResourceAssociation get(String name, Output<String> id, @Nullable TagOptionResourceAssociationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        return new TagOptionResourceAssociation(name, id, state, options);
    }
}
