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. |
AssumeRolePolicyDocument
Required
public object AssumeRolePolicyDocument { get; set; }
- Type: object
Property assumeRolePolicyDocument: The RAM assume role policy that is associated with this role.
RoleName
Required
public object RoleName { get; set; }
- Type: object
Property roleName: Specifies the role name, containing up to 64 characters.
DeletionForce
Optional
public object DeletionForce { get; set; }
- Type: object
Property deletionForce: Whether force detach the policies attached to the role.
Default value is false.
Description
Optional
public object Description { get; set; }
- Type: object
Property description: Remark information, up to 1024 characters or Chinese characters.
IgnoreExisting
Optional
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.
MaxSessionDuration
Optional
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.
Policies
Optional
public object Policies { get; set; }
- Type: object
Property policies: Describes what actions are allowed on what resources.
PolicyAttachments
Optional
public object PolicyAttachments { get; set; }
- Type: object
Property policyAttachments: System and custom policy names to attach.