create_asset

create_asset(**kwargs)

Creates a new MediaPackage VOD Asset resource.

See also: AWS API Documentation

Request Syntax

response = client.create_asset(
    Id='string',
    PackagingGroupId='string',
    ResourceId='string',
    SourceArn='string',
    SourceRoleArn='string',
    Tags={
        'string': 'string'
    }
)
Parameters
  • Id (string) -- [REQUIRED] The unique identifier for the Asset.
  • PackagingGroupId (string) -- [REQUIRED] The ID of the PackagingGroup for the Asset.
  • ResourceId (string) -- The resource ID to include in SPEKE key requests.
  • SourceArn (string) -- [REQUIRED] ARN of the source object in S3.
  • SourceRoleArn (string) -- [REQUIRED] The IAM role ARN used to access the source S3 bucket.
  • Tags (dict) --

    A collection of tags associated with a resource

    • (string) --
      • (string) --
Return type

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

  • MediaPackageVod.Client.exceptions.UnprocessableEntityException
  • MediaPackageVod.Client.exceptions.InternalServerErrorException
  • MediaPackageVod.Client.exceptions.ForbiddenException
  • MediaPackageVod.Client.exceptions.NotFoundException
  • MediaPackageVod.Client.exceptions.ServiceUnavailableException
  • MediaPackageVod.Client.exceptions.TooManyRequestsException