Skip to content
v2.278.0

CfnSourceAssociationProps Struct ​

Properties for defining a CfnSourceAssociation.

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 ram } from 'aws-cdk-lib';
const cfnSourceAssociationProps: ram.CfnSourceAssociationProps = {
  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 import aws_ram as ram

cfn_source_association_props = ram.CfnSourceAssociationProps(
    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.services.ram.*;

CfnSourceAssociationProps cfnSourceAssociationProps = CfnSourceAssociationProps.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.AWS.RAM;

var cfnSourceAssociationProps = new CfnSourceAssociationProps {
    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"

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

Properties ​

resourceShareArnstringresource_share_arnstrresourceShareArnStringResourceShareArnstringResourceShareArn*string required #
Specifies the Amazon Resource Name (ARN) of the resource share.
sourceIdstringsource_idstrsourceIdStringSourceIdstringSourceId*string required #
Specifies the ID of the source account to associate with the resource share.