Skip to content
v2.275.0

Experimental

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

ComponentStepIfCondition Class ​

Represents an if condition in the 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';

declare const ifObject: any;
const componentStepIfCondition = imagebuilder_alpha.ComponentStepIfCondition.fromObject({
  ifObjectKey: ifObject,
});

Properties ​

ifConditionanyif_conditionAnyifConditionObjectIfConditionobjectIfConditioninterface{}#
The rendered input value.

Methods ​

fromObject(ifObject: { [key: string]: any }): ComponentStepIfCondition // chainable@staticmethod def from_object(if_object: typing.Mapping[str, Any]) -> ComponentStepIfConditionpublic static ComponentStepIfCondition fromObject(Map<String, Object> ifObject)public static ComponentStepIfCondition FromObject(IDictionary<string, object> ifObject)func FromObject(IfObject *map[string]interface{}) ComponentStepIfConditionstatic#
Creates the `if` value from an object, for the component step.
1 parameter

Parameters

  • ifObjectif_objectifObjectifObjectIfObject — The object containing the if condition.