removeClientIDFromOpenIDConnectProvider method
Removes the specified client ID (also known as audience) from the list of client IDs registered for the specified IAM OpenID Connect (OIDC) provider resource object.
This operation is idempotent; it does not fail or return an error if you try to remove a client ID that does not exist.
May throw InvalidInputException. May throw NoSuchEntityException. May throw ServiceFailureException.
Parameter clientID
:
The client ID (also known as audience) to remove from the IAM OIDC
provider resource. For more information about client IDs, see
CreateOpenIDConnectProvider.
Parameter openIDConnectProviderArn
:
The Amazon Resource Name (ARN) of the IAM OIDC provider resource to remove
the client ID from. You can get a list of OIDC provider ARNs by using the
ListOpenIDConnectProviders operation.
For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
Implementation
Future<void> removeClientIDFromOpenIDConnectProvider({
required String clientID,
required String openIDConnectProviderArn,
}) async {
ArgumentError.checkNotNull(clientID, 'clientID');
_s.validateStringLength(
'clientID',
clientID,
1,
255,
isRequired: true,
);
ArgumentError.checkNotNull(
openIDConnectProviderArn, 'openIDConnectProviderArn');
_s.validateStringLength(
'openIDConnectProviderArn',
openIDConnectProviderArn,
20,
2048,
isRequired: true,
);
final $request = <String, dynamic>{};
$request['ClientID'] = clientID;
$request['OpenIDConnectProviderArn'] = openIDConnectProviderArn;
await _protocol.send(
$request,
action: 'RemoveClientIDFromOpenIDConnectProvider',
version: '2010-05-08',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['RemoveClientIDFromOpenIDConnectProviderRequest'],
shapes: shapes,
);
}