public void Route53AssociateVPCWithHostedZone() { #region to-associate-a-vpc-with-a-hosted-zone-1484069228699 var response = client.AssociateVPCWithHostedZone(new AssociateVPCWithHostedZoneRequest { Comment = "", HostedZoneId = "Z3M3LMPEXAMPLE", VPC = new VPC { VPCId = "vpc-1a2b3c4d", VPCRegion = "us-east-2" } }); ChangeInfo changeInfo = response.ChangeInfo; #endregion }
private Amazon.Route53.Model.AssociateVPCWithHostedZoneResponse CallAWSServiceOperation(IAmazonRoute53 client, Amazon.Route53.Model.AssociateVPCWithHostedZoneRequest request) { Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon Route 53", "AssociateVPCWithHostedZone"); try { #if DESKTOP return(client.AssociateVPCWithHostedZone(request)); #elif CORECLR return(client.AssociateVPCWithHostedZoneAsync(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; } }