@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:35.961Z") @Stability(value=Stable) public class Annotations extends software.amazon.jsii.JsiiObject
Focused on asserting annotations.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.*; import software.amazon.awscdk.assertions.*; Stack stack; Annotations annotations = Annotations.fromStack(stack);
| 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 |
|---|---|
List<SynthesisMessage> |
findError(String constructPath,
Object message)
Get the set of matching errors of a given construct path and message.
|
List<SynthesisMessage> |
findInfo(String constructPath,
Object message)
Get the set of matching infos of a given construct path and message.
|
List<SynthesisMessage> |
findWarning(String constructPath,
Object message)
Get the set of matching warning of a given construct path and message.
|
static Annotations |
fromStack(Stack stack)
Base your assertions on the messages returned by a synthesized CDK `Stack`.
|
void |
hasError(String constructPath,
Object message)
Assert that an error with the given message exists in the synthesized CDK `Stack`.
|
void |
hasInfo(String constructPath,
Object message)
Assert that an info with the given message exists in the synthesized CDK `Stack`.
|
void |
hasNoError(String constructPath,
Object message)
Assert that an error with the given message does not exist in the synthesized CDK `Stack`.
|
void |
hasNoInfo(String constructPath,
Object message)
Assert that an info with the given message does not exist in the synthesized CDK `Stack`.
|
void |
hasNoWarning(String constructPath,
Object message)
Assert that an warning with the given message does not exist in the synthesized CDK `Stack`.
|
void |
hasWarning(String constructPath,
Object message)
Assert that an warning with the given message exists in the synthesized CDK `Stack`.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected Annotations(software.amazon.jsii.JsiiObjectRef objRef)
protected Annotations(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) @NotNull public static Annotations fromStack(@NotNull Stack stack)
stack - the CDK Stack to run assertions on. This parameter is required.@Stability(value=Stable) @NotNull public List<SynthesisMessage> findError(@NotNull String constructPath, @NotNull Object message)
constructPath - the construct path to the error. This parameter is required.message - the error message as should be expected. This parameter is required.@Stability(value=Stable) @NotNull public List<SynthesisMessage> findInfo(@NotNull String constructPath, @NotNull Object message)
constructPath - the construct path to the info. This parameter is required.message - the info message as should be expected. This parameter is required.@Stability(value=Stable) @NotNull public List<SynthesisMessage> findWarning(@NotNull String constructPath, @NotNull Object message)
constructPath - the construct path to the warning. This parameter is required.message - the warning message as should be expected. This parameter is required.@Stability(value=Stable)
public void hasError(@NotNull
String constructPath,
@NotNull
Object message)
constructPath - the construct path to the error. This parameter is required.message - the error message as should be expected. This parameter is required.@Stability(value=Stable)
public void hasInfo(@NotNull
String constructPath,
@NotNull
Object message)
constructPath - the construct path to the info. This parameter is required.message - the info message as should be expected. This parameter is required.@Stability(value=Stable)
public void hasNoError(@NotNull
String constructPath,
@NotNull
Object message)
constructPath - the construct path to the error. This parameter is required.message - the error message as should be expected. This parameter is required.@Stability(value=Stable)
public void hasNoInfo(@NotNull
String constructPath,
@NotNull
Object message)
constructPath - the construct path to the info. This parameter is required.message - the info message as should be expected. This parameter is required.@Stability(value=Stable)
public void hasNoWarning(@NotNull
String constructPath,
@NotNull
Object message)
constructPath - the construct path to the warning. This parameter is required.message - the warning message as should be expected. This parameter is required.@Stability(value=Stable)
public void hasWarning(@NotNull
String constructPath,
@NotNull
Object message)
constructPath - the construct path to the warning. This parameter is required.message - the warning message as should be expected. This parameter is required.Copyright © 2022. All rights reserved.