Skip to content
v2.277.0

AssetReference Struct ​

A reference to a Asset resource.

Example ​

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
# 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
// 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();
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"
};
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 ​

agentSpaceIdstringagent_space_idstragentSpaceIdStringAgentSpaceIdstringAgentSpaceId*string required #
The AgentSpaceId of the Asset resource.
assetArnstringasset_arnstrassetArnStringAssetArnstringAssetArn*string required #
The ARN of the Asset resource.
assetIdstringasset_idstrassetIdStringAssetIdstringAssetId*string required #
The AssetId of the Asset resource.