RoleProps
Properties for defining a Role.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ram-role
Initializer
using AlibabaCloud.SDK.ROS.CDK.Ram;
new RoleProps {
object AssumeRolePolicyDocument,
object RoleName,
object DeletionForce = null,
object Description = null,
object IgnoreExisting = null,
object MaxSessionDuration = null,
object Policies = null,
object PolicyAttachments = null
};
Properties
| Name | Type | Description |
|---|---|---|
AssumeRolePolicyDocument |
object |
Property assumeRolePolicyDocument: The RAM assume role policy that is associated with this role. |
RoleName |
object |
Property roleName: Specifies the role name, containing up to 64 characters. |
DeletionForce |
object |
Property deletionForce: Whether force detach the policies attached to the role. |
Description |
object |
Property description: Remark information, up to 1024 characters or Chinese characters. |
IgnoreExisting |
object |
Property ignoreExisting: Whether to ignore existing role False: ROS will perform a uniqueness check.If a role with the same name exists, an error will be reported when creating it. True: ROS will not check the uniqueness.If there is a role with the same name, the role creation process will be ignored. If the role is not created by ROS, it will be ignored during update and delete stage. |
MaxSessionDuration |
object |
Property maxSessionDuration: The maximum session duration of the RAM role. |
Policies |
object |
Property policies: Describes what actions are allowed on what resources. |
PolicyAttachments |
object |
Property policyAttachments: System and custom policy names to attach. |
AssumeRolePolicyDocumentRequired
public object AssumeRolePolicyDocument { get; set; }
- Type: object
Property assumeRolePolicyDocument: The RAM assume role policy that is associated with this role.
RoleNameRequired
public object RoleName { get; set; }
- Type: object
Property roleName: Specifies the role name, containing up to 64 characters.
DeletionForceOptional
public object DeletionForce { get; set; }
- Type: object
Property deletionForce: Whether force detach the policies attached to the role.
Default value is false.
DescriptionOptional
public object Description { get; set; }
- Type: object
Property description: Remark information, up to 1024 characters or Chinese characters.
IgnoreExistingOptional
public object IgnoreExisting { get; set; }
- Type: object
Property ignoreExisting: Whether to ignore existing role False: ROS will perform a uniqueness check.If a role with the same name exists, an error will be reported when creating it. True: ROS will not check the uniqueness.If there is a role with the same name, the role creation process will be ignored. If the role is not created by ROS, it will be ignored during update and delete stage.
MaxSessionDurationOptional
public object MaxSessionDuration { get; set; }
- Type: object
Property maxSessionDuration: The maximum session duration of the RAM role.
Valid values: 3600 to 43200. Unit: seconds. Default value: 3600. The default value is used if the parameter is not specified.
PoliciesOptional
public object Policies { get; set; }
- Type: object
Property policies: Describes what actions are allowed on what resources.
PolicyAttachmentsOptional
public object PolicyAttachments { get; set; }
- Type: object
Property policyAttachments: System and custom policy names to attach.