DynamoDeleteGlobalSecondaryIndexCheck
The DynamoDeleteGlobalSecondaryIndexCheck changelog check triggers when a XML, YAML, or JSON changeset contains the Dynamo-specific deleteGlobalSecondaryIndex changetype.
About | |
|---|---|
Liquibase version required | 4.31.0+ |
Scope ( |
|
Default status |
|
Default severity (exit code) |
|
Customizable settings | Yes (dynamic) |
Prerequisites
You must have a valid Liquibase Pro license to use this policy check.
You must download the Liquibase AWS extension jar and save it to your
/libfolder.
Uses
Use this check to enforce the use of the Dynamo-specific DynamoDeleteGlobalSecondaryIndexCheck changetype. For example, you can:
Ensure specific changesets include the
DynamoDeleteGlobalSecondaryIndexCheckchangetype.Warns or blocks deployments if the
DynamoDeleteGlobalSecondaryIndexCheckchangetype exists in any particular XML, YAML, or JSON changeset.
Procedure
This check is disabled by default. To enable it, run the enable command:
liquibase checks enable --check-name=DynamoDeleteGlobalSecondaryIndexCheckYou will see this output:
Check 'DynamoDeleteGlobalSecondaryIndexCheck' has been enabled.
+---------------------------------------+-----------+--------+---------+----------+---------------+--------------------------------+
| Short Name | Scope | Type | Status | Severity | Customization | Description |
+---------------------------------------+-----------+--------+---------+----------+---------------+--------------------------------+
| DynamoDeleteGlobalSecondaryIndexCheck | changelog | sql, | enabled | 0 | <None> | This check triggers when a |
| | | xml, | | | | XML,YAML, or JSON changeset |
| | | yaml, | | | | contains the Dynamo-specific |
| | | json | | | | deleteGlobalSecondaryIndex |
| | | | | | | changetype. |
+---------------------------------------+-----------+--------+---------+----------+---------------+--------------------------------+
Liquibase command 'checks enable' was executed successfully.
To set the severity of this check, run:
liquibase checks customize --check-name=DynamoDeleteGlobalSecondaryIndexCheckSet the severity level. This determines the exit code when the check is triggered. Choose one:
INFO (0)MINOR (1)MAJOR (2)CRITICAL (3)BLOCKER (4)