:doc:`MediaPackageVod <../../mediapackage-vod>` / Client / create_asset

************
create_asset
************



.. py:method:: MediaPackageVod.Client.create_asset(**kwargs)

  Creates a new MediaPackage VOD Asset resource.

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/CreateAsset>`_  


  **Request Syntax**
  ::

    response = client.create_asset(
        Id='string',
        PackagingGroupId='string',
        ResourceId='string',
        SourceArn='string',
        SourceRoleArn='string',
        Tags={
            'string': 'string'
        }
    )
    
  :type Id: string
  :param Id: **[REQUIRED]** The unique identifier for the Asset.

  
  :type PackagingGroupId: string
  :param PackagingGroupId: **[REQUIRED]** The ID of the PackagingGroup for the Asset.

  
  :type ResourceId: string
  :param ResourceId: The resource ID to include in SPEKE key requests.

  
  :type SourceArn: string
  :param SourceArn: **[REQUIRED]** ARN of the source object in S3.

  
  :type SourceRoleArn: string
  :param SourceRoleArn: **[REQUIRED]** The IAM role ARN used to access the source S3 bucket.

  
  :type Tags: dict
  :param Tags: A collection of tags associated with a resource

  
    - *(string) --* 

    
      - *(string) --* 

      


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

    
    ::

      {
          'Arn': 'string',
          'CreatedAt': 'string',
          'EgressEndpoints': [
              {
                  'PackagingConfigurationId': 'string',
                  'Status': 'string',
                  'Url': 'string'
              },
          ],
          'Id': 'string',
          'PackagingGroupId': 'string',
          'ResourceId': 'string',
          'SourceArn': 'string',
          'SourceRoleArn': 'string',
          'Tags': {
              'string': 'string'
          }
      }
      
    **Response Structure**

    

    - *(dict) --* The new MediaPackage VOD Asset resource.
      

      - **Arn** *(string) --* The ARN of the Asset.
      

      - **CreatedAt** *(string) --* The time the Asset was initially submitted for Ingest.
      

      - **EgressEndpoints** *(list) --* The list of egress endpoints available for the Asset.
        

        - *(dict) --* The endpoint URL used to access an Asset using one PackagingConfiguration.
          

          - **PackagingConfigurationId** *(string) --* The ID of the PackagingConfiguration being applied to the Asset.
          

          - **Status** *(string) --* The current processing status of the asset used for the packaging configuration. The status can be either QUEUED, PROCESSING, PLAYABLE, or FAILED. Status information won't be available for most assets ingested before 2021-09-30.
          

          - **Url** *(string) --* The URL of the parent manifest for the repackaged Asset.
      
    
      

      - **Id** *(string) --* The unique identifier for the Asset.
      

      - **PackagingGroupId** *(string) --* The ID of the PackagingGroup for the Asset.
      

      - **ResourceId** *(string) --* The resource ID to include in SPEKE key requests.
      

      - **SourceArn** *(string) --* ARN of the source object in S3.
      

      - **SourceRoleArn** *(string) --* The IAM role_arn used to access the source S3 bucket.
      

      - **Tags** *(dict) --* A collection of tags associated with a resource
        

        - *(string) --* 
          

          - *(string) --* 
    
  
  
  **Exceptions**
  
  *   :py:class:`MediaPackageVod.Client.exceptions.UnprocessableEntityException`

  
  *   :py:class:`MediaPackageVod.Client.exceptions.InternalServerErrorException`

  
  *   :py:class:`MediaPackageVod.Client.exceptions.ForbiddenException`

  
  *   :py:class:`MediaPackageVod.Client.exceptions.NotFoundException`

  
  *   :py:class:`MediaPackageVod.Client.exceptions.ServiceUnavailableException`

  
  *   :py:class:`MediaPackageVod.Client.exceptions.TooManyRequestsException`

  