Documentation ¶
Overview ¶
CDK Constructs for AWS Cloudfront to AWS API Gateway to AWS Lambda integration.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloudFrontToApiGatewayToLambda_IsConstruct ¶
func CloudFrontToApiGatewayToLambda_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 NewCloudFrontToApiGatewayToLambda_Override ¶
func NewCloudFrontToApiGatewayToLambda_Override(c CloudFrontToApiGatewayToLambda, scope constructs.Construct, id *string, props *CloudFrontToApiGatewayToLambdaProps)
Types ¶
type CloudFrontToApiGatewayToLambda ¶
type CloudFrontToApiGatewayToLambda interface { constructs.Construct ApiGateway() awsapigateway.RestApi ApiGatewayCloudWatchRole() awsiam.Role ApiGatewayLogGroup() awslogs.LogGroup CloudFrontFunction() awscloudfront.Function CloudFrontLoggingBucket() awss3.Bucket CloudFrontWebDistribution() awscloudfront.Distribution LambdaFunction() awslambda.Function Node() constructs.Node ToString() *string }
func NewCloudFrontToApiGatewayToLambda ¶
func NewCloudFrontToApiGatewayToLambda(scope constructs.Construct, id *string, props *CloudFrontToApiGatewayToLambdaProps) CloudFrontToApiGatewayToLambda
type CloudFrontToApiGatewayToLambdaProps ¶
type CloudFrontToApiGatewayToLambdaProps struct { // Optional user provided props to override the default props for the API Gateway. ApiGatewayProps interface{} `json:"apiGatewayProps"` // Optional user provided props to override the default props. CloudFrontDistributionProps interface{} `json:"cloudFrontDistributionProps"` // Optional user provided props to override the default props for the CloudFront Logging Bucket. CloudFrontLoggingBucketProps *awss3.BucketProps `json:"cloudFrontLoggingBucketProps"` // Existing instance of Lambda Function object, providing both this and `lambdaFunctionProps` will cause an error. ExistingLambdaObj awslambda.Function `json:"existingLambdaObj"` // Optional user provided props to turn on/off the automatic injection of best practice HTTP security headers in all responses from cloudfront. InsertHttpSecurityHeaders *bool `json:"insertHttpSecurityHeaders"` // Optional user provided props to override the default props for the Lambda function. LambdaFunctionProps *awslambda.FunctionProps `json:"lambdaFunctionProps"` // Optional user provided props to override the default props for the CloudWatchLogs LogGroup. LogGroupProps *awslogs.LogGroupProps `json:"logGroupProps"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.