Skip to content

Latest commit

 

History

History
122 lines (57 loc) · 2.38 KB

File metadata and controls

122 lines (57 loc) · 2.38 KB

Home > @codemonger-io/cdk-rest-api-with-spec > IResourceWithSpec

IResourceWithSpec interface

This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

aws_apigateway.IResource augmented with the features to build the OpenAPI definition.

Signature:

export interface IResourceWithSpec extends apigateway.Resource 

Extends: apigateway.Resource

Remarks

Although this interface actually inherits aws_apigateway.Resource, you should rely on only properties defined in aws_apigateway.IResource.

Properties

Property

Modifiers

Type

Description

defaultMethodOptions?

MethodOptionsWithSpec

(BETA) (Optional) Default method options with the OpenAPI definition.

parentResource?

IResourceWithSpec

(BETA) (Optional) Parent resource.

Methods

Method

Description

addMethod(httpMethod, target, options)

(BETA) Adds a method with the OpenAPI definition.

addResource(pathPart, options)

(BETA) Adds a new child resource with the OpenAPI definition.