CommonGrantOptions
- class aws_cdk.aws_iam.CommonGrantOptions(*, actions, grantee, resource_arns, conditions=None)
Bases:
object
Basic options for a grant operation.
- Parameters:
actions (
Sequence
[str
]) – The actions to grant.grantee (
IGrantable
) – The principal to grant to. Default: if principal is undefined, no work is done.resource_arns (
Sequence
[str
]) – The resource ARNs to grant to.conditions (
Optional
[Mapping
[str
,Mapping
[str
,Any
]]]) – Any conditions to attach to the grant. Default: - No conditions
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_iam as iam # conditions: Any # grantable: iam.IGrantable common_grant_options = iam.CommonGrantOptions( actions=["actions"], grantee=grantable, resource_arns=["resourceArns"], # the properties below are optional conditions={ "conditions_key": { "conditions_key": conditions } } )
Attributes
- actions
The actions to grant.
- conditions
Any conditions to attach to the grant.
- Default:
No conditions
- grantee
The principal to grant to.
- Default:
if principal is undefined, no work is done.
- resource_arns
The resource ARNs to grant to.