class ComponentConstantValue
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.ImageBuilder.Alpha.ComponentConstantValue |
Go | github.com/aws/aws-cdk-go/awsimagebuilderalpha/v2#ComponentConstantValue |
Java | software.amazon.awscdk.services.imagebuilder.alpha.ComponentConstantValue |
Python | aws_cdk.aws_imagebuilder_alpha.ComponentConstantValue |
TypeScript (source) | @aws-cdk/aws-imagebuilder-alpha ยป ComponentConstantValue |
The value of a constant in a component document.
Example
// 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');
Initializer (protected)
super(type: string, value: any)
Parameters
- type
string - value
any
Properties
| Name | Type | Description |
|---|---|---|
| type | string | The data type of the constant. |
| value | any | The value of the constant. |
type
Type:
string
The data type of the constant.
value
Type:
any
The value of the constant.
Methods
| Name | Description |
|---|---|
| static from | Creates a string type constant in a component document. |
static fromString(value)
public static fromString(value: string): ComponentConstantValue
Parameters
- value
stringโ The value of the constant.
Returns
Creates a string type constant in a component document.

.NET
Go
Java
Python
TypeScript (