コード例 #1
0
        public void IdentityManagementServiceCreateAccountAlias()
        {
            #region 5adaf6fb-94fc-4ca2-b825-2fbc2062add1

            var response = client.CreateAccountAlias(new CreateAccountAliasRequest
            {
                AccountAlias = "examplecorp"
            });


            #endregion
        }
コード例 #2
0
 private Amazon.IdentityManagement.Model.CreateAccountAliasResponse CallAWSServiceOperation(IAmazonIdentityManagementService client, Amazon.IdentityManagement.Model.CreateAccountAliasRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Identity and Access Management", "CreateAccountAlias");
     try
     {
         #if DESKTOP
         return(client.CreateAccountAlias(request));
         #elif CORECLR
         return(client.CreateAccountAliasAsync(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;
     }
 }