Updates the description or maximum session duration setting of the specified IAM Role in the caller's namespace or x-emc-namespace header if provided.
| RoleName | Simple name identifying the role. |
| 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 maximum of one hour is applied. This setting can have a value from 1 hour to 12 hours |
| Description | The new description that you want to apply to the specified role. |
This call has no restrictions.
No Request Payload
| Field | Description | Type | Notes |
| UpdateRoleResponse | |||
| Result | |||
| Role | |||
| Arn | Arn that identifies the role. | String | |
| AssumeRolePolicyDocument | The trust relationship policy document that grants an entity permission to assume the role. | String | |
| CreateDate | ISO 8601 DateTime when role was created. | String | |
| Description | The description of the IAM role. | String | |
| MaxSessionDuration | The maximum session duration (in seconds) that you want to set for the specified role. | Integer | |
| Path | The path to the IAM role. | String | |
| RoleId | Unique Id associated with the role. | String | |
| RoleName | Simple name identifying the role. | String | |
| Tags | The list of Tags associated with the role. | ||
| Tags |
0-* Elements |
||
| PermissionsBoundary | |||
| PermissionsBoundaryArn | The ARN of the policy set as permissions boundary. | String | |
| PermissionsBoundaryType | The permissions boundary usage type that indicates what type of IAM resource is used as the permissions boundary for an entity. This data type can only have a value of Policy. | String | |
| ResponseMetadata | |||
| RequestId | String |
POST https://192.168.0.0:4443/iam?RoleName=FinanceRole&Description=Updated%20description%20for%20this%20role.&MaxSessionDuration=3600&Action=UpdateRole Accept: application/xml X-SDS-AUTH-TOKEN: <AUTH_TOKEN> x-emc-namespace: <namespace>
HTTP/1.1 200 OK
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:UpdateRoleResponse xmlns:ns2="none">
<ResponseMetadata>
<RequestId>0af9f5b8:17178fe9282:d384:12</RequestId>
</ResponseMetadata>
<UpdateRoleResult>
<Role>
<Arn>urn:ecs:iam::ns:role/FinanceRole</Arn>
<AssumeRolePolicyDocument>{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Principal":{"AWS":["urn:ecs:iam::ns:user/payroll1"]},"Action":"sts:AssumeRole"}]}</AssumeRolePolicyDocument>
<CreateDate>2020-04-15T19:13:23Z</CreateDate>
<Description>Updated description for this role.</Description>
<MaxSessionDuration>3600</MaxSessionDuration>
<Path>/</Path>
<RoleId>AROA23F18A49C7F00C3A</RoleId>
<RoleName>FinanceRole</RoleName>
<Tags>
<member>
<Key>Department</Key>
<Value>Finance</Value>
</member>
</Tags>
</Role>
</UpdateRoleResult>
</ns2:UpdateRoleResponse>