Documentation
¶
Overview ¶
CDK Constructs for AWS API Gateway and Amazon DynamoDB integration.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApiGatewayToDynamoDB_IsConstruct ¶
func ApiGatewayToDynamoDB_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead
func NewApiGatewayToDynamoDB_Override ¶
func NewApiGatewayToDynamoDB_Override(a ApiGatewayToDynamoDB, scope constructs.Construct, id *string, props *ApiGatewayToDynamoDBProps)
Types ¶
type ApiGatewayToDynamoDB ¶
type ApiGatewayToDynamoDB interface { constructs.Construct ApiGateway() awsapigateway.RestApi ApiGatewayCloudWatchRole() awsiam.Role ApiGatewayLogGroup() awslogs.LogGroup ApiGatewayRole() awsiam.Role DynamoTable() awsdynamodb.Table Node() constructs.Node ToString() *string }
func NewApiGatewayToDynamoDB ¶
func NewApiGatewayToDynamoDB(scope constructs.Construct, id *string, props *ApiGatewayToDynamoDBProps) ApiGatewayToDynamoDB
type ApiGatewayToDynamoDBProps ¶
type ApiGatewayToDynamoDBProps struct { // Whether to deploy API Gateway Method for Create operation on DynamoDB table. AllowCreateOperation *bool `json:"allowCreateOperation"` // Whether to deploy API Gateway Method for Delete operation on DynamoDB table. AllowDeleteOperation *bool `json:"allowDeleteOperation"` // Whether to deploy API Gateway Method for Read operation on DynamoDB table. AllowReadOperation *bool `json:"allowReadOperation"` // Whether to deploy API Gateway Method for Update operation on DynamoDB table. AllowUpdateOperation *bool `json:"allowUpdateOperation"` // Optional user-provided props to override the default props for the API Gateway. ApiGatewayProps *awsapigateway.RestApiProps `json:"apiGatewayProps"` // API Gateway Request template for Create method, required if allowCreateOperation set to true. CreateRequestTemplate *string `json:"createRequestTemplate"` // Optional API Gateway Request template for Delete method, it will use the default template if allowDeleteOperation is true and deleteRequestTemplate is not provided. // // The default template only supports a partition key and not partition + sort keys. DeleteRequestTemplate *string `json:"deleteRequestTemplate"` // Optional user provided props to override the default props. DynamoTableProps *awsdynamodb.TableProps `json:"dynamoTableProps"` // Existing instance of DynamoDB table object, providing both this and `dynamoTableProps` will cause an error. ExistingTableObj awsdynamodb.Table `json:"existingTableObj"` // User provided props to override the default props for the CloudWatchLogs LogGroup. LogGroupProps *awslogs.LogGroupProps `json:"logGroupProps"` // Optional API Gateway Request template for Read method, it will use the default template if allowReadOperation is true and readRequestTemplate is not provided. // // The default template only supports a partition key and not partition + sort keys. ReadRequestTemplate *string `json:"readRequestTemplate"` // API Gateway Request template for Update method, required if allowUpdateOperation set to true. UpdateRequestTemplate *string `json:"updateRequestTemplate"` }
Source Files
¶
Click to show internal directories.
Click to hide internal directories.