public void RedshiftAuthorizeClusterSecurityGroupIngress()
        {
            #region authorizing-access-to-an-ec2-security-group-1481675923213

            var response = client.AuthorizeClusterSecurityGroupIngress(new AuthorizeClusterSecurityGroupIngressRequest
            {
                ClusterSecurityGroupName = "mysecuritygroup",
                EC2SecurityGroupName     = "myec2securitygroup",
                EC2SecurityGroupOwnerId  = "123445677890"
            });


            #endregion
        }
Esempio n. 2
0
 private Amazon.Redshift.Model.AuthorizeClusterSecurityGroupIngressResponse CallAWSServiceOperation(IAmazonRedshift client, Amazon.Redshift.Model.AuthorizeClusterSecurityGroupIngressRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon Redshift", "AuthorizeClusterSecurityGroupIngress");
     try
     {
         #if DESKTOP
         return(client.AuthorizeClusterSecurityGroupIngress(request));
         #elif CORECLR
         return(client.AuthorizeClusterSecurityGroupIngressAsync(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;
     }
 }