list_policy_versions
¶
list_policy_versions(
policy_arn: UnqualifiedPolicyArn,
*,
config_overrides: Optional[MPAClientConfig] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[Token] = None,
) -> ListPolicyVersionsResponse
Returns a list of the versions for policies. Policies define the permissions for team resources.
Parameters:
-
max_results(Optional[MaxResults], default:None) –The maximum number of items to return in the response. If more results exist than the specified
MaxResultsvalue, a token is included in the response so that you can retrieve the remaining results. -
next_token(Optional[Token], default:None) –If present, indicates that more output is available than is included in the current response. Use this value in the
NextTokenrequest parameter in a next call to the operation to get more output. You can repeat this until theNextTokenresponse element returnsnull. -
policy_arn(UnqualifiedPolicyArn) –Amazon Resource Name (ARN) for the policy.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action. Check your permissions, and try again.
-
InternalServerException–The service encountered an internal error. Try your request again. If the problem persists, contact Amazon Web Services Support.
-
ResourceNotFoundException–The specified resource doesn't exist. Check the resource ID, and try again.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input fails to satisfy the constraints specified by an Amazon Web Services service.
-
UnknownServiceError–The service returned an error code this client does not model.