public static final class ApiGatewayToDynamoDB.Builder extends Object implements software.amazon.jsii.Builder<ApiGatewayToDynamoDB>
ApiGatewayToDynamoDB.| Modifier and Type | Method and Description |
|---|---|
ApiGatewayToDynamoDB.Builder |
allowCreateOperation(Boolean allowCreateOperation)
Whether to deploy API Gateway Method for Create operation on DynamoDB table.
|
ApiGatewayToDynamoDB.Builder |
allowDeleteOperation(Boolean allowDeleteOperation)
Whether to deploy API Gateway Method for Delete operation on DynamoDB table.
|
ApiGatewayToDynamoDB.Builder |
allowReadOperation(Boolean allowReadOperation)
Whether to deploy API Gateway Method for Read operation on DynamoDB table.
|
ApiGatewayToDynamoDB.Builder |
allowUpdateOperation(Boolean allowUpdateOperation)
Whether to deploy API Gateway Method for Update operation on DynamoDB table.
|
ApiGatewayToDynamoDB.Builder |
apiGatewayProps(software.amazon.awscdk.services.apigateway.RestApiProps apiGatewayProps)
Optional user-provided props to override the default props for the API Gateway.
|
ApiGatewayToDynamoDB |
build() |
static ApiGatewayToDynamoDB.Builder |
create(software.amazon.awscdk.core.Construct scope,
String id) |
ApiGatewayToDynamoDB.Builder |
createRequestTemplate(String createRequestTemplate)
API Gateway Request template for Create method, required if allowCreateOperation set to true.
|
ApiGatewayToDynamoDB.Builder |
deleteRequestTemplate(String deleteRequestTemplate)
Optional API Gateway Request template for Delete method, it will use the default template if allowDeleteOperation is true and deleteRequestTemplate is not provided.
|
ApiGatewayToDynamoDB.Builder |
dynamoTableProps(software.amazon.awscdk.services.dynamodb.TableProps dynamoTableProps)
Optional user provided props to override the default props.
|
ApiGatewayToDynamoDB.Builder |
existingTableObj(software.amazon.awscdk.services.dynamodb.Table existingTableObj)
Existing instance of DynamoDB table object, providing both this and `dynamoTableProps` will cause an error.
|
ApiGatewayToDynamoDB.Builder |
logGroupProps(software.amazon.awscdk.services.logs.LogGroupProps logGroupProps)
User provided props to override the default props for the CloudWatchLogs LogGroup.
|
ApiGatewayToDynamoDB.Builder |
readRequestTemplate(String readRequestTemplate)
Optional API Gateway Request template for Read method, it will use the default template if allowReadOperation is true and readRequestTemplate is not provided.
|
ApiGatewayToDynamoDB.Builder |
updateRequestTemplate(String updateRequestTemplate)
API Gateway Request template for Update method, required if allowUpdateOperation set to true.
|
public static ApiGatewayToDynamoDB.Builder create(software.amazon.awscdk.core.Construct scope, String id)
scope - - represents the scope for all the resources. This parameter is required.id - - this is a a scope-unique id. This parameter is required.ApiGatewayToDynamoDB.Builder.public ApiGatewayToDynamoDB.Builder allowCreateOperation(Boolean allowCreateOperation)
Default: - false
allowCreateOperation - Whether to deploy API Gateway Method for Create operation on DynamoDB table. This parameter is required.thispublic ApiGatewayToDynamoDB.Builder allowDeleteOperation(Boolean allowDeleteOperation)
Default: - false
allowDeleteOperation - Whether to deploy API Gateway Method for Delete operation on DynamoDB table. This parameter is required.thispublic ApiGatewayToDynamoDB.Builder allowReadOperation(Boolean allowReadOperation)
Default: - true
allowReadOperation - Whether to deploy API Gateway Method for Read operation on DynamoDB table. This parameter is required.thispublic ApiGatewayToDynamoDB.Builder allowUpdateOperation(Boolean allowUpdateOperation)
Default: - false
allowUpdateOperation - Whether to deploy API Gateway Method for Update operation on DynamoDB table. This parameter is required.thispublic ApiGatewayToDynamoDB.Builder apiGatewayProps(software.amazon.awscdk.services.apigateway.RestApiProps apiGatewayProps)
Default: - Default properties are used.
apiGatewayProps - Optional user-provided props to override the default props for the API Gateway. This parameter is required.thispublic ApiGatewayToDynamoDB.Builder createRequestTemplate(String createRequestTemplate)
Default: - None
createRequestTemplate - API Gateway Request template for Create method, required if allowCreateOperation set to true. This parameter is required.thispublic ApiGatewayToDynamoDB.Builder deleteRequestTemplate(String deleteRequestTemplate)
The default template only supports a partition key and not partition + sort keys.
Default: - None
deleteRequestTemplate - Optional API Gateway Request template for Delete method, it will use the default template if allowDeleteOperation is true and deleteRequestTemplate is not provided. This parameter is required.thispublic ApiGatewayToDynamoDB.Builder dynamoTableProps(software.amazon.awscdk.services.dynamodb.TableProps dynamoTableProps)
Default: - Default props are used
dynamoTableProps - Optional user provided props to override the default props. This parameter is required.thispublic ApiGatewayToDynamoDB.Builder existingTableObj(software.amazon.awscdk.services.dynamodb.Table existingTableObj)
Default: - None
existingTableObj - Existing instance of DynamoDB table object, providing both this and `dynamoTableProps` will cause an error. This parameter is required.thispublic ApiGatewayToDynamoDB.Builder logGroupProps(software.amazon.awscdk.services.logs.LogGroupProps logGroupProps)
Default: - Default props are used
logGroupProps - User provided props to override the default props for the CloudWatchLogs LogGroup. This parameter is required.thispublic ApiGatewayToDynamoDB.Builder readRequestTemplate(String readRequestTemplate)
The default template only supports a partition key and not partition + sort keys.
Default: - None
readRequestTemplate - Optional API Gateway Request template for Read method, it will use the default template if allowReadOperation is true and readRequestTemplate is not provided. This parameter is required.thispublic ApiGatewayToDynamoDB.Builder updateRequestTemplate(String updateRequestTemplate)
Default: - None
updateRequestTemplate - API Gateway Request template for Update method, required if allowUpdateOperation set to true. This parameter is required.thispublic ApiGatewayToDynamoDB build()
build in interface software.amazon.jsii.Builder<ApiGatewayToDynamoDB>Copyright © 2022. All rights reserved.