Class CfnSourceAssociation

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, IEnvironmentAware, ISourceAssociationRef, 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.027Z") @Stability(Stable) public class CfnSourceAssociation extends CfnResource implements IInspectable, ISourceAssociationRef
Associates a specified source account 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.*;
 CfnSourceAssociation cfnSourceAssociation = CfnSourceAssociation.Builder.create(this, "MyCfnSourceAssociation")
         .resourceShareArn("resourceShareArn")
         .sourceId("sourceId")
         .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

    • CfnSourceAssociation

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

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

      @Stability(Stable) public CfnSourceAssociation(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnSourceAssociationProps props)
      Create a new AWS::RAM::SourceAssociation.

      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

    • isCfnSourceAssociation

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

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

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

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

      @Stability(Stable) @NotNull public String getAttrSourceType()
      The type of the source.
    • 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
    • getSourceAssociationRef

      @Stability(Stable) @NotNull public SourceAssociationReference getSourceAssociationRef()
      A reference to a SourceAssociation resource.
      Specified by:
      getSourceAssociationRef in interface ISourceAssociationRef
    • 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.
    • getSourceId

      @Stability(Stable) @NotNull public String getSourceId()
      Specifies the ID of the source account to associate with the resource share.
    • setSourceId

      @Stability(Stable) public void setSourceId(@NotNull String value)
      Specifies the ID of the source account to associate with the resource share.