Skip to content

Commit 4293679

Browse files
docs(aws-apigatewayv2-alpha): update domain name documentation (#23462)
---- I am requesting an update to `apigwv2.DomainName`, which accepts `domainName` as a prop. Current documentation has an error, it currently says: ``` const domainName = 'example.com'; const dn = new apigwv2.DomainName(this, 'DN', { domainName, certificate: acm.Certificate.fromCertificateArn(this, 'cert', certArn), }); ``` When you run the above ☝️ it errors out. It should read: ``` const dn = new apigwv2.DomainName(this, 'DN', { domainName: domainName, certificate: acm.Certificate.fromCertificateArn(this, 'cert', certArn), }); ``` ### All Submissions: * [X] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 2981313 commit 4293679

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@aws-cdk/aws-apigatewayv2/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ const certArn = 'arn:aws:acm:us-east-1:111111111111:certificate';
184184
const domainName = 'example.com';
185185

186186
const dn = new apigwv2.DomainName(this, 'DN', {
187-
domainName,
187+
domainName: domainName,
188188
certificate: acm.Certificate.fromCertificateArn(this, 'cert', certArn),
189189
});
190190

0 commit comments

Comments
 (0)