Optionalprops: AspectPropsProtectedaddConstruct to add the message to
The API being deprecated in the format module.Class.property (e.g. @aws-cdk/core.Construct.node).
The deprecation message to display, with information about alternatives.
ProtectedaddAdds an { "error": } metadata entry to this construct. The toolkit will fail deployment of any stack that has errors reported against it.
Target construct
The error message
ProtectedaddAdds an acknowledgeable info metadata entry to this construct.
The CLI will display the info when an app is synthesized. If the info is acknowledged using acknowledgeInfo(), it will not be shown by the CLI.
Target construct
— The unique identifier for the warning. This can be used to acknowledge the warning
— The info message
ProtectedaddAdds an acknowledgeable warning metadata entry to this construct.
The CLI will display the warning when an app is synthesized, or fail if run in --strict mode.
If the warning is acknowledged using acknowledgeWarning(), it will not be shown by the CLI, and will notcause --strict mode to fail synthesis.
Target construct
— The unique identifier for the warning. This can be used to acknowledge the warning
— The warning message
All aspects can visit an IConstruct
Adds a deprecation warning for a specific API.
Deprecations will be added only once per construct as a warning and will be deduplicated based on the api.
If the environment variable CDK_BLOCK_DEPRECATIONS is set, this method will throw an error instead with the deprecation message.