Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(apigateway): move url property to RestApiBase #27742

Merged
Merged
14 changes: 7 additions & 7 deletions packages/aws-cdk-lib/aws-apigateway/lib/restapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,13 @@ export abstract class RestApiBase extends Resource implements IRestApi {
return this._domainName;
}

/**
* The deployed root URL of this REST API.
*/
public get url() {
return this.urlForPath();
}

/**
* The ID of this API Gateway RestApi.
*/
Expand Down Expand Up @@ -837,13 +844,6 @@ export class RestApi extends RestApiBase {
this.node.addValidation({ validate: () => this.validateRestApi() });
}

/**
* The deployed root URL of this REST API.
*/
public get url() {
return this.urlForPath();
}

/**
* Adds a new model.
*/
Expand Down
Loading