@Generated(value="jsii-pacmak/1.60.0 (build ebcefe6)",
date="2022-06-22T23:27:49.465Z")
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.assertions.*; import software.amazon.awscdk.core.*; 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 |
---|---|
java.util.List<SynthesisMessage> |
findError(java.lang.String constructPath,
java.lang.Object message)
Get the set of matching errors of a given construct path and message.
|
java.util.List<SynthesisMessage> |
findInfo(java.lang.String constructPath,
java.lang.Object message)
Get the set of matching infos of a given construct path and message.
|
java.util.List<SynthesisMessage> |
findWarning(java.lang.String constructPath,
java.lang.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(java.lang.String constructPath,
java.lang.Object message)
Assert that an error with the given message exists in the synthesized CDK `Stack`.
|
void |
hasInfo(java.lang.String constructPath,
java.lang.Object message)
Assert that an info with the given message exists in the synthesized CDK `Stack`.
|
void |
hasNoError(java.lang.String constructPath,
java.lang.Object message)
Assert that an error with the given message does not exist in the synthesized CDK `Stack`.
|
void |
hasNoInfo(java.lang.String constructPath,
java.lang.Object message)
Assert that an info with the given message does not exist in the synthesized CDK `Stack`.
|
void |
hasNoWarning(java.lang.String constructPath,
java.lang.Object message)
Assert that an warning with the given message does not exist in the synthesized CDK `Stack`.
|
void |
hasWarning(java.lang.String constructPath,
java.lang.Object message)
Assert that an warning with the given message exists in the synthesized CDK `Stack`.
|
protected Annotations(software.amazon.jsii.JsiiObjectRef objRef)
protected Annotations(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public static Annotations fromStack(Stack stack)
stack
- the CDK Stack to run assertions on. This parameter is required.public java.util.List<SynthesisMessage> findError(java.lang.String constructPath, java.lang.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.public java.util.List<SynthesisMessage> findInfo(java.lang.String constructPath, java.lang.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.public java.util.List<SynthesisMessage> findWarning(java.lang.String constructPath, java.lang.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.public void hasError(java.lang.String constructPath, java.lang.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.public void hasInfo(java.lang.String constructPath, java.lang.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.public void hasNoError(java.lang.String constructPath, java.lang.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.public void hasNoInfo(java.lang.String constructPath, java.lang.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.public void hasNoWarning(java.lang.String constructPath, java.lang.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.public void hasWarning(java.lang.String constructPath, java.lang.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.