create_automation_rule_v2
¶
create_automation_rule_v2(
*,
config_overrides: Optional[SecurityHubClientConfig] = None,
rule_name: Optional[NonEmptyString] = None,
rule_status: Optional[RuleStatusV2] = None,
description: Optional[NonEmptyString] = None,
rule_order: Optional[RuleOrderValueV2] = None,
criteria: Optional[Criteria] = None,
actions: Optional[AutomationRulesActionListV2] = None,
tags: Optional[TagMap] = None,
client_token: Optional[ClientToken] = None,
) -> CreateAutomationRuleV2Response
Creates a V2 automation rule.
Parameters:
-
rule_name(Optional[NonEmptyString], default:None) –The name of the V2 automation rule.
-
rule_status(Optional[RuleStatusV2], default:None) –The status of the V2 automation rule.
-
description(Optional[NonEmptyString], default:None) –A description of the V2 automation rule.
-
rule_order(Optional[RuleOrderValueV2], default:None) –The value for the rule priority.
-
criteria(Optional[Criteria], default:None) –The filtering type and configuration of the automation rule.
-
actions(Optional[AutomationRulesActionListV2], default:None) –A list of actions to be performed when the rule criteria is met.
-
tags(Optional[TagMap], default:None) –A list of key-value pairs associated with the V2 automation rule.
-
client_token(Optional[ClientToken], default:None) –A unique identifier used to ensure idempotency.
Raises:
-
AccessDeniedException–You don't have permission to perform the action specified in the request.
-
ConflictException–The request causes conflict with the current state of the service resource.
-
InternalServerException–The request has failed due to an internal failure of the service.
-
ServiceQuotaExceededException–The request was rejected because it would exceed the service quota limit.
-
ThrottlingException–The limit on the number of requests per second was exceeded.
-
ValidationException–The request has failed validation because it's missing required fields or has invalid inputs.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_securityhub/_services/security_hub.py
1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 | |