v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-143010081.8 KB

Updates a profile, a list of the roles that IAM Roles Anywhere service is trusted to assume. You use profiles to intersect permissions with IAM managed policies.

Required permissions: rolesanywhere:UpdateProfile.

patch/profile/{profileId}

Path parameters

profileIdstring required

The unique identifier of the profile.

Request body

namestring

The name of the profile.

sessionPolicystring

A session policy that applies to the trust boundary of the vended session credentials.

roleArnsRoleArn[]

A list of IAM roles that this profile can assume in a temporary credential request.

managedPolicyArnsManagedPolicyListMemberString[]

A list of managed policy ARNs that apply to the vended session credentials.

durationSecondsinteger

Used to determine how long sessions vended using this profile are valid for. See the <code>Expiration</code> section of the <a href="https://docs.aws.amazon.com/rolesanywhere/latest/userguide/authentication-create-session.html#credentials-object">CreateSession API documentation</a> page for more details. In requests, if this value is not provided, the default value will be 3600.

acceptRoleSessionNameboolean

Used to determine if a custom role session name will be accepted in a temporary credential request.

Response

Success