The heat.api.aws.exception ModuleΒΆ

Heat API exception subclasses - maps API response errors to AWS Errors

exception heat.api.aws.exception.AlreadyExistsError(detail=None)[source]

Bases: heat.api.aws.exception.HeatAPIException

Resource with the name requested already exists

AlreadyExistsError.code = 400
AlreadyExistsError.explanation = u'Resource with the name requested already exists'
AlreadyExistsError.title = 'AlreadyExists'
exception heat.api.aws.exception.HeatAPIException(detail=None)[source]

Bases: webob.exc.HTTPError

Subclass webob HTTPError so we can correctly serialize the wsgi response into the http response body, using the format specified by the request. Note this should not be used directly, instead use of of the subclasses defined below which map to AWS API errors

HeatAPIException.code = 400
HeatAPIException.err_type = 'Sender'
HeatAPIException.explanation = u'Generic HeatAPIException, please use specific subclasses!'
HeatAPIException.get_unserialized_body()[source]

Return a dict suitable for serialization in the wsgi controller This wraps the exception details in a format which maps to the expected format for the AWS API

HeatAPIException.title = 'HeatAPIException'
exception heat.api.aws.exception.HeatAPINotImplementedError(detail=None)[source]

Bases: heat.api.aws.exception.HeatAPIException

This is the response given when an API action is not yet implemented

HeatAPINotImplementedError.code = 500
HeatAPINotImplementedError.err_type = 'Server'
HeatAPINotImplementedError.explanation = u'The requested action is not yet implemented'
HeatAPINotImplementedError.title = 'APINotImplemented'
exception heat.api.aws.exception.HeatAccessDeniedError(detail=None)[source]

Bases: heat.api.aws.exception.HeatAPIException

This is the response given when authentication fails due to user IAM group memberships meaning we deny access

HeatAccessDeniedError.code = 403
HeatAccessDeniedError.explanation = u'User is not authorized to perform action'
HeatAccessDeniedError.title = 'AccessDenied'
exception heat.api.aws.exception.HeatActionInProgressError(detail=None)[source]

Bases: heat.api.aws.exception.HeatAPIException

Cannot perform action on stack in its current state

HeatActionInProgressError.code = 400
HeatActionInProgressError.explanation = 'Cannot perform action on stack while other actions are in progress'
HeatActionInProgressError.title = 'InvalidAction'
exception heat.api.aws.exception.HeatIncompleteSignatureError(detail=None)[source]

Bases: heat.api.aws.exception.HeatAPIException

The request signature does not conform to AWS standards

HeatIncompleteSignatureError.code = 400
HeatIncompleteSignatureError.explanation = u'The request signature does not conform to AWS standards'
HeatIncompleteSignatureError.title = 'IncompleteSignature'
exception heat.api.aws.exception.HeatInternalFailureError(detail=None)[source]

Bases: heat.api.aws.exception.HeatAPIException

The request processing has failed due to some unknown error

HeatInternalFailureError.code = 500
HeatInternalFailureError.err_type = 'Server'
HeatInternalFailureError.explanation = u'The request processing has failed due to an internal error'
HeatInternalFailureError.title = 'InternalFailure'
exception heat.api.aws.exception.HeatInvalidActionError(detail=None)[source]

Bases: heat.api.aws.exception.HeatAPIException

The action or operation requested is invalid

HeatInvalidActionError.code = 400
HeatInvalidActionError.explanation = u'The action or operation requested is invalid'
HeatInvalidActionError.title = 'InvalidAction'
exception heat.api.aws.exception.HeatInvalidClientTokenIdError(detail=None)[source]

Bases: heat.api.aws.exception.HeatAPIException

The X.509 certificate or AWS Access Key ID provided does not exist

HeatInvalidClientTokenIdError.code = 403
HeatInvalidClientTokenIdError.explanation = u'The certificate or AWS Key ID provided does not exist'
HeatInvalidClientTokenIdError.title = 'InvalidClientTokenId'
exception heat.api.aws.exception.HeatInvalidParameterCombinationError(detail=None)[source]

Bases: heat.api.aws.exception.HeatAPIException

Parameters that must not be used together were used together

HeatInvalidParameterCombinationError.code = 400
HeatInvalidParameterCombinationError.explanation = u'Incompatible parameters were used together'
HeatInvalidParameterCombinationError.title = 'InvalidParameterCombination'
exception heat.api.aws.exception.HeatInvalidParameterValueError(detail=None)[source]

Bases: heat.api.aws.exception.HeatAPIException

