public void SecurityTokenServiceGetCallerIdentity()
        {
            #region to-get-details-about-a-calling-iam-user-1480540050376

            var response = client.GetCallerIdentity(new GetCallerIdentityRequest
            {
            });

            string account = response.Account;
            string arn     = response.Arn;
            string userId  = response.UserId;

            #endregion
        }
 private Amazon.SecurityToken.Model.GetCallerIdentityResponse CallAWSServiceOperation(IAmazonSecurityTokenService client, Amazon.SecurityToken.Model.GetCallerIdentityRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Security Token Service (STS)", "GetCallerIdentity");
     try
     {
         #if DESKTOP
         return(client.GetCallerIdentity(request));
         #elif CORECLR
         return(client.GetCallerIdentityAsync(request).GetAwaiter().GetResult());
         #else
                 #error "Unknown build edition"
         #endif
     }
     catch (AmazonServiceException exc)
     {
         var webException = exc.InnerException as System.Net.WebException;
         if (webException != null)
         {
             throw new Exception(Utils.Common.FormatNameResolutionFailureMessage(client.Config, webException.Message), webException);
         }
         throw;
     }
 }