Skip to content
v2.278.0

SourceAssociationReference Struct ​

A reference to a SourceAssociation resource.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ram as interfaces_ram } from 'aws-cdk-lib/interfaces';
const sourceAssociationReference: interfaces_ram.SourceAssociationReference = {
  resourceShareArn: 'resourceShareArn',
  sourceId: 'sourceId',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.interfaces import aws_ram as interfaces_ram

source_association_reference = interfaces_ram.SourceAssociationReference(
    resource_share_arn="resourceShareArn",
    source_id="sourceId"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.interfaces.ram.*;

SourceAssociationReference sourceAssociationReference = SourceAssociationReference.builder()
        .resourceShareArn("resourceShareArn")
        .sourceId("sourceId")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.Interfaces.RAM;

var sourceAssociationReference = new SourceAssociationReference {
    ResourceShareArn = "resourceShareArn",
    SourceId = "sourceId"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

sourceAssociationReference := &SourceAssociationReference{
	ResourceShareArn: jsii.String("resourceShareArn"),
	SourceId: jsii.String("sourceId"),
}

Properties ​

resourceShareArnstringresource_share_arnstrresourceShareArnStringResourceShareArnstringResourceShareArn*string required #
The ResourceShareArn of the SourceAssociation resource.
sourceIdstringsource_idstrsourceIdStringSourceIdstringSourceId*string required #
The SourceId of the SourceAssociation resource.