Class CognitoToApiGatewayToLambda.Builder

java.lang.Object
software.amazon.awsconstructs.services.cognitoapigatewaylambda.CognitoToApiGatewayToLambda.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CognitoToApiGatewayToLambda>
Enclosing class:
CognitoToApiGatewayToLambda

public static final class CognitoToApiGatewayToLambda.Builder extends Object implements software.amazon.jsii.Builder<CognitoToApiGatewayToLambda>
A fluent builder for CognitoToApiGatewayToLambda.
  • Method Details

    • create

      public static CognitoToApiGatewayToLambda.Builder create(software.constructs.Construct scope, String id)
      Parameters:
      scope -
      • represents the scope for all the resources.
      This parameter is required.
      id -
      • this is a a scope-unique id.
      This parameter is required.
      Returns:
      a new instance of CognitoToApiGatewayToLambda.Builder.
    • apiGatewayProps

      public CognitoToApiGatewayToLambda.Builder apiGatewayProps(Object apiGatewayProps)
      Optional user provided props to override the default props for the API Gateway.

      Default: - Default props are used

      Parameters:
      apiGatewayProps - Optional user provided props to override the default props for the API Gateway. This parameter is required.
      Returns:
      this
    • cognitoUserPoolClientProps

      public CognitoToApiGatewayToLambda.Builder cognitoUserPoolClientProps(Object cognitoUserPoolClientProps)
      Optional user provided props to override the default props.

      Default: - Default props are used

      Parameters:
      cognitoUserPoolClientProps - Optional user provided props to override the default props. This parameter is required.
      Returns:
      this
    • cognitoUserPoolProps

      public CognitoToApiGatewayToLambda.Builder cognitoUserPoolProps(software.amazon.awscdk.services.cognito.UserPoolProps cognitoUserPoolProps)
      Optional user provided props to override the default props.

      Default: - Default props are used

      Parameters:
      cognitoUserPoolProps - Optional user provided props to override the default props. This parameter is required.
      Returns:
      this
    • existingLambdaObj

      public CognitoToApiGatewayToLambda.Builder existingLambdaObj(software.amazon.awscdk.services.lambda.Function existingLambdaObj)
      Existing instance of Lambda Function object, providing both this and lambdaFunctionProps will cause an error.

      Default: - None

      Parameters:
      existingLambdaObj - Existing instance of Lambda Function object, providing both this and lambdaFunctionProps will cause an error. This parameter is required.
      Returns:
      this
    • lambdaFunctionProps

      public CognitoToApiGatewayToLambda.Builder lambdaFunctionProps(software.amazon.awscdk.services.lambda.FunctionProps lambdaFunctionProps)
      User provided props to override the default props for the Lambda function.

      Default: - Default props are used

      Parameters:
      lambdaFunctionProps - User provided props to override the default props for the Lambda function. This parameter is required.
      Returns:
      this
    • logGroupProps

      public CognitoToApiGatewayToLambda.Builder logGroupProps(software.amazon.awscdk.services.logs.LogGroupProps logGroupProps)
      User provided props to override the default props for the CloudWatchLogs LogGroup.

      Default: - Default props are used

      Parameters:
      logGroupProps - User provided props to override the default props for the CloudWatchLogs LogGroup. This parameter is required.
      Returns:
      this
    • build

      Specified by:
      build in interface software.amazon.jsii.Builder<CognitoToApiGatewayToLambda>
      Returns:
      a newly built instance of CognitoToApiGatewayToLambda.