PinpointSMSVoiceV2 / Client / exceptions / ConflictException

ConflictException#

class PinpointSMSVoiceV2.Client.exceptions.ConflictException#

Your request has conflicting operations. This can occur if you’re trying to perform more than one operation on the same resource at the same time or it could be that the requested action isn’t valid for the current state or configuration of the resource.

Example

try:
  ...
except client.exceptions.ConflictException 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',
    'Reason': 'CREATE_REGISTRATION_VERSION_NOT_ALLOWED'|'DELETION_PROTECTION_ENABLED'|'DESTINATION_PHONE_NUMBER_NOT_VERIFIED'|'DESTINATION_PHONE_NUMBER_OPTED_OUT'|'DISASSOCIATE_REGISTRATION_NOT_ALLOWED'|'DISCARD_REGISTRATION_VERSION_NOT_ALLOWED'|'EDIT_REGISTRATION_FIELD_VALUES_NOT_ALLOWED'|'EVENT_DESTINATION_MISMATCH'|'KEYWORD_MISMATCH'|'LAST_PHONE_NUMBER'|'NUMBER_CAPABILITIES_MISMATCH'|'MESSAGE_TYPE_MISMATCH'|'NO_ORIGINATION_IDENTITIES_FOUND'|'OPT_OUT_LIST_MISMATCH'|'PHONE_NUMBER_ASSOCIATED_TO_POOL'|'PHONE_NUMBER_ASSOCIATED_TO_REGISTRATION'|'PHONE_NUMBER_NOT_ASSOCIATED_TO_POOL'|'PHONE_NUMBER_NOT_IN_REGISTRATION_REGION'|'REGISTRATION_ALREADY_SUBMITTED'|'REGISTRATION_NOT_COMPLETE'|'SENDER_ID_ASSOCIATED_TO_POOL'|'RESOURCE_ALREADY_EXISTS'|'RESOURCE_DELETION_NOT_ALLOWED'|'RESOURCE_MODIFICATION_NOT_ALLOWED'|'RESOURCE_NOT_ACTIVE'|'RESOURCE_NOT_EMPTY'|'SELF_MANAGED_OPT_OUTS_MISMATCH'|'SUBMIT_REGISTRATION_VERSION_NOT_ALLOWED'|'TWO_WAY_CONFIG_MISMATCH'|'VERIFICATION_CODE_EXPIRED'|'VERIFICATION_ALREADY_COMPLETE',
    'ResourceType': 'account'|'phone-number'|'sender-id'|'pool'|'configuration-set'|'opt-out-list'|'event-destination'|'keyword'|'opted-out-number'|'registration'|'registration-attachment'|'verified-destination-number',
    'ResourceId': 'string',
    'Error': {
        'Code': 'string',
        'Message': 'string'
    }
}

Structure

  • (dict) –

    Your request has conflicting operations. This can occur if you’re trying to perform more than one operation on the same resource at the same time or it could be that the requested action isn’t valid for the current state or configuration of the resource.

    • Message (string) –

    • Reason (string) –

      The reason for the exception.

    • ResourceType (string) –

      The type of resource that caused the exception.

    • ResourceId (string) –

      The unique identifier of the request.

    • 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.