forked from cloudtools/troposphere
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkms.py
More file actions
33 lines (26 loc) · 750 Bytes
/
kms.py
File metadata and controls
33 lines (26 loc) · 750 Bytes
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
# Copyright (c) 2012-2013, Mark Peek <[email protected]>
# All rights reserved.
#
# See LICENSE file for full license.
from . import AWSObject, Tags
from .validators import boolean
try:
from awacs.aws import Policy
policytypes = (dict, Policy)
except ImportError:
policytypes = dict,
class Alias(AWSObject):
resource_type = "AWS::KMS::Alias"
props = {
'AliasName': (basestring, True),
'TargetKeyId': (basestring, True)
}
class Key(AWSObject):
resource_type = "AWS::KMS::Key"
props = {
'Description': (basestring, False),
'Enabled': (boolean, False),
'EnableKeyRotation': (boolean, False),
'KeyPolicy': (policytypes, True),
'Tags': ((Tags, list), False)
}