AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

A complex type that contains the ChangeInfo element.

Inheritance Hierarchy


Namespace: Amazon.Route53.Model
Assembly: AWSSDK.Route53.dll
Version: 3.x.y.z


public class GetChangeResponse : AmazonWebServiceResponse

The GetChangeResponse type exposes the following members


Public Method GetChangeResponse()


Public Property ChangeInfo Amazon.Route53.Model.ChangeInfo

Gets and sets the property ChangeInfo.

A complex type that contains information about the specified change batch.

Public Property ContentLength System.Int64 Inherited from Amazon.Runtime.AmazonWebServiceResponse.
Public Property HttpStatusCode System.Net.HttpStatusCode Inherited from Amazon.Runtime.AmazonWebServiceResponse.
Public Property ResponseMetadata Amazon.Runtime.ResponseMetadata Inherited from Amazon.Runtime.AmazonWebServiceResponse.


This example shows how to create an Amazon Route 53 hosted zone and add a resource record set to the zone.

Create a hosted zone and add a resource record set

string domainName = "";

IAmazonRoute53 route53Client = new AmazonRoute53Client();

CreateHostedZoneRequest zoneRequest = new CreateHostedZoneRequest
  Name = domainName,
  CallerReference = "my_change_request"

CreateHostedZoneResponse zoneResponse = route53Client.CreateHostedZone(zoneRequest);

ResourceRecordSet recordSet = new ResourceRecordSet
  Name = domainName,
  TTL = 60,
  Type = RRType.A,
  ResourceRecords = new List { new ResourceRecord { Value = "" } }

Change change1 = new Change
  ResourceRecordSet = recordSet,
  Action = ChangeAction.CREATE

ChangeBatch changeBatch = new ChangeBatch
  Changes = new List { change1 }

ChangeResourceRecordSetsRequest recordsetRequest = new ChangeResourceRecordSetsRequest
  HostedZoneId = zoneResponse.HostedZone.Id,
  ChangeBatch = changeBatch

ChangeResourceRecordSetsResponse recordsetResponse = route53Client.ChangeResourceRecordSets(recordsetRequest);

GetChangeRequest changeRequest = new GetChangeRequest
  Id = recordsetResponse.ChangeInfo.Id

while (route53Client.GetChange(changeRequest).ChangeInfo.Status == ChangeStatus.PENDING)
  Console.WriteLine("Change is pending.");

Version Information

.NET Standard:
Supported in: 1.3

.NET Framework:
Supported in: 4.5, 4.0, 3.5

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms