BillingConductor / Client / exceptions / ValidationException

ValidationException#

class BillingConductor.Client.exceptions.ValidationException#

The input doesn’t match with the constraints specified by Amazon Web Services.

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',
    'Reason': 'UNKNOWN_OPERATION'|'CANNOT_PARSE'|'FIELD_VALIDATION_FAILED'|'OTHER'|'PRIMARY_NOT_ASSOCIATED'|'PRIMARY_CANNOT_DISASSOCIATE'|'ACCOUNTS_NOT_ASSOCIATED'|'ACCOUNTS_ALREADY_ASSOCIATED'|'ILLEGAL_PRIMARY_ACCOUNT'|'ILLEGAL_ACCOUNTS'|'MISMATCHED_BILLINGGROUP_ARN'|'MISSING_BILLINGGROUP'|'MISMATCHED_CUSTOMLINEITEM_ARN'|'ILLEGAL_BILLING_PERIOD'|'ILLEGAL_BILLING_PERIOD_RANGE'|'TOO_MANY_ACCOUNTS_IN_REQUEST'|'DUPLICATE_ACCOUNT'|'INVALID_BILLING_GROUP_STATUS'|'MISMATCHED_PRICINGPLAN_ARN'|'MISSING_PRICINGPLAN'|'MISMATCHED_PRICINGRULE_ARN'|'DUPLICATE_PRICINGRULE_ARNS'|'ILLEGAL_EXPRESSION'|'ILLEGAL_SCOPE'|'ILLEGAL_SERVICE'|'PRICINGRULES_NOT_EXIST'|'PRICINGRULES_ALREADY_ASSOCIATED'|'PRICINGRULES_NOT_ASSOCIATED'|'INVALID_TIME_RANGE'|'INVALID_BILLINGVIEW_ARN'|'MISMATCHED_BILLINGVIEW_ARN'|'ILLEGAL_CUSTOMLINEITEM'|'MISSING_CUSTOMLINEITEM'|'ILLEGAL_CUSTOMLINEITEM_UPDATE'|'TOO_MANY_CUSTOMLINEITEMS_IN_REQUEST'|'ILLEGAL_CHARGE_DETAILS'|'ILLEGAL_UPDATE_CHARGE_DETAILS'|'INVALID_ARN'|'ILLEGAL_RESOURCE_ARNS'|'ILLEGAL_CUSTOMLINEITEM_MODIFICATION'|'MISSING_LINKED_ACCOUNT_IDS'|'MULTIPLE_LINKED_ACCOUNT_IDS'|'MISSING_PRICING_PLAN_ARN'|'MULTIPLE_PRICING_PLAN_ARN'|'ILLEGAL_CHILD_ASSOCIATE_RESOURCE'|'CUSTOM_LINE_ITEM_ASSOCIATION_EXISTS'|'INVALID_BILLING_GROUP'|'INVALID_BILLING_PERIOD_FOR_OPERATION'|'ILLEGAL_BILLING_ENTITY'|'ILLEGAL_MODIFIER_PERCENTAGE'|'ILLEGAL_TYPE'|'ILLEGAL_ENDED_BILLINGGROUP'|'ILLEGAL_TIERING_INPUT'|'ILLEGAL_OPERATION'|'ILLEGAL_USAGE_TYPE'|'INVALID_SKU_COMBO'|'INVALID_FILTER'|'TOO_MANY_AUTO_ASSOCIATE_BILLING_GROUPS'|'CANNOT_DELETE_AUTO_ASSOCIATE_BILLING_GROUP'|'ILLEGAL_ACCOUNT_ID',
    'Fields': [
        {
            'Name': 'string',
            'Message': 'string'
        },
    ],
    'Error': {
        'Code': 'string',
        'Message': 'string'
    }
}

Structure

  • (dict) –

    The input doesn’t match with the constraints specified by Amazon Web Services.

    • Message (string) –

    • Reason (string) –

      The reason the request’s validation failed.

    • Fields (list) –

      The fields that caused the error, if applicable.

      • (dict) –

        The field’s information of a request that resulted in an exception.

        • Name (string) –

          The field name.

        • Message (string) –

          The message describing why the field failed validation.

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