Skip to content

ManagedPolicyProps

Properties for defining a ManagedPolicy.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ram-managedpolicy

Initializer

import ros_cdk_ram
ros_cdk_ram.ManagedPolicyProps(
  policy_name: typing.Union[str, IResolvable],
  description: typing.Union[str, IResolvable] = None,
  groups: typing.Union[typing.List[typing.Any], IResolvable] = None,
  ignore_existing: typing.Union[bool, IResolvable] = None,
  policy_document: typing.Union[IResolvable, PolicyDocumentProperty] = None,
  policy_document_unchecked: typing.Union[IResolvable, typing.Mapping[typing.Any]] = None,
  roles: typing.Union[typing.List[typing.Any], IResolvable] = None,
  users: typing.Union[typing.List[typing.Any], IResolvable] = None
)

Properties

Name Type Description
policy_name typing.Union[str, ros_cdk_core.IResolvable] Property policyName: Specifies the authorization policy name, containing up to 128 characters.
description typing.Union[str, ros_cdk_core.IResolvable] Property description: Specifies the authorization policy description, containing up to 1024 characters.
groups typing.Union[typing.List[typing.Any], ros_cdk_core.IResolvable] Property groups: The names of groups to attach to this policy.
ignore_existing typing.Union[bool, ros_cdk_core.IResolvable] Property ignoreExisting: Whether to ignore existing policy False: ROS will perform a uniqueness check.If a policy with the same name exists, an error will be reported when creating it. True: ROS will not check the uniqueness.If there is a policy with the same name, the policy creation process will be ignored. If the policy is not created by ROS, it will be ignored during update and delete stage.
policy_document typing.Union[ros_cdk_core.IResolvable, PolicyDocumentProperty] Property policyDocument: A policy document that describes what actions are allowed on which resources.
policy_document_unchecked typing.Union[ros_cdk_core.IResolvable, typing.Mapping[typing.Any]] Property policyDocumentUnchecked: A policy document that describes what actions are allowed on which resources.
roles typing.Union[typing.List[typing.Any], ros_cdk_core.IResolvable] Property roles: The names of roles to attach to this policy.
users typing.Union[typing.List[typing.Any], ros_cdk_core.IResolvable] Property users: The names of users to attach to this policy.

policy_nameRequired

policy_name: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property policyName: Specifies the authorization policy name, containing up to 128 characters.


descriptionOptional

description: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property description: Specifies the authorization policy description, containing up to 1024 characters.


groupsOptional

groups: typing.Union[typing.List[typing.Any], IResolvable]
  • Type: typing.Union[typing.List[typing.Any], ros_cdk_core.IResolvable]

Property groups: The names of groups to attach to this policy.


ignore_existingOptional

ignore_existing: typing.Union[bool, IResolvable]
  • Type: typing.Union[bool, ros_cdk_core.IResolvable]

Property ignoreExisting: Whether to ignore existing policy False: ROS will perform a uniqueness check.If a policy with the same name exists, an error will be reported when creating it. True: ROS will not check the uniqueness.If there is a policy with the same name, the policy creation process will be ignored. If the policy is not created by ROS, it will be ignored during update and delete stage.


policy_documentOptional

policy_document: typing.Union[IResolvable, PolicyDocumentProperty]

Property policyDocument: A policy document that describes what actions are allowed on which resources.


policy_document_uncheckedOptional

policy_document_unchecked: typing.Union[IResolvable, typing.Mapping[typing.Any]]
  • Type: typing.Union[ros_cdk_core.IResolvable, typing.Mapping[typing.Any]]

Property policyDocumentUnchecked: A policy document that describes what actions are allowed on which resources.

If it is specified, PolicyDocument will be ignored.


rolesOptional

roles: typing.Union[typing.List[typing.Any], IResolvable]
  • Type: typing.Union[typing.List[typing.Any], ros_cdk_core.IResolvable]

Property roles: The names of roles to attach to this policy.


usersOptional

users: typing.Union[typing.List[typing.Any], IResolvable]
  • Type: typing.Union[typing.List[typing.Any], ros_cdk_core.IResolvable]

Property users: The names of users to attach to this policy.