CfnPolicyProps

class aws_cdk.aws_iam.CfnPolicyProps(*, policy_document, policy_name, groups=None, roles=None, users=None)

Bases: object

Properties for defining a AWS::IAM::Policy.

Parameters
  • policy_document (Any) – AWS::IAM::Policy.PolicyDocument.

  • policy_name (str) – AWS::IAM::Policy.PolicyName.

  • groups (Optional[List[str]]) – AWS::IAM::Policy.Groups.

  • roles (Optional[List[str]]) – AWS::IAM::Policy.Roles.

  • users (Optional[List[str]]) – AWS::IAM::Policy.Users.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-policy.html

Attributes

groups

AWS::IAM::Policy.Groups.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-policy.html#cfn-iam-policy-groups

Return type

Optional[List[str]]

policy_document

AWS::IAM::Policy.PolicyDocument.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-policy.html#cfn-iam-policy-policydocument

Return type

Any

policy_name

AWS::IAM::Policy.PolicyName.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-policy.html#cfn-iam-policy-policyname

Return type

str

roles

AWS::IAM::Policy.Roles.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-policy.html#cfn-iam-policy-roles

Return type

Optional[List[str]]

users

AWS::IAM::Policy.Users.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-policy.html#cfn-iam-policy-users

Return type

Optional[List[str]]