All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.hsiehshujeng.projen.statemachine.StateMachineApiGatewayExample Maven / Gradle / Ivy

package io.github.hsiehshujeng.projen.statemachine;

/**
 * Converted from an AWS Blog post.
 * 

* It is the first example mentioned in https://aws.amazon.com/tw/blogs/compute/introducing-amazon-api-gateway-service-integration-for-aws-step-functions/. * This constcut will create an API Gateway Rest API with two methods and * are manipulated by a state machine managed in AWS StepFucntions. */ @javax.annotation.Generated(value = "jsii-pacmak/1.91.0 (build 1b1f239)", date = "2023-10-28T01:08:50.369Z") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @software.amazon.jsii.Jsii(module = io.github.hsiehshujeng.projen.statemachine.$Module.class, fqn = "projen-statemachine-example.StateMachineApiGatewayExample") public class StateMachineApiGatewayExample extends software.constructs.Construct { protected StateMachineApiGatewayExample(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } protected StateMachineApiGatewayExample(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { super(initializationMode); } /** * @param parent This parameter is required. * @param name This parameter is required. * @param props This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public StateMachineApiGatewayExample(final @org.jetbrains.annotations.NotNull software.constructs.Construct parent, final @org.jetbrains.annotations.NotNull java.lang.String name, final @org.jetbrains.annotations.NotNull io.github.hsiehshujeng.projen.statemachine.StateMachineApiGatewayExampleProps props) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(parent, "parent is required"), java.util.Objects.requireNonNull(name, "name is required"), java.util.Objects.requireNonNull(props, "props is required") }); } /** * sample input to start execution for the workflow. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.NotNull java.lang.String getExecutionInput() { return software.amazon.jsii.Kernel.get(this, "executionInput", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** * the representation of a state machine. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.stepfunctions.StateMachine getStateMachine() { return software.amazon.jsii.Kernel.get(this, "stateMachine", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.stepfunctions.StateMachine.class)); } /** * A fluent builder for {@link io.github.hsiehshujeng.projen.statemachine.StateMachineApiGatewayExample}. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static final class Builder implements software.amazon.jsii.Builder { /** * @return a new instance of {@link Builder}. * @param parent This parameter is required. * @param name This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static Builder create(final software.constructs.Construct parent, final java.lang.String name) { return new Builder(parent, name); } private final software.constructs.Construct parent; private final java.lang.String name; private final io.github.hsiehshujeng.projen.statemachine.StateMachineApiGatewayExampleProps.Builder props; private Builder(final software.constructs.Construct parent, final java.lang.String name) { this.parent = parent; this.name = name; this.props = new io.github.hsiehshujeng.projen.statemachine.StateMachineApiGatewayExampleProps.Builder(); } /** * The path part for the resource. *

* Default: 'pets' *

* @return {@code this} * @param partPath The path part for the resource. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder partPath(final java.lang.String partPath) { this.props.partPath(partPath); return this; } /** * A stage name for the rest api. *

* Default: 'default' *

* @return {@code this} * @param stageName A stage name for the rest api. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder stageName(final java.lang.String stageName) { this.props.stageName(stageName); return this; } /** * @return a newly built instance of {@link io.github.hsiehshujeng.projen.statemachine.StateMachineApiGatewayExample}. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public io.github.hsiehshujeng.projen.statemachine.StateMachineApiGatewayExample build() { return new io.github.hsiehshujeng.projen.statemachine.StateMachineApiGatewayExample( this.parent, this.name, this.props.build() ); } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy