-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'epic/cdk-v2' into feature/Mesh-fixes
- Loading branch information
Showing
12 changed files
with
6,661 additions
and
5,103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
import { PrerenderFargate, PrerenderOptions } from "./lib/prerender-fargate"; | ||
import { PrerenderFargate } from "./lib/prerender-fargate"; | ||
import { PrerenderFargateOptions } from "./lib/prerender-fargate-options"; | ||
|
||
export { PrerenderFargate, PrerenderOptions }; | ||
export { PrerenderFargate, PrerenderFargateOptions }; |
81 changes: 81 additions & 0 deletions
81
packages/prerender-fargate/lib/prerender-fargate-options.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
import { PrerenderTokenUrlAssociationProps } from "./recaching/prerender-tokens"; | ||
|
||
/** | ||
* Options for configuring the Prerender Fargate construct. | ||
*/ | ||
export interface PrerenderFargateOptions { | ||
/** | ||
* The name of the Prerender service. | ||
*/ | ||
prerenderName: string; | ||
/** | ||
* The domain name to prerender. | ||
*/ | ||
domainName: string; | ||
/** | ||
* The ID of the VPC to deploy the Fargate service in. | ||
*/ | ||
vpcId?: string; | ||
/** | ||
* The name of the S3 bucket to store prerendered pages in. | ||
*/ | ||
bucketName?: string; | ||
/** | ||
* The number of days to keep prerendered pages in the S3 bucket before expiring them. | ||
*/ | ||
expirationDays?: number; | ||
/** | ||
* A list of tokens to use for authentication with the Prerender service. | ||
* This parameter is deprecated and will be removed in a future release. | ||
* Please use the `tokenUrlAssociation` parameter instead. | ||
* *If `tokenUrlAssociation` is provided, `tokenList` will be ignored* | ||
*/ | ||
tokenList: Array<string>; | ||
/** | ||
* The ARN of the SSL certificate to use for HTTPS connections. | ||
*/ | ||
certificateArn: string; | ||
/** | ||
* The desired number of Fargate instances to run. | ||
*/ | ||
desiredInstanceCount?: number; | ||
/** | ||
* The maximum number of Fargate instances to run. | ||
*/ | ||
maxInstanceCount?: number; | ||
/** | ||
* The amount of CPU to allocate to each Fargate instance. | ||
*/ | ||
instanceCPU?: number; | ||
/** | ||
* The amount of memory to allocate to each Fargate instance. | ||
*/ | ||
instanceMemory?: number; | ||
/** | ||
* Whether to enable caching of HTTP redirects. | ||
*/ | ||
enableRedirectCache?: string; | ||
/** | ||
* Whether to enable the S3 endpoint for the VPC. | ||
*/ | ||
enableS3Endpoint?: boolean; | ||
/** | ||
* Configuration for associating tokens with specific domain URLs. | ||
* During the reacaching process, these tokens will be used to validate the request. | ||
* ### Example: | ||
* ```typescript | ||
* { | ||
* tokenUrlAssociation: { | ||
* token1: [ | ||
* "https://example.com", | ||
* "https://acme.example.com"], | ||
* token2: [ | ||
* "https://example1.com", | ||
* "https://acme.example1.com"] | ||
* }, | ||
* ssmPathPrefix: "/prerender/recache/tokens" | ||
* } | ||
* ``` | ||
*/ | ||
tokenUrlAssociation?: PrerenderTokenUrlAssociationProps; | ||
} |
Oops, something went wrong.