# CfnContextTrust

Provenance and confidence for 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#L95)
- 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 cfnContextTrust: cdk.CfnContextTrust = {
  conf: cdk.CfnContextTrustConfidence.HIGH,
  src: cdk.CfnContextTrustSource.AUTHORED,

  // the properties below are optional
  cite: 'cite',
  note: 'note',
};
```

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_trust = cdk.CfnContextTrust(
    conf=cdk.CfnContextTrustConfidence.HIGH,
    src=cdk.CfnContextTrustSource.AUTHORED,

    # the properties below are optional
    cite="cite",
    note="note"
)
```

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

CfnContextTrust cfnContextTrust = CfnContextTrust.builder()
        .conf(CfnContextTrustConfidence.HIGH)
        .src(CfnContextTrustSource.AUTHORED)

        // the properties below are optional
        .cite("cite")
        .note("note")
        .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 cfnContextTrust = new CfnContextTrust {
    Conf = CfnContextTrustConfidence.HIGH,
    Src = CfnContextTrustSource.AUTHORED,

    // the properties below are optional
    Cite = "cite",
    Note = "note"
};
```

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"

cfnContextTrust := &CfnContextTrust{
	Conf: cdk.CfnContextTrustConfidence_HIGH,
	Src: cdk.CfnContextTrustSource_AUTHORED,

	// the properties below are optional
	Cite: jsii.String("cite"),
	Note: jsii.String("note"),
}
```

## Properties

- `cite`: string — Reference to the source of the context.

  **Default:** no citation

- `conf`: [CfnContextTrustConfidence](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnContextTrustConfidence.html) (required) — Confidence in the context.

- `note`: string — Additional provenance details.

  **Default:** no note

- `src`: [CfnContextTrustSource](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnContextTrustSource.html) (required) — How the context was produced.
