@aws-sdk/client-iotsitewise 3.693.0 → 3.695.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 (86) hide show
  1. package/README.md +48 -0
  2. package/dist-cjs/index.js +616 -10
  3. package/dist-cjs/runtimeConfig.browser.js +2 -0
  4. package/dist-cjs/runtimeConfig.js +2 -0
  5. package/dist-es/IoTSiteWise.js +12 -0
  6. package/dist-es/IoTSiteWiseClient.js +6 -4
  7. package/dist-es/commands/CreateDatasetCommand.js +22 -0
  8. package/dist-es/commands/CreatePortalCommand.js +2 -1
  9. package/dist-es/commands/DeleteDatasetCommand.js +22 -0
  10. package/dist-es/commands/DescribeDatasetCommand.js +22 -0
  11. package/dist-es/commands/DescribePortalCommand.js +2 -1
  12. package/dist-es/commands/InvokeAssistantCommand.js +27 -0
  13. package/dist-es/commands/ListDatasetsCommand.js +22 -0
  14. package/dist-es/commands/UpdateDatasetCommand.js +22 -0
  15. package/dist-es/commands/UpdatePortalCommand.js +2 -1
  16. package/dist-es/commands/index.js +6 -0
  17. package/dist-es/models/models_0.js +83 -25
  18. package/dist-es/models/models_1.js +31 -0
  19. package/dist-es/pagination/ListDatasetsPaginator.js +4 -0
  20. package/dist-es/pagination/index.js +1 -0
  21. package/dist-es/protocols/Aws_restJson1.js +370 -2
  22. package/dist-es/runtimeConfig.browser.js +2 -0
  23. package/dist-es/runtimeConfig.js +2 -0
  24. package/dist-types/IoTSiteWise.d.ts +42 -0
  25. package/dist-types/IoTSiteWiseClient.d.ts +16 -5
  26. package/dist-types/commands/CreateAssetModelCompositeModelCommand.d.ts +2 -1
  27. package/dist-types/commands/CreateDatasetCommand.d.ts +130 -0
  28. package/dist-types/commands/CreatePortalCommand.d.ts +9 -1
  29. package/dist-types/commands/DeleteAssetModelCommand.d.ts +2 -1
  30. package/dist-types/commands/DeleteAssetModelCompositeModelCommand.d.ts +2 -1
  31. package/dist-types/commands/DeleteDatasetCommand.d.ts +104 -0
  32. package/dist-types/commands/DeletePortalCommand.d.ts +2 -2
  33. package/dist-types/commands/DescribeDatasetCommand.d.ts +116 -0
  34. package/dist-types/commands/DescribePortalCommand.d.ts +9 -1
  35. package/dist-types/commands/ExecuteQueryCommand.d.ts +1 -0
  36. package/dist-types/commands/InvokeAssistantCommand.d.ts +151 -0
  37. package/dist-types/commands/ListAssociatedAssetsCommand.d.ts +2 -1
  38. package/dist-types/commands/ListBulkImportJobsCommand.d.ts +1 -1
  39. package/dist-types/commands/ListCompositionRelationshipsCommand.d.ts +1 -1
  40. package/dist-types/commands/ListDashboardsCommand.d.ts +1 -1
  41. package/dist-types/commands/ListDatasetsCommand.d.ts +109 -0
  42. package/dist-types/commands/ListGatewaysCommand.d.ts +1 -1
  43. package/dist-types/commands/ListPortalsCommand.d.ts +3 -2
  44. package/dist-types/commands/ListProjectAssetsCommand.d.ts +1 -1
  45. package/dist-types/commands/ListProjectsCommand.d.ts +1 -1
  46. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  47. package/dist-types/commands/UpdateAssetModelCommand.d.ts +2 -1
  48. package/dist-types/commands/UpdateAssetModelCompositeModelCommand.d.ts +2 -1
  49. package/dist-types/commands/UpdateDatasetCommand.d.ts +124 -0
  50. package/dist-types/commands/UpdatePortalCommand.d.ts +9 -1
  51. package/dist-types/commands/index.d.ts +6 -0
  52. package/dist-types/models/models_0.d.ts +711 -560
  53. package/dist-types/models/models_1.d.ts +713 -3
  54. package/dist-types/pagination/ListDatasetsPaginator.d.ts +7 -0
  55. package/dist-types/pagination/index.d.ts +1 -0
  56. package/dist-types/protocols/Aws_restJson1.d.ts +55 -1
  57. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  58. package/dist-types/runtimeConfig.d.ts +1 -0
  59. package/dist-types/runtimeConfig.native.d.ts +1 -0
  60. package/dist-types/ts3.4/IoTSiteWise.d.ts +102 -0
  61. package/dist-types/ts3.4/IoTSiteWiseClient.d.ts +44 -0
  62. package/dist-types/ts3.4/commands/CreateDatasetCommand.d.ts +50 -0
  63. package/dist-types/ts3.4/commands/DeleteDatasetCommand.d.ts +50 -0
  64. package/dist-types/ts3.4/commands/DescribeDatasetCommand.d.ts +50 -0
  65. package/dist-types/ts3.4/commands/InvokeAssistantCommand.d.ts +50 -0
  66. package/dist-types/ts3.4/commands/ListAssociatedAssetsCommand.d.ts +2 -4
  67. package/dist-types/ts3.4/commands/ListBulkImportJobsCommand.d.ts +1 -1
  68. package/dist-types/ts3.4/commands/ListCompositionRelationshipsCommand.d.ts +1 -1
  69. package/dist-types/ts3.4/commands/ListDashboardsCommand.d.ts +1 -1
  70. package/dist-types/ts3.4/commands/ListDatasetsCommand.d.ts +47 -0
  71. package/dist-types/ts3.4/commands/ListGatewaysCommand.d.ts +1 -1
  72. package/dist-types/ts3.4/commands/ListPortalsCommand.d.ts +1 -1
  73. package/dist-types/ts3.4/commands/ListProjectAssetsCommand.d.ts +1 -1
  74. package/dist-types/ts3.4/commands/ListProjectsCommand.d.ts +1 -1
  75. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +1 -1
  76. package/dist-types/ts3.4/commands/UpdateDatasetCommand.d.ts +50 -0
  77. package/dist-types/ts3.4/commands/index.d.ts +6 -0
  78. package/dist-types/ts3.4/models/models_0.d.ts +280 -139
  79. package/dist-types/ts3.4/models/models_1.d.ts +184 -1
  80. package/dist-types/ts3.4/pagination/ListDatasetsPaginator.d.ts +11 -0
  81. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  82. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +76 -1
  83. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -0
  84. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -0
  85. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
  86. package/package.json +4 -1
@@ -0,0 +1,124 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { IoTSiteWiseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTSiteWiseClient";
4
+ import { UpdateDatasetRequest, UpdateDatasetResponse } from "../models/models_1";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link UpdateDatasetCommand}.
14
+ */
15
+ export interface UpdateDatasetCommandInput extends UpdateDatasetRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdateDatasetCommand}.
21
+ */
22
+ export interface UpdateDatasetCommandOutput extends UpdateDatasetResponse, __MetadataBearer {
23
+ }
24
+ declare const UpdateDatasetCommand_base: {
25
+ new (input: UpdateDatasetCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateDatasetCommandInput, UpdateDatasetCommandOutput, IoTSiteWiseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: UpdateDatasetCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateDatasetCommandInput, UpdateDatasetCommandOutput, IoTSiteWiseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Updates a dataset.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { IoTSiteWiseClient, UpdateDatasetCommand } from "@aws-sdk/client-iotsitewise"; // ES Modules import
35
+ * // const { IoTSiteWiseClient, UpdateDatasetCommand } = require("@aws-sdk/client-iotsitewise"); // CommonJS import
36
+ * const client = new IoTSiteWiseClient(config);
37
+ * const input = { // UpdateDatasetRequest
38
+ * datasetId: "STRING_VALUE", // required
39
+ * datasetName: "STRING_VALUE", // required
40
+ * datasetDescription: "STRING_VALUE",
41
+ * datasetSource: { // DatasetSource
42
+ * sourceType: "KENDRA", // required
43
+ * sourceFormat: "KNOWLEDGE_BASE", // required
44
+ * sourceDetail: { // SourceDetail
45
+ * kendra: { // KendraSourceDetail
46
+ * knowledgeBaseArn: "STRING_VALUE", // required
47
+ * roleArn: "STRING_VALUE", // required
48
+ * },
49
+ * },
50
+ * },
51
+ * clientToken: "STRING_VALUE",
52
+ * };
53
+ * const command = new UpdateDatasetCommand(input);
54
+ * const response = await client.send(command);
55
+ * // { // UpdateDatasetResponse
56
+ * // datasetId: "STRING_VALUE",
57
+ * // datasetArn: "STRING_VALUE",
58
+ * // datasetStatus: { // DatasetStatus
59
+ * // state: "CREATING" || "ACTIVE" || "UPDATING" || "DELETING" || "FAILED", // required
60
+ * // error: { // ErrorDetails
61
+ * // code: "VALIDATION_ERROR" || "INTERNAL_FAILURE", // required
62
+ * // message: "STRING_VALUE", // required
63
+ * // details: [ // DetailedErrors
64
+ * // { // DetailedError
65
+ * // code: "INCOMPATIBLE_COMPUTE_LOCATION" || "INCOMPATIBLE_FORWARDING_CONFIGURATION", // required
66
+ * // message: "STRING_VALUE", // required
67
+ * // },
68
+ * // ],
69
+ * // },
70
+ * // },
71
+ * // };
72
+ *
73
+ * ```
74
+ *
75
+ * @param UpdateDatasetCommandInput - {@link UpdateDatasetCommandInput}
76
+ * @returns {@link UpdateDatasetCommandOutput}
77
+ * @see {@link UpdateDatasetCommandInput} for command's `input` shape.
78
+ * @see {@link UpdateDatasetCommandOutput} for command's `response` shape.
79
+ * @see {@link IoTSiteWiseClientResolvedConfig | config} for IoTSiteWiseClient's `config` shape.
80
+ *
81
+ * @throws {@link ConflictingOperationException} (client fault)
82
+ * <p>Your request has conflicting operations. This can occur if you're trying to perform more
83
+ * than one operation on the same resource at the same time.</p>
84
+ *
85
+ * @throws {@link InternalFailureException} (server fault)
86
+ * <p>IoT SiteWise can't process your request right now. Try again later.</p>
87
+ *
88
+ * @throws {@link InvalidRequestException} (client fault)
89
+ * <p>The request isn't valid. This can occur if your request contains malformed JSON or
90
+ * unsupported characters. Check your request and try again.</p>
91
+ *
92
+ * @throws {@link LimitExceededException} (client fault)
93
+ * <p>You've reached the limit for a resource. For example, this can occur if you're trying to
94
+ * associate more than the allowed number of child assets or attempting to create more than the
95
+ * allowed number of properties for an asset model.</p>
96
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html">Quotas</a> in the <i>IoT SiteWise User Guide</i>.</p>
97
+ *
98
+ * @throws {@link ResourceNotFoundException} (client fault)
99
+ * <p>The requested resource can't be found.</p>
100
+ *
101
+ * @throws {@link ThrottlingException} (client fault)
102
+ * <p>Your request exceeded a rate limit. For example, you might have exceeded the number of
103
+ * IoT SiteWise assets that can be created per second, the allowed number of messages per second, and so
104
+ * on.</p>
105
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html">Quotas</a> in the <i>IoT SiteWise User Guide</i>.</p>
106
+ *
107
+ * @throws {@link IoTSiteWiseServiceException}
108
+ * <p>Base exception class for all service exceptions from IoTSiteWise service.</p>
109
+ *
110
+ * @public
111
+ */
112
+ export declare class UpdateDatasetCommand extends UpdateDatasetCommand_base {
113
+ /** @internal type navigation helper, not in runtime. */
114
+ protected static __types: {
115
+ api: {
116
+ input: UpdateDatasetRequest;
117
+ output: UpdateDatasetResponse;
118
+ };
119
+ sdk: {
120
+ input: UpdateDatasetCommandInput;
121
+ output: UpdateDatasetCommandOutput;
122
+ };
123
+ };
124
+ }
@@ -53,12 +53,20 @@ declare const UpdatePortalCommand_base: {
53
53
  * alarmRoleArn: "STRING_VALUE", // required
54
54
  * notificationLambdaArn: "STRING_VALUE",
55
55
  * },
56
+ * portalType: "SITEWISE_PORTAL_V1" || "SITEWISE_PORTAL_V2",
57
+ * portalTypeConfiguration: { // PortalTypeConfiguration
58
+ * "<keys>": { // PortalTypeEntry
59
+ * portalTools: [ // PortalTools
60
+ * "STRING_VALUE",
61
+ * ],
62
+ * },
63
+ * },
56
64
  * };
57
65
  * const command = new UpdatePortalCommand(input);
58
66
  * const response = await client.send(command);
59
67
  * // { // UpdatePortalResponse
60
68
  * // portalStatus: { // PortalStatus
61
- * // state: "CREATING" || "UPDATING" || "DELETING" || "ACTIVE" || "FAILED", // required
69
+ * // state: "CREATING" || "PENDING" || "UPDATING" || "DELETING" || "ACTIVE" || "FAILED", // required
62
70
  * // error: { // MonitorErrorDetails
63
71
  * // code: "INTERNAL_FAILURE" || "VALIDATION_ERROR" || "LIMIT_EXCEEDED",
64
72
  * // message: "STRING_VALUE",
@@ -12,6 +12,7 @@ export * from "./CreateAssetModelCommand";
12
12
  export * from "./CreateAssetModelCompositeModelCommand";
13
13
  export * from "./CreateBulkImportJobCommand";
14
14
  export * from "./CreateDashboardCommand";
15
+ export * from "./CreateDatasetCommand";
15
16
  export * from "./CreateGatewayCommand";
16
17
  export * from "./CreatePortalCommand";
17
18
  export * from "./CreateProjectCommand";
@@ -20,6 +21,7 @@ export * from "./DeleteAssetCommand";
20
21
  export * from "./DeleteAssetModelCommand";
21
22
  export * from "./DeleteAssetModelCompositeModelCommand";
22
23
  export * from "./DeleteDashboardCommand";
24
+ export * from "./DeleteDatasetCommand";
23
25
  export * from "./DeleteGatewayCommand";
24
26
  export * from "./DeletePortalCommand";
25
27
  export * from "./DeleteProjectCommand";
@@ -33,6 +35,7 @@ export * from "./DescribeAssetModelCompositeModelCommand";
33
35
  export * from "./DescribeAssetPropertyCommand";
34
36
  export * from "./DescribeBulkImportJobCommand";
35
37
  export * from "./DescribeDashboardCommand";
38
+ export * from "./DescribeDatasetCommand";
36
39
  export * from "./DescribeDefaultEncryptionConfigurationCommand";
37
40
  export * from "./DescribeGatewayCapabilityConfigurationCommand";
38
41
  export * from "./DescribeGatewayCommand";
@@ -49,6 +52,7 @@ export * from "./GetAssetPropertyAggregatesCommand";
49
52
  export * from "./GetAssetPropertyValueCommand";
50
53
  export * from "./GetAssetPropertyValueHistoryCommand";
51
54
  export * from "./GetInterpolatedAssetPropertyValuesCommand";
55
+ export * from "./InvokeAssistantCommand";
52
56
  export * from "./ListAccessPoliciesCommand";
53
57
  export * from "./ListActionsCommand";
54
58
  export * from "./ListAssetModelCompositeModelsCommand";
@@ -61,6 +65,7 @@ export * from "./ListAssociatedAssetsCommand";
61
65
  export * from "./ListBulkImportJobsCommand";
62
66
  export * from "./ListCompositionRelationshipsCommand";
63
67
  export * from "./ListDashboardsCommand";
68
+ export * from "./ListDatasetsCommand";
64
69
  export * from "./ListGatewaysCommand";
65
70
  export * from "./ListPortalsCommand";
66
71
  export * from "./ListProjectAssetsCommand";
@@ -78,6 +83,7 @@ export * from "./UpdateAssetModelCommand";
78
83
  export * from "./UpdateAssetModelCompositeModelCommand";
79
84
  export * from "./UpdateAssetPropertyCommand";
80
85
  export * from "./UpdateDashboardCommand";
86
+ export * from "./UpdateDatasetCommand";
81
87
  export * from "./UpdateGatewayCapabilityConfigurationCommand";
82
88
  export * from "./UpdateGatewayCommand";
83
89
  export * from "./UpdatePortalCommand";