disassociateAccessPolicy method

Future<void> disassociateAccessPolicy({
  1. required String clusterName,
  2. required String policyArn,
  3. required String principalArn,
})

Disassociates an access policy from an access entry.

May throw InvalidRequestException. May throw ResourceNotFoundException. May throw ServerException.

Parameter clusterName : The name of your cluster.

Parameter policyArn : The ARN of the policy to disassociate from the access entry. For a list of associated policies ARNs, use ListAssociatedAccessPolicies.

Parameter principalArn : The ARN of the IAM principal for the AccessEntry.

Implementation

Future<void> disassociateAccessPolicy({
  required String clusterName,
  required String policyArn,
  required String principalArn,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/clusters/${Uri.encodeComponent(clusterName)}/access-entries/${Uri.encodeComponent(principalArn)}/access-policies/${Uri.encodeComponent(policyArn)}',
    exceptionFnMap: _exceptionFns,
  );
}