public String getSourceIdentity() {
        return this.sourceIdentity;
    }
<p>
The value of the source identity that is returned in the JSON web token (JWT) from the identity provider.
</p>
<p>
You can require users to set a source identity value when they assume a role. You do this by using the
<code>sts:SourceIdentity</code> condition key in a role trust policy. That way, actions that are taken with the
role are associated with that user. After the source identity is set, the value cannot be changed. It is present
in the request for all actions that are taken by the role and persists across <a
href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts#iam-term-role-chaining"
>chained role</a> sessions. You can configure your identity provider to use an attribute associated with your
users, like user name or email, as the source identity when calling <code>AssumeRoleWithWebIdentity</code>. You
do this by adding a claim to the JSON web token. To learn more about OIDC tokens and claims, see <a href=
"https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-using-tokens-with-identity-providers.html"
>Using Tokens with User Pools</a> in the <i>Amazon Cognito Developer Guide</i>. For more information about using
source identity, see <a
href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_control-access_monitor.html">Monitor
and control actions taken with assumed roles</a> in the <i>IAM User Guide</i>.
</p>
<p>
The regex used to validate this parameter is a string of characters consisting of upper- and lower-case
alphanumeric characters with no spaces. You can also include underscores or any of the following characters: =,.@-
</p>

@return The value of the source identity that is returned in the JSON web token (JWT) from the identity
        provider.</p>
        <p>
        You can require users to set a source identity value when they assume a role. You do this by using the
        <code>sts:SourceIdentity</code> condition key in a role trust policy. That way, actions that are taken
        with the role are associated with that user. After the source identity is set, the value cannot be
        changed. It is present in the request for all actions that are taken by the role and persists across <a
        href
        ="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts#iam-term-role-chaining"
        >chained role</a> sessions. You can configure your identity provider to use an attribute associated with
        your users, like user name or email, as the source identity when calling
        <code>AssumeRoleWithWebIdentity</code>. You do this by adding a claim to the JSON web token. To learn
        more about OIDC tokens and claims, see <a href=
        "https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-using-tokens-with-identity-providers.html"
        >Using Tokens with User Pools</a> in the <i>Amazon Cognito Developer Guide</i>. For more information
        about using source identity, see <a
        href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_control-access_monitor.html"
        >Monitor and control actions taken with assumed roles</a> in the <i>IAM User Guide</i>.
        </p>
        <p>
        The regex used to validate this parameter is a string of characters consisting of upper- and lower-case
        alphanumeric characters with no spaces. You can also include underscores or any of the following
        characters: =,.@-
aws-java-sdk-sts/src/main/java/com/amazonaws/services/securitytoken/model/AssumeRoleWithWebIdentityResult.java