:doc:`FIS <../../fis>` / Client / create_target_account_configuration

***********************************
create_target_account_configuration
***********************************



.. py:method:: FIS.Client.create_target_account_configuration(**kwargs)

  

  Creates a target account configuration for the experiment template. A target account configuration is required when ``accountTargeting`` of ``experimentOptions`` is set to ``multi-account``. For more information, see `experiment options <https://docs.aws.amazon.com/fis/latest/userguide/experiment-options.html>`__ in the *Fault Injection Service User Guide*.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/fis-2020-12-01/CreateTargetAccountConfiguration>`_  


  **Request Syntax**
  ::

    response = client.create_target_account_configuration(
        clientToken='string',
        experimentTemplateId='string',
        accountId='string',
        roleArn='string',
        description='string'
    )
    
  :type clientToken: string
  :param clientToken: 

    Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

    This field is autopopulated if not provided.

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

    The experiment template ID.

    

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

    The Amazon Web Services account ID of the target account.

    

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

    The Amazon Resource Name (ARN) of an IAM role for the target account.

    

  
  :type description: string
  :param description: 

    The description of the target account.

    

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

    
    ::

      {
          'targetAccountConfiguration': {
              'roleArn': 'string',
              'accountId': 'string',
              'description': 'string'
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **targetAccountConfiguration** *(dict) --* 

        Information about the target account configuration.

        
        

        - **roleArn** *(string) --* 

          The Amazon Resource Name (ARN) of an IAM role for the target account.

          
        

        - **accountId** *(string) --* 

          The Amazon Web Services account ID of the target account.

          
        

        - **description** *(string) --* 

          The description of the target account.

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

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

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

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

  