public static final class UpdateRoleRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
UpdateRoleRequest |
build() |
UpdateRoleRequest.Builder |
newAssumeRolePolicyDocument(String newAssumeRolePolicyDocument)
The policy that specifies the trusted entity to assume the RAM role.
|
UpdateRoleRequest.Builder |
newDescription(String newDescription)
The new description of the RAM role.
|
UpdateRoleRequest.Builder |
newMaxSessionDuration(Long newMaxSessionDuration)
The maximum session duration of the RAM role.
|
UpdateRoleRequest.Builder |
roleName(String roleName)
The name of the RAM role.
|
public UpdateRoleRequest.Builder newAssumeRolePolicyDocument(String newAssumeRolePolicyDocument)
The policy that specifies the trusted entity to assume the RAM role.
example:{ "Statement": [ { "Action": "sts:AssumeRole", "Effect": "Allow", "Principal": { "RAM": "acs:ram::12345678901234****:root" } } ], "Version": "1" }
public UpdateRoleRequest.Builder newDescription(String newDescription)
The new description of the RAM role.
The value must be 1 to 1,024 characters in length.
example:ECS administrator
public UpdateRoleRequest.Builder newMaxSessionDuration(Long newMaxSessionDuration)
The maximum session duration of the RAM role.
Valid values: 3600 to 43200. Unit: seconds.Default value: 3600.
If you do not specify this parameter, the default value is used.
example:3600
public UpdateRoleRequest.Builder roleName(String roleName)
The name of the RAM role.
The name must be 1 to 64 characters in length and can contain letters, digits, periods (.),and hyphens (-).
example:ECSAdmin
public UpdateRoleRequest build()
Copyright © 2025. All rights reserved.