io.github.hsiehshujeng.cdk.databrew.cicd.PreProductionLambda Maven / Gradle / Ivy
Show all versions of cdk-databrew-cicd Show documentation
package io.github.hsiehshujeng.cdk.databrew.cicd;
/**
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.105.0 (build 0a2adcb)", date = "2024-11-18T01:03:07.207Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Jsii(module = io.github.hsiehshujeng.cdk.databrew.cicd.$Module.class, fqn = "cdk-databrew-cicd.PreProductionLambda")
public class PreProductionLambda extends software.constructs.Construct {
protected PreProductionLambda(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected PreProductionLambda(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
super(initializationMode);
}
/**
* @param scope 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 PreProductionLambda(final @org.jetbrains.annotations.NotNull software.constructs.Construct scope, final @org.jetbrains.annotations.NotNull java.lang.String name, final @org.jetbrains.annotations.NotNull io.github.hsiehshujeng.cdk.databrew.cicd.PreProductionLambdaProps 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(name, "name is required"), java.util.Objects.requireNonNull(props, "props is required") });
}
/**
* The representative of Lambda function for the pre-production account.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.lambda.IFunction getFunction() {
return software.amazon.jsii.Kernel.get(this, "function", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.lambda.IFunction.class));
}
/**
* The Lambda funciton name for the pre-production account.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public @org.jetbrains.annotations.NotNull java.lang.String getFunctionName() {
return software.amazon.jsii.Kernel.get(this, "functionName", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
/**
* The name of the IAM role for the pre-produciton Lambda function.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public @org.jetbrains.annotations.NotNull java.lang.String getRoleName() {
return software.amazon.jsii.Kernel.get(this, "roleName", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
/**
* A fluent builder for {@link io.github.hsiehshujeng.cdk.databrew.cicd.PreProductionLambda}.
*/
@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 scope 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 scope, final java.lang.String name) {
return new Builder(scope, name);
}
private final software.constructs.Construct scope;
private final java.lang.String name;
private final io.github.hsiehshujeng.cdk.databrew.cicd.PreProductionLambdaProps.Builder props;
private Builder(final software.constructs.Construct scope, final java.lang.String name) {
this.scope = scope;
this.name = name;
this.props = new io.github.hsiehshujeng.cdk.databrew.cicd.PreProductionLambdaProps.Builder();
}
/**
* The ARN of the S3 bucket for the DataBrew CICD pipeline.
*
* @return {@code this}
* @param bucketArn The ARN of the S3 bucket for the DataBrew CICD pipeline. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder bucketArn(final java.lang.String bucketArn) {
this.props.bucketArn(bucketArn);
return this;
}
/**
* The ARN of the IAM role in the pre-production account.
*
* @return {@code this}
* @param preproductionIamRoleArn The ARN of the IAM role in the pre-production account. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder preproductionIamRoleArn(final java.lang.String preproductionIamRoleArn) {
this.props.preproductionIamRoleArn(preproductionIamRoleArn);
return this;
}
/**
* The Lambda funciton name for the pre-production account.
*
* Default: 'PreProd-DataBrew-Recipe-Deployer'
*
* @return {@code this}
* @param functionName The Lambda funciton name for the pre-production account. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder functionName(final java.lang.String functionName) {
this.props.functionName(functionName);
return this;
}
/**
* The name of the IAM role for the pre-produciton Lambda function.
*
* Default: 'PreProd-DataBrew-Recipe-Deployer-role'
*
* @return {@code this}
* @param roleName The name of the IAM role for the pre-produciton Lambda function. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder roleName(final java.lang.String roleName) {
this.props.roleName(roleName);
return this;
}
/**
* @return a newly built instance of {@link io.github.hsiehshujeng.cdk.databrew.cicd.PreProductionLambda}.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public io.github.hsiehshujeng.cdk.databrew.cicd.PreProductionLambda build() {
return new io.github.hsiehshujeng.cdk.databrew.cicd.PreProductionLambda(
this.scope,
this.name,
this.props.build()
);
}
}
}