software.amazon.awsconstructs.services.iotlambda.IotToLambda Maven / Gradle / Ivy
Show all versions of iotlambda Show documentation
package software.amazon.awsconstructs.services.iotlambda;
@javax.annotation.Generated(value = "jsii-pacmak/1.103.0 (build 3b9adc4)", date = "2024-08-28T18:05:36.942Z")
@software.amazon.jsii.Jsii(module = software.amazon.awsconstructs.services.iotlambda.$Module.class, fqn = "@aws-solutions-constructs/aws-iot-lambda.IotToLambda")
public class IotToLambda extends software.constructs.Construct {
protected IotToLambda(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected IotToLambda(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
super(initializationMode);
}
/**
* @param scope - represents the scope for all the resources.
This parameter is required.
* @param id - this is a a scope-unique id.
This parameter is required.
* @param props - user provided props for the construct.
This parameter is required.
*/
public IotToLambda(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.awsconstructs.services.iotlambda.IotToLambdaProps 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") });
}
public @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.iot.CfnTopicRule getIotTopicRule() {
return software.amazon.jsii.Kernel.get(this, "iotTopicRule", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.iot.CfnTopicRule.class));
}
public @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.lambda.Function getLambdaFunction() {
return software.amazon.jsii.Kernel.get(this, "lambdaFunction", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.lambda.Function.class));
}
/**
* A fluent builder for {@link software.amazon.awsconstructs.services.iotlambda.IotToLambda}.
*/
public static final class Builder implements software.amazon.jsii.Builder {
/**
* @return a new instance of {@link Builder}.
* @param scope - represents the scope for all the resources.
This parameter is required.
* @param id - this is a a scope-unique id.
This parameter is required.
*/
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.awsconstructs.services.iotlambda.IotToLambdaProps.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.awsconstructs.services.iotlambda.IotToLambdaProps.Builder();
}
/**
* User provided CfnTopicRuleProps to override the defaults.
*
* Default: - None
*
* @return {@code this}
* @param iotTopicRuleProps User provided CfnTopicRuleProps to override the defaults. This parameter is required.
*/
public Builder iotTopicRuleProps(final software.amazon.awscdk.services.iot.CfnTopicRuleProps iotTopicRuleProps) {
this.props.iotTopicRuleProps(iotTopicRuleProps);
return this;
}
/**
* Existing instance of Lambda Function object, providing both this and lambdaFunctionProps
will cause an error.
*
* Default: - None
*
* @return {@code this}
* @param existingLambdaObj Existing instance of Lambda Function object, providing both this and lambdaFunctionProps
will cause an error. This parameter is required.
*/
public Builder existingLambdaObj(final software.amazon.awscdk.services.lambda.Function existingLambdaObj) {
this.props.existingLambdaObj(existingLambdaObj);
return this;
}
/**
* User provided props to override the default props for the Lambda function.
*
* Default: - Default props are used
*
* @return {@code this}
* @param lambdaFunctionProps User provided props to override the default props for the Lambda function. This parameter is required.
*/
public Builder lambdaFunctionProps(final software.amazon.awscdk.services.lambda.FunctionProps lambdaFunctionProps) {
this.props.lambdaFunctionProps(lambdaFunctionProps);
return this;
}
/**
* @return a newly built instance of {@link software.amazon.awsconstructs.services.iotlambda.IotToLambda}.
*/
@Override
public software.amazon.awsconstructs.services.iotlambda.IotToLambda build() {
return new software.amazon.awsconstructs.services.iotlambda.IotToLambda(
this.scope,
this.id,
this.props.build()
);
}
}
}