@Stability(value=Experimental) public static final class IntegTestProps.Builder extends Object implements software.amazon.jsii.Builder<IntegTestProps>
IntegTestProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
IntegTestProps.Builder |
allowDestroy(List<String> allowDestroy)
Sets the value of
TestOptions.getAllowDestroy() |
IntegTestProps |
build()
Builds the configured instance.
|
IntegTestProps.Builder |
cdkCommandOptions(CdkCommands cdkCommandOptions)
Sets the value of
TestOptions.getCdkCommandOptions() |
IntegTestProps.Builder |
diffAssets(Boolean diffAssets)
Sets the value of
TestOptions.getDiffAssets() |
IntegTestProps.Builder |
hooks(Hooks hooks)
Sets the value of
TestOptions.getHooks() |
IntegTestProps.Builder |
regions(List<String> regions)
Sets the value of
TestOptions.getRegions() |
IntegTestProps.Builder |
stackUpdateWorkflow(Boolean stackUpdateWorkflow)
Sets the value of
TestOptions.getStackUpdateWorkflow() |
IntegTestProps.Builder |
testCases(List<? extends Stack> testCases)
Sets the value of
IntegTestProps.getTestCases() |
@Stability(value=Experimental) public IntegTestProps.Builder testCases(List<? extends Stack> testCases)
IntegTestProps.getTestCases()testCases - List of test cases that make up this test. This parameter is required.this@Stability(value=Experimental) public IntegTestProps.Builder allowDestroy(List<String> allowDestroy)
TestOptions.getAllowDestroy()allowDestroy - List of CloudFormation resource types in this stack that can be destroyed as part of an update without failing the test.
This list should only include resources that for this specific
integration test we are sure will not cause errors or an outage if
destroyed. For example, maybe we know that a new resource will be created
first before the old resource is destroyed which prevents any outage.
e.g. ['AWS::IAM::Role']
this@Stability(value=Experimental) public IntegTestProps.Builder cdkCommandOptions(CdkCommands cdkCommandOptions)
TestOptions.getCdkCommandOptions()cdkCommandOptions - Additional options to use for each CDK command.this@Stability(value=Experimental) public IntegTestProps.Builder diffAssets(Boolean diffAssets)
TestOptions.getDiffAssets()diffAssets - Whether or not to include asset hashes in the diff Asset hashes can introduces a lot of unneccessary noise into tests, but there are some cases where asset hashes _should_ be included.
For example
any tests involving custom resources or bundlingthis@Stability(value=Experimental) public IntegTestProps.Builder hooks(Hooks hooks)
TestOptions.getHooks()hooks - Additional commands to run at predefined points in the test workflow.
e.g. { postDeploy: ['yarn', 'test'] }this@Stability(value=Experimental) public IntegTestProps.Builder regions(List<String> regions)
TestOptions.getRegions()regions - Limit deployment to these regions.this@Stability(value=Experimental) public IntegTestProps.Builder stackUpdateWorkflow(Boolean stackUpdateWorkflow)
TestOptions.getStackUpdateWorkflow()stackUpdateWorkflow - Run update workflow on this test case This should only be set to false to test scenarios that are not possible to test as part of the update workflow.this@Stability(value=Experimental) public IntegTestProps build()
build in interface software.amazon.jsii.Builder<IntegTestProps>IntegTestPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.