Classes
Name | Description |
---|---|
DatabaseCluster | No description |
ServerlessApi | Use ServerlessApi to create the serverless API resource. |
ServerlessLaravel | Use ServerlessLaravel to create the serverless Laravel resource. |
Structs
Name | Description |
---|---|
DatabaseConfig | No description |
DatabaseProps | No description |
ServerlessApiProps | Construct properties for ServerlessApi . |
ServerlessLaravelProps | Construct properties for ServerlessLaravel . |
Implements: IConstruct, IDependable Extends: Construct
new DatabaseCluster(scope: Construct, id: string, props: DatabaseProps)
- scope (
Construct
) No description - id (
string
) No description - props (
DatabaseProps
) No description- vpc (
aws_ec2.IVpc
) The VPC for the DatabaseCluster. - engine (
aws_rds.IClusterEngine
) database cluster engine. Default: AURORA_MYSQL - instanceCapacity (
number
) How many replicas/instances to create. Default: 1 - instanceType (
aws_ec2.InstanceType
) instance type of the cluster. Default: t3.medium (or, more precisely, db.t3.medium) - masterUserName (
string
) master username. Default: admin - rdsProxy (
boolean
) enable the Amazon RDS proxy. Default: true - rdsProxyOptions (
aws_rds.DatabaseProxyOptions
) RDS Proxy Options. Optional
- vpc (
Name | Type | Description |
---|---|---|
masterPassword | aws_secretsmanager.ISecret |
|
masterUser | string |
|
rdsProxy? | aws_rds.DatabaseProxy |
Optional |
Use ServerlessApi
to create the serverless API resource.
Implements: IConstruct, IDependable Extends: Construct
new ServerlessApi(scope: Construct, id: string, props: ServerlessApiProps)
- scope (
Construct
) No description - id (
string
) No description - props (
ServerlessApiProps
) No description- brefLayerVersion (
string
) AWS Lambda layer version from the Bref runtime. - databaseConfig (
DatabaseConfig
) Database configurations. Optional - handler (
aws_lambda.IFunction
) custom lambda function for the API. Default: A Lambda function with Lavavel and Bref support will be created - lambdaCodePath (
string
) custom lambda code asset path. Default: DEFAULT_LAMBDA_ASSET_PATH - rdsProxy (
aws_rds.IDatabaseProxy
) RDS Proxy for the Lambda function. Default: no db proxy - vpc (
aws_ec2.IVpc
) The VPC for this stack. Optional
- brefLayerVersion (
Name | Type | Description |
---|---|---|
handler | aws_lambda.IFunction |
|
vpc? | aws_ec2.IVpc |
Optional |
Use ServerlessLaravel
to create the serverless Laravel resource.
Implements: IConstruct, IDependable Extends: Construct
new ServerlessLaravel(scope: Construct, id: string, props: ServerlessLaravelProps)
- scope (
Construct
) No description - id (
string
) No description - props (
ServerlessLaravelProps
) No description- brefLayerVersion (
string
) AWS Lambda layer version from the Bref runtime. - databaseConfig (
DatabaseConfig
) Database configurations. Optional - handler (
aws_lambda.IFunction
) custom lambda function for the API. Default: A Lambda function with Lavavel and Bref support will be created - lambdaCodePath (
string
) custom lambda code asset path. Default: DEFAULT_LAMBDA_ASSET_PATH - rdsProxy (
aws_rds.IDatabaseProxy
) RDS Proxy for the Lambda function. Default: no db proxy - vpc (
aws_ec2.IVpc
) The VPC for this stack. Optional - laravelPath (
string
) path to your local laravel directory with bref.
- brefLayerVersion (
Name | Type | Description |
---|---|---|
writerEndpoint | string |
The DB writer endpoint. |
masterUserName? | string |
The DB master username. Optional |
masterUserPasswordSecret? | aws_secretsmanager.ISecret |
The DB master password secret. Optional |
readerEndpoint? | string |
The DB reader endpoint. Optional |
Name | Type | Description |
---|---|---|
vpc | aws_ec2.IVpc |
The VPC for the DatabaseCluster. |
engine? | aws_rds.IClusterEngine |
database cluster engine. Default: AURORA_MYSQL |
instanceCapacity? | number |
How many replicas/instances to create. Default: 1 |
instanceType? | aws_ec2.InstanceType |
instance type of the cluster. Default: t3.medium (or, more precisely, db.t3.medium) |
masterUserName? | string |
master username. Default: admin |
rdsProxy? | boolean |
enable the Amazon RDS proxy. Default: true |
rdsProxyOptions? | aws_rds.DatabaseProxyOptions |
RDS Proxy Options. Optional |
Construct properties for ServerlessApi
.
Name | Type | Description |
---|---|---|
brefLayerVersion | string |
AWS Lambda layer version from the Bref runtime. |
databaseConfig? | DatabaseConfig |
Database configurations. Optional |
handler? | aws_lambda.IFunction |
custom lambda function for the API. Default: A Lambda function with Lavavel and Bref support will be created |
lambdaCodePath? | string |
custom lambda code asset path. Default: DEFAULT_LAMBDA_ASSET_PATH |
rdsProxy? | aws_rds.IDatabaseProxy |
RDS Proxy for the Lambda function. Default: no db proxy |
vpc? | aws_ec2.IVpc |
The VPC for this stack. Optional |
Construct properties for ServerlessLaravel
.
Name | Type | Description |
---|---|---|
brefLayerVersion | string |
AWS Lambda layer version from the Bref runtime. |
laravelPath | string |
path to your local laravel directory with bref. |
databaseConfig? | DatabaseConfig |
Database configurations. Optional |
handler? | aws_lambda.IFunction |
custom lambda function for the API. Default: A Lambda function with Lavavel and Bref support will be created |
lambdaCodePath? | string |
custom lambda code asset path. Default: DEFAULT_LAMBDA_ASSET_PATH |
rdsProxy? | aws_rds.IDatabaseProxy |
RDS Proxy for the Lambda function. Default: no db proxy |
vpc? | aws_ec2.IVpc |
The VPC for this stack. Optional |