Skip to content
v2.277.0

AssociationReference Struct ​

A reference to a Association 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 associationReference: interfaces_devopsagent.AssociationReference = {
  agentSpaceId: 'agentSpaceId',
  associationId: 'associationId',
};
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
// 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();
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"
};
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 ​

agentSpaceIdstringagent_space_idstragentSpaceIdStringAgentSpaceIdstringAgentSpaceId*string required #
The AgentSpaceId of the Association resource.
associationIdstringassociation_idstrassociationIdStringAssociationIdstringAssociationId*string required #
The AssociationId of the Association resource.