@Generated(value="jsii-pacmak/1.46.0 (build cd08c55)", date="2021-12-03T14:55:51.009Z") @Stability(value=Experimental) public class Annotations extends software.amazon.jsii.JsiiObject
Modifier | Constructor and Description |
---|---|
protected |
Annotations(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Annotations(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
void |
addError(String message)
(experimental) Adds an { "error":
|
void |
addInfo(String message)
(experimental) Adds an info metadata entry to this construct.
|
void |
addWarning(String message)
(experimental) Adds a warning metadata entry to this construct.
|
static Annotations |
of(software.constructs.IConstruct scope)
(experimental) Returns the annotations API for a construct scope.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
protected Annotations(software.amazon.jsii.JsiiObjectRef objRef)
protected Annotations(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental) @NotNull public static Annotations of(@NotNull software.constructs.IConstruct scope)
scope
- The scope. This parameter is required.@Stability(value=Experimental) public void addError(@NotNull String message)
The toolkit will fail synthesis when errors are reported.
message
- The error message. This parameter is required.@Stability(value=Experimental) public void addInfo(@NotNull String message)
The CLI will display the info message when apps are synthesized.
message
- The info message. This parameter is required.@Stability(value=Experimental) public void addWarning(@NotNull String message)
The CLI will display the warning when an app is synthesized. In a future release the CLI might introduce a --strict flag which will then fail the synthesis if it encounters a warning.
message
- The warning message. This parameter is required.Copyright © 2021. All rights reserved.