Skip to content

Commit 3c918da

Browse files
author
awstools
committed
feat(client-iot-data-plane): Update the default AWS IoT Core Data Plane endpoint from VeriSign signed to ATS signed. If you have firewalls with strict egress rules, configure the rules to grant you access to data-ats.iot.[region].amazonaws.com or data-ats.iot.[region].amazonaws.com.cn.
1 parent 57e29b7 commit 3c918da

File tree

7 files changed

+949
-1011
lines changed

7 files changed

+949
-1011
lines changed

clients/client-iot-data-plane/src/IoTDataPlane.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export class IoTDataPlane extends IoTDataPlaneClient {
8787
* incur messaging costs. To list only the topic names of the retained messages, call
8888
* <a href="/iot/latest/developerguide/API_iotdata_ListRetainedMessages.html">ListRetainedMessages</a>.</p>
8989
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiotfleethubfordevicemanagement.html#awsiotfleethubfordevicemanagement-actions-as-permissions">GetRetainedMessage</a> action.</p>
90-
* <p>For more information about messaging costs, see <a href="http://aws.amazon.com/iot-core/pricing/#Messaging">IoT Core
90+
* <p>For more information about messaging costs, see <a href="http://aws.amazon.com/iot-core/pricing/#Messaging">Amazon Web Services IoT Core
9191
* pricing - Messaging</a>.</p>
9292
*/
9393
public getRetainedMessage(
@@ -196,7 +196,7 @@ export class IoTDataPlane extends IoTDataPlaneClient {
196196
* <a href="https://docs.aws.amazon.com/iot/latest/developerguide/API_iotdata_GetRetainedMessage.html">GetRetainedMessage</a>
197197
* with the topic name of the retained message.</p>
198198
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiotfleethubfordevicemanagement.html#awsiotfleethubfordevicemanagement-actions-as-permissions">ListRetainedMessages</a> action.</p>
199-
* <p>For more information about messaging costs, see <a href="http://aws.amazon.com/iot-core/pricing/#Messaging">IoT Core
199+
* <p>For more information about messaging costs, see <a href="http://aws.amazon.com/iot-core/pricing/#Messaging">Amazon Web Services IoT Core
200200
* pricing - Messaging</a>.</p>
201201
*/
202202
public listRetainedMessages(
@@ -234,7 +234,7 @@ export class IoTDataPlane extends IoTDataPlaneClient {
234234
* <p>For more information about MQTT messages, see
235235
* <a href="http://docs.aws.amazon.com/iot/latest/developerguide/mqtt.html">MQTT Protocol</a> in the
236236
* IoT Developer Guide.</p>
237-
* <p>For more information about messaging costs, see <a href="http://aws.amazon.com/iot-core/pricing/#Messaging">IoT Core
237+
* <p>For more information about messaging costs, see <a href="http://aws.amazon.com/iot-core/pricing/#Messaging">Amazon Web Services IoT Core
238238
* pricing - Messaging</a>.</p>
239239
*/
240240
public publish(args: PublishCommandInput, options?: __HttpHandlerOptions): Promise<PublishCommandOutput>;

clients/client-iot-data-plane/src/commands/GetRetainedMessageCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export interface GetRetainedMessageCommandOutput extends GetRetainedMessageRespo
2727
* incur messaging costs. To list only the topic names of the retained messages, call
2828
* <a href="/iot/latest/developerguide/API_iotdata_ListRetainedMessages.html">ListRetainedMessages</a>.</p>
2929
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiotfleethubfordevicemanagement.html#awsiotfleethubfordevicemanagement-actions-as-permissions">GetRetainedMessage</a> action.</p>
30-
* <p>For more information about messaging costs, see <a href="http://aws.amazon.com/iot-core/pricing/#Messaging">IoT Core
30+
* <p>For more information about messaging costs, see <a href="http://aws.amazon.com/iot-core/pricing/#Messaging">Amazon Web Services IoT Core
3131
* pricing - Messaging</a>.</p>
3232
* @example
3333
* Use a bare-bones client and the command you need to make an API call.

clients/client-iot-data-plane/src/commands/ListRetainedMessagesCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export interface ListRetainedMessagesCommandOutput extends ListRetainedMessagesR
3030
* <a href="https://docs.aws.amazon.com/iot/latest/developerguide/API_iotdata_GetRetainedMessage.html">GetRetainedMessage</a>
3131
* with the topic name of the retained message.</p>
3232
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiotfleethubfordevicemanagement.html#awsiotfleethubfordevicemanagement-actions-as-permissions">ListRetainedMessages</a> action.</p>
33-
* <p>For more information about messaging costs, see <a href="http://aws.amazon.com/iot-core/pricing/#Messaging">IoT Core
33+
* <p>For more information about messaging costs, see <a href="http://aws.amazon.com/iot-core/pricing/#Messaging">Amazon Web Services IoT Core
3434
* pricing - Messaging</a>.</p>
3535
* @example
3636
* Use a bare-bones client and the command you need to make an API call.

clients/client-iot-data-plane/src/commands/PublishCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export interface PublishCommandOutput extends __MetadataBearer {}
2727
* <p>For more information about MQTT messages, see
2828
* <a href="http://docs.aws.amazon.com/iot/latest/developerguide/mqtt.html">MQTT Protocol</a> in the
2929
* IoT Developer Guide.</p>
30-
* <p>For more information about messaging costs, see <a href="http://aws.amazon.com/iot-core/pricing/#Messaging">IoT Core
30+
* <p>For more information about messaging costs, see <a href="http://aws.amazon.com/iot-core/pricing/#Messaging">Amazon Web Services IoT Core
3131
* pricing - Messaging</a>.</p>
3232
* @example
3333
* Use a bare-bones client and the command you need to make an API call.

clients/client-iot-data-plane/src/endpoints.ts

Lines changed: 18 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,7 @@
11
import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver";
22
import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types";
33

4-
const regionHash: RegionHash = {
5-
"ca-central-1": {
6-
variants: [
7-
{
8-
hostname: "data.iot-fips.ca-central-1.amazonaws.com",
9-
tags: ["fips"],
10-
},
11-
],
12-
},
13-
"us-east-1": {
14-
variants: [
15-
{
16-
hostname: "data.iot-fips.us-east-1.amazonaws.com",
17-
tags: ["fips"],
18-
},
19-
],
20-
},
21-
"us-east-2": {
22-
variants: [
23-
{
24-
hostname: "data.iot-fips.us-east-2.amazonaws.com",
25-
tags: ["fips"],
26-
},
27-
],
28-
},
29-
"us-gov-east-1": {
30-
variants: [
31-
{
32-
hostname: "data.iot-fips.us-gov-east-1.amazonaws.com",
33-
tags: ["fips"],
34-
},
35-
],
36-
},
37-
"us-gov-west-1": {
38-
variants: [
39-
{
40-
hostname: "data.iot-fips.us-gov-west-1.amazonaws.com",
41-
tags: ["fips"],
42-
},
43-
],
44-
},
45-
"us-west-1": {
46-
variants: [
47-
{
48-
hostname: "data.iot-fips.us-west-1.amazonaws.com",
49-
tags: ["fips"],
50-
},
51-
],
52-
},
53-
"us-west-2": {
54-
variants: [
55-
{
56-
hostname: "data.iot-fips.us-west-2.amazonaws.com",
57-
tags: ["fips"],
58-
},
59-
],
60-
},
61-
};
4+
const regionHash: RegionHash = {};
625

636
const partitionHash: PartitionHash = {
647
aws: {
@@ -79,11 +22,6 @@ const partitionHash: PartitionHash = {
7922
"eu-west-1",
8023
"eu-west-2",
8124
"eu-west-3",
82-
"fips-ca-central-1",
83-
"fips-us-east-1",
84-
"fips-us-east-2",
85-
"fips-us-west-1",
86-
"fips-us-west-2",
8725
"me-south-1",
8826
"sa-east-1",
8927
"us-east-1",
@@ -94,19 +32,19 @@ const partitionHash: PartitionHash = {
9432
regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
9533
variants: [
9634
{
97-
hostname: "data.iot.{region}.amazonaws.com",
35+
hostname: "data-ats.iot.{region}.amazonaws.com",
9836
tags: [],
9937
},
10038
{
101-
hostname: "data.iot-fips.{region}.amazonaws.com",
39+
hostname: "data-ats.iot-fips.{region}.amazonaws.com",
10240
tags: ["fips"],
10341
},
10442
{
105-
hostname: "data.iot-fips.{region}.api.aws",
43+
hostname: "data-ats.iot-fips.{region}.api.aws",
10644
tags: ["dualstack", "fips"],
10745
},
10846
{
109-
hostname: "data.iot.{region}.api.aws",
47+
hostname: "data-ats.iot.{region}.api.aws",
11048
tags: ["dualstack"],
11149
},
11250
],
@@ -116,19 +54,19 @@ const partitionHash: PartitionHash = {
11654
regionRegex: "^cn\\-\\w+\\-\\d+$",
11755
variants: [
11856
{
119-
hostname: "data.iot.{region}.amazonaws.com.cn",
57+
hostname: "data-ats.iot.{region}.amazonaws.com.cn",
12058
tags: [],
12159
},
12260
{
123-
hostname: "data.iot-fips.{region}.amazonaws.com.cn",
61+
hostname: "data-ats.iot-fips.{region}.amazonaws.com.cn",
12462
tags: ["fips"],
12563
},
12664
{
127-
hostname: "data.iot-fips.{region}.api.amazonwebservices.com.cn",
65+
hostname: "data-ats.iot-fips.{region}.api.amazonwebservices.com.cn",
12866
tags: ["dualstack", "fips"],
12967
},
13068
{
131-
hostname: "data.iot.{region}.api.amazonwebservices.com.cn",
69+
hostname: "data-ats.iot.{region}.api.amazonwebservices.com.cn",
13270
tags: ["dualstack"],
13371
},
13472
],
@@ -138,11 +76,11 @@ const partitionHash: PartitionHash = {
13876
regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
13977
variants: [
14078
{
141-
hostname: "data.iot.{region}.c2s.ic.gov",
79+
hostname: "data-ats.iot.{region}.c2s.ic.gov",
14280
tags: [],
14381
},
14482
{
145-
hostname: "data.iot-fips.{region}.c2s.ic.gov",
83+
hostname: "data-ats.iot-fips.{region}.c2s.ic.gov",
14684
tags: ["fips"],
14785
},
14886
],
@@ -152,33 +90,33 @@ const partitionHash: PartitionHash = {
15290
regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
15391
variants: [
15492
{
155-
hostname: "data.iot.{region}.sc2s.sgov.gov",
93+
hostname: "data-ats.iot.{region}.sc2s.sgov.gov",
15694
tags: [],
15795
},
15896
{
159-
hostname: "data.iot-fips.{region}.sc2s.sgov.gov",
97+
hostname: "data-ats.iot-fips.{region}.sc2s.sgov.gov",
16098
tags: ["fips"],
16199
},
162100
],
163101
},
164102
"aws-us-gov": {
165-
regions: ["fips-us-gov-east-1", "fips-us-gov-west-1", "us-gov-east-1", "us-gov-west-1"],
103+
regions: ["us-gov-east-1", "us-gov-west-1"],
166104
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
167105
variants: [
168106
{
169-
hostname: "data.iot.{region}.amazonaws.com",
107+
hostname: "data-ats.iot.{region}.amazonaws.com",
170108
tags: [],
171109
},
172110
{
173-
hostname: "data.iot-fips.{region}.amazonaws.com",
111+
hostname: "data-ats.iot-fips.{region}.amazonaws.com",
174112
tags: ["fips"],
175113
},
176114
{
177-
hostname: "data.iot-fips.{region}.api.aws",
115+
hostname: "data-ats.iot-fips.{region}.api.aws",
178116
tags: ["dualstack", "fips"],
179117
},
180118
{
181-
hostname: "data.iot.{region}.api.aws",
119+
hostname: "data-ats.iot.{region}.api.aws",
182120
tags: ["dualstack"],
183121
},
184122
],

clients/client-iot-data-plane/src/models/models_0.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ export interface PublishRequest {
471471
/**
472472
* <p>The message body. MQTT accepts text, binary, and empty (null) message payloads.</p>
473473
* <p>Publishing an empty (null) payload with <b>retain</b> =
474-
* <code>true</code> deletes the retained message identified by <b>topic</b> from IoT Core.</p>
474+
* <code>true</code> deletes the retained message identified by <b>topic</b> from Amazon Web Services IoT Core.</p>
475475
*/
476476
payload?: Uint8Array;
477477
}

0 commit comments

Comments
 (0)