Skip to content

Commit 4d30993

Browse files
authored
Merge branch 'main' into issue-20854
2 parents 51fbc87 + 588ddf1 commit 4d30993

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

packages/@aws-cdk/aws-elasticloadbalancingv2/test/nlb/load-balancer.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ describe('tests', () => {
5959
const endpointService = new ec2.VpcEndpointService(stack, 'EndpointService', { vpcEndpointServiceLoadBalancers: [nlb] });
6060

6161
// WHEN
62-
const importedPHZ = route53.PublicHostedZone.fromHostedZoneAttributes(stack, 'MyPHZ', {
62+
const importedPHZ = route53.PublicHostedZone.fromPublicHostedZoneAttributes(stack, 'MyPHZ', {
6363
hostedZoneId: 'sampleid',
6464
zoneName: 'MyZone',
6565
});

packages/@aws-cdk/aws-route53/lib/hosted-zone.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,8 @@ export class PublicHostedZone extends HostedZone implements IPublicHostedZone {
250250
* @param id the logical name of this Construct
251251
* @param attrs the PublicHostedZoneAttributes (hosted zone ID and hosted zone name)
252252
*/
253-
public static fromPublicHostedZoneAttributes(scope: Construct, id: string, attrs: PublicHostedZoneAttributes): IHostedZone {
254-
class Import extends Resource implements IHostedZone {
253+
public static fromPublicHostedZoneAttributes(scope: Construct, id: string, attrs: PublicHostedZoneAttributes): IPublicHostedZone {
254+
class Import extends Resource implements IPublicHostedZone {
255255
public readonly hostedZoneId = attrs.hostedZoneId;
256256
public readonly zoneName = attrs.zoneName;
257257
public get hostedZoneArn(): string {

0 commit comments

Comments
 (0)