-
Notifications
You must be signed in to change notification settings - Fork 246
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
Inconsistency between examples and what really works #1641
Comments
…eClass The `@default` was not updated to reflect the change of enum constants to `SHOUT_CASE`. This corrects that. Related: aws/jsii#1641
Hey! The problem on The other problems are probably a bug in how the So in any case, thank you for reporting this! |
…eClass (#7926) The `@default` was not updated to reflect the change of enum constants to `SHOUT_CASE`. This corrects that. Related: aws/jsii#1641
…eClass (aws#7926) The `@default` was not updated to reflect the change of enum constants to `SHOUT_CASE`. This corrects that. Related: aws/jsii#1641
This issue has not received any attention in 2 years. If you want to keep this issue open, please leave a comment below and auto-close will be canceled. |
This issue is important |
The documentation is now correct, showing the "structified" Python version, rather than the bare JSON (which is sent unmodified over the wire): source_bucket = s3.Bucket(self, "Bucket")
distribution = cloudfront.CloudFrontWebDistribution(self, "MyDistribution",
origin_configs=[cloudfront.SourceConfiguration(
s3_origin_source=cloudfront.S3OriginConfig(
s3_bucket_source=source_bucket
),
behaviors=[cloudfront.Behavior(is_default_behavior=True)]
)
]
) |
This issue is now closed. Comments on closed issues are hard for our team to see. |
🐛 Bug Report
Affected Languages
TypeScript
orJavascript
Python
Java
C#
,F#
, ...)General Information
externals
#97-Ubuntu SMP Wed Apr 1 03:25:46 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux`What is the problem?
On the CDK 1.38.0 documentation, the example seems to be right (in
snake_case
), but what really works is incamelCase
.Here is an example:
https://docs.aws.amazon.com/cdk/api/latest/python/aws_cdk.aws_cloudfront.README.html
the example says:
but what really works is:
Since CDK tries to follow pep8 and parameters and methods
snake_case
, the example is right but the classes themselves are not. Hence I did not fill the bug on #826Another Example:
source: https://docs.aws.amazon.com/cdk/api/latest/python/aws_cdk.aws_cloudfront/CloudFrontWebDistribution.html
price_class (Optional[PriceClass]) – The price class for the distribution (this impacts how many locations CloudFront uses for your distribution, and billing). Default: PriceClass.PriceClass100 the cheapest option for CloudFront is picked by default.
The valid name is actually
PriceClass.PRICE_CLASS_100
The text was updated successfully, but these errors were encountered: