CfnContextTrust Struct Added in v2.278.0
Provenance and confidence for context.
| Source | core/lib/metadata-context.ts |
|---|---|
| Type last changed |
Example
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
# 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
// 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();
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"
};
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
Reference to the source of the context.
Default: no citation
confCfnContextTrustConfidenceconfCfnContextTrustConfidenceconfCfnContextTrustConfidenceConfCfnContextTrustConfidenceConfCfnContextTrustConfidence required #Confidence in the context.
Additional provenance details.
Default: no note
srcCfnContextTrustSourcesrcCfnContextTrustSourcesrcCfnContextTrustSourceSrcCfnContextTrustSourceSrcCfnContextTrustSource required #How the context was produced.