# AssetReference

A reference to a Asset resource.

- Source: Generated at build time
- Type last changed: v2.268.0 · 2 Sep 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_devopsagent as interfaces_devopsagent } from 'aws-cdk-lib/interfaces';
const assetReference: interfaces_devopsagent.AssetReference = {
  agentSpaceId: 'agentSpaceId',
  assetArn: 'assetArn',
  assetId: 'assetId',
};
```

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

asset_reference = interfaces_devopsagent.AssetReference(
    agent_space_id="agentSpaceId",
    asset_arn="assetArn",
    asset_id="assetId"
)
```

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

AssetReference assetReference = AssetReference.builder()
        .agentSpaceId("agentSpaceId")
        .assetArn("assetArn")
        .assetId("assetId")
        .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 assetReference = new AssetReference {
    AgentSpaceId = "agentSpaceId",
    AssetArn = "assetArn",
    AssetId = "assetId"
};
```

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"

assetReference := &AssetReference{
	AgentSpaceId: jsii.String("agentSpaceId"),
	AssetArn: jsii.String("assetArn"),
	AssetId: jsii.String("assetId"),
}
```

## Properties

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

- `assetArn`: string (required) — The ARN of the Asset resource.

- `assetId`: string (required) — The AssetId of the Asset resource.
