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.

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,
});
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

# if_object: Any

component_step_if_condition = imagebuilder_alpha.ComponentStepIfCondition.from_object({
    "if_object_key": if_object
})
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.*;

Object ifObject;

ComponentStepIfCondition componentStepIfCondition = ComponentStepIfCondition.fromObject(Map.of(
        "ifObjectKey", ifObject));
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 ifObject;

var componentStepIfCondition = ComponentStepIfCondition.FromObject(new Dictionary<string, object> {
    { "ifObjectKey", ifObject }
});
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"

var ifObject interface{}

componentStepIfCondition := imagebuilder_alpha.ComponentStepIfCondition_FromObject(map[string]interface{}{
	"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{}) ComponentStepIfCondition static #
Creates the `if` value from an object, for the component step.
1 parameter

Parameters

  • ifObjectif_objectifObjectifObjectIfObject — The object containing the if condition.