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',
    '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.