# CfnContextRef

Reference to supporting context.

- Source: [`core/lib/metadata-context.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/core/lib/metadata-context.ts#L126)
- Type last changed: v2.278.0 · 20 Nov 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
const cfnContextRef: cdk.CfnContextRef = {
  at: 'at',

  // the properties below are optional
  has: 'has',
  scope: 'scope',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk as cdk

cfn_context_ref = cdk.CfnContextRef(
    at="at",

    # the properties below are optional
    has="has",
    scope="scope"
)
```

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

CfnContextRef cfnContextRef = CfnContextRef.builder()
        .at("at")

        // the properties below are optional
        .has("has")
        .scope("scope")
        .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;

var cfnContextRef = new CfnContextRef {
    At = "at",

    // the properties below are optional
    Has = "has",
    Scope = "scope"
};
```

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 cdk "github.com/aws/aws-cdk-go/awscdk"

cfnContextRef := &CfnContextRef{
	At: jsii.String("at"),

	// the properties below are optional
	Has: jsii.String("has"),
	Scope: jsii.String("scope"),
}
```

## Properties

- `at`: string (required) — Location of the supporting context.

- `has`: string — Summary of the referenced context.

  **Default:** no summary

- `scope`: string — Scope of the referenced context.

  **Default:** no scope
