:doc:`BedrockAgentCoreControl <../../bedrock-agentcore-control>` / Client / create_api_key_credential_provider

**********************************
create_api_key_credential_provider
**********************************



.. py:method:: BedrockAgentCoreControl.Client.create_api_key_credential_provider(**kwargs)

  

  Creates a new API key credential provider.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-control-2023-06-05/CreateApiKeyCredentialProvider>`_  


  **Request Syntax**
  ::

    response = client.create_api_key_credential_provider(
        name='string',
        apiKey='string',
        tags={
            'string': 'string'
        }
    )
    
  :type name: string
  :param name: **[REQUIRED]** 

    The name of the API key credential provider. The name must be unique within your account.

    

  
  :type apiKey: string
  :param apiKey: **[REQUIRED]** 

    The API key to use for authentication. This value is encrypted and stored securely.

    

  
  :type tags: dict
  :param tags: 

    A map of tag keys and values to assign to the API key credential provider. Tags enable you to categorize your resources in different ways, for example, by purpose, owner, or environment.

    

  
    - *(string) --* 

    
      - *(string) --* 

      


  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'apiKeySecretArn': {
              'secretArn': 'string'
          },
          'name': 'string',
          'credentialProviderArn': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **apiKeySecretArn** *(dict) --* 

        The Amazon Resource Name (ARN) of the secret containing the API key.

        
        

        - **secretArn** *(string) --* 

          The Amazon Resource Name (ARN) of the secret in AWS Secrets Manager.

          
    
      

      - **name** *(string) --* 

        The name of the created API key credential provider.

        
      

      - **credentialProviderArn** *(string) --* 

        The Amazon Resource Name (ARN) of the created API key credential provider.

        
  
  **Exceptions**
  
  *   :py:class:`BedrockAgentCoreControl.Client.exceptions.ServiceQuotaExceededException`

  
  *   :py:class:`BedrockAgentCoreControl.Client.exceptions.UnauthorizedException`

  
  *   :py:class:`BedrockAgentCoreControl.Client.exceptions.ResourceLimitExceededException`

  
  *   :py:class:`BedrockAgentCoreControl.Client.exceptions.ValidationException`

  
  *   :py:class:`BedrockAgentCoreControl.Client.exceptions.ConflictException`

  
  *   :py:class:`BedrockAgentCoreControl.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`BedrockAgentCoreControl.Client.exceptions.DecryptionFailure`

  
  *   :py:class:`BedrockAgentCoreControl.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`BedrockAgentCoreControl.Client.exceptions.ThrottlingException`

  
  *   :py:class:`BedrockAgentCoreControl.Client.exceptions.InternalServerException`

  
  *   :py:class:`BedrockAgentCoreControl.Client.exceptions.EncryptionFailure`

  