public void RedshiftCreateCluster()
        {
            #region to-create-a-cluster-with-minimal-parameters-1481678090203

            var response = client.CreateCluster(new CreateClusterRequest
            {
                ClusterIdentifier  = "mycluster",
                MasterUserPassword = "******",
                MasterUsername     = "******",
                NodeType           = "dw.hs1.xlarge"
            });


            #endregion
        }
Exemplo n.º 2
0
 private Amazon.Redshift.Model.CreateClusterResponse CallAWSServiceOperation(IAmazonRedshift client, Amazon.Redshift.Model.CreateClusterRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon Redshift", "CreateCluster");
     try
     {
         #if DESKTOP
         return(client.CreateCluster(request));
         #elif CORECLR
         return(client.CreateClusterAsync(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;
     }
 }