-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from pahud/nija-at/apigwv2-pattern-setup
revamp the APIGWv2 constructs
- Loading branch information
Showing
30 changed files
with
1,444 additions
and
1,711 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
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export * from './integration'; | ||
export * from './route'; | ||
export * from './stage'; |
12 changes: 12 additions & 0 deletions
12
packages/@aws-cdk/aws-apigatewayv2/lib/common/integration.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,12 @@ | ||
import { IResource } from '@aws-cdk/core'; | ||
|
||
/** | ||
* Represents an integration to an API Route. | ||
*/ | ||
export interface IIntegration extends IResource { | ||
/** | ||
* Id of the integration. | ||
* @attribute | ||
*/ | ||
readonly integrationId: string; | ||
} |
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,12 @@ | ||
import { IResource } from '@aws-cdk/core'; | ||
|
||
/** | ||
* Represents a route. | ||
*/ | ||
export interface IRoute extends IResource { | ||
/** | ||
* Id of the Route | ||
* @attribute | ||
*/ | ||
readonly routeId: string; | ||
} |
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,30 @@ | ||
import { IResource } from '@aws-cdk/core'; | ||
|
||
/** | ||
* Represents a Stage. | ||
*/ | ||
export interface IStage extends IResource { | ||
/** | ||
* The name of the stage; its primary identifier. | ||
* @attribute | ||
*/ | ||
readonly stageName: string; | ||
} | ||
|
||
/** | ||
* Options required to create a new stage. | ||
* Options that are common between HTTP and Websocket APIs. | ||
*/ | ||
export interface CommonStageOptions { | ||
/** | ||
* The name of the stage. See `StageName` class for more details. | ||
* @default '$default' the default stage of the API. This stage will have the URL at the root of the API endpoint. | ||
*/ | ||
readonly stageName?: string; | ||
|
||
/** | ||
* Whether updates to an API automatically trigger a new deployment. | ||
* @default false | ||
*/ | ||
readonly autoDeploy?: boolean; | ||
} |
Oops, something went wrong.