public void IdentityManagementServiceCreateAccessKey()
        {
            #region 1fbb3211-4cf2-41db-8c20-ba58d9f5802d

            var response = client.CreateAccessKey(new CreateAccessKeyRequest
            {
                UserName = "******"
            });

            AccessKey accessKey = response.AccessKey;

            #endregion
        }
 private Amazon.IdentityManagement.Model.CreateAccessKeyResponse CallAWSServiceOperation(IAmazonIdentityManagementService client, Amazon.IdentityManagement.Model.CreateAccessKeyRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Identity and Access Management", "CreateAccessKey");
     try
     {
         #if DESKTOP
         return(client.CreateAccessKey(request));
         #elif CORECLR
         return(client.CreateAccessKeyAsync(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;
     }
 }