:doc:`ResilienceHub <../../resiliencehub>` / Client / delete_app_input_source

***********************
delete_app_input_source
***********************



.. py:method:: ResilienceHub.Client.delete_app_input_source(**kwargs)

  

  Deletes the input source and all of its imported resources from the Resilience Hub application.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/resiliencehub-2020-04-30/DeleteAppInputSource>`_  


  **Request Syntax**
  ::

    response = client.delete_app_input_source(
        appArn='string',
        clientToken='string',
        eksSourceClusterNamespace={
            'eksClusterArn': 'string',
            'namespace': 'string'
        },
        sourceArn='string',
        terraformSource={
            's3StateFileUrl': 'string'
        }
    )
    
  :type appArn: string
  :param appArn: **[REQUIRED]** 

    Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn: ``partition``:resiliencehub: ``region``: ``account``:app/ ``app-id``. For more information about ARNs, see `Amazon Resource Names (ARNs) <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html>`__ in the *Amazon Web Services General Reference* guide.

    

  
  :type clientToken: string
  :param clientToken: 

    Used for an idempotency token. A client token is a unique, case-sensitive string of up to 64 ASCII characters. You should not reuse the same client token for other API requests.

    This field is autopopulated if not provided.

  
  :type eksSourceClusterNamespace: dict
  :param eksSourceClusterNamespace: 

    The namespace on your Amazon Elastic Kubernetes Service cluster that you want to delete from the Resilience Hub application.

    

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

      Amazon Resource Name (ARN) of the Amazon Elastic Kubernetes Service cluster. The format for this ARN is: arn: ``aws``:eks: ``region``: ``account-id``:cluster/ ``cluster-name``. For more information about ARNs, see `Amazon Resource Names (ARNs) <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html>`__ in the *Amazon Web Services General Reference* guide.

      

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

      Name of the namespace that is located on your Amazon Elastic Kubernetes Service cluster.

      

    
  
  :type sourceArn: string
  :param sourceArn: 

    The Amazon Resource Name (ARN) of the imported resource you want to remove from the Resilience Hub application. For more information about ARNs, see `Amazon Resource Names (ARNs) <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html>`__ in the *Amazon Web Services General Reference* guide.

    

  
  :type terraformSource: dict
  :param terraformSource: 

    The imported Terraform s3 state ﬁle you want to remove from the Resilience Hub application.

    

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

      The URL of the Terraform s3 state file you need to import.

      

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

    
    ::

      {
          'appArn': 'string',
          'appInputSource': {
              'eksSourceClusterNamespace': {
                  'eksClusterArn': 'string',
                  'namespace': 'string'
              },
              'importType': 'CfnStack'|'Resource'|'AppRegistryApp'|'ResourceGroup'|'Terraform'|'EKS',
              'resourceCount': 123,
              'sourceArn': 'string',
              'sourceName': 'string',
              'terraformSource': {
                  's3StateFileUrl': 'string'
              }
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **appArn** *(string) --* 

        Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn: ``partition``:resiliencehub: ``region``: ``account``:app/ ``app-id``. For more information about ARNs, see `Amazon Resource Names (ARNs) <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html>`__ in the *Amazon Web Services General Reference* guide.

        
      

      - **appInputSource** *(dict) --* 

        Name of the input source from where the application resource is imported from.

        
        

        - **eksSourceClusterNamespace** *(dict) --* 

          The namespace on your Amazon Elastic Kubernetes Service cluster.

          
          

          - **eksClusterArn** *(string) --* 

            Amazon Resource Name (ARN) of the Amazon Elastic Kubernetes Service cluster. The format for this ARN is: arn: ``aws``:eks: ``region``: ``account-id``:cluster/ ``cluster-name``. For more information about ARNs, see `Amazon Resource Names (ARNs) <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html>`__ in the *Amazon Web Services General Reference* guide.

            
          

          - **namespace** *(string) --* 

            Name of the namespace that is located on your Amazon Elastic Kubernetes Service cluster.

            
      
        

        - **importType** *(string) --* 

          The resource type of the input source.

          
        

        - **resourceCount** *(integer) --* 

          The number of resources.

          
        

        - **sourceArn** *(string) --* 

          The Amazon Resource Name (ARN) of the input source. For more information about ARNs, see `Amazon Resource Names (ARNs) <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html>`__ in the *Amazon Web Services General Reference* guide.

          
        

        - **sourceName** *(string) --* 

          The name of the input source.

          
        

        - **terraformSource** *(dict) --* 

          The name of the Terraform s3 state ﬁle.

          
          

          - **s3StateFileUrl** *(string) --* 

            The URL of the Terraform s3 state file you need to import.

            
      
    
  
  **Exceptions**
  
  *   :py:class:`ResilienceHub.Client.exceptions.InternalServerException`

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

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

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

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

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

  