public void IdentityManagementServiceCreateGroup() { #region d5da2a90-5e69-4ef7-8ae8-4c33dc21fd21 var response = client.CreateGroup(new CreateGroupRequest { GroupName = "Admins" }); Group group = response.Group; #endregion }
private Amazon.IdentityManagement.Model.CreateGroupResponse CallAWSServiceOperation(IAmazonIdentityManagementService client, Amazon.IdentityManagement.Model.CreateGroupRequest request) { Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Identity and Access Management", "CreateGroup"); try { #if DESKTOP return(client.CreateGroup(request)); #elif CORECLR return(client.CreateGroupAsync(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; } }