Class CfnTagOptionAssociation

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.servicecatalog.CfnTagOptionAssociation
All Implemented Interfaces:
IInspectable, IEnvironmentAware, ITagOptionAssociationRef, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.129.0 (build eaca441)", date="2026-05-19T08:18:57.413Z") @Stability(Stable) public class CfnTagOptionAssociation extends CfnResource implements IInspectable, ITagOptionAssociationRef
Associate the specified TagOption with the specified portfolio or product.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.servicecatalog.*;
 CfnTagOptionAssociation cfnTagOptionAssociation = CfnTagOptionAssociation.Builder.create(this, "MyCfnTagOptionAssociation")
         .resourceId("resourceId")
         .tagOptionId("tagOptionId")
         .build();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnTagOptionAssociation

      protected CfnTagOptionAssociation(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnTagOptionAssociation

      protected CfnTagOptionAssociation(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnTagOptionAssociation

      @Stability(Stable) public CfnTagOptionAssociation(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable CfnTagOptionAssociationProps props)
      Create a new AWS::ServiceCatalog::TagOptionAssociation.

      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
      props - Resource properties.
    • CfnTagOptionAssociation

      @Stability(Stable) public CfnTagOptionAssociation(@NotNull software.constructs.Construct scope, @NotNull String id)
      Create a new AWS::ServiceCatalog::TagOptionAssociation.

      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
  • Method Details

    • isCfnTagOptionAssociation

      @Stability(Stable) @NotNull public static Boolean isCfnTagOptionAssociation(@NotNull Object x)
      Checks whether the given object is a CfnTagOptionAssociation.

      Parameters:
      x - This parameter is required.
    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector - tree inspector to collect and process attributes. This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getCfnPropertyNames

      @Stability(Stable) @NotNull protected Map<String,String> getCfnPropertyNames()
      Overrides:
      getCfnPropertyNames in class CfnResource
    • getTagOptionAssociationRef

      @Stability(Stable) @NotNull public TagOptionAssociationReference getTagOptionAssociationRef()
      A reference to a TagOptionAssociation resource.
      Specified by:
      getTagOptionAssociationRef in interface ITagOptionAssociationRef
    • getResourceId

      @Stability(Stable) @Nullable public String getResourceId()
      The resource identifier.
    • setResourceId

      @Stability(Stable) public void setResourceId(@Nullable String value)
      The resource identifier.
    • getTagOptionId

      @Stability(Stable) @Nullable public String getTagOptionId()
      The TagOption identifier.
    • setTagOptionId

      @Stability(Stable) public void setTagOptionId(@Nullable String value)
      The TagOption identifier.