Inspector / Client / exceptions / InvalidInputException
InvalidInputException#
- class Inspector.Client.exceptions.InvalidInputException#
The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
Example
try: ... except client.exceptions.InvalidInputException 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', 'errorCode': 'INVALID_ASSESSMENT_TARGET_ARN'|'INVALID_ASSESSMENT_TEMPLATE_ARN'|'INVALID_ASSESSMENT_RUN_ARN'|'INVALID_FINDING_ARN'|'INVALID_RESOURCE_GROUP_ARN'|'INVALID_RULES_PACKAGE_ARN'|'INVALID_RESOURCE_ARN'|'INVALID_SNS_TOPIC_ARN'|'INVALID_IAM_ROLE_ARN'|'INVALID_ASSESSMENT_TARGET_NAME'|'INVALID_ASSESSMENT_TARGET_NAME_PATTERN'|'INVALID_ASSESSMENT_TEMPLATE_NAME'|'INVALID_ASSESSMENT_TEMPLATE_NAME_PATTERN'|'INVALID_ASSESSMENT_TEMPLATE_DURATION'|'INVALID_ASSESSMENT_TEMPLATE_DURATION_RANGE'|'INVALID_ASSESSMENT_RUN_DURATION_RANGE'|'INVALID_ASSESSMENT_RUN_START_TIME_RANGE'|'INVALID_ASSESSMENT_RUN_COMPLETION_TIME_RANGE'|'INVALID_ASSESSMENT_RUN_STATE_CHANGE_TIME_RANGE'|'INVALID_ASSESSMENT_RUN_STATE'|'INVALID_TAG'|'INVALID_TAG_KEY'|'INVALID_TAG_VALUE'|'INVALID_RESOURCE_GROUP_TAG_KEY'|'INVALID_RESOURCE_GROUP_TAG_VALUE'|'INVALID_ATTRIBUTE'|'INVALID_USER_ATTRIBUTE'|'INVALID_USER_ATTRIBUTE_KEY'|'INVALID_USER_ATTRIBUTE_VALUE'|'INVALID_PAGINATION_TOKEN'|'INVALID_MAX_RESULTS'|'INVALID_AGENT_ID'|'INVALID_AUTO_SCALING_GROUP'|'INVALID_RULE_NAME'|'INVALID_SEVERITY'|'INVALID_LOCALE'|'INVALID_EVENT'|'ASSESSMENT_TARGET_NAME_ALREADY_TAKEN'|'ASSESSMENT_TEMPLATE_NAME_ALREADY_TAKEN'|'INVALID_NUMBER_OF_ASSESSMENT_TARGET_ARNS'|'INVALID_NUMBER_OF_ASSESSMENT_TEMPLATE_ARNS'|'INVALID_NUMBER_OF_ASSESSMENT_RUN_ARNS'|'INVALID_NUMBER_OF_FINDING_ARNS'|'INVALID_NUMBER_OF_RESOURCE_GROUP_ARNS'|'INVALID_NUMBER_OF_RULES_PACKAGE_ARNS'|'INVALID_NUMBER_OF_ASSESSMENT_RUN_STATES'|'INVALID_NUMBER_OF_TAGS'|'INVALID_NUMBER_OF_RESOURCE_GROUP_TAGS'|'INVALID_NUMBER_OF_ATTRIBUTES'|'INVALID_NUMBER_OF_USER_ATTRIBUTES'|'INVALID_NUMBER_OF_AGENT_IDS'|'INVALID_NUMBER_OF_AUTO_SCALING_GROUPS'|'INVALID_NUMBER_OF_RULE_NAMES'|'INVALID_NUMBER_OF_SEVERITIES', 'canRetry': True|False, 'Error': { 'Code': 'string', 'Message': 'string' } }
Structure
(dict) –
The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
message (string) –
Details of the exception error.
errorCode (string) –
Code that indicates the type of error that is generated.
canRetry (boolean) –
You can immediately retry your 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.