addClientIDToOpenIDConnectProvider method

Future<void> addClientIDToOpenIDConnectProvider({
  1. required String clientID,
  2. required String openIDConnectProviderArn,
})

Adds a new client ID (also known as audience) to the list of client IDs already registered for the specified IAM OpenID Connect (OIDC) provider resource.

This operation is idempotent; it does not fail or return an error if you add an existing client ID to the provider.

May throw InvalidInputException. May throw NoSuchEntityException. May throw LimitExceededException. May throw ServiceFailureException.

Parameter clientID : The client ID (also known as audience) to add to the IAM OpenID Connect provider resource.

Parameter openIDConnectProviderArn : The Amazon Resource Name (ARN) of the IAM OpenID Connect (OIDC) provider resource to add the client ID to. You can get a list of OIDC provider ARNs by using the ListOpenIDConnectProviders operation.

Implementation

Future<void> addClientIDToOpenIDConnectProvider({
  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: 'AddClientIDToOpenIDConnectProvider',
    version: '2010-05-08',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['AddClientIDToOpenIDConnectProviderRequest'],
    shapes: shapes,
  );
}