Skip to content

Commit 0cedc3d

Browse files
author
awstools
committed
feat(client-route-53): Add hostedzonetype filter to ListHostedZones API.
1 parent 7670b0f commit 0cedc3d

File tree

8 files changed

+79
-22
lines changed

8 files changed

+79
-22
lines changed

clients/client-route-53/src/commands/ChangeResourceRecordSetsCommand.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ export interface ChangeResourceRecordSetsCommandOutput extends ChangeResourceRec
9999
* </li>
100100
* <li>
101101
* <p>
102-
* <code>UPSERT</code>: If a resource set exists Route 53 updates it with the
103-
* values in the request. </p>
102+
* <code>UPSERT</code>: If a resource set doesn't exist, Route 53 creates it. If a resource
103+
* set exists Route 53 updates it with the values in the request. </p>
104104
* </li>
105105
* </ul>
106106
* <p>

clients/client-route-53/src/commands/CreateTrafficPolicyInstanceCommand.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,14 @@ export interface CreateTrafficPolicyInstanceCommandOutput
4646
* or subdomain name (such as www.example.com). Amazon Route 53 responds to DNS queries for
4747
* the domain or subdomain name by using the resource record sets that
4848
* <code>CreateTrafficPolicyInstance</code> created.</p>
49+
* <note>
50+
* <p>After you submit an <code>CreateTrafficPolicyInstance</code> request, there's a
51+
* brief delay while Amazon Route 53 creates the resource record sets that are
52+
* specified in the traffic policy definition.
53+
* Use <code>GetTrafficPolicyInstance</code> with the <code>id</code> of new traffic policy instance to confirm that the <code>CreateTrafficPolicyInstance</code>
54+
* request completed successfully. For more information, see the
55+
* <code>State</code> response element.</p>
56+
* </note>
4957
* @example
5058
* Use a bare-bones client and the command you need to make an API call.
5159
* ```javascript

clients/client-route-53/src/commands/GetTrafficPolicyInstanceCommand.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ export interface GetTrafficPolicyInstanceCommandOutput extends GetTrafficPolicyI
4040
* @public
4141
* <p>Gets information about a specified traffic policy instance.</p>
4242
* <note>
43-
* <p>After you submit a <code>CreateTrafficPolicyInstance</code> or an
44-
* <code>UpdateTrafficPolicyInstance</code> request, there's a brief delay while
45-
* Amazon Route 53 creates the resource record sets that are specified in the traffic
46-
* policy definition. For more information, see the <code>State</code> response
43+
* <p>
44+
* Use <code>GetTrafficPolicyInstance</code> with the <code>id</code> of new traffic policy instance to confirm that the
45+
* <code>CreateTrafficPolicyInstance</code> or an <code>UpdateTrafficPolicyInstance</code> request completed successfully.
46+
* For more information, see the <code>State</code> response
4747
* element.</p>
4848
* </note>
4949
* <note>

clients/client-route-53/src/commands/ListHostedZonesCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ export interface ListHostedZonesCommandOutput extends ListHostedZonesResponse, _
5454
* Marker: "STRING_VALUE",
5555
* MaxItems: Number("int"),
5656
* DelegationSetId: "STRING_VALUE",
57+
* HostedZoneType: "PrivateHostedZone",
5758
* };
5859
* const command = new ListHostedZonesCommand(input);
5960
* const response = await client.send(command);

clients/client-route-53/src/commands/UpdateTrafficPolicyInstanceCommand.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,13 @@ export interface UpdateTrafficPolicyInstanceCommandOutput
4040

4141
/**
4242
* @public
43-
* <p>Updates the resource record sets in a specified hosted zone that were created based on
43+
* <note>
44+
* <p>After you submit a <code>UpdateTrafficPolicyInstance</code> request, there's a brief delay while Route 53 creates the resource record sets
45+
* that are specified in the traffic policy definition. Use <code>GetTrafficPolicyInstance</code> with the <code>id</code> of updated traffic policy instance confirm
46+
* that the
47+
* <code>UpdateTrafficPolicyInstance</code> request completed successfully. For more information, see the <code>State</code> response element.</p>
48+
* </note>
49+
* <p>Updates the resource record sets in a specified hosted zone that were created based on
4450
* the settings in a specified traffic policy version.</p>
4551
* <p>When you update a traffic policy instance, Amazon Route 53 continues to respond to DNS
4652
* queries for the root resource record set name (such as example.com) while it replaces

clients/client-route-53/src/models/models_0.ts

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1332,6 +1332,7 @@ export interface GeoLocation {
13321332
* <p>For geolocation resource record sets, the two-letter code for a country.</p>
13331333
* <p>Amazon Route 53 uses the two-letter country codes that are specified in <a href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO standard 3166-1
13341334
* alpha-2</a>.</p>
1335+
* <p>Route 53 also supports the contry code <b>UA</b> forr Ukraine.</p>
13351336
*/
13361337
CountryCode?: string;
13371338

@@ -2963,6 +2964,8 @@ export interface CreateHealthCheckRequest {
29632964
* check, Route 53 creates the health check.</p>
29642965
* </li>
29652966
* </ul>
2967+
* <p> Route 53 does not store the <code>CallerReference</code> for a deleted health check indefinitely.
2968+
* The <code>CallerReference</code> for a deleted health check will be deleted after a number of days.</p>
29662969
*/
29672970
CallerReference: string | undefined;
29682971

@@ -5613,6 +5616,7 @@ export interface GetGeoLocationRequest {
56135616
* @public
56145617
* <p>Amazon Route 53 uses the two-letter country codes that are specified in <a href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO standard 3166-1
56155618
* alpha-2</a>.</p>
5619+
* <p>Route 53 also supports the contry code <b>UA</b> forr Ukraine.</p>
56165620
*/
56175621
CountryCode?: string;
56185622

@@ -6632,9 +6636,9 @@ export interface ListHealthChecksRequest {
66326636
/**
66336637
* @public
66346638
* <p>The maximum number of health checks that you want <code>ListHealthChecks</code> to
6635-
* return in response to the current request. Amazon Route 53 returns a maximum of 100
6636-
* items. If you set <code>MaxItems</code> to a value greater than 100, Route 53 returns
6637-
* only the first 100 health checks. </p>
6639+
* return in response to the current request. Amazon Route 53 returns a maximum of 1000
6640+
* items. If you set <code>MaxItems</code> to a value greater than 1000, Route 53 returns
6641+
* only the first 1000 health checks. </p>
66386642
*/
66396643
MaxItems?: number;
66406644
}
@@ -6686,6 +6690,19 @@ export interface ListHealthChecksResponse {
66866690
MaxItems: number | undefined;
66876691
}
66886692

6693+
/**
6694+
* @public
6695+
* @enum
6696+
*/
6697+
export const HostedZoneType = {
6698+
PRIVATE_HOSTED_ZONE: "PrivateHostedZone",
6699+
} as const;
6700+
6701+
/**
6702+
* @public
6703+
*/
6704+
export type HostedZoneType = (typeof HostedZoneType)[keyof typeof HostedZoneType];
6705+
66896706
/**
66906707
* @public
66916708
* <p>A request to retrieve a list of the public and private hosted zones that are
@@ -6722,6 +6739,14 @@ export interface ListHostedZonesRequest {
67226739
* delegation set. </p>
67236740
*/
67246741
DelegationSetId?: string;
6742+
6743+
/**
6744+
* @public
6745+
* <p>
6746+
* (Optional) Specifies if the hosted zone is private.
6747+
* </p>
6748+
*/
6749+
HostedZoneType?: HostedZoneType | string;
67256750
}
67266751

67276752
/**

clients/client-route-53/src/protocols/Aws_restXml.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2056,6 +2056,7 @@ export const se_ListHostedZonesCommand = async (
20562056
marker: [, input.Marker!],
20572057
maxitems: [() => input.MaxItems !== void 0, () => input.MaxItems!.toString()],
20582058
delegationsetid: [, input.DelegationSetId!],
2059+
hostedzonetype: [, input.HostedZoneType!],
20592060
});
20602061
let body: any;
20612062
return new __HttpRequest({

0 commit comments

Comments
 (0)