A bad or out-of-range value was supplied for the input parameter

HeatInvalidParameterValueError.code = 400
HeatInvalidParameterValueError.explanation = u'A bad or out-of-range value was supplied'
HeatInvalidParameterValueError.title = 'InvalidParameterValue'
exception heat.api.aws.exception.HeatInvalidQueryParameterError(detail=None)[source]

Bases: heat.api.aws.exception.HeatAPIException

AWS query string is malformed, does not adhere to AWS standards

HeatInvalidQueryParameterError.code = 400
HeatInvalidQueryParameterError.explanation = u'AWS query string is malformed, does not adhere to AWS spec'
HeatInvalidQueryParameterError.title = 'InvalidQueryParameter'
exception heat.api.aws.exception.HeatMalformedQueryStringError(detail=None)[source]

Bases: heat.api.aws.exception.HeatAPIException

The query string is malformed

HeatMalformedQueryStringError.code = 404
HeatMalformedQueryStringError.explanation = u'The query string is malformed'
HeatMalformedQueryStringError.title = 'MalformedQueryString'
exception heat.api.aws.exception.HeatMissingActionError(detail=None)[source]

Bases: heat.api.aws.exception.HeatAPIException

The request is missing an action or operation parameter

HeatMissingActionError.code = 400
HeatMissingActionError.explanation = u'The request is missing an action or operation parameter'
HeatMissingActionError.title = 'MissingAction'
exception heat.api.aws.exception.HeatMissingAuthenticationTokenError(detail=None)[source]

Bases: heat.api.aws.exception.HeatAPIException

Request must contain either a valid (registered) AWS Access Key ID or X.509 certificate

HeatMissingAuthenticationTokenError.code = 403
HeatMissingAuthenticationTokenError.explanation = u'Does not contain a valid AWS Access Key or certificate'
HeatMissingAuthenticationTokenError.title = 'MissingAuthenticationToken'
exception heat.api.aws.exception.HeatMissingParameterError(detail=None)[source]

Bases: heat.api.aws.exception.HeatAPIException

An input parameter that is mandatory for processing the request is missing

HeatMissingParameterError.code = 400
HeatMissingParameterError.explanation = u'A mandatory input parameter is missing'
HeatMissingParameterError.title = 'MissingParameter'
exception heat.api.aws.exception.HeatOptInRequiredError(detail=None)[source]

Bases: heat.api.aws.exception.HeatAPIException

The AWS Access Key ID needs a subscription for the service

HeatOptInRequiredError.code = 403
HeatOptInRequiredError.explanation = u'The AWS Access Key ID needs a subscription for the service'
HeatOptInRequiredError.title = 'OptInRequired'
exception heat.api.aws.exception.HeatRequestExpiredError(detail=None)[source]

Bases: heat.api.aws.exception.HeatAPIException

Request is past expires date or the request date (either with 15 minute padding), or the request date occurs more than 15 minutes in the future

HeatRequestExpiredError.code = 400
HeatRequestExpiredError.explanation = u'Request expired or more than 15mins in the future'
HeatRequestExpiredError.title = 'RequestExpired'
exception heat.api.aws.exception.HeatServiceUnavailableError(detail=None)[source]

Bases: heat.api.aws.exception.HeatAPIException

The request has failed due to a temporary failure of the server

HeatServiceUnavailableError.code = 503
HeatServiceUnavailableError.err_type = 'Server'
HeatServiceUnavailableError.explanation = u'Service temporarily unavailable'
HeatServiceUnavailableError.title = 'ServiceUnavailable'
exception heat.api.aws.exception.HeatSignatureError(detail=None)[source]

Bases: heat.api.aws.exception.HeatAPIException

This is the response given when authentication fails due to a bad signature

HeatSignatureError.code = 403
HeatSignatureError.explanation = u'The request signature we calculated does not match the signature you provided'
HeatSignatureError.title = 'SignatureDoesNotMatch'
exception heat.api.aws.exception.HeatThrottlingError(detail=None)[source]

Bases: heat.api.aws.exception.HeatAPIException

Request was denied due to request throttling

HeatThrottlingError.code = 400
HeatThrottlingError.explanation = u'Request was denied due to request throttling'
HeatThrottlingError.title = 'Throttling'
heat.api.aws.exception.map_remote_error(ex)[source]

Map rpc_common.RemoteError exceptions returned by the engine to HeatAPIException subclasses which can be used to return properly formatted AWS error responses

Previous topic

The heat.api.cloudwatch.watch Module

Next topic

The heat.api.aws.ec2token Module

This Page