# AssociationReference

A reference to a Association resource.

- Source: Generated at build time
- Type last changed: v2.232.0 · 5 Dec 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_devopsagent as interfaces_devopsagent } from 'aws-cdk-lib/interfaces';
const associationReference: interfaces_devopsagent.AssociationReference = {
  agentSpaceId: 'agentSpaceId',
  associationId: 'associationId',
};
```

Python:

```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_devopsagent as interfaces_devopsagent

association_reference = interfaces_devopsagent.AssociationReference(
    agent_space_id="agentSpaceId",
    association_id="associationId"
)
```

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.interfaces.devopsagent.*;

AssociationReference associationReference = AssociationReference.builder()
        .agentSpaceId("agentSpaceId")
        .associationId("associationId")
        .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.Interfaces.DevOpsAgent;

var associationReference = new AssociationReference {
    AgentSpaceId = "agentSpaceId",
    AssociationId = "associationId"
};
```

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"

associationReference := &AssociationReference{
	AgentSpaceId: jsii.String("agentSpaceId"),
	AssociationId: jsii.String("associationId"),
}
```

## Properties

- `agentSpaceId`: string (required) — The AgentSpaceId of the Association resource.

- `associationId`: string (required) — The AssociationId of the Association resource.
