# AgentSpaceReference

A reference to a AgentSpace resource.

- Source: Generated at build time
- Type last changed: v2.249.0 · 13 Apr 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_securityagent as interfaces_securityagent } from 'aws-cdk-lib/interfaces';
const agentSpaceReference: interfaces_securityagent.AgentSpaceReference = {
  agentSpaceId: 'agentSpaceId',
};
```

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_securityagent as interfaces_securityagent

agent_space_reference = interfaces_securityagent.AgentSpaceReference(
    agent_space_id="agentSpaceId"
)
```

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.securityagent.*;

AgentSpaceReference agentSpaceReference = AgentSpaceReference.builder()
        .agentSpaceId("agentSpaceId")
        .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.SecurityAgent;

var agentSpaceReference = new AgentSpaceReference {
    AgentSpaceId = "agentSpaceId"
};
```

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"

agentSpaceReference := &AgentSpaceReference{
	AgentSpaceId: jsii.String("agentSpaceId"),
}
```

## Properties

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