disassociate_access_policy
async
¶
disassociate_access_policy(
cluster_name: String,
principal_arn: String,
policy_arn: String,
*,
config_overrides: Optional[AsyncEKSClientConfig] = None,
) -> DisassociateAccessPolicyResponse
Disassociates an access policy from an access entry.
Parameters:
-
cluster_name(String) –The name of your cluster.
-
principal_arn(String) –The ARN of the IAM principal for the
AccessEntry. -
policy_arn(String) –The ARN of the policy to disassociate from the access entry. For a list of associated policies ARNs, use
ListAssociatedAccessPolicies.
Raises:
-
InvalidRequestException–The request is invalid given the state of the cluster. Check the state of the cluster and the associated operations.
-
ResourceNotFoundException–The specified resource could not be found. You can view your available clusters with
ListClusters. You can view your available managed node groups withListNodegroups. Amazon EKS clusters and node groups are Amazon Web Services Region specific. -
ServerException–These errors are usually caused by a server-side issue.
-
UnknownServiceError–The service returned an error code this client does not model.