Skip to content
v2.278.0

UnconfiguredBehavesLike Struct ​

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { cloud_assembly_schema } from 'aws-cdk-lib';

declare const v1: any;
declare const v2: any;
const unconfiguredBehavesLike: cloud_assembly_schema.UnconfiguredBehavesLike = {
  v1: v1,
  v2: v2,
};
python
from aws_cdk.cloud_assembly_schema import UnconfiguredBehavesLike
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import cloud_assembly_schema

# v1: Any
# v2: Any

unconfigured_behaves_like = UnconfiguredBehavesLike(
    v1=v1,
    v2=v2
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cloud_assembly_schema.*;

Object v1;
Object v2;

UnconfiguredBehavesLike unconfiguredBehavesLike = UnconfiguredBehavesLike.builder()
        .v1(v1)
        .v2(v2)
        .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.Cloud_assembly_schema;

var v1;
var v2;

var unconfiguredBehavesLike = new UnconfiguredBehavesLike {
    V1 = v1,
    V2 = v2
};
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"

var v1 interface{}
var v2 interface{}

unconfiguredBehavesLike := &UnconfiguredBehavesLike{
	V1: v1,
	V2: v2,
}

Properties ​

v1optionalanyv1optionalAnyv1optionalObjectV1optionalobjectV1optionalinterface{} = ignore #
Historical accident, don't use.

This value may be present, but it should never be used. The actual value is in the v2 field, regardless of the version of the CDK library.

v2optionalanyv2optionalAnyv2optionalObjectV2optionalobjectV2optionalinterface{} = false #
The value of the flag that produces the same behavior as when the flag is not configured at all.
notes

Even though it is called 'v2', this is the official name of this field. In any future versions of CDK (v3, v4, ...), this field will still be called 'v2'.

The structure of this field is a historical accident. See the comment on unconfiguredBehavesLike for more information.