start_policy_generation
async
¶
start_policy_generation(
policy_generation_details: PolicyGenerationDetails,
*,
config_overrides: Optional[AsyncAccessAnalyzerClientConfig] = None,
cloud_trail_details: Optional[CloudTrailDetails] = None,
client_token: Optional[str] = None,
) -> StartPolicyGenerationResponse
Starts the policy generation request.
Parameters:
-
policy_generation_details(PolicyGenerationDetails) –Contains the ARN of the IAM entity (user or role) for which you are generating a policy.
-
cloud_trail_details(Optional[CloudTrailDetails], default:None) –A
CloudTrailDetailsobject that contains details about aTrailthat you want to analyze to generate policies. -
client_token(Optional[str], default:None) –A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully, the subsequent retries with the same client token return the result from the original successful request and they have no additional effect.
If you do not specify a client token, one is automatically generated by the Amazon Web Services SDK.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ConflictException–A conflict exception error.
-
InternalServerException–Internal server error.
-
ServiceQuotaExceededException–Service quote met error.
-
ThrottlingException–Throttling limit exceeded error.
-
ValidationException–Validation exception error.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_accessanalyzer/_services/async_access_analyzer.py
1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 | |