Class StepFunctionsStartExecution
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.scheduler.targets.ScheduleTargetBase
software.amazon.awscdk.services.scheduler.targets.StepFunctionsStartExecution
- All Implemented Interfaces:
IScheduleTarget,software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-13T16:10:14.064Z")
@Stability(Stable)
public class StepFunctionsStartExecution
extends ScheduleTargetBase
implements IScheduleTarget
Use an AWS Step function as a target for AWS EventBridge Scheduler.
Example:
import software.amazon.awscdk.services.stepfunctions.*;
import software.amazon.awscdk.services.stepfunctions.tasks.*;
Map<String, String> payload = Map.of(
"Name", "MyParameter",
"Value", "🌥️");
CallAwsService putParameterStep = CallAwsService.Builder.create(this, "PutParameter")
.service("ssm")
.action("putParameter")
.iamResources(List.of("*"))
.parameters(Map.of(
"Name.$", "$.Name",
"Value.$", "$.Value",
"Type", "String",
"Overwrite", true))
.build();
StateMachine stateMachine = StateMachine.Builder.create(this, "StateMachine")
.definitionBody(DefinitionBody.fromChainable(putParameterStep))
.build();
Schedule.Builder.create(this, "Schedule")
.schedule(ScheduleExpression.rate(Duration.hours(1)))
.target(StepFunctionsStartExecution.Builder.create(stateMachine)
.input(ScheduleTargetInput.fromObject(payload))
.build())
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forStepFunctionsStartExecution.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.scheduler.IScheduleTarget
IScheduleTarget.Jsii$Default, IScheduleTarget.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionStepFunctionsStartExecution(IStateMachine stateMachine, ScheduleTargetBaseProps props) protectedStepFunctionsStartExecution(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedStepFunctionsStartExecution(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Methods inherited from class software.amazon.awscdk.services.scheduler.targets.ScheduleTargetBase
bind, bindBaseTargetConfig, getTargetArnMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.awscdk.services.scheduler.IScheduleTarget
bindMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
StepFunctionsStartExecution
protected StepFunctionsStartExecution(software.amazon.jsii.JsiiObjectRef objRef) -
StepFunctionsStartExecution
protected StepFunctionsStartExecution(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
StepFunctionsStartExecution
@Stability(Stable) public StepFunctionsStartExecution(@NotNull IStateMachine stateMachine, @NotNull ScheduleTargetBaseProps props) - Parameters:
stateMachine- This parameter is required.props- This parameter is required.
-
-
Method Details
-
addTargetActionToRole
- Specified by:
addTargetActionToRolein classScheduleTargetBase- Parameters:
role- This parameter is required.
-