:doc:`EC2 <../../ec2>` / Client / create_store_image_task

***********************
create_store_image_task
***********************



.. py:method:: EC2.Client.create_store_image_task(**kwargs)

  

  Stores an AMI as a single object in an Amazon S3 bucket.

   

  To use this API, you must have the required permissions. For more information, see `Permissions for storing and restoring AMIs using S3 <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/work-with-ami-store-restore.html#ami-s3-permissions>`__ in the *Amazon EC2 User Guide*.

   

  For more information, see `Store and restore an AMI using S3 <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-store-restore.html>`__ in the *Amazon EC2 User Guide*.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateStoreImageTask>`_  


  **Request Syntax**
  ::

    response = client.create_store_image_task(
        ImageId='string',
        Bucket='string',
        S3ObjectTags=[
            {
                'Key': 'string',
                'Value': 'string'
            },
        ],
        DryRun=True|False
    )
    
  :type ImageId: string
  :param ImageId: **[REQUIRED]** 

    The ID of the AMI.

    

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

    The name of the Amazon S3 bucket in which the AMI object will be stored. The bucket must be in the Region in which the request is being made. The AMI object appears in the bucket only after the upload task has completed.

    

  
  :type S3ObjectTags: list
  :param S3ObjectTags: 

    The tags to apply to the AMI object that will be stored in the Amazon S3 bucket.

    

  
    - *(dict) --* 

      The tags to apply to the AMI object that will be stored in the Amazon S3 bucket. For more information, see `Categorizing your storage using tags <https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-tagging.html>`__ in the *Amazon Simple Storage Service User Guide*.

      

    
      - **Key** *(string) --* 

        The key of the tag.

         

        Constraints: Tag keys are case-sensitive and can be up to 128 Unicode characters in length. May not begin with ``aws``:.

        

      
      - **Value** *(string) --* 

        The value of the tag.

         

        Constraints: Tag values are case-sensitive and can be up to 256 Unicode characters in length.

        

      
    

  :type DryRun: boolean
  :param DryRun: 

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is ``DryRunOperation``. Otherwise, it is ``UnauthorizedOperation``.

    

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

    
    ::

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

    

    - *(dict) --* 
      

      - **ObjectKey** *(string) --* 

        The name of the stored AMI object in the S3 bucket.

        
  