-
Notifications
You must be signed in to change notification settings - Fork 9
/
iam_managed_policy.py
44 lines (33 loc) · 1.75 KB
/
iam_managed_policy.py
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
from typing import ClassVar, List, Optional
from pycfmodel.model.base import CustomModel
from pycfmodel.model.resources.properties.policy_document import PolicyDocument
from pycfmodel.model.resources.resource import Resource
from pycfmodel.model.types import Resolvable, ResolvableStr
class IAMManagedPolicyProperties(CustomModel):
"""
Properties:
- Description: Description of the policy.
- Groups: Friendly name of the IAM groups to attach the policy to.
- ManagedPolicyName: Name of the policy.
- Path: Path to the policy.
- PolicyDocument: A [policy document][pycfmodel.model.resources.properties.policy_document.PolicyDocument] object.
- Roles: Friendly name of the IAM roles to attach the policy to.
- Users: Friendly name of the IAM users to attach the policy to.
More info at [AWS Docs](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html)
"""
Description: Optional[ResolvableStr] = None
Groups: Optional[Resolvable[List[ResolvableStr]]] = None
ManagedPolicyName: Optional[ResolvableStr] = None
Path: Optional[ResolvableStr] = None
PolicyDocument: Resolvable[PolicyDocument]
Roles: Optional[Resolvable[List[ResolvableStr]]] = None
Users: Optional[Resolvable[List[ResolvableStr]]] = None
class IAMManagedPolicy(Resource):
"""
Properties:
- Properties: A [IAM Managed Policy properties][pycfmodel.model.resources.iam_managed_policy.IAMManagedPolicyProperties] object.
More info at [AWS Docs](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html)
"""
TYPE_VALUE: ClassVar = "AWS::IAM::ManagedPolicy"
Type: str = TYPE_VALUE
Properties: Resolvable[IAMManagedPolicyProperties]