AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Container for the parameters to the UpdateRole operation. Updates the description or maximum session duration setting of a role.
Namespace: Amazon.IdentityManagement.Model
Assembly: AWSSDK.IdentityManagement.dll
Version: 3.x.y.z
public class UpdateRoleRequest : AmazonIdentityManagementServiceRequest IAmazonWebServiceRequest
The UpdateRoleRequest type exposes the following members
Name | Description | |
---|---|---|
![]() |
UpdateRoleRequest() |
Name | Type | Description | |
---|---|---|---|
![]() |
Description | System.String |
Gets and sets the property Description. The new description that you want to apply to the specified role. |
![]() |
MaxSessionDuration | System.Int32 |
Gets and sets the property MaxSessionDuration. The maximum session duration (in seconds) that you want to set for the specified role. If you do not specify a value for this setting, the default value of one hour is applied. This setting can have a value from 1 hour to 12 hours.
Anyone who assumes the role from the CLI or API can use the IAM role credentials provided by Amazon EC2 instances assigned to the role are not subject to the specified maximum session duration. |
![]() |
RoleName | System.String |
Gets and sets the property RoleName. The name of the role that you want to modify. |
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5 and newer, 3.5