get_curation_policy
async
¶
get_curation_policy(
curation_policy_id: CurationPolicyId,
*,
config_overrides: Optional[AsyncContextClientConfig] = None,
version: Optional[CurationPolicyVersion] = None,
) -> GetCurationPolicyResponse
Returns a curation policy's configuration, status, and policy document.
Parameters:
-
curation_policy_id(CurationPolicyId) –The ID of the curation policy to return.
-
version(Optional[CurationPolicyVersion], default:None) –The version to return:
DRAFTfor the working copy, or a published version number. If you omit it, AWS Context returns the working copy.
Raises:
-
AccessDeniedException–You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
-
InternalServerException–The request failed because of an internal error. Retry the request.
-
ThrottlingException–The request was denied because it exceeded a request rate quota. Wait, then retry the request.
-
ValidationException–The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
-
ResourceNotFoundException–The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Get a published version of a curation policy The following example returns version 1 of a curation policy, including the Cedar policy document that the associated agent contexts enforce.
>>> await client.get_curation_policy(curation_policy_id='pol-3e7a9c1b5d2f4a6e8b0c2d4f6a8b1c3e', version='1')
Source code in docs_src/capo_context/_services/async_context.py
2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 | |