mediapackagev2 / Client / exceptions / ValidationException

ValidationException#

class mediapackagev2.Client.exceptions.ValidationException#

The input failed to meet the constraints specified by the AWS service.

Example

try:
  ...
except client.exceptions.ValidationException as e:
  print(e.response)
response#

The parsed error response. All exceptions have a top level Error key that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.

Syntax

{
    'Message': 'string',
    'ValidationExceptionType': 'CONTAINER_TYPE_IMMUTABLE'|'INVALID_PAGINATION_TOKEN'|'INVALID_PAGINATION_MAX_RESULTS'|'INVALID_POLICY'|'INVALID_ROLE_ARN'|'MANIFEST_NAME_COLLISION'|'ENCRYPTION_METHOD_CONTAINER_TYPE_MISMATCH'|'CENC_IV_INCOMPATIBLE'|'ENCRYPTION_CONTRACT_WITHOUT_AUDIO_RENDITION_INCOMPATIBLE'|'ENCRYPTION_CONTRACT_UNENCRYPTED'|'ENCRYPTION_CONTRACT_SHARED'|'NUM_MANIFESTS_LOW'|'NUM_MANIFESTS_HIGH'|'MANIFEST_DRM_SYSTEMS_INCOMPATIBLE'|'DRM_SYSTEMS_ENCRYPTION_METHOD_INCOMPATIBLE'|'ROLE_ARN_NOT_ASSUMABLE'|'ROLE_ARN_LENGTH_OUT_OF_RANGE'|'ROLE_ARN_INVALID_FORMAT'|'URL_INVALID'|'URL_SCHEME'|'URL_USER_INFO'|'URL_PORT'|'URL_UNKNOWN_HOST'|'URL_LOCAL_ADDRESS'|'URL_LOOPBACK_ADDRESS'|'URL_LINK_LOCAL_ADDRESS'|'URL_MULTICAST_ADDRESS'|'MEMBER_INVALID'|'MEMBER_MISSING'|'MEMBER_MIN_VALUE'|'MEMBER_MAX_VALUE'|'MEMBER_MIN_LENGTH'|'MEMBER_MAX_LENGTH'|'MEMBER_INVALID_ENUM_VALUE'|'MEMBER_DOES_NOT_MATCH_PATTERN'|'INVALID_MANIFEST_FILTER'|'INVALID_TIME_DELAY_SECONDS'|'END_TIME_EARLIER_THAN_START_TIME'|'TS_CONTAINER_TYPE_WITH_DASH_MANIFEST'|'DIRECT_MODE_WITH_TIMING_SOURCE'|'NONE_MODE_WITH_TIMING_SOURCE'|'TIMING_SOURCE_MISSING'|'UPDATE_PERIOD_SMALLER_THAN_SEGMENT_DURATION'|'PERIOD_TRIGGERS_NONE_SPECIFIED_WITH_ADDITIONAL_VALUES'|'DRM_SIGNALING_MISMATCH_SEGMENT_ENCRYPTION_STATUS'|'ONLY_CMAF_INPUT_TYPE_ALLOW_FORCE_ENDPOINT_ERROR_CONFIGURATION'|'SOURCE_DISRUPTIONS_ENABLED_INCORRECTLY'|'HARVESTED_MANIFEST_HAS_START_END_FILTER_CONFIGURATION'|'HARVESTED_MANIFEST_NOT_FOUND_ON_ENDPOINT'|'TOO_MANY_IN_PROGRESS_HARVEST_JOBS'|'HARVEST_JOB_INELIGIBLE_FOR_CANCELLATION'|'INVALID_HARVEST_JOB_DURATION'|'HARVEST_JOB_S3_DESTINATION_MISSING_OR_INCOMPLETE'|'HARVEST_JOB_UNABLE_TO_WRITE_TO_S3_DESTINATION'|'HARVEST_JOB_CUSTOMER_ENDPOINT_READ_ACCESS_DENIED'|'CLIP_START_TIME_WITH_START_OR_END'|'START_TAG_TIME_OFFSET_INVALID'|'ONLY_CMAF_INPUT_TYPE_ALLOW_MQCS_INPUT_SWITCHING'|'ONLY_CMAF_INPUT_TYPE_ALLOW_MQCS_OUTPUT_CONFIGURATION',
    'Error': {
        'Code': 'string',
        'Message': 'string'
    }
}

Structure

  • (dict) –

    The input failed to meet the constraints specified by the AWS service.

    • Message (string) –

    • ValidationExceptionType (string) –

      The type of ValidationException.

    • Error (dict) – Normalized access to common exception attributes.

      • Code (string) – An identifier specifying the exception type.

      • Message (string) – A descriptive message explaining why the exception occured.