@aws-sdk/client-iot 3.282.0 → 3.287.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/commands/DeletePolicyVersionCommand.js +2 -2
- package/dist-cjs/commands/ListStreamsCommand.js +1 -2
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +8 -8
- package/dist-cjs/models/models_1.js +14 -14
- package/dist-cjs/models/models_2.js +11 -3
- package/dist-cjs/pagination/GetBehaviorModelTrainingSummariesPaginator.js +1 -8
- package/dist-cjs/pagination/ListActiveViolationsPaginator.js +1 -8
- package/dist-cjs/pagination/ListAttachedPoliciesPaginator.js +1 -8
- package/dist-cjs/pagination/ListAuditFindingsPaginator.js +1 -8
- package/dist-cjs/pagination/ListAuditMitigationActionsExecutionsPaginator.js +1 -8
- package/dist-cjs/pagination/ListAuditMitigationActionsTasksPaginator.js +1 -8
- package/dist-cjs/pagination/ListAuditSuppressionsPaginator.js +1 -8
- package/dist-cjs/pagination/ListAuditTasksPaginator.js +1 -8
- package/dist-cjs/pagination/ListAuthorizersPaginator.js +1 -8
- package/dist-cjs/pagination/ListBillingGroupsPaginator.js +1 -8
- package/dist-cjs/pagination/ListCACertificatesPaginator.js +1 -8
- package/dist-cjs/pagination/ListCertificatesByCAPaginator.js +1 -8
- package/dist-cjs/pagination/ListCertificatesPaginator.js +1 -8
- package/dist-cjs/pagination/ListCustomMetricsPaginator.js +1 -8
- package/dist-cjs/pagination/ListDetectMitigationActionsExecutionsPaginator.js +1 -8
- package/dist-cjs/pagination/ListDetectMitigationActionsTasksPaginator.js +1 -8
- package/dist-cjs/pagination/ListDimensionsPaginator.js +1 -8
- package/dist-cjs/pagination/ListDomainConfigurationsPaginator.js +1 -8
- package/dist-cjs/pagination/ListFleetMetricsPaginator.js +1 -8
- package/dist-cjs/pagination/ListIndicesPaginator.js +1 -8
- package/dist-cjs/pagination/ListJobExecutionsForJobPaginator.js +1 -8
- package/dist-cjs/pagination/ListJobExecutionsForThingPaginator.js +1 -8
- package/dist-cjs/pagination/ListJobTemplatesPaginator.js +1 -8
- package/dist-cjs/pagination/ListJobsPaginator.js +1 -8
- package/dist-cjs/pagination/ListMetricValuesPaginator.js +1 -8
- package/dist-cjs/pagination/ListMitigationActionsPaginator.js +1 -8
- package/dist-cjs/pagination/ListOTAUpdatesPaginator.js +1 -8
- package/dist-cjs/pagination/ListOutgoingCertificatesPaginator.js +1 -8
- package/dist-cjs/pagination/ListPoliciesPaginator.js +1 -8
- package/dist-cjs/pagination/ListPolicyPrincipalsPaginator.js +1 -8
- package/dist-cjs/pagination/ListPrincipalPoliciesPaginator.js +1 -8
- package/dist-cjs/pagination/ListPrincipalThingsPaginator.js +1 -8
- package/dist-cjs/pagination/ListProvisioningTemplateVersionsPaginator.js +1 -8
- package/dist-cjs/pagination/ListProvisioningTemplatesPaginator.js +1 -8
- package/dist-cjs/pagination/ListRoleAliasesPaginator.js +1 -8
- package/dist-cjs/pagination/ListScheduledAuditsPaginator.js +1 -8
- package/dist-cjs/pagination/ListSecurityProfilesForTargetPaginator.js +1 -8
- package/dist-cjs/pagination/ListSecurityProfilesPaginator.js +1 -8
- package/dist-cjs/pagination/ListStreamsPaginator.js +1 -8
- package/dist-cjs/pagination/ListTagsForResourcePaginator.js +1 -8
- package/dist-cjs/pagination/ListTargetsForPolicyPaginator.js +1 -8
- package/dist-cjs/pagination/ListTargetsForSecurityProfilePaginator.js +1 -8
- package/dist-cjs/pagination/ListThingGroupsForThingPaginator.js +1 -8
- package/dist-cjs/pagination/ListThingGroupsPaginator.js +1 -8
- package/dist-cjs/pagination/ListThingPrincipalsPaginator.js +1 -8
- package/dist-cjs/pagination/ListThingRegistrationTaskReportsPaginator.js +1 -8
- package/dist-cjs/pagination/ListThingRegistrationTasksPaginator.js +1 -8
- package/dist-cjs/pagination/ListThingTypesPaginator.js +1 -8
- package/dist-cjs/pagination/ListThingsInBillingGroupPaginator.js +1 -8
- package/dist-cjs/pagination/ListThingsInThingGroupPaginator.js +1 -8
- package/dist-cjs/pagination/ListThingsPaginator.js +1 -8
- package/dist-cjs/pagination/ListTopicRuleDestinationsPaginator.js +1 -8
- package/dist-cjs/pagination/ListTopicRulesPaginator.js +1 -8
- package/dist-cjs/pagination/ListV2LoggingLevelsPaginator.js +1 -8
- package/dist-cjs/pagination/ListViolationEventsPaginator.js +1 -8
- package/dist-cjs/protocols/Aws_restJson1.js +61 -0
- package/dist-es/commands/DeletePolicyVersionCommand.js +1 -1
- package/dist-es/commands/ListStreamsCommand.js +1 -2
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +3 -3
- package/dist-es/models/models_1.js +6 -6
- package/dist-es/models/models_2.js +6 -0
- package/dist-es/pagination/GetBehaviorModelTrainingSummariesPaginator.js +1 -8
- package/dist-es/pagination/ListActiveViolationsPaginator.js +1 -8
- package/dist-es/pagination/ListAttachedPoliciesPaginator.js +1 -8
- package/dist-es/pagination/ListAuditFindingsPaginator.js +1 -8
- package/dist-es/pagination/ListAuditMitigationActionsExecutionsPaginator.js +1 -8
- package/dist-es/pagination/ListAuditMitigationActionsTasksPaginator.js +1 -8
- package/dist-es/pagination/ListAuditSuppressionsPaginator.js +1 -8
- package/dist-es/pagination/ListAuditTasksPaginator.js +1 -8
- package/dist-es/pagination/ListAuthorizersPaginator.js +1 -8
- package/dist-es/pagination/ListBillingGroupsPaginator.js +1 -8
- package/dist-es/pagination/ListCACertificatesPaginator.js +1 -8
- package/dist-es/pagination/ListCertificatesByCAPaginator.js +1 -8
- package/dist-es/pagination/ListCertificatesPaginator.js +1 -8
- package/dist-es/pagination/ListCustomMetricsPaginator.js +1 -8
- package/dist-es/pagination/ListDetectMitigationActionsExecutionsPaginator.js +1 -8
- package/dist-es/pagination/ListDetectMitigationActionsTasksPaginator.js +1 -8
- package/dist-es/pagination/ListDimensionsPaginator.js +1 -8
- package/dist-es/pagination/ListDomainConfigurationsPaginator.js +1 -8
- package/dist-es/pagination/ListFleetMetricsPaginator.js +1 -8
- package/dist-es/pagination/ListIndicesPaginator.js +1 -8
- package/dist-es/pagination/ListJobExecutionsForJobPaginator.js +1 -8
- package/dist-es/pagination/ListJobExecutionsForThingPaginator.js +1 -8
- package/dist-es/pagination/ListJobTemplatesPaginator.js +1 -8
- package/dist-es/pagination/ListJobsPaginator.js +1 -8
- package/dist-es/pagination/ListMetricValuesPaginator.js +1 -8
- package/dist-es/pagination/ListMitigationActionsPaginator.js +1 -8
- package/dist-es/pagination/ListOTAUpdatesPaginator.js +1 -8
- package/dist-es/pagination/ListOutgoingCertificatesPaginator.js +1 -8
- package/dist-es/pagination/ListPoliciesPaginator.js +1 -8
- package/dist-es/pagination/ListPolicyPrincipalsPaginator.js +1 -8
- package/dist-es/pagination/ListPrincipalPoliciesPaginator.js +1 -8
- package/dist-es/pagination/ListPrincipalThingsPaginator.js +1 -8
- package/dist-es/pagination/ListProvisioningTemplateVersionsPaginator.js +1 -8
- package/dist-es/pagination/ListProvisioningTemplatesPaginator.js +1 -8
- package/dist-es/pagination/ListRoleAliasesPaginator.js +1 -8
- package/dist-es/pagination/ListScheduledAuditsPaginator.js +1 -8
- package/dist-es/pagination/ListSecurityProfilesForTargetPaginator.js +1 -8
- package/dist-es/pagination/ListSecurityProfilesPaginator.js +1 -8
- package/dist-es/pagination/ListStreamsPaginator.js +1 -8
- package/dist-es/pagination/ListTagsForResourcePaginator.js +1 -8
- package/dist-es/pagination/ListTargetsForPolicyPaginator.js +1 -8
- package/dist-es/pagination/ListTargetsForSecurityProfilePaginator.js +1 -8
- package/dist-es/pagination/ListThingGroupsForThingPaginator.js +1 -8
- package/dist-es/pagination/ListThingGroupsPaginator.js +1 -8
- package/dist-es/pagination/ListThingPrincipalsPaginator.js +1 -8
- package/dist-es/pagination/ListThingRegistrationTaskReportsPaginator.js +1 -8
- package/dist-es/pagination/ListThingRegistrationTasksPaginator.js +1 -8
- package/dist-es/pagination/ListThingTypesPaginator.js +1 -8
- package/dist-es/pagination/ListThingsInBillingGroupPaginator.js +1 -8
- package/dist-es/pagination/ListThingsInThingGroupPaginator.js +1 -8
- package/dist-es/pagination/ListThingsPaginator.js +1 -8
- package/dist-es/pagination/ListTopicRuleDestinationsPaginator.js +1 -8
- package/dist-es/pagination/ListTopicRulesPaginator.js +1 -8
- package/dist-es/pagination/ListV2LoggingLevelsPaginator.js +1 -8
- package/dist-es/pagination/ListViolationEventsPaginator.js +1 -8
- package/dist-es/protocols/Aws_restJson1.js +61 -0
- package/dist-types/IoT.d.ts +42 -27
- package/dist-types/commands/CreateCertificateFromCsrCommand.d.ts +42 -27
- package/dist-types/commands/DeletePolicyVersionCommand.d.ts +1 -1
- package/dist-types/commands/ListStreamsCommand.d.ts +1 -2
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +31 -20
- package/dist-types/models/models_1.d.ts +38 -43
- package/dist-types/models/models_2.d.ts +44 -1
- package/dist-types/pagination/Interfaces.d.ts +1 -2
- package/dist-types/ts3.4/commands/DeletePolicyVersionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListStreamsCommand.d.ts +1 -2
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +9 -7
- package/dist-types/ts3.4/models/models_1.d.ts +16 -17
- package/dist-types/ts3.4/models/models_2.d.ts +17 -1
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +1 -2
- package/package.json +9 -9
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { ListTargetsForSecurityProfileCommand, } from "../commands/ListTargetsForSecurityProfileCommand";
|
|
2
|
-
import { IoT } from "../IoT";
|
|
3
2
|
import { IoTClient } from "../IoTClient";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListTargetsForSecurityProfileCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listTargetsForSecurityProfile(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListTargetsForSecurityProfile(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListTargetsForSecurityProfile(config, input, ...a
|
|
|
14
10
|
while (hasNext) {
|
|
15
11
|
input.nextToken = token;
|
|
16
12
|
input["maxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof IoTClient) {
|
|
13
|
+
if (config.client instanceof IoTClient) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { ListThingGroupsForThingCommand, } from "../commands/ListThingGroupsForThingCommand";
|
|
2
|
-
import { IoT } from "../IoT";
|
|
3
2
|
import { IoTClient } from "../IoTClient";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListThingGroupsForThingCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listThingGroupsForThing(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListThingGroupsForThing(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListThingGroupsForThing(config, input, ...additio
|
|
|
14
10
|
while (hasNext) {
|
|
15
11
|
input.nextToken = token;
|
|
16
12
|
input["maxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof IoTClient) {
|
|
13
|
+
if (config.client instanceof IoTClient) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { ListThingGroupsCommand, } from "../commands/ListThingGroupsCommand";
|
|
2
|
-
import { IoT } from "../IoT";
|
|
3
2
|
import { IoTClient } from "../IoTClient";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListThingGroupsCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listThingGroups(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListThingGroups(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListThingGroups(config, input, ...additionalArgum
|
|
|
14
10
|
while (hasNext) {
|
|
15
11
|
input.nextToken = token;
|
|
16
12
|
input["maxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof IoTClient) {
|
|
13
|
+
if (config.client instanceof IoTClient) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { ListThingPrincipalsCommand, } from "../commands/ListThingPrincipalsCommand";
|
|
2
|
-
import { IoT } from "../IoT";
|
|
3
2
|
import { IoTClient } from "../IoTClient";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListThingPrincipalsCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listThingPrincipals(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListThingPrincipals(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListThingPrincipals(config, input, ...additionalA
|
|
|
14
10
|
while (hasNext) {
|
|
15
11
|
input.nextToken = token;
|
|
16
12
|
input["maxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof IoTClient) {
|
|
13
|
+
if (config.client instanceof IoTClient) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { ListThingRegistrationTaskReportsCommand, } from "../commands/ListThingRegistrationTaskReportsCommand";
|
|
2
|
-
import { IoT } from "../IoT";
|
|
3
2
|
import { IoTClient } from "../IoTClient";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListThingRegistrationTaskReportsCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listThingRegistrationTaskReports(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListThingRegistrationTaskReports(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListThingRegistrationTaskReports(config, input, .
|
|
|
14
10
|
while (hasNext) {
|
|
15
11
|
input.nextToken = token;
|
|
16
12
|
input["maxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof IoTClient) {
|
|
13
|
+
if (config.client instanceof IoTClient) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { ListThingRegistrationTasksCommand, } from "../commands/ListThingRegistrationTasksCommand";
|
|
2
|
-
import { IoT } from "../IoT";
|
|
3
2
|
import { IoTClient } from "../IoTClient";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListThingRegistrationTasksCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listThingRegistrationTasks(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListThingRegistrationTasks(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListThingRegistrationTasks(config, input, ...addi
|
|
|
14
10
|
while (hasNext) {
|
|
15
11
|
input.nextToken = token;
|
|
16
12
|
input["maxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof IoTClient) {
|
|
13
|
+
if (config.client instanceof IoTClient) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { ListThingTypesCommand, } from "../commands/ListThingTypesCommand";
|
|
2
|
-
import { IoT } from "../IoT";
|
|
3
2
|
import { IoTClient } from "../IoTClient";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListThingTypesCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listThingTypes(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListThingTypes(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListThingTypes(config, input, ...additionalArgume
|
|
|
14
10
|
while (hasNext) {
|
|
15
11
|
input.nextToken = token;
|
|
16
12
|
input["maxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof IoTClient) {
|
|
13
|
+
if (config.client instanceof IoTClient) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { ListThingsInBillingGroupCommand, } from "../commands/ListThingsInBillingGroupCommand";
|
|
2
|
-
import { IoT } from "../IoT";
|
|
3
2
|
import { IoTClient } from "../IoTClient";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListThingsInBillingGroupCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listThingsInBillingGroup(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListThingsInBillingGroup(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListThingsInBillingGroup(config, input, ...additi
|
|
|
14
10
|
while (hasNext) {
|
|
15
11
|
input.nextToken = token;
|
|
16
12
|
input["maxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof IoTClient) {
|
|
13
|
+
if (config.client instanceof IoTClient) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { ListThingsInThingGroupCommand, } from "../commands/ListThingsInThingGroupCommand";
|
|
2
|
-
import { IoT } from "../IoT";
|
|
3
2
|
import { IoTClient } from "../IoTClient";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListThingsInThingGroupCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listThingsInThingGroup(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListThingsInThingGroup(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListThingsInThingGroup(config, input, ...addition
|
|
|
14
10
|
while (hasNext) {
|
|
15
11
|
input.nextToken = token;
|
|
16
12
|
input["maxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof IoTClient) {
|
|
13
|
+
if (config.client instanceof IoTClient) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { ListThingsCommand } from "../commands/ListThingsCommand";
|
|
2
|
-
import { IoT } from "../IoT";
|
|
3
2
|
import { IoTClient } from "../IoTClient";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListThingsCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listThings(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListThings(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListThings(config, input, ...additionalArguments)
|
|
|
14
10
|
while (hasNext) {
|
|
15
11
|
input.nextToken = token;
|
|
16
12
|
input["maxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof IoTClient) {
|
|
13
|
+
if (config.client instanceof IoTClient) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { ListTopicRuleDestinationsCommand, } from "../commands/ListTopicRuleDestinationsCommand";
|
|
2
|
-
import { IoT } from "../IoT";
|
|
3
2
|
import { IoTClient } from "../IoTClient";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListTopicRuleDestinationsCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listTopicRuleDestinations(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListTopicRuleDestinations(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListTopicRuleDestinations(config, input, ...addit
|
|
|
14
10
|
while (hasNext) {
|
|
15
11
|
input.nextToken = token;
|
|
16
12
|
input["maxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof IoTClient) {
|
|
13
|
+
if (config.client instanceof IoTClient) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { ListTopicRulesCommand, } from "../commands/ListTopicRulesCommand";
|
|
2
|
-
import { IoT } from "../IoT";
|
|
3
2
|
import { IoTClient } from "../IoTClient";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListTopicRulesCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listTopicRules(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListTopicRules(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListTopicRules(config, input, ...additionalArgume
|
|
|
14
10
|
while (hasNext) {
|
|
15
11
|
input.nextToken = token;
|
|
16
12
|
input["maxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof IoTClient) {
|
|
13
|
+
if (config.client instanceof IoTClient) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { ListV2LoggingLevelsCommand, } from "../commands/ListV2LoggingLevelsCommand";
|
|
2
|
-
import { IoT } from "../IoT";
|
|
3
2
|
import { IoTClient } from "../IoTClient";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListV2LoggingLevelsCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listV2LoggingLevels(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListV2LoggingLevels(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListV2LoggingLevels(config, input, ...additionalA
|
|
|
14
10
|
while (hasNext) {
|
|
15
11
|
input.nextToken = token;
|
|
16
12
|
input["maxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof IoTClient) {
|
|
13
|
+
if (config.client instanceof IoTClient) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { ListViolationEventsCommand, } from "../commands/ListViolationEventsCommand";
|
|
2
|
-
import { IoT } from "../IoT";
|
|
3
2
|
import { IoTClient } from "../IoTClient";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListViolationEventsCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listViolationEvents(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListViolationEvents(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListViolationEvents(config, input, ...additionalA
|
|
|
14
10
|
while (hasNext) {
|
|
15
11
|
input.nextToken = token;
|
|
16
12
|
input["maxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof IoTClient) {
|
|
13
|
+
if (config.client instanceof IoTClient) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -643,6 +643,9 @@ export const serializeAws_restJson1CreateJobTemplateCommand = async (input, cont
|
|
|
643
643
|
...(input.jobExecutionsRolloutConfig != null && {
|
|
644
644
|
jobExecutionsRolloutConfig: serializeAws_restJson1JobExecutionsRolloutConfig(input.jobExecutionsRolloutConfig, context),
|
|
645
645
|
}),
|
|
646
|
+
...(input.maintenanceWindows != null && {
|
|
647
|
+
maintenanceWindows: serializeAws_restJson1MaintenanceWindows(input.maintenanceWindows, context),
|
|
648
|
+
}),
|
|
646
649
|
...(input.presignedUrlConfig != null && {
|
|
647
650
|
presignedUrlConfig: serializeAws_restJson1PresignedUrlConfig(input.presignedUrlConfig, context),
|
|
648
651
|
}),
|
|
@@ -9866,6 +9869,9 @@ export const deserializeAws_restJson1DescribeJobTemplateCommand = async (output,
|
|
|
9866
9869
|
if (data.jobTemplateId != null) {
|
|
9867
9870
|
contents.jobTemplateId = __expectString(data.jobTemplateId);
|
|
9868
9871
|
}
|
|
9872
|
+
if (data.maintenanceWindows != null) {
|
|
9873
|
+
contents.maintenanceWindows = deserializeAws_restJson1MaintenanceWindows(data.maintenanceWindows, context);
|
|
9874
|
+
}
|
|
9869
9875
|
if (data.presignedUrlConfig != null) {
|
|
9870
9876
|
contents.presignedUrlConfig = deserializeAws_restJson1PresignedUrlConfig(data.presignedUrlConfig, context);
|
|
9871
9877
|
}
|
|
@@ -17818,6 +17824,19 @@ const serializeAws_restJson1MachineLearningDetectionConfig = (input, context) =>
|
|
|
17818
17824
|
...(input.confidenceLevel != null && { confidenceLevel: input.confidenceLevel }),
|
|
17819
17825
|
};
|
|
17820
17826
|
};
|
|
17827
|
+
const serializeAws_restJson1MaintenanceWindow = (input, context) => {
|
|
17828
|
+
return {
|
|
17829
|
+
...(input.durationInMinutes != null && { durationInMinutes: input.durationInMinutes }),
|
|
17830
|
+
...(input.startTime != null && { startTime: input.startTime }),
|
|
17831
|
+
};
|
|
17832
|
+
};
|
|
17833
|
+
const serializeAws_restJson1MaintenanceWindows = (input, context) => {
|
|
17834
|
+
return input
|
|
17835
|
+
.filter((e) => e != null)
|
|
17836
|
+
.map((entry) => {
|
|
17837
|
+
return serializeAws_restJson1MaintenanceWindow(entry, context);
|
|
17838
|
+
});
|
|
17839
|
+
};
|
|
17821
17840
|
const serializeAws_restJson1MetricDimension = (input, context) => {
|
|
17822
17841
|
return {
|
|
17823
17842
|
...(input.dimensionName != null && { dimensionName: input.dimensionName }),
|
|
@@ -18135,6 +18154,9 @@ const serializeAws_restJson1SchedulingConfig = (input, context) => {
|
|
|
18135
18154
|
return {
|
|
18136
18155
|
...(input.endBehavior != null && { endBehavior: input.endBehavior }),
|
|
18137
18156
|
...(input.endTime != null && { endTime: input.endTime }),
|
|
18157
|
+
...(input.maintenanceWindows != null && {
|
|
18158
|
+
maintenanceWindows: serializeAws_restJson1MaintenanceWindows(input.maintenanceWindows, context),
|
|
18159
|
+
}),
|
|
18138
18160
|
...(input.startTime != null && { startTime: input.startTime }),
|
|
18139
18161
|
};
|
|
18140
18162
|
};
|
|
@@ -19709,6 +19731,9 @@ const deserializeAws_restJson1Job = (output, context) => {
|
|
|
19709
19731
|
? deserializeAws_restJson1PresignedUrlConfig(output.presignedUrlConfig, context)
|
|
19710
19732
|
: undefined,
|
|
19711
19733
|
reasonCode: __expectString(output.reasonCode),
|
|
19734
|
+
scheduledJobRollouts: output.scheduledJobRollouts != null
|
|
19735
|
+
? deserializeAws_restJson1ScheduledJobRolloutList(output.scheduledJobRollouts, context)
|
|
19736
|
+
: undefined,
|
|
19712
19737
|
schedulingConfig: output.schedulingConfig != null
|
|
19713
19738
|
? deserializeAws_restJson1SchedulingConfig(output.schedulingConfig, context)
|
|
19714
19739
|
: undefined,
|
|
@@ -19951,6 +19976,23 @@ const deserializeAws_restJson1MachineLearningDetectionConfig = (output, context)
|
|
|
19951
19976
|
confidenceLevel: __expectString(output.confidenceLevel),
|
|
19952
19977
|
};
|
|
19953
19978
|
};
|
|
19979
|
+
const deserializeAws_restJson1MaintenanceWindow = (output, context) => {
|
|
19980
|
+
return {
|
|
19981
|
+
durationInMinutes: __expectInt32(output.durationInMinutes),
|
|
19982
|
+
startTime: __expectString(output.startTime),
|
|
19983
|
+
};
|
|
19984
|
+
};
|
|
19985
|
+
const deserializeAws_restJson1MaintenanceWindows = (output, context) => {
|
|
19986
|
+
const retVal = (output || [])
|
|
19987
|
+
.filter((e) => e != null)
|
|
19988
|
+
.map((entry) => {
|
|
19989
|
+
if (entry === null) {
|
|
19990
|
+
return null;
|
|
19991
|
+
}
|
|
19992
|
+
return deserializeAws_restJson1MaintenanceWindow(entry, context);
|
|
19993
|
+
});
|
|
19994
|
+
return retVal;
|
|
19995
|
+
};
|
|
19954
19996
|
const deserializeAws_restJson1ManagedJobTemplatesSummaryList = (output, context) => {
|
|
19955
19997
|
const retVal = (output || [])
|
|
19956
19998
|
.filter((e) => e != null)
|
|
@@ -20686,10 +20728,29 @@ const deserializeAws_restJson1ScheduledAuditMetadataList = (output, context) =>
|
|
|
20686
20728
|
});
|
|
20687
20729
|
return retVal;
|
|
20688
20730
|
};
|
|
20731
|
+
const deserializeAws_restJson1ScheduledJobRollout = (output, context) => {
|
|
20732
|
+
return {
|
|
20733
|
+
startTime: __expectString(output.startTime),
|
|
20734
|
+
};
|
|
20735
|
+
};
|
|
20736
|
+
const deserializeAws_restJson1ScheduledJobRolloutList = (output, context) => {
|
|
20737
|
+
const retVal = (output || [])
|
|
20738
|
+
.filter((e) => e != null)
|
|
20739
|
+
.map((entry) => {
|
|
20740
|
+
if (entry === null) {
|
|
20741
|
+
return null;
|
|
20742
|
+
}
|
|
20743
|
+
return deserializeAws_restJson1ScheduledJobRollout(entry, context);
|
|
20744
|
+
});
|
|
20745
|
+
return retVal;
|
|
20746
|
+
};
|
|
20689
20747
|
const deserializeAws_restJson1SchedulingConfig = (output, context) => {
|
|
20690
20748
|
return {
|
|
20691
20749
|
endBehavior: __expectString(output.endBehavior),
|
|
20692
20750
|
endTime: __expectString(output.endTime),
|
|
20751
|
+
maintenanceWindows: output.maintenanceWindows != null
|
|
20752
|
+
? deserializeAws_restJson1MaintenanceWindows(output.maintenanceWindows, context)
|
|
20753
|
+
: undefined,
|
|
20693
20754
|
startTime: __expectString(output.startTime),
|
|
20694
20755
|
};
|
|
20695
20756
|
};
|
package/dist-types/IoT.d.ts
CHANGED
|
@@ -432,40 +432,55 @@ export declare class IoT extends IoTClient {
|
|
|
432
432
|
createBillingGroup(args: CreateBillingGroupCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateBillingGroupCommandOutput) => void): void;
|
|
433
433
|
/**
|
|
434
434
|
* <p>Creates an X.509 certificate using the specified certificate signing
|
|
435
|
-
* request
|
|
436
|
-
*
|
|
437
|
-
*
|
|
438
|
-
*
|
|
439
|
-
*
|
|
440
|
-
*
|
|
441
|
-
*
|
|
442
|
-
*
|
|
443
|
-
*
|
|
444
|
-
*
|
|
435
|
+
* request.
|
|
436
|
+
* </p>
|
|
437
|
+
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">CreateCertificateFromCsr</a> action.
|
|
438
|
+
* </p>
|
|
439
|
+
* <note>
|
|
440
|
+
* <p>The CSR must include a public key that is either an
|
|
441
|
+
* RSA key with a length of at least 2048 bits or an ECC key from NIST P-25 or NIST P-384 curves.
|
|
442
|
+
* For supported certificates, consult <a href="https://docs.aws.amazon.com/iot/latest/developerguide/x509-client-certs.html#x509-cert-algorithms">
|
|
443
|
+
* Certificate signing algorithms supported by IoT</a>.
|
|
444
|
+
* </p>
|
|
445
|
+
* </note>
|
|
446
|
+
* <note>
|
|
447
|
+
* <p>Reusing the same certificate signing request (CSR)
|
|
448
|
+
* results in a distinct certificate.</p>
|
|
449
|
+
* </note>
|
|
445
450
|
* <p>You can create multiple certificates in a batch by creating a directory, copying
|
|
446
|
-
* multiple
|
|
451
|
+
* multiple <code>.csr</code> files into that directory, and then specifying that directory on the command
|
|
447
452
|
* line. The following commands show how to create a batch of certificates given a batch of
|
|
448
|
-
* CSRs
|
|
449
|
-
*
|
|
450
|
-
*
|
|
451
|
-
* <p>
|
|
452
|
-
*
|
|
453
|
-
*
|
|
453
|
+
* CSRs. In the following commands, we assume that a set of CSRs are located inside of the
|
|
454
|
+
* directory my-csr-directory:</p>
|
|
455
|
+
* <p>On Linux and OS X, the command is: </p>
|
|
456
|
+
* <p>
|
|
457
|
+
* <code>$ ls my-csr-directory/ | xargs -I {} aws iot create-certificate-from-csr
|
|
458
|
+
* --certificate-signing-request file://my-csr-directory/{}</code>
|
|
459
|
+
* </p>
|
|
454
460
|
* <p>This command lists all of the CSRs in my-csr-directory and pipes each CSR file name
|
|
455
|
-
* to the aws iot create-certificate-from-csr Amazon Web Services CLI command to create a certificate for
|
|
456
|
-
* corresponding CSR
|
|
457
|
-
* <p>
|
|
458
|
-
* parallel to speed up the certificate creation process:</p>
|
|
459
|
-
* <p
|
|
460
|
-
*
|
|
461
|
+
* to the <code>aws iot create-certificate-from-csr</code> Amazon Web Services CLI command to create a certificate for
|
|
462
|
+
* the corresponding CSR. </p>
|
|
463
|
+
* <p>You can also run the <code>aws iot create-certificate-from-csr</code> part of the
|
|
464
|
+
* command in parallel to speed up the certificate creation process:</p>
|
|
465
|
+
* <p>
|
|
466
|
+
* <code>$ ls my-csr-directory/ | xargs -P 10 -I {} aws iot create-certificate-from-csr
|
|
467
|
+
* --certificate-signing-request file://my-csr-directory/{}
|
|
468
|
+
* </code>
|
|
469
|
+
* </p>
|
|
461
470
|
* <p>On Windows PowerShell, the command to create certificates for all CSRs in
|
|
462
471
|
* my-csr-directory is:</p>
|
|
463
|
-
* <p
|
|
464
|
-
*
|
|
472
|
+
* <p>
|
|
473
|
+
* <code>> ls -Name my-csr-directory | %{aws iot create-certificate-from-csr
|
|
474
|
+
* --certificate-signing-request file://my-csr-directory/$_}
|
|
475
|
+
* </code>
|
|
476
|
+
* </p>
|
|
465
477
|
* <p>On a Windows command prompt, the command to create certificates for all CSRs in
|
|
466
478
|
* my-csr-directory is:</p>
|
|
467
|
-
* <p
|
|
468
|
-
*
|
|
479
|
+
* <p>
|
|
480
|
+
* <code>> forfiles /p my-csr-directory /c "cmd /c aws iot create-certificate-from-csr
|
|
481
|
+
* --certificate-signing-request file://@path"
|
|
482
|
+
* </code>
|
|
483
|
+
* </p>
|
|
469
484
|
*/
|
|
470
485
|
createCertificateFromCsr(args: CreateCertificateFromCsrCommandInput, options?: __HttpHandlerOptions): Promise<CreateCertificateFromCsrCommandOutput>;
|
|
471
486
|
createCertificateFromCsr(args: CreateCertificateFromCsrCommandInput, cb: (err: any, data?: CreateCertificateFromCsrCommandOutput) => void): void;
|
|
@@ -15,40 +15,55 @@ export interface CreateCertificateFromCsrCommandOutput extends CreateCertificate
|
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
17
|
* <p>Creates an X.509 certificate using the specified certificate signing
|
|
18
|
-
* request
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
18
|
+
* request.
|
|
19
|
+
* </p>
|
|
20
|
+
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">CreateCertificateFromCsr</a> action.
|
|
21
|
+
* </p>
|
|
22
|
+
* <note>
|
|
23
|
+
* <p>The CSR must include a public key that is either an
|
|
24
|
+
* RSA key with a length of at least 2048 bits or an ECC key from NIST P-25 or NIST P-384 curves.
|
|
25
|
+
* For supported certificates, consult <a href="https://docs.aws.amazon.com/iot/latest/developerguide/x509-client-certs.html#x509-cert-algorithms">
|
|
26
|
+
* Certificate signing algorithms supported by IoT</a>.
|
|
27
|
+
* </p>
|
|
28
|
+
* </note>
|
|
29
|
+
* <note>
|
|
30
|
+
* <p>Reusing the same certificate signing request (CSR)
|
|
31
|
+
* results in a distinct certificate.</p>
|
|
32
|
+
* </note>
|
|
28
33
|
* <p>You can create multiple certificates in a batch by creating a directory, copying
|
|
29
|
-
* multiple
|
|
34
|
+
* multiple <code>.csr</code> files into that directory, and then specifying that directory on the command
|
|
30
35
|
* line. The following commands show how to create a batch of certificates given a batch of
|
|
31
|
-
* CSRs
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
* <p>
|
|
35
|
-
*
|
|
36
|
-
*
|
|
36
|
+
* CSRs. In the following commands, we assume that a set of CSRs are located inside of the
|
|
37
|
+
* directory my-csr-directory:</p>
|
|
38
|
+
* <p>On Linux and OS X, the command is: </p>
|
|
39
|
+
* <p>
|
|
40
|
+
* <code>$ ls my-csr-directory/ | xargs -I {} aws iot create-certificate-from-csr
|
|
41
|
+
* --certificate-signing-request file://my-csr-directory/{}</code>
|
|
42
|
+
* </p>
|
|
37
43
|
* <p>This command lists all of the CSRs in my-csr-directory and pipes each CSR file name
|
|
38
|
-
* to the aws iot create-certificate-from-csr Amazon Web Services CLI command to create a certificate for
|
|
39
|
-
* corresponding CSR
|
|
40
|
-
* <p>
|
|
41
|
-
* parallel to speed up the certificate creation process:</p>
|
|
42
|
-
* <p
|
|
43
|
-
*
|
|
44
|
+
* to the <code>aws iot create-certificate-from-csr</code> Amazon Web Services CLI command to create a certificate for
|
|
45
|
+
* the corresponding CSR. </p>
|
|
46
|
+
* <p>You can also run the <code>aws iot create-certificate-from-csr</code> part of the
|
|
47
|
+
* command in parallel to speed up the certificate creation process:</p>
|
|
48
|
+
* <p>
|
|
49
|
+
* <code>$ ls my-csr-directory/ | xargs -P 10 -I {} aws iot create-certificate-from-csr
|
|
50
|
+
* --certificate-signing-request file://my-csr-directory/{}
|
|
51
|
+
* </code>
|
|
52
|
+
* </p>
|
|
44
53
|
* <p>On Windows PowerShell, the command to create certificates for all CSRs in
|
|
45
54
|
* my-csr-directory is:</p>
|
|
46
|
-
* <p
|
|
47
|
-
*
|
|
55
|
+
* <p>
|
|
56
|
+
* <code>> ls -Name my-csr-directory | %{aws iot create-certificate-from-csr
|
|
57
|
+
* --certificate-signing-request file://my-csr-directory/$_}
|
|
58
|
+
* </code>
|
|
59
|
+
* </p>
|
|
48
60
|
* <p>On a Windows command prompt, the command to create certificates for all CSRs in
|
|
49
61
|
* my-csr-directory is:</p>
|
|
50
|
-
* <p
|
|
51
|
-
*
|
|
62
|
+
* <p>
|
|
63
|
+
* <code>> forfiles /p my-csr-directory /c "cmd /c aws iot create-certificate-from-csr
|
|
64
|
+
* --certificate-signing-request file://@path"
|
|
65
|
+
* </code>
|
|
66
|
+
* </p>
|
|
52
67
|
* @example
|
|
53
68
|
* Use a bare-bones client and the command you need to make an API call.
|
|
54
69
|
* ```javascript
|