public void IdentityManagementServiceAttachGroupPolicy()
        {
            #region 87551489-86f0-45db-9889-759936778f2b

            var response = client.AttachGroupPolicy(new AttachGroupPolicyRequest
            {
                GroupName = "Finance",
                PolicyArn = "arn:aws:iam::aws:policy/ReadOnlyAccess"
            });


            #endregion
        }
Esempio n. 2
0
 private Amazon.IdentityManagement.Model.AttachGroupPolicyResponse CallAWSServiceOperation(IAmazonIdentityManagementService client, Amazon.IdentityManagement.Model.AttachGroupPolicyRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Identity and Access Management", "AttachGroupPolicy");
     try
     {
         #if DESKTOP
         return(client.AttachGroupPolicy(request));
         #elif CORECLR
         return(client.AttachGroupPolicyAsync(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;
     }
 }