@aws-sdk/client-iot 3.470.0 → 3.474.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/README.md +40 -0
- package/dist-cjs/IoT.js +10 -0
- package/dist-cjs/commands/CreateCertificateProviderCommand.js +51 -0
- package/dist-cjs/commands/DeleteCertificateProviderCommand.js +51 -0
- package/dist-cjs/commands/DescribeCertificateProviderCommand.js +51 -0
- package/dist-cjs/commands/ListCertificateProvidersCommand.js +51 -0
- package/dist-cjs/commands/UpdateCertificateProviderCommand.js +51 -0
- package/dist-cjs/commands/index.js +5 -0
- package/dist-cjs/models/models_0.js +5 -2
- package/dist-cjs/protocols/Aws_restJson1.js +370 -10
- package/dist-es/IoT.js +10 -0
- package/dist-es/commands/CreateCertificateProviderCommand.js +47 -0
- package/dist-es/commands/DeleteCertificateProviderCommand.js +47 -0
- package/dist-es/commands/DescribeCertificateProviderCommand.js +47 -0
- package/dist-es/commands/ListCertificateProvidersCommand.js +47 -0
- package/dist-es/commands/UpdateCertificateProviderCommand.js +47 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/models/models_0.js +3 -0
- package/dist-es/protocols/Aws_restJson1.js +349 -0
- package/dist-types/IoT.d.ts +35 -0
- package/dist-types/IoTClient.d.ts +7 -2
- package/dist-types/commands/CreateCertificateProviderCommand.d.ts +118 -0
- package/dist-types/commands/DeleteCertificateProviderCommand.d.ts +98 -0
- package/dist-types/commands/DeleteCustomMetricCommand.d.ts +2 -1
- package/dist-types/commands/DeleteDimensionCommand.d.ts +1 -1
- package/dist-types/commands/DeleteDomainConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/DescribeCertificateProviderCommand.d.ts +100 -0
- package/dist-types/commands/ListCertificateProvidersCommand.d.ts +97 -0
- package/dist-types/commands/ListOutgoingCertificatesCommand.d.ts +2 -1
- package/dist-types/commands/ListPackageVersionsCommand.d.ts +1 -1
- package/dist-types/commands/ListPackagesCommand.d.ts +1 -1
- package/dist-types/commands/ListPoliciesCommand.d.ts +1 -1
- package/dist-types/commands/UpdateCertificateProviderCommand.d.ts +98 -0
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/models_0.d.ts +68 -31
- package/dist-types/models/models_1.d.ts +128 -219
- package/dist-types/models/models_2.d.ts +255 -1
- package/dist-types/protocols/Aws_restJson1.d.ts +45 -0
- package/dist-types/ts3.4/IoT.d.ts +85 -0
- package/dist-types/ts3.4/IoTClient.d.ts +30 -0
- package/dist-types/ts3.4/commands/CreateCertificateProviderCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeleteCertificateProviderCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeleteCustomMetricCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/DeleteDimensionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteDomainConfigurationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeCertificateProviderCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListCertificateProvidersCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListOutgoingCertificatesCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/ListPackageVersionsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListPackagesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListPoliciesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateCertificateProviderCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/models_0.d.ts +20 -9
- package/dist-types/ts3.4/models/models_1.d.ts +33 -52
- package/dist-types/ts3.4/models/models_2.d.ts +63 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +60 -0
- package/package.json +4 -4
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { de_CreateCertificateProviderCommand, se_CreateCertificateProviderCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class CreateCertificateProviderCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, CreateCertificateProviderCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "IoTClient";
|
|
26
|
+
const commandName = "CreateCertificateProviderCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (_) => _,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "AWSIotService",
|
|
35
|
+
operation: "CreateCertificateProvider",
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
const { requestHandler } = configuration;
|
|
39
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
+
}
|
|
41
|
+
serialize(input, context) {
|
|
42
|
+
return se_CreateCertificateProviderCommand(input, context);
|
|
43
|
+
}
|
|
44
|
+
deserialize(output, context) {
|
|
45
|
+
return de_CreateCertificateProviderCommand(output, context);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { de_DeleteCertificateProviderCommand, se_DeleteCertificateProviderCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class DeleteCertificateProviderCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, DeleteCertificateProviderCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "IoTClient";
|
|
26
|
+
const commandName = "DeleteCertificateProviderCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (_) => _,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "AWSIotService",
|
|
35
|
+
operation: "DeleteCertificateProvider",
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
const { requestHandler } = configuration;
|
|
39
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
+
}
|
|
41
|
+
serialize(input, context) {
|
|
42
|
+
return se_DeleteCertificateProviderCommand(input, context);
|
|
43
|
+
}
|
|
44
|
+
deserialize(output, context) {
|
|
45
|
+
return de_DeleteCertificateProviderCommand(output, context);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { de_DescribeCertificateProviderCommand, se_DescribeCertificateProviderCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class DescribeCertificateProviderCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, DescribeCertificateProviderCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "IoTClient";
|
|
26
|
+
const commandName = "DescribeCertificateProviderCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (_) => _,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "AWSIotService",
|
|
35
|
+
operation: "DescribeCertificateProvider",
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
const { requestHandler } = configuration;
|
|
39
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
+
}
|
|
41
|
+
serialize(input, context) {
|
|
42
|
+
return se_DescribeCertificateProviderCommand(input, context);
|
|
43
|
+
}
|
|
44
|
+
deserialize(output, context) {
|
|
45
|
+
return de_DescribeCertificateProviderCommand(output, context);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { de_ListCertificateProvidersCommand, se_ListCertificateProvidersCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class ListCertificateProvidersCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, ListCertificateProvidersCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "IoTClient";
|
|
26
|
+
const commandName = "ListCertificateProvidersCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (_) => _,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "AWSIotService",
|
|
35
|
+
operation: "ListCertificateProviders",
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
const { requestHandler } = configuration;
|
|
39
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
+
}
|
|
41
|
+
serialize(input, context) {
|
|
42
|
+
return se_ListCertificateProvidersCommand(input, context);
|
|
43
|
+
}
|
|
44
|
+
deserialize(output, context) {
|
|
45
|
+
return de_ListCertificateProvidersCommand(output, context);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { de_UpdateCertificateProviderCommand, se_UpdateCertificateProviderCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class UpdateCertificateProviderCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, UpdateCertificateProviderCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "IoTClient";
|
|
26
|
+
const commandName = "UpdateCertificateProviderCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (_) => _,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "AWSIotService",
|
|
35
|
+
operation: "UpdateCertificateProvider",
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
const { requestHandler } = configuration;
|
|
39
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
+
}
|
|
41
|
+
serialize(input, context) {
|
|
42
|
+
return se_UpdateCertificateProviderCommand(input, context);
|
|
43
|
+
}
|
|
44
|
+
deserialize(output, context) {
|
|
45
|
+
return de_UpdateCertificateProviderCommand(output, context);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -18,6 +18,7 @@ export * from "./CreateAuditSuppressionCommand";
|
|
|
18
18
|
export * from "./CreateAuthorizerCommand";
|
|
19
19
|
export * from "./CreateBillingGroupCommand";
|
|
20
20
|
export * from "./CreateCertificateFromCsrCommand";
|
|
21
|
+
export * from "./CreateCertificateProviderCommand";
|
|
21
22
|
export * from "./CreateCustomMetricCommand";
|
|
22
23
|
export * from "./CreateDimensionCommand";
|
|
23
24
|
export * from "./CreateDomainConfigurationCommand";
|
|
@@ -50,6 +51,7 @@ export * from "./DeleteAuthorizerCommand";
|
|
|
50
51
|
export * from "./DeleteBillingGroupCommand";
|
|
51
52
|
export * from "./DeleteCACertificateCommand";
|
|
52
53
|
export * from "./DeleteCertificateCommand";
|
|
54
|
+
export * from "./DeleteCertificateProviderCommand";
|
|
53
55
|
export * from "./DeleteCustomMetricCommand";
|
|
54
56
|
export * from "./DeleteDimensionCommand";
|
|
55
57
|
export * from "./DeleteDomainConfigurationCommand";
|
|
@@ -87,6 +89,7 @@ export * from "./DescribeAuthorizerCommand";
|
|
|
87
89
|
export * from "./DescribeBillingGroupCommand";
|
|
88
90
|
export * from "./DescribeCACertificateCommand";
|
|
89
91
|
export * from "./DescribeCertificateCommand";
|
|
92
|
+
export * from "./DescribeCertificateProviderCommand";
|
|
90
93
|
export * from "./DescribeCustomMetricCommand";
|
|
91
94
|
export * from "./DescribeDefaultAuthorizerCommand";
|
|
92
95
|
export * from "./DescribeDetectMitigationActionsTaskCommand";
|
|
@@ -146,6 +149,7 @@ export * from "./ListAuditTasksCommand";
|
|
|
146
149
|
export * from "./ListAuthorizersCommand";
|
|
147
150
|
export * from "./ListBillingGroupsCommand";
|
|
148
151
|
export * from "./ListCACertificatesCommand";
|
|
152
|
+
export * from "./ListCertificateProvidersCommand";
|
|
149
153
|
export * from "./ListCertificatesByCACommand";
|
|
150
154
|
export * from "./ListCertificatesCommand";
|
|
151
155
|
export * from "./ListCustomMetricsCommand";
|
|
@@ -226,6 +230,7 @@ export * from "./UpdateAuthorizerCommand";
|
|
|
226
230
|
export * from "./UpdateBillingGroupCommand";
|
|
227
231
|
export * from "./UpdateCACertificateCommand";
|
|
228
232
|
export * from "./UpdateCertificateCommand";
|
|
233
|
+
export * from "./UpdateCertificateProviderCommand";
|
|
229
234
|
export * from "./UpdateCustomMetricCommand";
|
|
230
235
|
export * from "./UpdateDimensionCommand";
|
|
231
236
|
export * from "./UpdateDomainConfigurationCommand";
|
|
@@ -311,6 +311,9 @@ export class ResourceAlreadyExistsException extends __BaseException {
|
|
|
311
311
|
this.resourceArn = opts.resourceArn;
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
|
+
export const CertificateProviderOperation = {
|
|
315
|
+
CreateCertificateFromCsr: "CreateCertificateFromCsr",
|
|
316
|
+
};
|
|
314
317
|
export const CustomMetricType = {
|
|
315
318
|
IP_ADDRESS_LIST: "ip-address-list",
|
|
316
319
|
NUMBER: "number",
|