Class CognitoToApiGatewayToLambdaProps.Builder
java.lang.Object
software.amazon.awsconstructs.services.cognitoapigatewaylambda.CognitoToApiGatewayToLambdaProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CognitoToApiGatewayToLambdaProps>
- Enclosing interface:
CognitoToApiGatewayToLambdaProps
public static final class CognitoToApiGatewayToLambdaProps.Builder
extends Object
implements software.amazon.jsii.Builder<CognitoToApiGatewayToLambdaProps>
A builder for
CognitoToApiGatewayToLambdaProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapiGatewayProps(Object apiGatewayProps) Sets the value ofCognitoToApiGatewayToLambdaProps.getApiGatewayProps()build()Builds the configured instance.cognitoUserPoolClientProps(Object cognitoUserPoolClientProps) Sets the value ofCognitoToApiGatewayToLambdaProps.getCognitoUserPoolClientProps()cognitoUserPoolProps(software.amazon.awscdk.services.cognito.UserPoolProps cognitoUserPoolProps) Sets the value ofCognitoToApiGatewayToLambdaProps.getCognitoUserPoolProps()existingLambdaObj(software.amazon.awscdk.services.lambda.Function existingLambdaObj) Sets the value ofCognitoToApiGatewayToLambdaProps.getExistingLambdaObj()lambdaFunctionProps(software.amazon.awscdk.services.lambda.FunctionProps lambdaFunctionProps) Sets the value ofCognitoToApiGatewayToLambdaProps.getLambdaFunctionProps()logGroupProps(software.amazon.awscdk.services.logs.LogGroupProps logGroupProps) Sets the value ofCognitoToApiGatewayToLambdaProps.getLogGroupProps()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
apiGatewayProps
Sets the value ofCognitoToApiGatewayToLambdaProps.getApiGatewayProps()- Parameters:
apiGatewayProps- Optional user provided props to override the default props for the API Gateway.- Returns:
this
-
cognitoUserPoolClientProps
public CognitoToApiGatewayToLambdaProps.Builder cognitoUserPoolClientProps(Object cognitoUserPoolClientProps) Sets the value ofCognitoToApiGatewayToLambdaProps.getCognitoUserPoolClientProps()- Parameters:
cognitoUserPoolClientProps- Optional user provided props to override the default props.- Returns:
this
-
cognitoUserPoolProps
public CognitoToApiGatewayToLambdaProps.Builder cognitoUserPoolProps(software.amazon.awscdk.services.cognito.UserPoolProps cognitoUserPoolProps) Sets the value ofCognitoToApiGatewayToLambdaProps.getCognitoUserPoolProps()- Parameters:
cognitoUserPoolProps- Optional user provided props to override the default props.- Returns:
this
-
existingLambdaObj
public CognitoToApiGatewayToLambdaProps.Builder existingLambdaObj(software.amazon.awscdk.services.lambda.Function existingLambdaObj) Sets the value ofCognitoToApiGatewayToLambdaProps.getExistingLambdaObj()- Parameters:
existingLambdaObj- Existing instance of Lambda Function object, providing both this andlambdaFunctionPropswill cause an error.- Returns:
this
-
lambdaFunctionProps
public CognitoToApiGatewayToLambdaProps.Builder lambdaFunctionProps(software.amazon.awscdk.services.lambda.FunctionProps lambdaFunctionProps) Sets the value ofCognitoToApiGatewayToLambdaProps.getLambdaFunctionProps()- Parameters:
lambdaFunctionProps- User provided props to override the default props for the Lambda function.- Returns:
this
-
logGroupProps
public CognitoToApiGatewayToLambdaProps.Builder logGroupProps(software.amazon.awscdk.services.logs.LogGroupProps logGroupProps) Sets the value ofCognitoToApiGatewayToLambdaProps.getLogGroupProps()- Parameters:
logGroupProps- User provided props to override the default props for the CloudWatchLogs LogGroup.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CognitoToApiGatewayToLambdaProps>- Returns:
- a new instance of
CognitoToApiGatewayToLambdaProps - Throws:
NullPointerException- if any required attribute was not provided
-