io.github.cdklabs.generative_ai_cdk_constructs.SummarizationAppsyncStepfnProps Maven / Gradle / Ivy
Show all versions of generative-ai-cdk-constructs Show documentation
package io.github.cdklabs.generative_ai_cdk_constructs;
/**
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.103.1 (build bef2dea)", date = "2024-09-23T22:27:31.926Z")
@software.amazon.jsii.Jsii(module = io.github.cdklabs.generative_ai_cdk_constructs.$Module.class, fqn = "@cdklabs/generative-ai-cdk-constructs.SummarizationAppsyncStepfnProps")
@software.amazon.jsii.Jsii.Proxy(SummarizationAppsyncStepfnProps.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public interface SummarizationAppsyncStepfnProps extends software.amazon.jsii.JsiiSerializable {
/**
* (experimental) Required.
*
* Cognito user pool used for authentication.
*
* Default: - None
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@org.jetbrains.annotations.NotNull software.amazon.awscdk.services.cognito.IUserPool getCognitoUserPool();
/**
* (experimental) Optional.
*
* User provided props to override the default props for the S3 Bucket.
* Providing both this and existingInputAssetsBucketObj
will cause an error.
*
* Default: - Default props are used
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
default @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.s3.BucketProps getBucketInputsAssetsProps() {
return null;
}
/**
* (experimental) Optional.
*
* User provided props to override the default props for the S3 Bucket.
* Providing both this and existingProcessedAssetsBucketObj
will cause an error.
*
* Default: - Default props are used
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
default @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.s3.BucketProps getBucketProcessedAssetsProps() {
return null;
}
/**
* (experimental) Optional.
*
* Allows to provide Embeddings custom lambda code
* and settings instead of the existing
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
default @org.jetbrains.annotations.Nullable io.github.cdklabs.generative_ai_cdk_constructs.DockerLambdaCustomProps getCustomDocumentReaderDockerLambdaProps() {
return null;
}
/**
* (experimental) Optional.
*
* Allows to provide Input Validation custom lambda code
* and settings instead of the existing
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
default @org.jetbrains.annotations.Nullable io.github.cdklabs.generative_ai_cdk_constructs.DockerLambdaCustomProps getCustomInputValidationDockerLambdaProps() {
return null;
}
/**
* (experimental) Optional.
*
* Allows to provide File Transformer custom lambda code
* and settings instead of the existing
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
default @org.jetbrains.annotations.Nullable io.github.cdklabs.generative_ai_cdk_constructs.DockerLambdaCustomProps getCustomSummaryGeneratorDockerLambdaProps() {
return null;
}
/**
* (experimental) Optional.
*
* A new custom EventBus is created with provided props.
* Providing existingEventBusInterface and eventBusProps both will result in validation error.
*
* Default: - None
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
default @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.events.EventBusProps getEventBusProps() {
return null;
}
/**
* (experimental) Optional.
*
* Existing instance of EventBus. The summary construct integrate appsync with event bridge'
* to route the request to step functions.
*
* Default: - None
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
default @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.events.IEventBus getExistingBusInterface() {
return null;
}
/**
* (experimental) Optional.
*
* Existing s3 Bucket to store the input document which needs to be summarized.
* pdf is the supported input document format. If transformed (txt format) file is
* available then this bucket is optional.
*
* Default: - None
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
default @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.s3.IBucket getExistingInputAssetsBucketObj() {
return null;
}
/**
* (experimental) Optional - Existing merged Appsync GraphQL api.
*
* Default: - None
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
default @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.appsync.CfnGraphQLApi getExistingMergedApi() {
return null;
}
/**
* (experimental) Optional.
*
* This bucket stores the transformed (txt) assets for generating summary.
* If None is provided then this contruct will create one.
*
* Default: - None
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
default @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.s3.IBucket getExistingProcessedAssetsBucketObj() {
return null;
}
/**
* (experimental) Optional.
*
* Security group for the lambda function which this construct will use.
* If no exisiting security group is provided it will create one from the vpc.
*
* Default: - none
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
default @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.ec2.ISecurityGroup getExistingSecurityGroup() {
return null;
}
/**
* (experimental) Optional.
*
* An existing VPC can be used to deploy the construct.
* Providing both this and vpcProps is an error.
*
* Default: - none
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
default @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.ec2.IVpc getExistingVpc() {
return null;
}
/**
* (experimental) Optional.
*
* The summary construct transform the input document into txt format. If the
* transformation is not required then this flag can be set to false. If set to true
* then a transformed asset bucket is created which transform the input document from
* input asset bucket to txt format.
*
* Default: - False
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
default @org.jetbrains.annotations.Nullable java.lang.String getIsFileTransformationRequired() {
return null;
}
/**
* (experimental) Enable observability.
*
* Warning: associated cost with the services
* used. Best practice to enable by default.
*
* Default: - true
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
default @org.jetbrains.annotations.Nullable java.lang.Boolean getObservability() {
return null;
}
/**
* (experimental) Value will be appended to resources name.
*
* Default: - _dev
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
default @org.jetbrains.annotations.Nullable java.lang.String getStage() {
return null;
}
/**
* (experimental) Optional.
*
* User provided Name for summary api on appsync.
* A graphql api will be created by this construct with this name.
*
* Default: 'summaryApi'
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
default @org.jetbrains.annotations.Nullable java.lang.String getSummaryApiName() {
return null;
}
/**
* (experimental) Optional.
*
* Chain type defines how to pass the document to LLM.
* there are three types of chain types.
* Stuff: Simply "stuff" all your documents into a single prompt.
* Map-reduce: Summarize each document on it's own in a "map" step and then "reduce" the summaries into a final summary
* Refine : This constructs a response by looping over the input documents and iteratively updating its answer
*
* Default: - Stuff
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
default @org.jetbrains.annotations.Nullable java.lang.String getSummaryChainType() {
return null;
}
/**
* (experimental) Optional.
*
* The construct creates a custom VPC based on vpcProps.
* Providing both this and existingVpc is an error.
*
* Default: - none
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
default @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.ec2.VpcProps getVpcProps() {
return null;
}
/**
* @return a {@link Builder} of {@link SummarizationAppsyncStepfnProps}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link SummarizationAppsyncStepfnProps}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public static final class Builder implements software.amazon.jsii.Builder {
software.amazon.awscdk.services.cognito.IUserPool cognitoUserPool;
software.amazon.awscdk.services.s3.BucketProps bucketInputsAssetsProps;
software.amazon.awscdk.services.s3.BucketProps bucketProcessedAssetsProps;
io.github.cdklabs.generative_ai_cdk_constructs.DockerLambdaCustomProps customDocumentReaderDockerLambdaProps;
io.github.cdklabs.generative_ai_cdk_constructs.DockerLambdaCustomProps customInputValidationDockerLambdaProps;
io.github.cdklabs.generative_ai_cdk_constructs.DockerLambdaCustomProps customSummaryGeneratorDockerLambdaProps;
software.amazon.awscdk.services.events.EventBusProps eventBusProps;
software.amazon.awscdk.services.events.IEventBus existingBusInterface;
software.amazon.awscdk.services.s3.IBucket existingInputAssetsBucketObj;
software.amazon.awscdk.services.appsync.CfnGraphQLApi existingMergedApi;
software.amazon.awscdk.services.s3.IBucket existingProcessedAssetsBucketObj;
software.amazon.awscdk.services.ec2.ISecurityGroup existingSecurityGroup;
software.amazon.awscdk.services.ec2.IVpc existingVpc;
java.lang.String isFileTransformationRequired;
java.lang.Boolean observability;
java.lang.String stage;
java.lang.String summaryApiName;
java.lang.String summaryChainType;
software.amazon.awscdk.services.ec2.VpcProps vpcProps;
/**
* Sets the value of {@link SummarizationAppsyncStepfnProps#getCognitoUserPool}
* @param cognitoUserPool Required. This parameter is required.
* Cognito user pool used for authentication.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder cognitoUserPool(software.amazon.awscdk.services.cognito.IUserPool cognitoUserPool) {
this.cognitoUserPool = cognitoUserPool;
return this;
}
/**
* Sets the value of {@link SummarizationAppsyncStepfnProps#getBucketInputsAssetsProps}
* @param bucketInputsAssetsProps Optional.
* User provided props to override the default props for the S3 Bucket.
* Providing both this and existingInputAssetsBucketObj
will cause an error.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder bucketInputsAssetsProps(software.amazon.awscdk.services.s3.BucketProps bucketInputsAssetsProps) {
this.bucketInputsAssetsProps = bucketInputsAssetsProps;
return this;
}
/**
* Sets the value of {@link SummarizationAppsyncStepfnProps#getBucketProcessedAssetsProps}
* @param bucketProcessedAssetsProps Optional.
* User provided props to override the default props for the S3 Bucket.
* Providing both this and existingProcessedAssetsBucketObj
will cause an error.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder bucketProcessedAssetsProps(software.amazon.awscdk.services.s3.BucketProps bucketProcessedAssetsProps) {
this.bucketProcessedAssetsProps = bucketProcessedAssetsProps;
return this;
}
/**
* Sets the value of {@link SummarizationAppsyncStepfnProps#getCustomDocumentReaderDockerLambdaProps}
* @param customDocumentReaderDockerLambdaProps Optional.
* Allows to provide Embeddings custom lambda code
* and settings instead of the existing
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder customDocumentReaderDockerLambdaProps(io.github.cdklabs.generative_ai_cdk_constructs.DockerLambdaCustomProps customDocumentReaderDockerLambdaProps) {
this.customDocumentReaderDockerLambdaProps = customDocumentReaderDockerLambdaProps;
return this;
}
/**
* Sets the value of {@link SummarizationAppsyncStepfnProps#getCustomInputValidationDockerLambdaProps}
* @param customInputValidationDockerLambdaProps Optional.
* Allows to provide Input Validation custom lambda code
* and settings instead of the existing
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder customInputValidationDockerLambdaProps(io.github.cdklabs.generative_ai_cdk_constructs.DockerLambdaCustomProps customInputValidationDockerLambdaProps) {
this.customInputValidationDockerLambdaProps = customInputValidationDockerLambdaProps;
return this;
}
/**
* Sets the value of {@link SummarizationAppsyncStepfnProps#getCustomSummaryGeneratorDockerLambdaProps}
* @param customSummaryGeneratorDockerLambdaProps Optional.
* Allows to provide File Transformer custom lambda code
* and settings instead of the existing
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder customSummaryGeneratorDockerLambdaProps(io.github.cdklabs.generative_ai_cdk_constructs.DockerLambdaCustomProps customSummaryGeneratorDockerLambdaProps) {
this.customSummaryGeneratorDockerLambdaProps = customSummaryGeneratorDockerLambdaProps;
return this;
}
/**
* Sets the value of {@link SummarizationAppsyncStepfnProps#getEventBusProps}
* @param eventBusProps Optional.
* A new custom EventBus is created with provided props.
* Providing existingEventBusInterface and eventBusProps both will result in validation error.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder eventBusProps(software.amazon.awscdk.services.events.EventBusProps eventBusProps) {
this.eventBusProps = eventBusProps;
return this;
}
/**
* Sets the value of {@link SummarizationAppsyncStepfnProps#getExistingBusInterface}
* @param existingBusInterface Optional.
* Existing instance of EventBus. The summary construct integrate appsync with event bridge'
* to route the request to step functions.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder existingBusInterface(software.amazon.awscdk.services.events.IEventBus existingBusInterface) {
this.existingBusInterface = existingBusInterface;
return this;
}
/**
* Sets the value of {@link SummarizationAppsyncStepfnProps#getExistingInputAssetsBucketObj}
* @param existingInputAssetsBucketObj Optional.
* Existing s3 Bucket to store the input document which needs to be summarized.
* pdf is the supported input document format. If transformed (txt format) file is
* available then this bucket is optional.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder existingInputAssetsBucketObj(software.amazon.awscdk.services.s3.IBucket existingInputAssetsBucketObj) {
this.existingInputAssetsBucketObj = existingInputAssetsBucketObj;
return this;
}
/**
* Sets the value of {@link SummarizationAppsyncStepfnProps#getExistingMergedApi}
* @param existingMergedApi Optional - Existing merged Appsync GraphQL api.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder existingMergedApi(software.amazon.awscdk.services.appsync.CfnGraphQLApi existingMergedApi) {
this.existingMergedApi = existingMergedApi;
return this;
}
/**
* Sets the value of {@link SummarizationAppsyncStepfnProps#getExistingProcessedAssetsBucketObj}
* @param existingProcessedAssetsBucketObj Optional.
* This bucket stores the transformed (txt) assets for generating summary.
* If None is provided then this contruct will create one.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder existingProcessedAssetsBucketObj(software.amazon.awscdk.services.s3.IBucket existingProcessedAssetsBucketObj) {
this.existingProcessedAssetsBucketObj = existingProcessedAssetsBucketObj;
return this;
}
/**
* Sets the value of {@link SummarizationAppsyncStepfnProps#getExistingSecurityGroup}
* @param existingSecurityGroup Optional.
* Security group for the lambda function which this construct will use.
* If no exisiting security group is provided it will create one from the vpc.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder existingSecurityGroup(software.amazon.awscdk.services.ec2.ISecurityGroup existingSecurityGroup) {
this.existingSecurityGroup = existingSecurityGroup;
return this;
}
/**
* Sets the value of {@link SummarizationAppsyncStepfnProps#getExistingVpc}
* @param existingVpc Optional.
* An existing VPC can be used to deploy the construct.
* Providing both this and vpcProps is an error.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder existingVpc(software.amazon.awscdk.services.ec2.IVpc existingVpc) {
this.existingVpc = existingVpc;
return this;
}
/**
* Sets the value of {@link SummarizationAppsyncStepfnProps#getIsFileTransformationRequired}
* @param isFileTransformationRequired Optional.
* The summary construct transform the input document into txt format. If the
* transformation is not required then this flag can be set to false. If set to true
* then a transformed asset bucket is created which transform the input document from
* input asset bucket to txt format.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder isFileTransformationRequired(java.lang.String isFileTransformationRequired) {
this.isFileTransformationRequired = isFileTransformationRequired;
return this;
}
/**
* Sets the value of {@link SummarizationAppsyncStepfnProps#getObservability}
* @param observability Enable observability.
* Warning: associated cost with the services
* used. Best practice to enable by default.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder observability(java.lang.Boolean observability) {
this.observability = observability;
return this;
}
/**
* Sets the value of {@link SummarizationAppsyncStepfnProps#getStage}
* @param stage Value will be appended to resources name.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder stage(java.lang.String stage) {
this.stage = stage;
return this;
}
/**
* Sets the value of {@link SummarizationAppsyncStepfnProps#getSummaryApiName}
* @param summaryApiName Optional.
* User provided Name for summary api on appsync.
* A graphql api will be created by this construct with this name.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder summaryApiName(java.lang.String summaryApiName) {
this.summaryApiName = summaryApiName;
return this;
}
/**
* Sets the value of {@link SummarizationAppsyncStepfnProps#getSummaryChainType}
* @param summaryChainType Optional.
* Chain type defines how to pass the document to LLM.
* there are three types of chain types.
* Stuff: Simply "stuff" all your documents into a single prompt.
* Map-reduce: Summarize each document on it's own in a "map" step and then "reduce" the summaries into a final summary
* Refine : This constructs a response by looping over the input documents and iteratively updating its answer
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder summaryChainType(java.lang.String summaryChainType) {
this.summaryChainType = summaryChainType;
return this;
}
/**
* Sets the value of {@link SummarizationAppsyncStepfnProps#getVpcProps}
* @param vpcProps Optional.
* The construct creates a custom VPC based on vpcProps.
* Providing both this and existingVpc is an error.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder vpcProps(software.amazon.awscdk.services.ec2.VpcProps vpcProps) {
this.vpcProps = vpcProps;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link SummarizationAppsyncStepfnProps}
* @throws NullPointerException if any required attribute was not provided
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@Override
public SummarizationAppsyncStepfnProps build() {
return new Jsii$Proxy(this);
}
}
/**
* An implementation for {@link SummarizationAppsyncStepfnProps}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements SummarizationAppsyncStepfnProps {
private final software.amazon.awscdk.services.cognito.IUserPool cognitoUserPool;
private final software.amazon.awscdk.services.s3.BucketProps bucketInputsAssetsProps;
private final software.amazon.awscdk.services.s3.BucketProps bucketProcessedAssetsProps;
private final io.github.cdklabs.generative_ai_cdk_constructs.DockerLambdaCustomProps customDocumentReaderDockerLambdaProps;
private final io.github.cdklabs.generative_ai_cdk_constructs.DockerLambdaCustomProps customInputValidationDockerLambdaProps;
private final io.github.cdklabs.generative_ai_cdk_constructs.DockerLambdaCustomProps customSummaryGeneratorDockerLambdaProps;
private final software.amazon.awscdk.services.events.EventBusProps eventBusProps;
private final software.amazon.awscdk.services.events.IEventBus existingBusInterface;
private final software.amazon.awscdk.services.s3.IBucket existingInputAssetsBucketObj;
private final software.amazon.awscdk.services.appsync.CfnGraphQLApi existingMergedApi;
private final software.amazon.awscdk.services.s3.IBucket existingProcessedAssetsBucketObj;
private final software.amazon.awscdk.services.ec2.ISecurityGroup existingSecurityGroup;
private final software.amazon.awscdk.services.ec2.IVpc existingVpc;
private final java.lang.String isFileTransformationRequired;
private final java.lang.Boolean observability;
private final java.lang.String stage;
private final java.lang.String summaryApiName;
private final java.lang.String summaryChainType;
private final software.amazon.awscdk.services.ec2.VpcProps vpcProps;
/**
* Constructor that initializes the object based on values retrieved from the JsiiObject.
* @param objRef Reference to the JSII managed object.
*/
protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
this.cognitoUserPool = software.amazon.jsii.Kernel.get(this, "cognitoUserPool", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.cognito.IUserPool.class));
this.bucketInputsAssetsProps = software.amazon.jsii.Kernel.get(this, "bucketInputsAssetsProps", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.s3.BucketProps.class));
this.bucketProcessedAssetsProps = software.amazon.jsii.Kernel.get(this, "bucketProcessedAssetsProps", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.s3.BucketProps.class));
this.customDocumentReaderDockerLambdaProps = software.amazon.jsii.Kernel.get(this, "customDocumentReaderDockerLambdaProps", software.amazon.jsii.NativeType.forClass(io.github.cdklabs.generative_ai_cdk_constructs.DockerLambdaCustomProps.class));
this.customInputValidationDockerLambdaProps = software.amazon.jsii.Kernel.get(this, "customInputValidationDockerLambdaProps", software.amazon.jsii.NativeType.forClass(io.github.cdklabs.generative_ai_cdk_constructs.DockerLambdaCustomProps.class));
this.customSummaryGeneratorDockerLambdaProps = software.amazon.jsii.Kernel.get(this, "customSummaryGeneratorDockerLambdaProps", software.amazon.jsii.NativeType.forClass(io.github.cdklabs.generative_ai_cdk_constructs.DockerLambdaCustomProps.class));
this.eventBusProps = software.amazon.jsii.Kernel.get(this, "eventBusProps", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.events.EventBusProps.class));
this.existingBusInterface = software.amazon.jsii.Kernel.get(this, "existingBusInterface", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.events.IEventBus.class));
this.existingInputAssetsBucketObj = software.amazon.jsii.Kernel.get(this, "existingInputAssetsBucketObj", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.s3.IBucket.class));
this.existingMergedApi = software.amazon.jsii.Kernel.get(this, "existingMergedApi", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.appsync.CfnGraphQLApi.class));
this.existingProcessedAssetsBucketObj = software.amazon.jsii.Kernel.get(this, "existingProcessedAssetsBucketObj", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.s3.IBucket.class));
this.existingSecurityGroup = software.amazon.jsii.Kernel.get(this, "existingSecurityGroup", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.ec2.ISecurityGroup.class));
this.existingVpc = software.amazon.jsii.Kernel.get(this, "existingVpc", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.ec2.IVpc.class));
this.isFileTransformationRequired = software.amazon.jsii.Kernel.get(this, "isFileTransformationRequired", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.observability = software.amazon.jsii.Kernel.get(this, "observability", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class));
this.stage = software.amazon.jsii.Kernel.get(this, "stage", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.summaryApiName = software.amazon.jsii.Kernel.get(this, "summaryApiName", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.summaryChainType = software.amazon.jsii.Kernel.get(this, "summaryChainType", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.vpcProps = software.amazon.jsii.Kernel.get(this, "vpcProps", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.ec2.VpcProps.class));
}
/**
* Constructor that initializes the object based on literal property values passed by the {@link Builder}.
*/
protected Jsii$Proxy(final Builder builder) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
this.cognitoUserPool = java.util.Objects.requireNonNull(builder.cognitoUserPool, "cognitoUserPool is required");
this.bucketInputsAssetsProps = builder.bucketInputsAssetsProps;
this.bucketProcessedAssetsProps = builder.bucketProcessedAssetsProps;
this.customDocumentReaderDockerLambdaProps = builder.customDocumentReaderDockerLambdaProps;
this.customInputValidationDockerLambdaProps = builder.customInputValidationDockerLambdaProps;
this.customSummaryGeneratorDockerLambdaProps = builder.customSummaryGeneratorDockerLambdaProps;
this.eventBusProps = builder.eventBusProps;
this.existingBusInterface = builder.existingBusInterface;
this.existingInputAssetsBucketObj = builder.existingInputAssetsBucketObj;
this.existingMergedApi = builder.existingMergedApi;
this.existingProcessedAssetsBucketObj = builder.existingProcessedAssetsBucketObj;
this.existingSecurityGroup = builder.existingSecurityGroup;
this.existingVpc = builder.existingVpc;
this.isFileTransformationRequired = builder.isFileTransformationRequired;
this.observability = builder.observability;
this.stage = builder.stage;
this.summaryApiName = builder.summaryApiName;
this.summaryChainType = builder.summaryChainType;
this.vpcProps = builder.vpcProps;
}
@Override
public final software.amazon.awscdk.services.cognito.IUserPool getCognitoUserPool() {
return this.cognitoUserPool;
}
@Override
public final software.amazon.awscdk.services.s3.BucketProps getBucketInputsAssetsProps() {
return this.bucketInputsAssetsProps;
}
@Override
public final software.amazon.awscdk.services.s3.BucketProps getBucketProcessedAssetsProps() {
return this.bucketProcessedAssetsProps;
}
@Override
public final io.github.cdklabs.generative_ai_cdk_constructs.DockerLambdaCustomProps getCustomDocumentReaderDockerLambdaProps() {
return this.customDocumentReaderDockerLambdaProps;
}
@Override
public final io.github.cdklabs.generative_ai_cdk_constructs.DockerLambdaCustomProps getCustomInputValidationDockerLambdaProps() {
return this.customInputValidationDockerLambdaProps;
}
@Override
public final io.github.cdklabs.generative_ai_cdk_constructs.DockerLambdaCustomProps getCustomSummaryGeneratorDockerLambdaProps() {
return this.customSummaryGeneratorDockerLambdaProps;
}
@Override
public final software.amazon.awscdk.services.events.EventBusProps getEventBusProps() {
return this.eventBusProps;
}
@Override
public final software.amazon.awscdk.services.events.IEventBus getExistingBusInterface() {
return this.existingBusInterface;
}
@Override
public final software.amazon.awscdk.services.s3.IBucket getExistingInputAssetsBucketObj() {
return this.existingInputAssetsBucketObj;
}
@Override
public final software.amazon.awscdk.services.appsync.CfnGraphQLApi getExistingMergedApi() {
return this.existingMergedApi;
}
@Override
public final software.amazon.awscdk.services.s3.IBucket getExistingProcessedAssetsBucketObj() {
return this.existingProcessedAssetsBucketObj;
}
@Override
public final software.amazon.awscdk.services.ec2.ISecurityGroup getExistingSecurityGroup() {
return this.existingSecurityGroup;
}
@Override
public final software.amazon.awscdk.services.ec2.IVpc getExistingVpc() {
return this.existingVpc;
}
@Override
public final java.lang.String getIsFileTransformationRequired() {
return this.isFileTransformationRequired;
}
@Override
public final java.lang.Boolean getObservability() {
return this.observability;
}
@Override
public final java.lang.String getStage() {
return this.stage;
}
@Override
public final java.lang.String getSummaryApiName() {
return this.summaryApiName;
}
@Override
public final java.lang.String getSummaryChainType() {
return this.summaryChainType;
}
@Override
public final software.amazon.awscdk.services.ec2.VpcProps getVpcProps() {
return this.vpcProps;
}
@Override
@software.amazon.jsii.Internal
public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() {
final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE;
final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
data.set("cognitoUserPool", om.valueToTree(this.getCognitoUserPool()));
if (this.getBucketInputsAssetsProps() != null) {
data.set("bucketInputsAssetsProps", om.valueToTree(this.getBucketInputsAssetsProps()));
}
if (this.getBucketProcessedAssetsProps() != null) {
data.set("bucketProcessedAssetsProps", om.valueToTree(this.getBucketProcessedAssetsProps()));
}
if (this.getCustomDocumentReaderDockerLambdaProps() != null) {
data.set("customDocumentReaderDockerLambdaProps", om.valueToTree(this.getCustomDocumentReaderDockerLambdaProps()));
}
if (this.getCustomInputValidationDockerLambdaProps() != null) {
data.set("customInputValidationDockerLambdaProps", om.valueToTree(this.getCustomInputValidationDockerLambdaProps()));
}
if (this.getCustomSummaryGeneratorDockerLambdaProps() != null) {
data.set("customSummaryGeneratorDockerLambdaProps", om.valueToTree(this.getCustomSummaryGeneratorDockerLambdaProps()));
}
if (this.getEventBusProps() != null) {
data.set("eventBusProps", om.valueToTree(this.getEventBusProps()));
}
if (this.getExistingBusInterface() != null) {
data.set("existingBusInterface", om.valueToTree(this.getExistingBusInterface()));
}
if (this.getExistingInputAssetsBucketObj() != null) {
data.set("existingInputAssetsBucketObj", om.valueToTree(this.getExistingInputAssetsBucketObj()));
}
if (this.getExistingMergedApi() != null) {
data.set("existingMergedApi", om.valueToTree(this.getExistingMergedApi()));
}
if (this.getExistingProcessedAssetsBucketObj() != null) {
data.set("existingProcessedAssetsBucketObj", om.valueToTree(this.getExistingProcessedAssetsBucketObj()));
}
if (this.getExistingSecurityGroup() != null) {
data.set("existingSecurityGroup", om.valueToTree(this.getExistingSecurityGroup()));
}
if (this.getExistingVpc() != null) {
data.set("existingVpc", om.valueToTree(this.getExistingVpc()));
}
if (this.getIsFileTransformationRequired() != null) {
data.set("isFileTransformationRequired", om.valueToTree(this.getIsFileTransformationRequired()));
}
if (this.getObservability() != null) {
data.set("observability", om.valueToTree(this.getObservability()));
}
if (this.getStage() != null) {
data.set("stage", om.valueToTree(this.getStage()));
}
if (this.getSummaryApiName() != null) {
data.set("summaryApiName", om.valueToTree(this.getSummaryApiName()));
}
if (this.getSummaryChainType() != null) {
data.set("summaryChainType", om.valueToTree(this.getSummaryChainType()));
}
if (this.getVpcProps() != null) {
data.set("vpcProps", om.valueToTree(this.getVpcProps()));
}
final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
struct.set("fqn", om.valueToTree("@cdklabs/generative-ai-cdk-constructs.SummarizationAppsyncStepfnProps"));
struct.set("data", data);
final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
obj.set("$jsii.struct", struct);
return obj;
}
@Override
public final boolean equals(final Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
SummarizationAppsyncStepfnProps.Jsii$Proxy that = (SummarizationAppsyncStepfnProps.Jsii$Proxy) o;
if (!cognitoUserPool.equals(that.cognitoUserPool)) return false;
if (this.bucketInputsAssetsProps != null ? !this.bucketInputsAssetsProps.equals(that.bucketInputsAssetsProps) : that.bucketInputsAssetsProps != null) return false;
if (this.bucketProcessedAssetsProps != null ? !this.bucketProcessedAssetsProps.equals(that.bucketProcessedAssetsProps) : that.bucketProcessedAssetsProps != null) return false;
if (this.customDocumentReaderDockerLambdaProps != null ? !this.customDocumentReaderDockerLambdaProps.equals(that.customDocumentReaderDockerLambdaProps) : that.customDocumentReaderDockerLambdaProps != null) return false;
if (this.customInputValidationDockerLambdaProps != null ? !this.customInputValidationDockerLambdaProps.equals(that.customInputValidationDockerLambdaProps) : that.customInputValidationDockerLambdaProps != null) return false;
if (this.customSummaryGeneratorDockerLambdaProps != null ? !this.customSummaryGeneratorDockerLambdaProps.equals(that.customSummaryGeneratorDockerLambdaProps) : that.customSummaryGeneratorDockerLambdaProps != null) return false;
if (this.eventBusProps != null ? !this.eventBusProps.equals(that.eventBusProps) : that.eventBusProps != null) return false;
if (this.existingBusInterface != null ? !this.existingBusInterface.equals(that.existingBusInterface) : that.existingBusInterface != null) return false;
if (this.existingInputAssetsBucketObj != null ? !this.existingInputAssetsBucketObj.equals(that.existingInputAssetsBucketObj) : that.existingInputAssetsBucketObj != null) return false;
if (this.existingMergedApi != null ? !this.existingMergedApi.equals(that.existingMergedApi) : that.existingMergedApi != null) return false;
if (this.existingProcessedAssetsBucketObj != null ? !this.existingProcessedAssetsBucketObj.equals(that.existingProcessedAssetsBucketObj) : that.existingProcessedAssetsBucketObj != null) return false;
if (this.existingSecurityGroup != null ? !this.existingSecurityGroup.equals(that.existingSecurityGroup) : that.existingSecurityGroup != null) return false;
if (this.existingVpc != null ? !this.existingVpc.equals(that.existingVpc) : that.existingVpc != null) return false;
if (this.isFileTransformationRequired != null ? !this.isFileTransformationRequired.equals(that.isFileTransformationRequired) : that.isFileTransformationRequired != null) return false;
if (this.observability != null ? !this.observability.equals(that.observability) : that.observability != null) return false;
if (this.stage != null ? !this.stage.equals(that.stage) : that.stage != null) return false;
if (this.summaryApiName != null ? !this.summaryApiName.equals(that.summaryApiName) : that.summaryApiName != null) return false;
if (this.summaryChainType != null ? !this.summaryChainType.equals(that.summaryChainType) : that.summaryChainType != null) return false;
return this.vpcProps != null ? this.vpcProps.equals(that.vpcProps) : that.vpcProps == null;
}
@Override
public final int hashCode() {
int result = this.cognitoUserPool.hashCode();
result = 31 * result + (this.bucketInputsAssetsProps != null ? this.bucketInputsAssetsProps.hashCode() : 0);
result = 31 * result + (this.bucketProcessedAssetsProps != null ? this.bucketProcessedAssetsProps.hashCode() : 0);
result = 31 * result + (this.customDocumentReaderDockerLambdaProps != null ? this.customDocumentReaderDockerLambdaProps.hashCode() : 0);
result = 31 * result + (this.customInputValidationDockerLambdaProps != null ? this.customInputValidationDockerLambdaProps.hashCode() : 0);
result = 31 * result + (this.customSummaryGeneratorDockerLambdaProps != null ? this.customSummaryGeneratorDockerLambdaProps.hashCode() : 0);
result = 31 * result + (this.eventBusProps != null ? this.eventBusProps.hashCode() : 0);
result = 31 * result + (this.existingBusInterface != null ? this.existingBusInterface.hashCode() : 0);
result = 31 * result + (this.existingInputAssetsBucketObj != null ? this.existingInputAssetsBucketObj.hashCode() : 0);
result = 31 * result + (this.existingMergedApi != null ? this.existingMergedApi.hashCode() : 0);
result = 31 * result + (this.existingProcessedAssetsBucketObj != null ? this.existingProcessedAssetsBucketObj.hashCode() : 0);
result = 31 * result + (this.existingSecurityGroup != null ? this.existingSecurityGroup.hashCode() : 0);
result = 31 * result + (this.existingVpc != null ? this.existingVpc.hashCode() : 0);
result = 31 * result + (this.isFileTransformationRequired != null ? this.isFileTransformationRequired.hashCode() : 0);
result = 31 * result + (this.observability != null ? this.observability.hashCode() : 0);
result = 31 * result + (this.stage != null ? this.stage.hashCode() : 0);
result = 31 * result + (this.summaryApiName != null ? this.summaryApiName.hashCode() : 0);
result = 31 * result + (this.summaryChainType != null ? this.summaryChainType.hashCode() : 0);
result = 31 * result + (this.vpcProps != null ? this.vpcProps.hashCode() : 0);
return result;
}
}
}