public void AutoScalingDeleteNotificationConfiguration() { #region autoscaling-delete-notification-configuration-1 var response = client.DeleteNotificationConfiguration(new DeleteNotificationConfigurationRequest { AutoScalingGroupName = "my-auto-scaling-group", TopicARN = "arn:aws:sns:us-west-2:123456789012:my-sns-topic" }); #endregion }
private Amazon.AutoScaling.Model.DeleteNotificationConfigurationResponse CallAWSServiceOperation(IAmazonAutoScaling client, Amazon.AutoScaling.Model.DeleteNotificationConfigurationRequest request) { Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Auto Scaling", "DeleteNotificationConfiguration"); try { #if DESKTOP return(client.DeleteNotificationConfiguration(request)); #elif CORECLR return(client.DeleteNotificationConfigurationAsync(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; } }