class ComponentStepIfCondition
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.ImageBuilder.Alpha.ComponentStepIfCondition |
Go | github.com/aws/aws-cdk-go/awsimagebuilderalpha/v2#ComponentStepIfCondition |
Java | software.amazon.awscdk.services.imagebuilder.alpha.ComponentStepIfCondition |
Python | aws_cdk.aws_imagebuilder_alpha.ComponentStepIfCondition |
TypeScript (source) | @aws-cdk/aws-imagebuilder-alpha » ComponentStepIfCondition |
Represents an if condition in the 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';
declare const ifObject: any;
const componentStepIfCondition = imagebuilder_alpha.ComponentStepIfCondition.fromObject({
ifObjectKey: ifObject,
});
Initializer (protected)
super(ifCondition: any)
Parameters
- ifCondition
any
Properties
| Name | Type | Description |
|---|---|---|
| if | any | The rendered input value. |
ifCondition
Type:
any
The rendered input value.
Methods
| Name | Description |
|---|---|
| static from | Creates the if value from an object, for the component step. |
static fromObject(ifObject)
public static fromObject(ifObject: { [string]: any }): ComponentStepIfCondition
Parameters
- ifObject
{ [string]: any }— The object containing theifcondition.
Returns
Creates the if value from an object, for the component step.

.NET
Go
Java
Python
TypeScript (