:doc:`SecurityHub <../../securityhub>` / Client / create_connector_v2

*******************
create_connector_v2
*******************



.. py:method:: SecurityHub.Client.create_connector_v2(**kwargs)

  

  Grants permission to create a connectorV2 based on input parameters.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/CreateConnectorV2>`_  


  **Request Syntax**
  ::

    response = client.create_connector_v2(
        Name='string',
        Description='string',
        Provider={
            'JiraCloud': {
                'ProjectKey': 'string'
            },
            'ServiceNow': {
                'InstanceName': 'string',
                'SecretArn': 'string'
            }
        },
        KmsKeyArn='string',
        Tags={
            'string': 'string'
        },
        ClientToken='string'
    )
    
  :type Name: string
  :param Name: **[REQUIRED]** 

    The unique name of the connectorV2.

    

  
  :type Description: string
  :param Description: 

    The description of the connectorV2.

    

  
  :type Provider: dict
  :param Provider: **[REQUIRED]** 

    The third-party provider’s service configuration.

    .. note::    This is a Tagged Union structure. Only one of the     following top level keys can be set: ``JiraCloud``, ``ServiceNow``. 

  
    - **JiraCloud** *(dict) --* 

      The configuration settings required to establish an integration with Jira Cloud.

      

    
      - **ProjectKey** *(string) --* 

        The project key for a JiraCloud instance.

        

      
    
    - **ServiceNow** *(dict) --* 

      The configuration settings required to establish an integration with ServiceNow ITSM.

      

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

        The instance name of ServiceNow ITSM.

        

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

        The Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager secret that contains the ServiceNow credentials.

        

      
    
  
  :type KmsKeyArn: string
  :param KmsKeyArn: 

    The Amazon Resource Name (ARN) of KMS key used to encrypt secrets for the connectorV2.

    

  
  :type Tags: dict
  :param Tags: 

    The tags to add to the connectorV2 when you create.

    

  
    - *(string) --* 

    
      - *(string) --* 

      


  :type ClientToken: string
  :param ClientToken: 

    A unique identifier used to ensure idempotency.

    This field is autopopulated if not provided.

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

    
    ::

      {
          'ConnectorArn': 'string',
          'ConnectorId': 'string',
          'AuthUrl': 'string',
          'ConnectorStatus': 'CONNECTED'|'FAILED_TO_CONNECT'|'PENDING_CONFIGURATION'|'PENDING_AUTHORIZATION'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **ConnectorArn** *(string) --* 

        The Amazon Resource Name (ARN) of the connectorV2.

        
      

      - **ConnectorId** *(string) --* 

        The UUID of the connectorV2 to identify connectorV2 resource.

        
      

      - **AuthUrl** *(string) --* 

        The Url provide to customers for OAuth auth code flow.

        
      

      - **ConnectorStatus** *(string) --* 

        The current status of the connectorV2.

        
  
  **Exceptions**
  
  *   :py:class:`SecurityHub.Client.exceptions.AccessDeniedException`

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

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

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

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

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

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

  