:doc:`DataAutomationforBedrock <../../bedrock-data-automation>` / Client / invoke_blueprint_optimization_async

***********************************
invoke_blueprint_optimization_async
***********************************



.. py:method:: DataAutomationforBedrock.Client.invoke_blueprint_optimization_async(**kwargs)

  

  Invoke an async job to perform Blueprint Optimization

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/bedrock-data-automation-2023-07-26/InvokeBlueprintOptimizationAsync>`_  


  **Request Syntax**
  ::

    response = client.invoke_blueprint_optimization_async(
        blueprint={
            'blueprintArn': 'string',
            'stage': 'DEVELOPMENT'|'LIVE'
        },
        samples=[
            {
                'assetS3Object': {
                    's3Uri': 'string',
                    'version': 'string'
                },
                'groundTruthS3Object': {
                    's3Uri': 'string',
                    'version': 'string'
                }
            },
        ],
        outputConfiguration={
            's3Object': {
                's3Uri': 'string',
                'version': 'string'
            }
        },
        dataAutomationProfileArn='string',
        encryptionConfiguration={
            'kmsKeyId': 'string',
            'kmsEncryptionContext': {
                'string': 'string'
            }
        },
        tags=[
            {
                'key': 'string',
                'value': 'string'
            },
        ]
    )
    
  :type blueprint: dict
  :param blueprint: **[REQUIRED]** 

    Blueprint to be optimized

    

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

      Arn of blueprint.

      

    
    - **stage** *(string) --* 

      Stage of blueprint.

      

    
  
  :type samples: list
  :param samples: **[REQUIRED]** 

    List of Blueprint Optimization Samples

    

  
    - *(dict) --* 

      Blueprint Recommendation Sample

      

    
      - **assetS3Object** *(dict) --* **[REQUIRED]** 

        S3 Object of the asset

        

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

          S3 uri.

          

        
        - **version** *(string) --* 

          S3 object version.

          

        
      
      - **groundTruthS3Object** *(dict) --* **[REQUIRED]** 

        Ground truth for the Blueprint and Asset combination

        

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

          S3 uri.

          

        
        - **version** *(string) --* 

          S3 object version.

          

        
      
    

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

    Output configuration where the results should be placed

    

  
    - **s3Object** *(dict) --* **[REQUIRED]** 

      S3 object.

      

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

        S3 uri.

        

      
      - **version** *(string) --* 

        S3 object version.

        

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

    Data automation profile ARN

    

  
  :type encryptionConfiguration: dict
  :param encryptionConfiguration: 

    Encryption configuration.

    

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

      KMS Key Identifier

      

    
    - **kmsEncryptionContext** *(dict) --* 

      KMS Encryption Context

      

    
      - *(string) --* 

        Encryption context key.

        

      
        - *(string) --* 

          Encryption context value.

          

        
  

  
  :type tags: list
  :param tags: 

    List of tags.

    

  
    - *(dict) --* 

      Key value pair of a tag

      

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

        Defines the context of the tag.

        

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

        Defines the value within the context. e.g. <key=reason, value=training>.

        

      
    

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

    
    ::

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

    

    - *(dict) --* 

      Invoke Blueprint Optimization Async Response

      
      

      - **invocationArn** *(string) --* 

        ARN of the blueprint optimization job

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

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

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

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

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

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

  