public void IdentityManagementServiceCreateLoginProfile() { #region c63795bc-3444-40b3-89df-83c474ef88be var response = client.CreateLoginProfile(new CreateLoginProfileRequest { Password = "******", PasswordResetRequired = true, UserName = "******" }); LoginProfile loginProfile = response.LoginProfile; #endregion }
private Amazon.IdentityManagement.Model.CreateLoginProfileResponse CallAWSServiceOperation(IAmazonIdentityManagementService client, Amazon.IdentityManagement.Model.CreateLoginProfileRequest request) { Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Identity and Access Management", "CreateLoginProfile"); try { #if DESKTOP return(client.CreateLoginProfile(request)); #elif CORECLR return(client.CreateLoginProfileAsync(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; } }