Class CfnResourceAssociation

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, IEnvironmentAware, IResourceAssociationRef, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.140.0 (build 79fd58c)", date="2026-10-08T17:00:02.023Z") @Stability(Stable) public class CfnResourceAssociation extends CfnResource implements IInspectable, IResourceAssociationRef
Associates a specified resource with a resource share.

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.ram.*;
 CfnResourceAssociation cfnResourceAssociation = CfnResourceAssociation.Builder.create(this, "MyCfnResourceAssociation")
         .resourceArn("resourceArn")
         .resourceShareArn("resourceShareArn")
         .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

    • CfnResourceAssociation

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

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

      @Stability(Stable) public CfnResourceAssociation(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnResourceAssociationProps props)
      Create a new AWS::RAM::ResourceAssociation.

      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. This parameter is required.
  • Method Details

    • isCfnResourceAssociation

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

      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.
    • getAttrAssociationType

      @Stability(Stable) @NotNull public String getAttrAssociationType()
      The type of entity included in this association.
    • getAttrCreationTime

      @Stability(Stable) @NotNull public String getAttrCreationTime()
      The date and time when the association was created.
    • getAttrExternal

      @Stability(Stable) @NotNull public IResolvable getAttrExternal()
      Indicates whether the principal belongs to the same organization in AWS Organizations as the AWS account that owns the resource share.
    • getAttrLastUpdatedTime

      @Stability(Stable) @NotNull public String getAttrLastUpdatedTime()
      The date and time when the association was last updated.
    • getAttrStatus

      @Stability(Stable) @NotNull public String getAttrStatus()
      The current status of the association.
    • 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
    • getResourceAssociationRef

      @Stability(Stable) @NotNull public ResourceAssociationReference getResourceAssociationRef()
      A reference to a ResourceAssociation resource.
      Specified by:
      getResourceAssociationRef in interface IResourceAssociationRef
    • getResourceArn

      @Stability(Stable) @NotNull public String getResourceArn()
      Specifies the Amazon Resource Name (ARN) of the resource to associate with the resource share.
    • setResourceArn

      @Stability(Stable) public void setResourceArn(@NotNull String value)
      Specifies the Amazon Resource Name (ARN) of the resource to associate with the resource share.
    • getResourceShareArn

      @Stability(Stable) @NotNull public String getResourceShareArn()
      Specifies the Amazon Resource Name (ARN) of the resource share.
    • setResourceShareArn

      @Stability(Stable) public void setResourceShareArn(@NotNull String value)
      Specifies the Amazon Resource Name (ARN) of the resource share.