Пример #1
0
        public void OrganizationsCancelHandshake()
        {
            #region to-cancel-a-handshake-sent-to-a-member-account-1472501320506

            var response = client.CancelHandshake(new CancelHandshakeRequest
            {
                HandshakeId = "h-examplehandshakeid111"
            });

            Handshake handshake = response.Handshake;

            #endregion
        }
 private Amazon.Organizations.Model.CancelHandshakeResponse CallAWSServiceOperation(IAmazonOrganizations client, Amazon.Organizations.Model.CancelHandshakeRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Organizations", "CancelHandshake");
     try
     {
         #if DESKTOP
         return(client.CancelHandshake(request));
         #elif CORECLR
         return(client.CancelHandshakeAsync(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;
     }
 }