File: exceptions.py

package info (click to toggle)
python-boto 2.49.0-4.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 9,888 kB
  • sloc: python: 86,396; makefile: 112
file content (118 lines) | stat: -rw-r--r-- 2,246 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
"""
Exceptions that are specific to the cloudtrail module.
"""
from boto.exception import BotoServerError


class InvalidSnsTopicNameException(BotoServerError):
    """
    Raised when an invalid SNS topic name is passed to Cloudtrail.
    """
    pass


class InvalidS3BucketNameException(BotoServerError):
    """
    Raised when an invalid S3 bucket name is passed to Cloudtrail.
    """
    pass


class TrailAlreadyExistsException(BotoServerError):
    """
    Raised when the given trail name already exists.
    """
    pass


class InsufficientSnsTopicPolicyException(BotoServerError):
    """
    Raised when the SNS topic does not allow Cloudtrail to post
    messages.
    """
    pass


class InvalidTrailNameException(BotoServerError):
    """
    Raised when the trail name is invalid.
    """
    pass


class InternalErrorException(BotoServerError):
    """
    Raised when there was an internal Cloudtrail error.
    """
    pass


class TrailNotFoundException(BotoServerError):
    """
    Raised when the given trail name is not found.
    """
    pass


class S3BucketDoesNotExistException(BotoServerError):
    """
    Raised when the given S3 bucket does not exist.
    """
    pass


class TrailNotProvidedException(BotoServerError):
    """
    Raised when no trail name was provided.
    """
    pass


class InvalidS3PrefixException(BotoServerError):
    """
    Raised when an invalid key prefix is given.
    """
    pass


class MaximumNumberOfTrailsExceededException(BotoServerError):
    """
    Raised when no more trails can be created.
    """
    pass


class InsufficientS3BucketPolicyException(BotoServerError):
    """
    Raised when the S3 bucket does not allow Cloudtrail to
    write files into the prefix.
    """
    pass


class InvalidMaxResultsException(BotoServerError):
    pass


class InvalidTimeRangeException(BotoServerError):
    pass


class InvalidLookupAttributesException(BotoServerError):
    pass


class InvalidCloudWatchLogsLogGroupArnException(BotoServerError):
    pass


class InvalidCloudWatchLogsRoleArnException(BotoServerError):
    pass


class CloudWatchLogsDeliveryUnavailableException(BotoServerError):
    pass


class InvalidNextTokenException(BotoServerError):
    pass