IAM / Client / add_client_id_to_open_id_connect_provider
add_client_id_to_open_id_connect_provider#
- IAM.Client.add_client_id_to_open_id_connect_provider(**kwargs)#
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.
See also: AWS API Documentation
Request Syntax
response = client.add_client_id_to_open_id_connect_provider( OpenIDConnectProviderArn='string', ClientID='string' )
- Parameters:
OpenIDConnectProviderArn (string) –
[REQUIRED]
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.
ClientID (string) –
[REQUIRED]
The client ID (also known as audience) to add to the IAM OpenID Connect provider resource.
- Returns:
None
Exceptions
IAM.Client.exceptions.InvalidInputException
IAM.Client.exceptions.NoSuchEntityException
IAM.Client.exceptions.LimitExceededException
IAM.Client.exceptions.ServiceFailureException
Examples
The following add-client-id-to-open-id-connect-provider command adds the client ID my-application-ID to the OIDC provider named server.example.com:
response = client.add_client_id_to_open_id_connect_provider( ClientID='my-application-ID', OpenIDConnectProviderArn='arn:aws:iam::123456789012:oidc-provider/server.example.com', ) print(response)
Expected Output:
{ 'ResponseMetadata': { '...': '...', }, }