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

software.amazon.awscdk.integtests.alpha.LambdaInvokeFunction Maven / Gradle / Ivy

There is a newer version: 2.169.0-alpha.0
Show newest version
package software.amazon.awscdk.integtests.alpha;

/**
 * (experimental) An AWS Lambda Invoke function API call.
 * 

* Use this instead of the generic AwsApiCall in order to * invoke a lambda function. This will automatically create * the correct permissions to invoke the function *

* Example: *

*

 * // The code below shows an example of how to instantiate this type.
 * // The values are placeholders you should change.
 * import software.amazon.awscdk.integtests.alpha.*;
 * import software.amazon.awscdk.services.logs.*;
 * LambdaInvokeFunction lambdaInvokeFunction = LambdaInvokeFunction.Builder.create(this, "MyLambdaInvokeFunction")
 *         .functionName("functionName")
 *         // the properties below are optional
 *         .invocationType(InvocationType.EVENT)
 *         .logRetention(RetentionDays.ONE_DAY)
 *         .logType(LogType.NONE)
 *         .payload("payload")
 *         .build();
 * 
*/ @javax.annotation.Generated(value = "jsii-pacmak/1.103.1 (build bef2dea)", date = "2024-09-18T22:17:05.855Z") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @software.amazon.jsii.Jsii(module = software.amazon.awscdk.integtests.alpha.$Module.class, fqn = "@aws-cdk/integ-tests-alpha.LambdaInvokeFunction") public class LambdaInvokeFunction extends software.amazon.awscdk.integtests.alpha.AwsApiCall { protected LambdaInvokeFunction(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } protected LambdaInvokeFunction(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { super(initializationMode); } /** * @param scope This parameter is required. * @param id This parameter is required. * @param props This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public LambdaInvokeFunction(final @org.jetbrains.annotations.NotNull software.constructs.Construct scope, final @org.jetbrains.annotations.NotNull java.lang.String id, final @org.jetbrains.annotations.NotNull software.amazon.awscdk.integtests.alpha.LambdaInvokeFunctionProps props) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(scope, "scope is required"), java.util.Objects.requireNonNull(id, "id is required"), java.util.Objects.requireNonNull(props, "props is required") }); } /** * (experimental) A fluent builder for {@link software.amazon.awscdk.integtests.alpha.LambdaInvokeFunction}. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static final class Builder implements software.amazon.jsii.Builder { /** * @return a new instance of {@link Builder}. * @param scope This parameter is required. * @param id This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static Builder create(final software.constructs.Construct scope, final java.lang.String id) { return new Builder(scope, id); } private final software.constructs.Construct scope; private final java.lang.String id; private final software.amazon.awscdk.integtests.alpha.LambdaInvokeFunctionProps.Builder props; private Builder(final software.constructs.Construct scope, final java.lang.String id) { this.scope = scope; this.id = id; this.props = new software.amazon.awscdk.integtests.alpha.LambdaInvokeFunctionProps.Builder(); } /** * (experimental) The name of the function to invoke. *

* @return {@code this} * @param functionName The name of the function to invoke. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder functionName(final java.lang.String functionName) { this.props.functionName(functionName); return this; } /** * (experimental) The type of invocation to use. *

* Default: InvocationType.REQUEST_RESPONSE *

* @return {@code this} * @param invocationType The type of invocation to use. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder invocationType(final software.amazon.awscdk.integtests.alpha.InvocationType invocationType) { this.props.invocationType(invocationType); return this; } /** * (experimental) How long, in days, the log contents will be retained. *

* Default: - no retention days specified *

* @return {@code this} * @param logRetention How long, in days, the log contents will be retained. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder logRetention(final software.amazon.awscdk.services.logs.RetentionDays logRetention) { this.props.logRetention(logRetention); return this; } /** * (experimental) Whether to return the logs as part of the response. *

* Default: LogType.NONE *

* @return {@code this} * @param logType Whether to return the logs as part of the response. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder logType(final software.amazon.awscdk.integtests.alpha.LogType logType) { this.props.logType(logType); return this; } /** * (experimental) Payload to send as part of the invoke. *

* Default: - no payload *

* @return {@code this} * @param payload Payload to send as part of the invoke. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder payload(final java.lang.String payload) { this.props.payload(payload); return this; } /** * @return a newly built instance of {@link software.amazon.awscdk.integtests.alpha.LambdaInvokeFunction}. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public software.amazon.awscdk.integtests.alpha.LambdaInvokeFunction build() { return new software.amazon.awscdk.integtests.alpha.LambdaInvokeFunction( this.scope, this.id, this.props.build() ); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy