@aws-sdk/client-iot 3.345.0 → 3.347.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.
Files changed (125) hide show
  1. package/README.md +96 -0
  2. package/dist-cjs/IoT.js +24 -0
  3. package/dist-cjs/commands/CreatePackageCommand.js +47 -0
  4. package/dist-cjs/commands/CreatePackageVersionCommand.js +47 -0
  5. package/dist-cjs/commands/DeletePackageCommand.js +46 -0
  6. package/dist-cjs/commands/DeletePackageVersionCommand.js +46 -0
  7. package/dist-cjs/commands/GetPackageCommand.js +47 -0
  8. package/dist-cjs/commands/GetPackageConfigurationCommand.js +46 -0
  9. package/dist-cjs/commands/GetPackageVersionCommand.js +47 -0
  10. package/dist-cjs/commands/ListPackageVersionsCommand.js +46 -0
  11. package/dist-cjs/commands/ListPackagesCommand.js +46 -0
  12. package/dist-cjs/commands/UpdatePackageCommand.js +47 -0
  13. package/dist-cjs/commands/UpdatePackageConfigurationCommand.js +46 -0
  14. package/dist-cjs/commands/UpdatePackageVersionCommand.js +47 -0
  15. package/dist-cjs/commands/index.js +12 -0
  16. package/dist-cjs/models/models_0.js +68 -1
  17. package/dist-cjs/models/models_1.js +13 -14
  18. package/dist-cjs/models/models_2.js +17 -1
  19. package/dist-cjs/pagination/ListPackageVersionsPaginator.js +29 -0
  20. package/dist-cjs/pagination/ListPackagesPaginator.js +29 -0
  21. package/dist-cjs/pagination/index.js +2 -0
  22. package/dist-cjs/protocols/Aws_restJson1.js +897 -46
  23. package/dist-es/IoT.js +24 -0
  24. package/dist-es/commands/CreatePackageCommand.js +43 -0
  25. package/dist-es/commands/CreatePackageVersionCommand.js +43 -0
  26. package/dist-es/commands/DeletePackageCommand.js +42 -0
  27. package/dist-es/commands/DeletePackageVersionCommand.js +42 -0
  28. package/dist-es/commands/GetPackageCommand.js +43 -0
  29. package/dist-es/commands/GetPackageConfigurationCommand.js +42 -0
  30. package/dist-es/commands/GetPackageVersionCommand.js +43 -0
  31. package/dist-es/commands/ListPackageVersionsCommand.js +42 -0
  32. package/dist-es/commands/ListPackagesCommand.js +42 -0
  33. package/dist-es/commands/UpdatePackageCommand.js +43 -0
  34. package/dist-es/commands/UpdatePackageConfigurationCommand.js +42 -0
  35. package/dist-es/commands/UpdatePackageVersionCommand.js +43 -0
  36. package/dist-es/commands/index.js +12 -0
  37. package/dist-es/models/models_0.js +60 -0
  38. package/dist-es/models/models_1.js +10 -12
  39. package/dist-es/models/models_2.js +14 -0
  40. package/dist-es/pagination/ListPackageVersionsPaginator.js +25 -0
  41. package/dist-es/pagination/ListPackagesPaginator.js +25 -0
  42. package/dist-es/pagination/index.js +2 -0
  43. package/dist-es/protocols/Aws_restJson1.js +862 -35
  44. package/dist-types/IoT.d.ts +84 -0
  45. package/dist-types/IoTClient.d.ts +14 -2
  46. package/dist-types/commands/CreateCertificateFromCsrCommand.d.ts +1 -1
  47. package/dist-types/commands/CreateJobCommand.d.ts +3 -0
  48. package/dist-types/commands/CreateJobTemplateCommand.d.ts +3 -0
  49. package/dist-types/commands/CreatePackageCommand.d.ts +97 -0
  50. package/dist-types/commands/CreatePackageVersionCommand.d.ts +107 -0
  51. package/dist-types/commands/DeleteFleetMetricCommand.d.ts +1 -1
  52. package/dist-types/commands/DeleteJobCommand.d.ts +1 -1
  53. package/dist-types/commands/DeleteJobExecutionCommand.d.ts +1 -1
  54. package/dist-types/commands/DeleteJobTemplateCommand.d.ts +1 -1
  55. package/dist-types/commands/DeleteMitigationActionCommand.d.ts +1 -1
  56. package/dist-types/commands/DeleteOTAUpdateCommand.d.ts +1 -1
  57. package/dist-types/commands/DeletePackageCommand.d.ts +85 -0
  58. package/dist-types/commands/DeletePackageVersionCommand.d.ts +85 -0
  59. package/dist-types/commands/DescribeJobCommand.d.ts +3 -0
  60. package/dist-types/commands/DescribeJobTemplateCommand.d.ts +3 -0
  61. package/dist-types/commands/GetPackageCommand.d.ts +92 -0
  62. package/dist-types/commands/GetPackageConfigurationCommand.d.ts +82 -0
  63. package/dist-types/commands/GetPackageVersionCommand.d.ts +98 -0
  64. package/dist-types/commands/ListPackageVersionsCommand.d.ts +96 -0
  65. package/dist-types/commands/ListPackagesCommand.d.ts +93 -0
  66. package/dist-types/commands/ListPolicyVersionsCommand.d.ts +2 -1
  67. package/dist-types/commands/ListPrincipalPoliciesCommand.d.ts +1 -1
  68. package/dist-types/commands/ListPrincipalThingsCommand.d.ts +1 -1
  69. package/dist-types/commands/ListProvisioningTemplateVersionsCommand.d.ts +1 -1
  70. package/dist-types/commands/ListProvisioningTemplatesCommand.d.ts +1 -1
  71. package/dist-types/commands/ListRelatedResourcesForAuditFindingCommand.d.ts +1 -1
  72. package/dist-types/commands/ListRoleAliasesCommand.d.ts +1 -1
  73. package/dist-types/commands/ListScheduledAuditsCommand.d.ts +1 -1
  74. package/dist-types/commands/ListSecurityProfilesCommand.d.ts +1 -1
  75. package/dist-types/commands/ListSecurityProfilesForTargetCommand.d.ts +1 -2
  76. package/dist-types/commands/UpdatePackageCommand.d.ts +89 -0
  77. package/dist-types/commands/UpdatePackageConfigurationCommand.d.ts +86 -0
  78. package/dist-types/commands/UpdatePackageVersionCommand.d.ts +92 -0
  79. package/dist-types/commands/index.d.ts +12 -0
  80. package/dist-types/models/models_0.d.ts +184 -134
  81. package/dist-types/models/models_1.d.ts +416 -405
  82. package/dist-types/models/models_2.d.ts +529 -2
  83. package/dist-types/pagination/ListPackageVersionsPaginator.d.ts +7 -0
  84. package/dist-types/pagination/ListPackagesPaginator.d.ts +7 -0
  85. package/dist-types/pagination/index.d.ts +2 -0
  86. package/dist-types/protocols/Aws_restJson1.d.ts +108 -0
  87. package/dist-types/ts3.4/IoT.d.ts +204 -0
  88. package/dist-types/ts3.4/IoTClient.d.ts +72 -0
  89. package/dist-types/ts3.4/commands/CreatePackageCommand.d.ts +38 -0
  90. package/dist-types/ts3.4/commands/CreatePackageVersionCommand.d.ts +42 -0
  91. package/dist-types/ts3.4/commands/DeleteFleetMetricCommand.d.ts +1 -1
  92. package/dist-types/ts3.4/commands/DeleteJobCommand.d.ts +1 -1
  93. package/dist-types/ts3.4/commands/DeleteJobExecutionCommand.d.ts +1 -1
  94. package/dist-types/ts3.4/commands/DeleteJobTemplateCommand.d.ts +1 -1
  95. package/dist-types/ts3.4/commands/DeleteMitigationActionCommand.d.ts +1 -1
  96. package/dist-types/ts3.4/commands/DeleteOTAUpdateCommand.d.ts +1 -1
  97. package/dist-types/ts3.4/commands/DeletePackageCommand.d.ts +38 -0
  98. package/dist-types/ts3.4/commands/DeletePackageVersionCommand.d.ts +42 -0
  99. package/dist-types/ts3.4/commands/GetPackageCommand.d.ts +35 -0
  100. package/dist-types/ts3.4/commands/GetPackageConfigurationCommand.d.ts +42 -0
  101. package/dist-types/ts3.4/commands/GetPackageVersionCommand.d.ts +39 -0
  102. package/dist-types/ts3.4/commands/ListPackageVersionsCommand.d.ts +39 -0
  103. package/dist-types/ts3.4/commands/ListPackagesCommand.d.ts +35 -0
  104. package/dist-types/ts3.4/commands/ListPolicyVersionsCommand.d.ts +2 -4
  105. package/dist-types/ts3.4/commands/ListPrincipalPoliciesCommand.d.ts +1 -1
  106. package/dist-types/ts3.4/commands/ListPrincipalThingsCommand.d.ts +1 -1
  107. package/dist-types/ts3.4/commands/ListProvisioningTemplateVersionsCommand.d.ts +1 -1
  108. package/dist-types/ts3.4/commands/ListProvisioningTemplatesCommand.d.ts +1 -1
  109. package/dist-types/ts3.4/commands/ListRelatedResourcesForAuditFindingCommand.d.ts +1 -1
  110. package/dist-types/ts3.4/commands/ListRoleAliasesCommand.d.ts +1 -1
  111. package/dist-types/ts3.4/commands/ListScheduledAuditsCommand.d.ts +1 -1
  112. package/dist-types/ts3.4/commands/ListSecurityProfilesCommand.d.ts +1 -1
  113. package/dist-types/ts3.4/commands/ListSecurityProfilesForTargetCommand.d.ts +4 -2
  114. package/dist-types/ts3.4/commands/UpdatePackageCommand.d.ts +38 -0
  115. package/dist-types/ts3.4/commands/UpdatePackageConfigurationCommand.d.ts +42 -0
  116. package/dist-types/ts3.4/commands/UpdatePackageVersionCommand.d.ts +42 -0
  117. package/dist-types/ts3.4/commands/index.d.ts +12 -0
  118. package/dist-types/ts3.4/models/models_0.d.ts +71 -29
  119. package/dist-types/ts3.4/models/models_1.d.ts +114 -121
  120. package/dist-types/ts3.4/models/models_2.d.ts +152 -2
  121. package/dist-types/ts3.4/pagination/ListPackageVersionsPaginator.d.ts +11 -0
  122. package/dist-types/ts3.4/pagination/ListPackagesPaginator.d.ts +11 -0
  123. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  124. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +144 -0
  125. package/package.json +28 -28
@@ -2,7 +2,7 @@ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
4
  import { IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTClient";
5
- import { ListPrincipalPoliciesRequest, ListPrincipalPoliciesResponse } from "../models/models_1";
5
+ import { ListPrincipalPoliciesRequest, ListPrincipalPoliciesResponse } from "../models/models_2";
6
6
  /**
7
7
  * @public
8
8
  */
@@ -2,7 +2,7 @@ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
4
  import { IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTClient";
5
- import { ListPrincipalThingsRequest, ListPrincipalThingsResponse } from "../models/models_1";
5
+ import { ListPrincipalThingsRequest, ListPrincipalThingsResponse } from "../models/models_2";
6
6
  /**
7
7
  * @public
8
8
  */
@@ -2,7 +2,7 @@ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
4
  import { IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTClient";
5
- import { ListProvisioningTemplateVersionsRequest, ListProvisioningTemplateVersionsResponse } from "../models/models_1";
5
+ import { ListProvisioningTemplateVersionsRequest, ListProvisioningTemplateVersionsResponse } from "../models/models_2";
6
6
  /**
7
7
  * @public
8
8
  */
@@ -2,7 +2,7 @@ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
4
  import { IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTClient";
5
- import { ListProvisioningTemplatesRequest, ListProvisioningTemplatesResponse } from "../models/models_1";
5
+ import { ListProvisioningTemplatesRequest, ListProvisioningTemplatesResponse } from "../models/models_2";
6
6
  /**
7
7
  * @public
8
8
  */
@@ -2,7 +2,7 @@ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
4
  import { IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTClient";
5
- import { ListRelatedResourcesForAuditFindingRequest, ListRelatedResourcesForAuditFindingResponse } from "../models/models_1";
5
+ import { ListRelatedResourcesForAuditFindingRequest, ListRelatedResourcesForAuditFindingResponse } from "../models/models_2";
6
6
  /**
7
7
  * @public
8
8
  */
@@ -2,7 +2,7 @@ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
4
  import { IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTClient";
5
- import { ListRoleAliasesRequest, ListRoleAliasesResponse } from "../models/models_1";
5
+ import { ListRoleAliasesRequest, ListRoleAliasesResponse } from "../models/models_2";
6
6
  /**
7
7
  * @public
8
8
  */
@@ -2,7 +2,7 @@ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
4
  import { IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTClient";
5
- import { ListScheduledAuditsRequest, ListScheduledAuditsResponse } from "../models/models_1";
5
+ import { ListScheduledAuditsRequest, ListScheduledAuditsResponse } from "../models/models_2";
6
6
  /**
7
7
  * @public
8
8
  */
@@ -2,7 +2,7 @@ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
4
  import { IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTClient";
5
- import { ListSecurityProfilesRequest, ListSecurityProfilesResponse } from "../models/models_1";
5
+ import { ListSecurityProfilesRequest, ListSecurityProfilesResponse } from "../models/models_2";
6
6
  /**
7
7
  * @public
8
8
  */
@@ -2,8 +2,7 @@ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
4
  import { IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTClient";
5
- import { ListSecurityProfilesForTargetRequest } from "../models/models_1";
6
- import { ListSecurityProfilesForTargetResponse } from "../models/models_2";
5
+ import { ListSecurityProfilesForTargetRequest, ListSecurityProfilesForTargetResponse } from "../models/models_2";
7
6
  /**
8
7
  * @public
9
8
  */
@@ -0,0 +1,89 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTClient";
5
+ import { UpdatePackageRequest, UpdatePackageResponse } from "../models/models_2";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link UpdatePackageCommand}.
14
+ */
15
+ export interface UpdatePackageCommandInput extends UpdatePackageRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdatePackageCommand}.
21
+ */
22
+ export interface UpdatePackageCommandOutput extends UpdatePackageResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Updates the supported fields for a specific package.</p>
27
+ * <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">UpdatePackage</a> and <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">GetIndexingConfiguration</a> actions.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { IoTClient, UpdatePackageCommand } from "@aws-sdk/client-iot"; // ES Modules import
32
+ * // const { IoTClient, UpdatePackageCommand } = require("@aws-sdk/client-iot"); // CommonJS import
33
+ * const client = new IoTClient(config);
34
+ * const input = { // UpdatePackageRequest
35
+ * packageName: "STRING_VALUE", // required
36
+ * description: "STRING_VALUE",
37
+ * defaultVersionName: "STRING_VALUE",
38
+ * unsetDefaultVersion: true || false,
39
+ * clientToken: "STRING_VALUE",
40
+ * };
41
+ * const command = new UpdatePackageCommand(input);
42
+ * const response = await client.send(command);
43
+ * // {};
44
+ *
45
+ * ```
46
+ *
47
+ * @param UpdatePackageCommandInput - {@link UpdatePackageCommandInput}
48
+ * @returns {@link UpdatePackageCommandOutput}
49
+ * @see {@link UpdatePackageCommandInput} for command's `input` shape.
50
+ * @see {@link UpdatePackageCommandOutput} for command's `response` shape.
51
+ * @see {@link IoTClientResolvedConfig | config} for IoTClient's `config` shape.
52
+ *
53
+ * @throws {@link InternalServerException} (server fault)
54
+ * <p>Internal error from the service that indicates an unexpected error or that the service
55
+ * is unavailable.</p>
56
+ *
57
+ * @throws {@link ResourceNotFoundException} (client fault)
58
+ * <p>The specified resource does not exist.</p>
59
+ *
60
+ * @throws {@link ThrottlingException} (client fault)
61
+ * <p>The rate exceeds the limit.</p>
62
+ *
63
+ * @throws {@link ValidationException} (client fault)
64
+ * <p>The request is not valid.</p>
65
+ *
66
+ * @throws {@link IoTServiceException}
67
+ * <p>Base exception class for all service exceptions from IoT service.</p>
68
+ *
69
+ */
70
+ export declare class UpdatePackageCommand extends $Command<UpdatePackageCommandInput, UpdatePackageCommandOutput, IoTClientResolvedConfig> {
71
+ readonly input: UpdatePackageCommandInput;
72
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
73
+ /**
74
+ * @public
75
+ */
76
+ constructor(input: UpdatePackageCommandInput);
77
+ /**
78
+ * @internal
79
+ */
80
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdatePackageCommandInput, UpdatePackageCommandOutput>;
81
+ /**
82
+ * @internal
83
+ */
84
+ private serialize;
85
+ /**
86
+ * @internal
87
+ */
88
+ private deserialize;
89
+ }
@@ -0,0 +1,86 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTClient";
5
+ import { UpdatePackageConfigurationRequest, UpdatePackageConfigurationResponse } from "../models/models_2";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link UpdatePackageConfigurationCommand}.
14
+ */
15
+ export interface UpdatePackageConfigurationCommandInput extends UpdatePackageConfigurationRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdatePackageConfigurationCommand}.
21
+ */
22
+ export interface UpdatePackageConfigurationCommandOutput extends UpdatePackageConfigurationResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Updates the package configuration.</p>
27
+ * <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">UpdatePackageConfiguration</a> and <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use_passrole.html">iam:PassRole</a> actions.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { IoTClient, UpdatePackageConfigurationCommand } from "@aws-sdk/client-iot"; // ES Modules import
32
+ * // const { IoTClient, UpdatePackageConfigurationCommand } = require("@aws-sdk/client-iot"); // CommonJS import
33
+ * const client = new IoTClient(config);
34
+ * const input = { // UpdatePackageConfigurationRequest
35
+ * versionUpdateByJobsConfig: { // VersionUpdateByJobsConfig
36
+ * enabled: true || false,
37
+ * roleArn: "STRING_VALUE",
38
+ * },
39
+ * clientToken: "STRING_VALUE",
40
+ * };
41
+ * const command = new UpdatePackageConfigurationCommand(input);
42
+ * const response = await client.send(command);
43
+ * // {};
44
+ *
45
+ * ```
46
+ *
47
+ * @param UpdatePackageConfigurationCommandInput - {@link UpdatePackageConfigurationCommandInput}
48
+ * @returns {@link UpdatePackageConfigurationCommandOutput}
49
+ * @see {@link UpdatePackageConfigurationCommandInput} for command's `input` shape.
50
+ * @see {@link UpdatePackageConfigurationCommandOutput} for command's `response` shape.
51
+ * @see {@link IoTClientResolvedConfig | config} for IoTClient's `config` shape.
52
+ *
53
+ * @throws {@link InternalServerException} (server fault)
54
+ * <p>Internal error from the service that indicates an unexpected error or that the service
55
+ * is unavailable.</p>
56
+ *
57
+ * @throws {@link ThrottlingException} (client fault)
58
+ * <p>The rate exceeds the limit.</p>
59
+ *
60
+ * @throws {@link ValidationException} (client fault)
61
+ * <p>The request is not valid.</p>
62
+ *
63
+ * @throws {@link IoTServiceException}
64
+ * <p>Base exception class for all service exceptions from IoT service.</p>
65
+ *
66
+ */
67
+ export declare class UpdatePackageConfigurationCommand extends $Command<UpdatePackageConfigurationCommandInput, UpdatePackageConfigurationCommandOutput, IoTClientResolvedConfig> {
68
+ readonly input: UpdatePackageConfigurationCommandInput;
69
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
70
+ /**
71
+ * @public
72
+ */
73
+ constructor(input: UpdatePackageConfigurationCommandInput);
74
+ /**
75
+ * @internal
76
+ */
77
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdatePackageConfigurationCommandInput, UpdatePackageConfigurationCommandOutput>;
78
+ /**
79
+ * @internal
80
+ */
81
+ private serialize;
82
+ /**
83
+ * @internal
84
+ */
85
+ private deserialize;
86
+ }
@@ -0,0 +1,92 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTClient";
5
+ import { UpdatePackageVersionRequest, UpdatePackageVersionResponse } from "../models/models_2";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link UpdatePackageVersionCommand}.
14
+ */
15
+ export interface UpdatePackageVersionCommandInput extends UpdatePackageVersionRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdatePackageVersionCommand}.
21
+ */
22
+ export interface UpdatePackageVersionCommandOutput extends UpdatePackageVersionResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Updates the supported fields for a specific package version.</p>
27
+ * <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">UpdatePackageVersion</a> and <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">GetIndexingConfiguration</a> actions.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { IoTClient, UpdatePackageVersionCommand } from "@aws-sdk/client-iot"; // ES Modules import
32
+ * // const { IoTClient, UpdatePackageVersionCommand } = require("@aws-sdk/client-iot"); // CommonJS import
33
+ * const client = new IoTClient(config);
34
+ * const input = { // UpdatePackageVersionRequest
35
+ * packageName: "STRING_VALUE", // required
36
+ * versionName: "STRING_VALUE", // required
37
+ * description: "STRING_VALUE",
38
+ * attributes: { // ResourceAttributes
39
+ * "<keys>": "STRING_VALUE",
40
+ * },
41
+ * action: "PUBLISH" || "DEPRECATE",
42
+ * clientToken: "STRING_VALUE",
43
+ * };
44
+ * const command = new UpdatePackageVersionCommand(input);
45
+ * const response = await client.send(command);
46
+ * // {};
47
+ *
48
+ * ```
49
+ *
50
+ * @param UpdatePackageVersionCommandInput - {@link UpdatePackageVersionCommandInput}
51
+ * @returns {@link UpdatePackageVersionCommandOutput}
52
+ * @see {@link UpdatePackageVersionCommandInput} for command's `input` shape.
53
+ * @see {@link UpdatePackageVersionCommandOutput} for command's `response` shape.
54
+ * @see {@link IoTClientResolvedConfig | config} for IoTClient's `config` shape.
55
+ *
56
+ * @throws {@link InternalServerException} (server fault)
57
+ * <p>Internal error from the service that indicates an unexpected error or that the service
58
+ * is unavailable.</p>
59
+ *
60
+ * @throws {@link ResourceNotFoundException} (client fault)
61
+ * <p>The specified resource does not exist.</p>
62
+ *
63
+ * @throws {@link ThrottlingException} (client fault)
64
+ * <p>The rate exceeds the limit.</p>
65
+ *
66
+ * @throws {@link ValidationException} (client fault)
67
+ * <p>The request is not valid.</p>
68
+ *
69
+ * @throws {@link IoTServiceException}
70
+ * <p>Base exception class for all service exceptions from IoT service.</p>
71
+ *
72
+ */
73
+ export declare class UpdatePackageVersionCommand extends $Command<UpdatePackageVersionCommandInput, UpdatePackageVersionCommandOutput, IoTClientResolvedConfig> {
74
+ readonly input: UpdatePackageVersionCommandInput;
75
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
76
+ /**
77
+ * @public
78
+ */
79
+ constructor(input: UpdatePackageVersionCommandInput);
80
+ /**
81
+ * @internal
82
+ */
83
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: IoTClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdatePackageVersionCommandInput, UpdatePackageVersionCommandOutput>;
84
+ /**
85
+ * @internal
86
+ */
87
+ private serialize;
88
+ /**
89
+ * @internal
90
+ */
91
+ private deserialize;
92
+ }
@@ -28,6 +28,8 @@ export * from "./CreateJobTemplateCommand";
28
28
  export * from "./CreateKeysAndCertificateCommand";
29
29
  export * from "./CreateMitigationActionCommand";
30
30
  export * from "./CreateOTAUpdateCommand";
31
+ export * from "./CreatePackageCommand";
32
+ export * from "./CreatePackageVersionCommand";
31
33
  export * from "./CreatePolicyCommand";
32
34
  export * from "./CreatePolicyVersionCommand";
33
35
  export * from "./CreateProvisioningClaimCommand";
@@ -58,6 +60,8 @@ export * from "./DeleteJobExecutionCommand";
58
60
  export * from "./DeleteJobTemplateCommand";
59
61
  export * from "./DeleteMitigationActionCommand";
60
62
  export * from "./DeleteOTAUpdateCommand";
63
+ export * from "./DeletePackageCommand";
64
+ export * from "./DeletePackageVersionCommand";
61
65
  export * from "./DeletePolicyCommand";
62
66
  export * from "./DeletePolicyVersionCommand";
63
67
  export * from "./DeleteProvisioningTemplateCommand";
@@ -121,6 +125,9 @@ export * from "./GetIndexingConfigurationCommand";
121
125
  export * from "./GetJobDocumentCommand";
122
126
  export * from "./GetLoggingOptionsCommand";
123
127
  export * from "./GetOTAUpdateCommand";
128
+ export * from "./GetPackageCommand";
129
+ export * from "./GetPackageConfigurationCommand";
130
+ export * from "./GetPackageVersionCommand";
124
131
  export * from "./GetPercentilesCommand";
125
132
  export * from "./GetPolicyCommand";
126
133
  export * from "./GetPolicyVersionCommand";
@@ -157,6 +164,8 @@ export * from "./ListMetricValuesCommand";
157
164
  export * from "./ListMitigationActionsCommand";
158
165
  export * from "./ListOTAUpdatesCommand";
159
166
  export * from "./ListOutgoingCertificatesCommand";
167
+ export * from "./ListPackageVersionsCommand";
168
+ export * from "./ListPackagesCommand";
160
169
  export * from "./ListPoliciesCommand";
161
170
  export * from "./ListPolicyPrincipalsCommand";
162
171
  export * from "./ListPolicyVersionsCommand";
@@ -226,6 +235,9 @@ export * from "./UpdateFleetMetricCommand";
226
235
  export * from "./UpdateIndexingConfigurationCommand";
227
236
  export * from "./UpdateJobCommand";
228
237
  export * from "./UpdateMitigationActionCommand";
238
+ export * from "./UpdatePackageCommand";
239
+ export * from "./UpdatePackageConfigurationCommand";
240
+ export * from "./UpdatePackageVersionCommand";
229
241
  export * from "./UpdateProvisioningTemplateCommand";
230
242
  export * from "./UpdateRoleAliasCommand";
231
243
  export * from "./UpdateScheduledAuditCommand";