forked from TrueCloudLab/lego
9f1b9e39af
Fully backwards compatible in terms of credential mechanisms (environment variables, shared credentials file, EC2 metadata). If a custom AWS IAM policy is in use it needs to be updated with permissions for the route53:ListHostedZonesByName action.
39 lines
1.4 KiB
Go
39 lines
1.4 KiB
Go
package route53
|
|
|
|
var ChangeResourceRecordSetsResponse = `<?xml version="1.0" encoding="UTF-8"?>
|
|
<ChangeResourceRecordSetsResponse xmlns="https://route53.amazonaws.com/doc/2013-04-01/">
|
|
<ChangeInfo>
|
|
<Id>/change/123456</Id>
|
|
<Status>PENDING</Status>
|
|
<SubmittedAt>2016-02-10T01:36:41.958Z</SubmittedAt>
|
|
</ChangeInfo>
|
|
</ChangeResourceRecordSetsResponse>`
|
|
|
|
var ListHostedZonesByNameResponse = `<?xml version="1.0" encoding="UTF-8"?>
|
|
<ListHostedZonesByNameResponse xmlns="https://route53.amazonaws.com/doc/2013-04-01/">
|
|
<HostedZones>
|
|
<HostedZone>
|
|
<Id>/hostedzone/ABCDEFG</Id>
|
|
<Name>example.com.</Name>
|
|
<CallerReference>D2224C5B-684A-DB4A-BB9A-E09E3BAFEA7A</CallerReference>
|
|
<Config>
|
|
<Comment>Test comment</Comment>
|
|
<PrivateZone>false</PrivateZone>
|
|
</Config>
|
|
<ResourceRecordSetCount>10</ResourceRecordSetCount>
|
|
</HostedZone>
|
|
</HostedZones>
|
|
<IsTruncated>true</IsTruncated>
|
|
<NextDNSName>example2.com</NextDNSName>
|
|
<NextHostedZoneId>ZLT12321321124</NextHostedZoneId>
|
|
<MaxItems>1</MaxItems>
|
|
</ListHostedZonesByNameResponse>`
|
|
|
|
var GetChangeResponse = `<?xml version="1.0" encoding="UTF-8"?>
|
|
<GetChangeResponse xmlns="https://route53.amazonaws.com/doc/2013-04-01/">
|
|
<ChangeInfo>
|
|
<Id>123456</Id>
|
|
<Status>INSYNC</Status>
|
|
<SubmittedAt>2016-02-10T01:36:41.958Z</SubmittedAt>
|
|
</ChangeInfo>
|
|
</GetChangeResponse>`
|