Returns a set of temporary security credentials that are scoped down from the caller's existing temporary security credentials.
GetScopedCredentials preserves the caller's identity while narrowing the permissions and optionally shortening the session lifetime.
For a comparison of
GetScopedCredentials with the other API operations that produce temporary security credentials, see
Requesting Temporary Security Credentials and
Compare STS credentials in the IAM User Guide.
Credential requirements You can only call
GetScopedCredentials with temporary security credentials, for example, credentials from an assumed role or a federated session. You cannot call it with IAM user credentials or root credentials. If you want to scope down IAM user credentials, first call
GetSessionToken to get temporary security credentials, and then call
GetScopedCredentials with those credentials.
The
GetScopedCredentials API is not available on the STS Global endpoint.