Skip to content

Commit

Permalink
add experimental tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Niranjan Jayakar committed May 11, 2020
1 parent 7d85a9a commit f85618c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/@aws-cdk/aws-apigateway/lib/api-definition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ import * as cdk from '@aws-cdk/core';

/**
* Represents an OpenAPI definition asset.
* @experimental
*/
export abstract class ApiDefinition {
/**
* Creates an API definition from a specification file in an S3 bucket
* @experimental
*/
public static fromBucket(bucket: s3.IBucket, key: string, objectVersion?: string): S3ApiDefinition {
return new S3ApiDefinition(bucket, key, objectVersion);
Expand Down Expand Up @@ -65,6 +67,7 @@ export abstract class ApiDefinition {

/**
* Loads the API specification from a local disk asset.
* @experimental
*/
public static fromAsset(file: string, options?: s3_assets.AssetOptions): AssetApiDefinition {
return new AssetApiDefinition(file, options);
Expand All @@ -82,6 +85,7 @@ export abstract class ApiDefinition {

/**
* S3 location of the API definition file
* @experimental
*/
export interface ApiDefinitionS3Location {
/** The S3 bucket */
Expand All @@ -97,6 +101,7 @@ export interface ApiDefinitionS3Location {

/**
* Post-Binding Configuration for a CDK construct
* @experimental
*/
export interface ApiDefinitionConfig {
/**
Expand All @@ -116,6 +121,7 @@ export interface ApiDefinitionConfig {

/**
* OpenAPI specification from an S3 archive.
* @experimental
*/
export class S3ApiDefinition extends ApiDefinition {
private bucketName: string;
Expand Down Expand Up @@ -143,6 +149,7 @@ export class S3ApiDefinition extends ApiDefinition {

/**
* OpenAPI specification from an inline JSON object.
* @experimental
*/
export class InlineApiDefinition extends ApiDefinition {
constructor(private definition: any) {
Expand All @@ -166,6 +173,7 @@ export class InlineApiDefinition extends ApiDefinition {

/**
* OpenAPI specification from a local file.
* @experimental
*/
export class AssetApiDefinition extends ApiDefinition {
private asset?: s3_assets.Asset;
Expand Down
3 changes: 3 additions & 0 deletions packages/@aws-cdk/aws-apigateway/lib/restapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ export interface RestApiProps extends RestApiOptions {

/**
* Props to instantiate a new SpecRestApi
* @experimental
*/
export interface SpecRestApiProps extends RestApiOptions {
/**
Expand Down Expand Up @@ -366,6 +367,8 @@ abstract class RestApiBase extends Resource implements IRestApi {
* By default, the API will automatically be deployed and accessible from a
* public endpoint.
*
* @experimental
*
* @resource AWS::ApiGateway::RestApi
*/
export class SpecRestApi extends RestApiBase {
Expand Down

0 comments on commit f85618c

Please sign in to comment.