Skip to content
v2.278.0

CfnContextRef Struct Added in v2.278.0 ​

Reference to supporting context.

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 cfnContextRef: cdk.CfnContextRef = {
  at: 'at',

  // the properties below are optional
  has: 'has',
  scope: 'scope',
};
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
// 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();
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"
};
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 ​

atstringatstratStringAtstringAt*string required #
Location of the supporting context.
hasoptionalstringhasoptionalstrhasoptionalStringHasoptionalstringHasoptional*string #
Summary of the referenced context.

Default: no summary

scopeoptionalstringscopeoptionalstrscopeoptionalStringScopeoptionalstringScopeoptional*string #
Scope of the referenced context.

Default: no scope