awsc.resource_iam.InlinePolicyAttacher
- class awsc.resource_iam.InlinePolicyAttacher(parent, datatype, selection_is_policy=False)
Helper class for attaching inline policies to the big 3 IAM types - users, groups and roles.
- Attributes:
- datatypestr
The type of data (user, role or group).
- parentawsc.termui.control.Control
The control using the attacher.
- clientobject
Boto3 service provider.
- getcallable
Method reference to the datatype policy getter of self.client.
- put_methodstr
Method name for the datatype policy setter of self.client.
- argstr
The argname for the put_method.
- selection_is_policybool, default=False
Whether the parent is listing policies rather than resources that receive policies.
Methods
attach_inline_policy
(_)Hotkey callback for attaching an inline policy to the resource listed by the parent.
do_attach_inline
(name)Action callback for attaching an inline policy.
- __init__(parent, datatype, selection_is_policy=False)
Methods
__init__
(parent, datatype[, selection_is_policy])attach_inline_policy
(_)Hotkey callback for attaching an inline policy to the resource listed by the parent.
do_attach_inline
(name)Action callback for attaching an inline policy.