:doc:`MailManager <../../mailmanager>` / Client / create_addon_instance

*********************
create_addon_instance
*********************



.. py:method:: MailManager.Client.create_addon_instance(**kwargs)

  

  Creates an Add On instance for the subscription indicated in the request. The resulting Amazon Resource Name (ARN) can be used in a conditional statement for a rule set or traffic policy.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/mailmanager-2023-10-17/CreateAddonInstance>`_  


  **Request Syntax**
  ::

    response = client.create_addon_instance(
        ClientToken='string',
        AddonSubscriptionId='string',
        Tags=[
            {
                'Key': 'string',
                'Value': 'string'
            },
        ]
    )
    
  :type ClientToken: string
  :param ClientToken: 

    A unique token that Amazon SES uses to recognize subsequent retries of the same request.

    This field is autopopulated if not provided.

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

    The unique ID of a previously created subscription that an Add On instance is created for. You can only have one instance per subscription.

    

  
  :type Tags: list
  :param Tags: 

    The tags used to organize, track, or control access for the resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.

    

  
    - *(dict) --* 

      A key-value pair (the value is optional), that you can define and assign to Amazon Web Services resources.

      

    
      - **Key** *(string) --* **[REQUIRED]** 

        The key of the key-value tag.

        

      
      - **Value** *(string) --* **[REQUIRED]** 

        The value of the key-value tag.

        

      
    

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

    
    ::

      {
          'AddonInstanceId': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **AddonInstanceId** *(string) --* 

        The unique ID of the Add On instance created by this API.

        
  
  **Exceptions**
  
  *   :py:class:`MailManager.Client.exceptions.ValidationException`

  
  *   :py:class:`MailManager.Client.exceptions.ServiceQuotaExceededException`

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

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

  