Example #1
0
        public void OrganizationsAcceptHandshake()
        {
            #region to-accept-a-handshake-from-another-account-1472500561150

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

            Handshake handshake = response.Handshake;

            #endregion
        }
Example #2
0
 private Amazon.Organizations.Model.AcceptHandshakeResponse CallAWSServiceOperation(IAmazonOrganizations client, Amazon.Organizations.Model.AcceptHandshakeRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Organizations", "AcceptHandshake");
     try
     {
         #if DESKTOP
         return(client.AcceptHandshake(request));
         #elif CORECLR
         return(client.AcceptHandshakeAsync(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;
     }
 }