Functions that represent AWS CDK enums and builders in the software.amazon.awscdk.services.cloudwatch.actions package.
Functions that represent AWS CDK enums and builders in the software.amazon.awscdk.services.cloudwatch.actions package.
(ec2-instance-action config id item-key)The ec2-instance-action function data interprets values in the provided config data into a
Ec2InstanceAction instance. This simplifies the use of keywords in place of actual enum values in
the configuration provided to builders. The value is found using the cdk.support/lookup-entry
function on the data with the provided namespace id and item-key. The found value is interpretted as follows:
Ec2InstanceAction - the value is returned.:terminate - Ec2InstanceAction/TERMINATE is returned:stop - Ec2InstanceAction/STOP is returned:reboot - Ec2InstanceAction/REBOOT is returned:recover - Ec2InstanceAction/RECOVER is returnedIf a value is not found or matches the above criteria, nil is returned.
The `ec2-instance-action` function data interprets values in the provided config data into a `Ec2InstanceAction` instance. This simplifies the use of keywords in place of actual enum values in the configuration provided to builders. The value is found using the `cdk.support/lookup-entry` function on the data with the provided namespace id and item-key. The found value is interpretted as follows: * instance of `Ec2InstanceAction` - the value is returned. * is `:terminate` - `Ec2InstanceAction/TERMINATE` is returned * is `:stop` - `Ec2InstanceAction/STOP` is returned * is `:reboot` - `Ec2InstanceAction/REBOOT` is returned * is `:recover` - `Ec2InstanceAction/RECOVER` is returned If a value is not found or matches the above criteria, nil is returned.
(ops-item-category config id item-key)The ops-item-category function data interprets values in the provided config data into a
OpsItemCategory instance. This simplifies the use of keywords in place of actual enum values in
the configuration provided to builders. The value is found using the cdk.support/lookup-entry
function on the data with the provided namespace id and item-key. The found value is interpretted as follows:
OpsItemCategory - the value is returned.:recovery - OpsItemCategory/RECOVERY is returned:availability - OpsItemCategory/AVAILABILITY is returned:security - OpsItemCategory/SECURITY is returned:cost - OpsItemCategory/COST is returned:performance - OpsItemCategory/PERFORMANCE is returnedIf a value is not found or matches the above criteria, nil is returned.
The `ops-item-category` function data interprets values in the provided config data into a `OpsItemCategory` instance. This simplifies the use of keywords in place of actual enum values in the configuration provided to builders. The value is found using the `cdk.support/lookup-entry` function on the data with the provided namespace id and item-key. The found value is interpretted as follows: * instance of `OpsItemCategory` - the value is returned. * is `:recovery` - `OpsItemCategory/RECOVERY` is returned * is `:availability` - `OpsItemCategory/AVAILABILITY` is returned * is `:security` - `OpsItemCategory/SECURITY` is returned * is `:cost` - `OpsItemCategory/COST` is returned * is `:performance` - `OpsItemCategory/PERFORMANCE` is returned If a value is not found or matches the above criteria, nil is returned.
(ops-item-severity config id item-key)The ops-item-severity function data interprets values in the provided config data into a
OpsItemSeverity instance. This simplifies the use of keywords in place of actual enum values in
the configuration provided to builders. The value is found using the cdk.support/lookup-entry
function on the data with the provided namespace id and item-key. The found value is interpretted as follows:
OpsItemSeverity - the value is returned.:medium - OpsItemSeverity/MEDIUM is returned:critical - OpsItemSeverity/CRITICAL is returned:low - OpsItemSeverity/LOW is returned:high - OpsItemSeverity/HIGH is returnedIf a value is not found or matches the above criteria, nil is returned.
The `ops-item-severity` function data interprets values in the provided config data into a `OpsItemSeverity` instance. This simplifies the use of keywords in place of actual enum values in the configuration provided to builders. The value is found using the `cdk.support/lookup-entry` function on the data with the provided namespace id and item-key. The found value is interpretted as follows: * instance of `OpsItemSeverity` - the value is returned. * is `:medium` - `OpsItemSeverity/MEDIUM` is returned * is `:critical` - `OpsItemSeverity/CRITICAL` is returned * is `:low` - `OpsItemSeverity/LOW` is returned * is `:high` - `OpsItemSeverity/HIGH` is returned If a value is not found or matches the above criteria, nil is returned.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |