Skip to content
v2.277.0

Experimental

@aws-cdk/aws-imagebuilder-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.

ComponentConstantValue Class ​

The value of a constant in a component document.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as imagebuilder_alpha from '@aws-cdk/aws-imagebuilder-alpha';
const componentConstantValue = imagebuilder_alpha.ComponentConstantValue.fromString('value');
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_imagebuilder_alpha as imagebuilder_alpha

component_constant_value = imagebuilder_alpha.ComponentConstantValue.from_string("value")
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.imagebuilder.alpha.*;

ComponentConstantValue componentConstantValue = ComponentConstantValue.fromString("value");
csharp
// Install: dotnet add package Amazon.CDK.AWS.ImageBuilder.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ImageBuilder.Alpha;

var componentConstantValue = ComponentConstantValue.FromString("value");
go
// Install: go get github.com/aws/aws-cdk-go/awsimagebuilderalpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import imagebuilder_alpha "github.com/aws/aws-cdk-go/awsimagebuilderalpha"

componentConstantValue := imagebuilder_alpha.ComponentConstantValue_FromString(jsii.String("value"))

Properties ​

typestringtypestrtypeStringTypestringType*string #
The data type of the constant.
valueanyvalueAnyvalueObjectValueobjectValueinterface{} #
The value of the constant.

Methods ​

fromString(value: string): ComponentConstantValue // chainable@staticmethod def from_string(value: str) -> ComponentConstantValuepublic static ComponentConstantValue fromString(String value)public static ComponentConstantValue FromString(string value)func FromString(Value *string) ComponentConstantValue static #
Creates a string type constant in a component document.
1 parameter

Parameters

  • valuevaluevaluevalueValue — The value of the constant.