# CfnSourceAssociationProps

Properties for defining a `CfnSourceAssociation`.

Used as props by: [CfnSourceAssociation](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ram.CfnSourceAssociation.html)

- Source: Generated at build time
- Type last changed: v2.273.0 · 8 Oct 2026

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
};
```

Golang:

```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

- `resourceShareArn`: string (required) — Specifies the [Amazon Resource Name (ARN)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) of the resource share.

- `sourceId`: string (required) — Specifies the ID of the source account to associate with the resource share.
