runway.cfngin.exceptions module¶
CFNgin exceptions.
- exception runway.cfngin.exceptions.CancelExecution[source]¶
Bases:
CfnginError
Raised when we want to cancel executing the plan.
- exception runway.cfngin.exceptions.CfnginBucketAccessDenied[source]¶
Bases:
CfnginError
Access denied to CFNgin bucket.
This can occur when the bucket exists in another AWS account and/or the credentials being used do not have adequate permissions to access the bucket.
- exception runway.cfngin.exceptions.CfnginBucketNotFound[source]¶
Bases:
CfnginError
CFNgin bucket specified or default bucket being used but it does not exist.
This can occur when using a custom stack to deploy the CFNgin bucket but the custom stack does not create bucket that is expected.
- exception runway.cfngin.exceptions.CfnginBucketRequired[source]¶
Bases:
CfnginError
CFNgin bucket is required to use a feature but it not provided/disabled.
- exception runway.cfngin.exceptions.CfnginError[source]¶
Bases:
RunwayError
Base class for custom exceptions raised by Runway.
- exception runway.cfngin.exceptions.CfnginOnlyLookupError[source]¶
Bases:
CfnginError
Attempted to use a CFNgin lookup outside of CFNgin.
- exception runway.cfngin.exceptions.ChangesetDidNotStabilize[source]¶
Bases:
CfnginError
Raised when the applying a changeset fails.
- exception runway.cfngin.exceptions.GraphError[source]¶
Bases:
CfnginError
Raised when the graph is invalid (e.g. acyclic dependencies).
- exception runway.cfngin.exceptions.ImproperlyConfigured[source]¶
Bases:
CfnginError
Raised when a component is improperly configured.
- exception runway.cfngin.exceptions.InvalidConfig[source]¶
Bases:
CfnginError
Provided config file is invalid.
- exception runway.cfngin.exceptions.InvalidDockerizePipConfiguration[source]¶
Bases:
CfnginError
Raised when the provided configuration for dockerized pip is invalid.
- exception runway.cfngin.exceptions.InvalidUserdataPlaceholder[source]¶
Bases:
CfnginError
Raised when a placeholder name in raw_user_data is not valid.
E.g
${100}
would raise this.- __init__(blueprint_name: str, exception_message: str, *args: Any, **kwargs: Any) None [source]¶
Instantiate class.
- Parameters:
blueprint_name – Name of the blueprint with invalid userdata placeholder.
exception_message – Message from the exception that was raised while parsing the userdata.
*args – Variable length argument list.
**kwargs – Arbitrary keyword arguments.
- exception runway.cfngin.exceptions.MissingEnvironment[source]¶
Bases:
CfnginError
Raised when an environment lookup is used but the key doesn’t exist.
- exception runway.cfngin.exceptions.MissingParameterException[source]¶
Bases:
CfnginError
Raised if a required parameter with no default is missing.
- exception runway.cfngin.exceptions.MissingVariable[source]¶
Bases:
CfnginError
Raised when a variable with no default is not provided a value.
- exception runway.cfngin.exceptions.PersistentGraphCannotLock[source]¶
Bases:
CfnginError
Raised when the persistent graph in S3 cannot be locked.
- exception runway.cfngin.exceptions.PersistentGraphCannotUnlock[source]¶
Bases:
CfnginError
Raised when the persistent graph in S3 cannot be unlocked.
- exception runway.cfngin.exceptions.PersistentGraphLockCodeMismatch[source]¶
Bases:
CfnginError
Raised when the provided persistent graph lock code does not match.
The code used to unlock the persistent graph must match the s3 object lock code.
- exception runway.cfngin.exceptions.PersistentGraphLocked[source]¶
Bases:
CfnginError
Raised when the persistent graph in S3 is lock.
The action being executed requires it to be unlocked before attempted.
- exception runway.cfngin.exceptions.PersistentGraphUnlocked[source]¶
Bases:
CfnginError
Raised when the persistent graph in S3 is unlock.
The action being executed requires it to be locked before attempted.
- exception runway.cfngin.exceptions.PipError[source]¶
Bases:
CfnginError
Raised when pip returns a non-zero exit code.
- exception runway.cfngin.exceptions.PipenvError[source]¶
Bases:
CfnginError
Raised when pipenv returns a non-zero exit code.
- exception runway.cfngin.exceptions.PlanFailed[source]¶
Bases:
CfnginError
Raised if any step of a plan fails.
- exception runway.cfngin.exceptions.StackDidNotChange[source]¶
Bases:
CfnginError
Raised when there are no changes to be made by the provider.
- exception runway.cfngin.exceptions.StackDoesNotExist[source]¶
Bases:
CfnginError
Raised when a stack does not exist in AWS.
- exception runway.cfngin.exceptions.StackFailed[source]¶
Bases:
CfnginError
Raised when a stack action fails.
Primarily used with hooks that act on stacks.
- exception runway.cfngin.exceptions.StackUpdateBadStatus[source]¶
Bases:
CfnginError
Raised if the state of a stack can’t be handled.
- __init__(stack_name: str, stack_status: str, reason: str, *args: Any, **kwargs: Any) None [source]¶
Instantiate class.
- Parameters:
stack_name – Name of the stack.
stack_status – The stack’s status.
reason – The reason for the current status.
*args – Variable length argument list.
**kwargs – Arbitrary keyword arguments.
- exception runway.cfngin.exceptions.UnableToExecuteChangeSet[source]¶
Bases:
CfnginError
Raised if changeset execution status is not
AVAILABLE
.
- exception runway.cfngin.exceptions.UnhandledChangeSetStatus[source]¶
Bases:
CfnginError
Raised when creating a changeset failed for an unhandled reason.
Handled failure reasons include: no changes
- exception runway.cfngin.exceptions.UnresolvedBlueprintVariable[source]¶
Bases:
CfnginError
Raised when trying to use a variable before it has been resolved.
- __init__(blueprint_name: str, variable: Variable, *args: Any, **kwargs: Any) None [source]¶
Instantiate class.
- Parameters:
blueprint_name – Name of the blueprint that tried to use the unresolved variables.
variable – The unresolved variable.
*args – Variable length argument list.
**kwargs – Arbitrary keyword arguments.
- exception runway.cfngin.exceptions.UnresolvedBlueprintVariables[source]¶
Bases:
CfnginError
Raised when trying to use variables before they has been resolved.
- exception runway.cfngin.exceptions.ValidatorError[source]¶
Bases:
CfnginError
Used for errors raised by custom validators of blueprint variables.
- __init__(variable: str, validator: str, value: str, exception: Exception) None [source]¶
Instantiate class.
- Parameters:
variable – The variable that failed validation.
validator – The validator that was not passed.
value – The value of the variable that did not pass the validator.
exception – The exception raised by the validator.
- exception runway.cfngin.exceptions.VariableTypeRequired[source]¶
Bases:
CfnginError
Raised when a variable defined in a blueprint is missing a type.