Skip to content

Commit

Permalink
docs(s3-deployment): dataJson should be jsonData (#27357)
Browse files Browse the repository at this point in the history
The aws_s3_deployment.Source has jsonData and yamlData, but one of the
comments that generates documentation says dataJson and dataYaml, which
don't exist.

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
mtfurlan authored Oct 2, 2023
1 parent 26d4afe commit a367d91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/aws-cdk-lib/aws-s3-deployment/lib/source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ export interface ISource {
* Source.asset('/local/path/to/directory')
* Source.asset('/local/path/to/a/file.zip')
* Source.data('hello/world/file.txt', 'Hello, world!')
* Source.dataJson('config.json', { baz: topic.topicArn })
* Source.dataYaml('config.yaml', { baz: topic.topicArn })
* Source.jsonData('config.json', { baz: topic.topicArn })
* Source.yamlData('config.yaml', { baz: topic.topicArn })
*
*/
export class Source {
Expand Down

0 comments on commit a367d91

Please sign in to comment.