diff --git a/clients/client-iotsitewise/src/commands/CreateAssetModelCommand.ts b/clients/client-iotsitewise/src/commands/CreateAssetModelCommand.ts
index 59eaf3f923f1..bb0ff407e527 100644
--- a/clients/client-iotsitewise/src/commands/CreateAssetModelCommand.ts
+++ b/clients/client-iotsitewise/src/commands/CreateAssetModelCommand.ts
@@ -57,9 +57,14 @@ export interface CreateAssetModelCommandOutput extends CreateAssetModelResponse,
* const client = new IoTSiteWiseClient(config);
* const input = { // CreateAssetModelRequest
* assetModelName: "STRING_VALUE", // required
+ * assetModelType: "ASSET_MODEL" || "COMPONENT_MODEL",
+ * assetModelId: "STRING_VALUE",
+ * assetModelExternalId: "STRING_VALUE",
* assetModelDescription: "STRING_VALUE",
* assetModelProperties: [ // AssetModelPropertyDefinitions
* { // AssetModelPropertyDefinition
+ * id: "STRING_VALUE",
+ * externalId: "STRING_VALUE",
* name: "STRING_VALUE", // required
* dataType: "STRING" || "INTEGER" || "DOUBLE" || "BOOLEAN" || "STRUCT", // required
* dataTypeSpec: "STRING_VALUE",
@@ -127,25 +132,27 @@ export interface CreateAssetModelCommandOutput extends CreateAssetModelResponse,
* },
* },
* },
- * id: "STRING_VALUE",
- * externalId: "STRING_VALUE",
* },
* ],
* assetModelHierarchies: [ // AssetModelHierarchyDefinitions
* { // AssetModelHierarchyDefinition
- * name: "STRING_VALUE", // required
- * childAssetModelId: "STRING_VALUE", // required
* id: "STRING_VALUE",
* externalId: "STRING_VALUE",
+ * name: "STRING_VALUE", // required
+ * childAssetModelId: "STRING_VALUE", // required
* },
* ],
* assetModelCompositeModels: [ // AssetModelCompositeModelDefinitions
* { // AssetModelCompositeModelDefinition
+ * id: "STRING_VALUE",
+ * externalId: "STRING_VALUE",
* name: "STRING_VALUE", // required
* description: "STRING_VALUE",
* type: "STRING_VALUE", // required
* properties: [
* {
+ * id: "STRING_VALUE",
+ * externalId: "STRING_VALUE",
* name: "STRING_VALUE", // required
* dataType: "STRING" || "INTEGER" || "DOUBLE" || "BOOLEAN" || "STRUCT", // required
* dataTypeSpec: "STRING_VALUE",
@@ -213,21 +220,14 @@ export interface CreateAssetModelCommandOutput extends CreateAssetModelResponse,
* },
* },
* },
- * id: "STRING_VALUE",
- * externalId: "STRING_VALUE",
* },
* ],
- * id: "STRING_VALUE",
- * externalId: "STRING_VALUE",
* },
* ],
* clientToken: "STRING_VALUE",
* tags: { // TagMap
* "
For more information, see Quotas in the IoT SiteWise User Guide.
* + * @throws {@link PreconditionFailedException} (client fault) + *The precondition in one or more of the request-header fields evaluated to FALSE
.
The resource already exists.
* diff --git a/clients/client-iotsitewise/src/commands/DeleteAssetModelCommand.ts b/clients/client-iotsitewise/src/commands/DeleteAssetModelCommand.ts index b28b54b23be1..e3638789dd58 100644 --- a/clients/client-iotsitewise/src/commands/DeleteAssetModelCommand.ts +++ b/clients/client-iotsitewise/src/commands/DeleteAssetModelCommand.ts @@ -42,6 +42,9 @@ export interface DeleteAssetModelCommandOutput extends DeleteAssetModelResponse, * const input = { // DeleteAssetModelRequest * assetModelId: "STRING_VALUE", // required * clientToken: "STRING_VALUE", + * ifMatch: "STRING_VALUE", + * ifNoneMatch: "STRING_VALUE", + * matchForVersionType: "LATEST" || "ACTIVE", * }; * const command = new DeleteAssetModelCommand(input); * const response = await client.send(command); @@ -80,6 +83,9 @@ export interface DeleteAssetModelCommandOutput extends DeleteAssetModelResponse, *The request isn't valid. This can occur if your request contains malformed JSON or * unsupported characters. Check your request and try again.
* + * @throws {@link PreconditionFailedException} (client fault) + *The precondition in one or more of the request-header fields evaluated to FALSE
.
The requested resource can't be found.
* diff --git a/clients/client-iotsitewise/src/commands/DeleteAssetModelCompositeModelCommand.ts b/clients/client-iotsitewise/src/commands/DeleteAssetModelCompositeModelCommand.ts index b56b23532018..823dd3662722 100644 --- a/clients/client-iotsitewise/src/commands/DeleteAssetModelCompositeModelCommand.ts +++ b/clients/client-iotsitewise/src/commands/DeleteAssetModelCompositeModelCommand.ts @@ -48,6 +48,9 @@ export interface DeleteAssetModelCompositeModelCommandOutput * assetModelId: "STRING_VALUE", // required * assetModelCompositeModelId: "STRING_VALUE", // required * clientToken: "STRING_VALUE", + * ifMatch: "STRING_VALUE", + * ifNoneMatch: "STRING_VALUE", + * matchForVersionType: "LATEST" || "ACTIVE", * }; * const command = new DeleteAssetModelCompositeModelCommand(input); * const response = await client.send(command); @@ -86,6 +89,9 @@ export interface DeleteAssetModelCompositeModelCommandOutput *The request isn't valid. This can occur if your request contains malformed JSON or * unsupported characters. Check your request and try again.
* + * @throws {@link PreconditionFailedException} (client fault) + *The precondition in one or more of the request-header fields evaluated to FALSE
.
The requested resource can't be found.
* diff --git a/clients/client-iotsitewise/src/commands/DescribeAssetModelCommand.ts b/clients/client-iotsitewise/src/commands/DescribeAssetModelCommand.ts index 75135f041e85..8edb7e6c2608 100644 --- a/clients/client-iotsitewise/src/commands/DescribeAssetModelCommand.ts +++ b/clients/client-iotsitewise/src/commands/DescribeAssetModelCommand.ts @@ -38,17 +38,21 @@ export interface DescribeAssetModelCommandOutput extends DescribeAssetModelRespo * const input = { // DescribeAssetModelRequest * assetModelId: "STRING_VALUE", // required * excludeProperties: true || false, + * assetModelVersion: "STRING_VALUE", * }; * const command = new DescribeAssetModelCommand(input); * const response = await client.send(command); * // { // DescribeAssetModelResponse * // assetModelId: "STRING_VALUE", // required + * // assetModelExternalId: "STRING_VALUE", * // assetModelArn: "STRING_VALUE", // required * // assetModelName: "STRING_VALUE", // required + * // assetModelType: "ASSET_MODEL" || "COMPONENT_MODEL", * // assetModelDescription: "STRING_VALUE", // required * // assetModelProperties: [ // AssetModelProperties // required * // { // AssetModelProperty * // id: "STRING_VALUE", + * // externalId: "STRING_VALUE", * // name: "STRING_VALUE", // required * // dataType: "STRING" || "INTEGER" || "DOUBLE" || "BOOLEAN" || "STRUCT", // required * // dataTypeSpec: "STRING_VALUE", @@ -122,15 +126,14 @@ export interface DescribeAssetModelCommandOutput extends DescribeAssetModelRespo * // name: "STRING_VALUE", * // }, * // ], - * // externalId: "STRING_VALUE", * // }, * // ], * // assetModelHierarchies: [ // AssetModelHierarchies // required * // { // AssetModelHierarchy * // id: "STRING_VALUE", + * // externalId: "STRING_VALUE", * // name: "STRING_VALUE", // required * // childAssetModelId: "STRING_VALUE", // required - * // externalId: "STRING_VALUE", * // }, * // ], * // assetModelCompositeModels: [ // AssetModelCompositeModels @@ -141,6 +144,7 @@ export interface DescribeAssetModelCommandOutput extends DescribeAssetModelRespo * // properties: [ * // { * // id: "STRING_VALUE", + * // externalId: "STRING_VALUE", * // name: "STRING_VALUE", // required * // dataType: "STRING" || "INTEGER" || "DOUBLE" || "BOOLEAN" || "STRUCT", // required * // dataTypeSpec: "STRING_VALUE", @@ -199,29 +203,12 @@ export interface DescribeAssetModelCommandOutput extends DescribeAssetModelRespo * // }, * // }, * // path: "You can use this operation to do the following:
*List child assets associated to a parent asset by a hierarchy that you specify.
+ *
+ * CHILD
- List all child assets associated to the asset.
List an asset's parent asset.
+ *
+ * PARENT
- List the asset's parent asset.
For more information, see Quotas in the IoT SiteWise User Guide.
* + * @throws {@link PreconditionFailedException} (client fault) + *The precondition in one or more of the request-header fields evaluated to FALSE
.
The resource already exists.
* diff --git a/clients/client-iotsitewise/src/commands/UpdateAssetModelCompositeModelCommand.ts b/clients/client-iotsitewise/src/commands/UpdateAssetModelCompositeModelCommand.ts index cc3fbf1c2558..ac2230dcf705 100644 --- a/clients/client-iotsitewise/src/commands/UpdateAssetModelCompositeModelCommand.ts +++ b/clients/client-iotsitewise/src/commands/UpdateAssetModelCompositeModelCommand.ts @@ -70,6 +70,7 @@ export interface UpdateAssetModelCompositeModelCommandOutput * assetModelCompositeModelProperties: [ // AssetModelProperties * { // AssetModelProperty * id: "STRING_VALUE", + * externalId: "STRING_VALUE", * name: "STRING_VALUE", // required * dataType: "STRING" || "INTEGER" || "DOUBLE" || "BOOLEAN" || "STRUCT", // required * dataTypeSpec: "STRING_VALUE", @@ -143,9 +144,11 @@ export interface UpdateAssetModelCompositeModelCommandOutput * name: "STRING_VALUE", * }, * ], - * externalId: "STRING_VALUE", * }, * ], + * ifMatch: "STRING_VALUE", + * ifNoneMatch: "STRING_VALUE", + * matchForVersionType: "LATEST" || "ACTIVE", * }; * const command = new UpdateAssetModelCompositeModelCommand(input); * const response = await client.send(command); @@ -196,6 +199,9 @@ export interface UpdateAssetModelCompositeModelCommandOutput * allowed number of properties for an asset model. *For more information, see Quotas in the IoT SiteWise User Guide.
* + * @throws {@link PreconditionFailedException} (client fault) + *The precondition in one or more of the request-header fields evaluated to FALSE
.
The resource already exists.
* diff --git a/clients/client-iotsitewise/src/models/models_0.ts b/clients/client-iotsitewise/src/models/models_0.ts index 842f1b380e31..0d01eea7a7dd 100644 --- a/clients/client-iotsitewise/src/models/models_0.ts +++ b/clients/client-iotsitewise/src/models/models_0.ts @@ -1175,6 +1175,14 @@ export interface AssetModelProperty { */ id?: string; + /** + *The external ID (if any) provided in the CreateAssetModel or UpdateAssetModel + * operation. You can assign an external ID by specifying + * this value as part of a call to UpdateAssetModel. However, you can't change the external ID if one is already assigned. For more information, see Using external IDs in the IoT SiteWise User Guide.
+ * @public + */ + externalId?: string; + /** *The name of the asset model property.
* @public @@ -1212,14 +1220,6 @@ export interface AssetModelProperty { * @public */ path?: AssetModelPropertyPathSegment[]; - - /** - *The external ID (if any) provided in the CreateAssetModel or UpdateAssetModel - * operation. You can assign an external ID by specifying - * this value as part of a call to UpdateAssetModel. However, you can't change the external ID if one is already assigned. For more information, see Using external IDs in the IoT SiteWise User Guide.
- * @public - */ - externalId?: string; } /** @@ -1272,6 +1272,21 @@ export interface AssetModelCompositeModel { * @public */ export interface AssetModelPropertyDefinition { + /** + *The ID to assign to the asset model property, if desired. IoT SiteWise automatically generates a unique ID for you, so this parameter is never required. + * However, if you prefer to supply your own ID instead, you can specify it here in UUID format. + * If you specify your own ID, it must be globally unique.
+ * @public + */ + id?: string; + + /** + *An external ID to assign to the property definition. The external ID must be unique among + * property definitions within this asset model. For more information, see Using external IDs in the IoT SiteWise User Guide.
+ * @public + */ + externalId?: string; + /** *The name of the property definition.
* @public @@ -1309,9 +1324,16 @@ export interface AssetModelPropertyDefinition { * @public */ type: PropertyType | undefined; +} +/** + *Contains a composite model definition in an asset model. This composite model definition + * is applied to all assets created from the asset model.
+ * @public + */ +export interface AssetModelCompositeModelDefinition { /** - *The ID to assign to the asset model property, if desired. IoT SiteWise automatically generates a unique ID for you, so this parameter is never required. + *
The ID to assign to the composite model, if desired. IoT SiteWise automatically generates a unique ID for you, so this parameter is never required. * However, if you prefer to supply your own ID instead, you can specify it here in UUID format. * If you specify your own ID, it must be globally unique.
* @public @@ -1319,19 +1341,12 @@ export interface AssetModelPropertyDefinition { id?: string; /** - *An external ID to assign to the property definition. The external ID must be unique among - * property definitions within this asset model. For more information, see Using external IDs in the IoT SiteWise User Guide.
+ *An external ID to assign to the composite model. The external ID must be unique among + * composite models within this asset model. For more information, see Using external IDs in the IoT SiteWise User Guide.
* @public */ externalId?: string; -} -/** - *Contains a composite model definition in an asset model. This composite model definition - * is applied to all assets created from the asset model.
- * @public - */ -export interface AssetModelCompositeModelDefinition { /** *The name of the composite model.
* @public @@ -1356,21 +1371,6 @@ export interface AssetModelCompositeModelDefinition { * @public */ properties?: AssetModelPropertyDefinition[]; - - /** - *The ID to assign to the composite model, if desired. IoT SiteWise automatically generates a unique ID for you, so this parameter is never required. - * However, if you prefer to supply your own ID instead, you can specify it here in UUID format. - * If you specify your own ID, it must be globally unique.
- * @public - */ - id?: string; - - /** - *An external ID to assign to the composite model. The external ID must be unique among - * composite models within this asset model. For more information, see Using external IDs in the IoT SiteWise User Guide.
- * @public - */ - externalId?: string; } /** @@ -1459,6 +1459,14 @@ export interface AssetModelHierarchy { */ id?: string; + /** + *The external ID (if any) provided in the CreateAssetModel or UpdateAssetModel + * operation. You can assign an external ID by specifying + * this value as part of a call to UpdateAssetModel. However, you can't change the external ID if one is already assigned. For more information, see Using external IDs in the IoT SiteWise User Guide.
+ * @public + */ + externalId?: string; + /** *The name of the asset model hierarchy that you specify by using the CreateAssetModel or * UpdateAssetModel API operation.
@@ -1476,14 +1484,6 @@ export interface AssetModelHierarchy { * @public */ childAssetModelId: string | undefined; - - /** - *The external ID (if any) provided in the CreateAssetModel or UpdateAssetModel - * operation. You can assign an external ID by specifying - * this value as part of a call to UpdateAssetModel. However, you can't change the external ID if one is already assigned. For more information, see Using external IDs in the IoT SiteWise User Guide.
- * @public - */ - externalId?: string; } /** @@ -1493,33 +1493,33 @@ export interface AssetModelHierarchy { */ export interface AssetModelHierarchyDefinition { /** - *The name of the asset model hierarchy definition (as specified in the CreateAssetModel or - * UpdateAssetModel API operation).
+ *The ID to assign to the asset model hierarchy, if desired. IoT SiteWise automatically generates a unique ID for you, so this parameter is never required. + * However, if you prefer to supply your own ID instead, you can specify it here in UUID format. + * If you specify your own ID, it must be globally unique.
* @public */ - name: string | undefined; + id?: string; /** - *The ID of an asset model for this hierarchy. This can be either the actual ID in UUID format, or else externalId:
followed by the external ID, if it has one.
- * For more information, see Referencing objects with external IDs in the IoT SiteWise User Guide.
An external ID to assign to the asset model hierarchy. The external ID must be unique + * among asset model hierarchies within this asset model. For more information, see Using external IDs in the IoT SiteWise User Guide.
* @public */ - childAssetModelId: string | undefined; + externalId?: string; /** - *The ID to assign to the asset model hierarchy, if desired. IoT SiteWise automatically generates a unique ID for you, so this parameter is never required. - * However, if you prefer to supply your own ID instead, you can specify it here in UUID format. - * If you specify your own ID, it must be globally unique.
+ *The name of the asset model hierarchy definition (as specified in the CreateAssetModel or + * UpdateAssetModel API operation).
* @public */ - id?: string; + name: string | undefined; /** - *An external ID to assign to the asset model hierarchy. The external ID must be unique - * among asset model hierarchies within this asset model. For more information, see Using external IDs in the IoT SiteWise User Guide.
+ *The ID of an asset model for this hierarchy. This can be either the actual ID in UUID format, or else externalId:
followed by the external ID, if it has one.
+ * For more information, see Referencing objects with external IDs in the IoT SiteWise User Guide.
The external ID of the property. For more information, see Using external IDs in the IoT SiteWise User Guide.
+ * @public + */ + externalId?: string; + /** *The name of the property.
* @public @@ -1576,12 +1582,6 @@ export interface AssetModelPropertySummary { * @public */ path?: AssetModelPropertyPathSegment[]; - - /** - *The external ID of the property. For more information, see Using external IDs in the IoT SiteWise User Guide.
- * @public - */ - externalId?: string; } /** @@ -1716,6 +1716,12 @@ export interface AssetModelSummary { */ id: string | undefined; + /** + *The external ID of the asset model. For more information, see Using external IDs in the IoT SiteWise User Guide.
+ * @public + */ + externalId?: string; + /** *The ARN of the asset model, which has the following format.
*@@ -1731,6 +1737,24 @@ export interface AssetModelSummary { */ name: string | undefined; + /** + *
The type of asset model.
+ *+ * ASSET_MODEL – (default) An asset model that you can use to create assets. + * Can't be included as a component in another asset model.
+ *+ * COMPONENT_MODEL – A reusable component that you can include in the composite + * models of other asset models. You can't create assets directly from this type of asset model.
+ *The asset model description.
* @public @@ -1756,30 +1780,26 @@ export interface AssetModelSummary { status: AssetModelStatus | undefined; /** - *The type of asset model.
- *- * ASSET_MODEL – (default) An asset model that you can use to create assets. - * Can't be included as a component in another asset model.
- *- * COMPONENT_MODEL – A reusable component that you can include in the composite - * models of other asset models. You can't create assets directly from this type of asset model.
- *The external ID of the asset model. For more information, see Using external IDs in the IoT SiteWise User Guide.
+ *The version number of the asset model.
* @public */ - externalId?: string; + version?: string; } +/** + * @public + * @enum + */ +export const AssetModelVersionType = { + ACTIVE: "ACTIVE", + LATEST: "LATEST", +} as const; + +/** + * @public + */ +export type AssetModelVersionType = (typeof AssetModelVersionType)[keyof typeof AssetModelVersionType]; + /** *Contains a summary of a property associated with an asset.
* @public @@ -3457,6 +3477,38 @@ export interface CreateAssetModelRequest { */ assetModelName: string | undefined; + /** + *The type of asset model.
+ *+ * ASSET_MODEL – (default) An asset model that you can use to create assets. + * Can't be included as a component in another asset model.
+ *+ * COMPONENT_MODEL – A reusable component that you can include in the composite + * models of other asset models. You can't create assets directly from this type of asset model.
+ *The ID to assign to the asset model, if desired. IoT SiteWise automatically generates a unique ID for you, so this parameter is never required. + * However, if you prefer to supply your own ID instead, you can specify it here in UUID format. + * If you specify your own ID, it must be globally unique.
+ * @public + */ + assetModelId?: string; + + /** + *An external ID to assign to the asset model. The external ID must be unique within your Amazon Web Services account. For more information, see Using external IDs in the IoT SiteWise User Guide.
+ * @public + */ + assetModelExternalId?: string; + /** *A description for the asset model.
* @public @@ -3509,38 +3561,6 @@ export interface CreateAssetModelRequest { * @public */ tags?: RecordThe ID to assign to the asset model, if desired. IoT SiteWise automatically generates a unique ID for you, so this parameter is never required. - * However, if you prefer to supply your own ID instead, you can specify it here in UUID format. - * If you specify your own ID, it must be globally unique.
- * @public - */ - assetModelId?: string; - - /** - *An external ID to assign to the asset model. The external ID must be unique within your Amazon Web Services account. For more information, see Using external IDs in the IoT SiteWise User Guide.
- * @public - */ - assetModelExternalId?: string; - - /** - *The type of asset model.
- *- * ASSET_MODEL – (default) An asset model that you can use to create assets. - * Can't be included as a component in another asset model.
- *- * COMPONENT_MODEL – A reusable component that you can include in the composite - * models of other asset models. You can't create assets directly from this type of asset model.
- *The ID of the parent composite model in this asset model relationship.
- * @public - */ - parentAssetModelCompositeModelId?: string; - /** *An external ID to assign to the composite model.
*If the composite model is a derived composite model, or one nested inside a component @@ -3596,6 +3610,12 @@ export interface CreateAssetModelCompositeModelRequest { */ assetModelCompositeModelExternalId?: string; + /** + *
The ID of the parent composite model in this asset model relationship.
+ * @public + */ + parentAssetModelCompositeModelId?: string; + /** *The ID of the composite model. IoT SiteWise automatically generates a unique ID for you, so this * parameter is never required. However, if you prefer to supply your own ID instead, you can @@ -3641,32 +3661,89 @@ export interface CreateAssetModelCompositeModelRequest { * information, see Quotas in the IoT SiteWise User Guide.
* @public */ - assetModelCompositeModelProperties?: AssetModelPropertyDefinition[]; + assetModelCompositeModelProperties?: AssetModelPropertyDefinition[]; + + /** + *The expected current entity tag (ETag) for the asset model’s latest or active version (specified using matchForVersionType
).
+ * The create request is rejected if the tag does not match the latest or active version's current entity tag.
+ * See Optimistic locking for asset model writes
+ * in the IoT SiteWise User Guide.
Accepts * to reject the create request if an active version
+ * (specified using matchForVersionType
as ACTIVE
) already exists for the asset model.
Specifies the asset model version type (LATEST
or ACTIVE
) used in
+ * conjunction with If-Match
or If-None-Match
headers to determine the target ETag for the create operation.
The ID of the composed asset model. You can use this ID when you call other IoT SiteWise + * APIs.
+ * @public + */ + assetModelCompositeModelId: string | undefined; + + /** + *The path to the composite model listing the parent composite models.
+ * @public + */ + assetModelCompositeModelPath: AssetModelCompositeModelPathSegment[] | undefined; + + /** + *Contains current status information for an asset model. For more information, see Asset and model + * states in the IoT SiteWise User Guide.
+ * @public + */ + assetModelStatus: AssetModelStatus | undefined; } /** + *The precondition in one or more of the request-header fields evaluated to FALSE
.
The ID of the composed asset model. You can use this ID when you call other IoT SiteWise - * APIs.
+ *The ID of the resource on which precondition failed with this operation.
* @public */ - assetModelCompositeModelId: string | undefined; + resourceId: string | undefined; /** - *The path to the composite model listing the parent composite models.
+ *The ARN of the resource on which precondition failed with this operation.
* @public */ - assetModelCompositeModelPath: AssetModelCompositeModelPathSegment[] | undefined; + resourceArn: string | undefined; /** - *Contains current status information for an asset model. For more information, see Asset and model - * states in the IoT SiteWise User Guide.
- * @public + * @internal */ - assetModelStatus: AssetModelStatus | undefined; + constructor(opts: __ExceptionOptionTypeThe expected current entity tag (ETag) for the asset model’s latest or active version (specified using matchForVersionType
).
+ * The delete request is rejected if the tag does not match the latest or active version's current entity tag.
+ * See Optimistic locking for asset model writes
+ * in the IoT SiteWise User Guide.
Accepts * to reject the delete request if an active version
+ * (specified using matchForVersionType
as ACTIVE
) already exists for the asset model.
Specifies the asset model version type (LATEST
or ACTIVE
) used in
+ * conjunction with If-Match
or If-None-Match
headers to determine the target ETag for the delete operation.
The expected current entity tag (ETag) for the asset model’s latest or active version (specified using matchForVersionType
).
+ * The delete request is rejected if the tag does not match the latest or active version's current entity tag.
+ * See Optimistic locking for asset model writes
+ * in the IoT SiteWise User Guide.
Accepts * to reject the delete request if an active version
+ * (specified using matchForVersionType
as ACTIVE
) already exists for the asset model.
Specifies the asset model version type (LATEST
or ACTIVE
) used in
+ * conjunction with If-Match
or If-None-Match
headers to determine the target ETag for the delete operation.
The version alias that specifies the latest or active version of the asset model.
+ * The details are returned in the response. The default value is LATEST
. See
+ * Asset model versions in the IoT SiteWise User Guide.
The external ID of the asset model, if any.
+ * @public + */ + assetModelExternalId?: string; + /** *The ARN of the asset model, which has the following format.
*@@ -4955,6 +5092,24 @@ export interface DescribeAssetModelResponse { */ assetModelName: string | undefined; + /** + *
The type of asset model.
+ *+ * ASSET_MODEL – (default) An asset model that you can use to create assets. + * Can't be included as a component in another asset model.
+ *+ * COMPONENT_MODEL – A reusable component that you can include in the composite + * models of other asset models. You can't create assets directly from this type of asset model.
+ *The asset model's description.
* @public @@ -4984,6 +5139,13 @@ export interface DescribeAssetModelResponse { */ assetModelCompositeModels?: AssetModelCompositeModel[]; + /** + *The list of the immediate child custom composite model summaries for the asset + * model.
+ * @public + */ + assetModelCompositeModelSummaries?: AssetModelCompositeModelSummary[]; + /** *The date the asset model was created, in Unix epoch time.
* @public @@ -5004,35 +5166,23 @@ export interface DescribeAssetModelResponse { assetModelStatus: AssetModelStatus | undefined; /** - *The type of asset model.
- *- * ASSET_MODEL – (default) An asset model that you can use to create assets. - * Can't be included as a component in another asset model.
- *- * COMPONENT_MODEL – A reusable component that you can include in the composite - * models of other asset models. You can't create assets directly from this type of asset model.
- *The list of the immediate child custom composite model summaries for the asset - * model.
+ *The version of the asset model. See + * Asset model versions in the IoT SiteWise User Guide.
* @public */ - assetModelCompositeModelSummaries?: AssetModelCompositeModelSummary[]; + assetModelVersion?: string; /** - *The external ID of the asset model, if any.
+ *The entity tag (ETag) is a hash of the retrieved version of the asset model. It's used to make + * concurrent updates safely to the resource. See Optimistic locking for asset model writes + * in the IoT SiteWise User Guide. + *
+ *See + * Optimistic locking for asset model writes + * in the IoT SiteWise User Guide.
* @public */ - assetModelExternalId?: string; + eTag?: string; } /** @@ -5052,6 +5202,14 @@ export interface DescribeAssetModelCompositeModelRequest { * @public */ assetModelCompositeModelId: string | undefined; + + /** + *The version alias that specifies the latest or active version of the asset model.
+ * The details are returned in the response. The default value is LATEST
. See
+ * Asset model versions in the IoT SiteWise User Guide.
The version alias that specifies the latest or active version of the asset model.
+ * The details are returned in the response. The default value is LATEST
. See
+ * Asset model versions in the IoT SiteWise User Guide.
The version alias that specifies the latest or active version of the asset model.
+ * The details are returned in the response. The default value is LATEST
. See
+ * Asset model versions in the IoT SiteWise User Guide.
The type of asset model. If you don't provide an assetModelTypes
, all types of asset models are returned.
+ * ASSET_MODEL – An asset model that you can use to create assets. + * Can't be included as a component in another asset model.
+ *+ * COMPONENT_MODEL – A reusable component that you can include in the composite + * models of other asset models. You can't create assets directly from this type of asset model.
+ *The token to be used for the next set of paginated results.
* @public @@ -7230,22 +7422,12 @@ export interface ListAssetModelsRequest { maxResults?: number; /** - *The type of asset model.
- *- * ASSET_MODEL – (default) An asset model that you can use to create assets. - * Can't be included as a component in another asset model.
- *- * COMPONENT_MODEL – A reusable component that you can include in the composite - * models of other asset models. You can't create assets directly from this type of asset model.
- *The version alias that specifies the latest or active version of the asset model.
+ * The details are returned in the response. The default value is LATEST
. See
+ * Asset model versions in the IoT SiteWise User Guide.
The ID of the hierarchy by which child assets are associated to the asset.
- * (This can be either the actual ID in UUID format, or else externalId:
followed by the external ID, if it has one.
- * For more information, see Referencing objects with external IDs in the IoT SiteWise User Guide.) To find a hierarchy ID, use the DescribeAsset or DescribeAssetModel operations. This parameter is required if you choose
- * CHILD
for traversalDirection
.
(Optional) If you don't provide a hierarchyId
, all the immediate assets in the traversalDirection
will be returned.
+ * The ID of the hierarchy by which child assets are associated to the asset. (This can be either the actual ID in UUID format, or else externalId:
followed by the external ID, if it has one.
+ * For more information, see Referencing objects with external IDs in the IoT SiteWise User Guide.)
For more information, see Asset hierarchies in the IoT SiteWise User Guide.
* @public */ @@ -7529,8 +7711,7 @@ export interface ListAssociatedAssetsRequest { *
* CHILD
– The list includes all child assets associated to the
- * asset. The hierarchyId
parameter is required if you choose
- * CHILD
.
@@ -8176,120 +8357,3 @@ export const ListTimeSeriesType = { * @public */ export type ListTimeSeriesType = (typeof ListTimeSeriesType)[keyof typeof ListTimeSeriesType]; - -/** - * @public - */ -export interface ListTimeSeriesRequest { - /** - *
The token to be used for the next set of paginated results.
- * @public - */ - nextToken?: string; - - /** - *The maximum number of results to return for each paginated request.
- * @public - */ - maxResults?: number; - - /** - *The ID of the asset in which the asset property was created. This can be either the actual ID in UUID format, or else externalId:
followed by the external ID, if it has one.
- * For more information, see Referencing objects with external IDs in the IoT SiteWise User Guide.
The alias prefix of the time series.
- * @public - */ - aliasPrefix?: string; - - /** - *The type of the time series. The time series type can be one of the following - * values:
- *
- * ASSOCIATED
– The time series is associated with an asset
- * property.
- * DISASSOCIATED
– The time series isn't associated with any asset
- * property.
Contains a summary of a time series (data stream).
- * @public - */ -export interface TimeSeriesSummary { - /** - *The ID of the asset in which the asset property was created.
- * @public - */ - assetId?: string; - - /** - *The ID of the asset property, in UUID format.
- * @public - */ - propertyId?: string; - - /** - *The alias that identifies the time series.
- * @public - */ - alias?: string; - - /** - *The ID of the time series.
- * @public - */ - timeSeriesId: string | undefined; - - /** - *The data type of the time series.
- *If you specify STRUCT
, you must also specify dataTypeSpec
to identify the type of the structure for this time series.
The data type of the structure for this time series. This parameter is required for time series
- * that have the STRUCT
data type.
The options for this parameter depend on the type of the composite model
- * in which you created the asset property that is associated with your time series.
- * Use AWS/ALARM_STATE
for alarm state in alarm composite models.
The date that the time series was created, in Unix epoch time.
- * @public - */ - timeSeriesCreationDate: Date | undefined; - - /** - *The date that the time series was last updated, in Unix epoch time.
- * @public - */ - timeSeriesLastUpdateDate: Date | undefined; - - /** - *The ARN of the time series, which has the following format.
- *
- * arn:$\{Partition\}:iotsitewise:$\{Region\}:$\{Account\}:time-series/$\{TimeSeriesId\}
- *
The token to be used for the next set of paginated results.
+ * @public + */ + nextToken?: string; + + /** + *The maximum number of results to return for each paginated request.
+ * @public + */ + maxResults?: number; + + /** + *The ID of the asset in which the asset property was created. This can be either the actual ID in UUID format, or else externalId:
followed by the external ID, if it has one.
+ * For more information, see Referencing objects with external IDs in the IoT SiteWise User Guide.
The alias prefix of the time series.
+ * @public + */ + aliasPrefix?: string; + + /** + *The type of the time series. The time series type can be one of the following + * values:
+ *
+ * ASSOCIATED
– The time series is associated with an asset
+ * property.
+ * DISASSOCIATED
– The time series isn't associated with any asset
+ * property.
Contains a summary of a time series (data stream).
+ * @public + */ +export interface TimeSeriesSummary { + /** + *The ID of the asset in which the asset property was created.
+ * @public + */ + assetId?: string; + + /** + *The ID of the asset property, in UUID format.
+ * @public + */ + propertyId?: string; + + /** + *The alias that identifies the time series.
+ * @public + */ + alias?: string; + + /** + *The ID of the time series.
+ * @public + */ + timeSeriesId: string | undefined; + + /** + *The data type of the time series.
+ *If you specify STRUCT
, you must also specify dataTypeSpec
to identify the type of the structure for this time series.
The data type of the structure for this time series. This parameter is required for time series
+ * that have the STRUCT
data type.
The options for this parameter depend on the type of the composite model
+ * in which you created the asset property that is associated with your time series.
+ * Use AWS/ALARM_STATE
for alarm state in alarm composite models.
The date that the time series was created, in Unix epoch time.
+ * @public + */ + timeSeriesCreationDate: Date | undefined; + + /** + *The date that the time series was last updated, in Unix epoch time.
+ * @public + */ + timeSeriesLastUpdateDate: Date | undefined; + + /** + *The ARN of the time series, which has the following format.
+ *
+ * arn:$\{Partition\}:iotsitewise:$\{Region\}:$\{Account\}:time-series/$\{TimeSeriesId\}
+ *
An external ID to assign to the asset model. The asset model must not already have an + * external ID. The external ID must be unique within your Amazon Web Services account. For more information, see Using external IDs in the IoT SiteWise User Guide.
+ * @public + */ + assetModelExternalId?: string; + /** *A unique name for the asset model.
* @public @@ -482,11 +608,27 @@ export interface UpdateAssetModelRequest { clientToken?: string; /** - *An external ID to assign to the asset model. The asset model must not already have an - * external ID. The external ID must be unique within your Amazon Web Services account. For more information, see Using external IDs in the IoT SiteWise User Guide.
+ *The expected current entity tag (ETag) for the asset model’s latest or active version (specified using matchForVersionType
).
+ * The update request is rejected if the tag does not match the latest or active version's current entity tag.
+ * See Optimistic locking for asset model writes
+ * in the IoT SiteWise User Guide.
Accepts * to reject the update request if an active version
+ * (specified using matchForVersionType
as ACTIVE
) already exists for the asset model.
Specifies the asset model version type (LATEST
or ACTIVE
) used in
+ * conjunction with If-Match
or If-None-Match
headers to determine the target ETag for the update operation.
The expected current entity tag (ETag) for the asset model’s latest or active version (specified using matchForVersionType
).
+ * The update request is rejected if the tag does not match the latest or active version's current entity tag.
+ * See Optimistic locking for asset model writes
+ * in the IoT SiteWise User Guide.
Accepts * to reject the update request if an active version
+ * (specified using matchForVersionType
as ACTIVE
) already exists for the asset model.
Specifies the asset model version type (LATEST
or ACTIVE
) used in
+ * conjunction with If-Match
or If-None-Match
headers to determine the target ETag for the update operation.
The ID to assign to the composite model, if desired. IoT SiteWise automatically generates a unique ID for you, so this parameter is never required.\n However, if you prefer to supply your own ID instead, you can specify it here in UUID format.\n If you specify your own ID, it must be globally unique.
" + } + }, + "externalId": { + "target": "com.amazonaws.iotsitewise#ExternalId", + "traits": { + "smithy.api#documentation": "An external ID to assign to the composite model. The external ID must be unique among\n composite models within this asset model. For more information, see Using external IDs in the IoT SiteWise User Guide.
" + } + }, "name": { "target": "com.amazonaws.iotsitewise#Name", "traits": { @@ -1766,18 +1778,6 @@ "traits": { "smithy.api#documentation": "The asset property definitions for this composite model.
" } - }, - "id": { - "target": "com.amazonaws.iotsitewise#ID", - "traits": { - "smithy.api#documentation": "The ID to assign to the composite model, if desired. IoT SiteWise automatically generates a unique ID for you, so this parameter is never required.\n However, if you prefer to supply your own ID instead, you can specify it here in UUID format.\n If you specify your own ID, it must be globally unique.
" - } - }, - "externalId": { - "target": "com.amazonaws.iotsitewise#ExternalId", - "traits": { - "smithy.api#documentation": "An external ID to assign to the composite model. The external ID must be unique among\n composite models within this asset model. For more information, see Using external IDs in the IoT SiteWise User Guide.
" - } } }, "traits": { @@ -1890,6 +1890,12 @@ "smithy.api#documentation": "The ID of the asset model hierarchy. This ID is a hierarchyId
.
If you are callling UpdateAssetModel to create a\n new hierarchy: You can specify its ID here, if desired.\n IoT SiteWise automatically generates a unique ID for you, so this parameter is never required.\n However, if you prefer to supply your own ID instead, you can specify it here in UUID format.\n If you specify your own ID, it must be globally unique.
\nIf you are calling UpdateAssetModel to modify an existing\n hierarchy: This can be either the actual ID in UUID format, or else externalId:
followed by the external ID, if it has one.\n For more information, see Referencing objects with external IDs in the IoT SiteWise User Guide.
The external ID (if any) provided in the CreateAssetModel or UpdateAssetModel\n operation. You can assign an external ID by specifying\n this value as part of a call to UpdateAssetModel. However, you can't change the external ID if one is already assigned. For more information, see Using external IDs in the IoT SiteWise User Guide.
" + } + }, "name": { "target": "com.amazonaws.iotsitewise#Name", "traits": { @@ -1903,12 +1909,6 @@ "smithy.api#documentation": "The ID of the asset model, in UUID format. All assets in this hierarchy must be instances of the\n childAssetModelId
asset model. IoT SiteWise will always return the actual\n asset model ID for this value. However, when you are specifying this value as part of a call to\n UpdateAssetModel, you may provide either the asset model ID or else externalId:
\n followed by the asset model's external ID. For more information, see Using external IDs in the IoT SiteWise User Guide.\n
The external ID (if any) provided in the CreateAssetModel or UpdateAssetModel\n operation. You can assign an external ID by specifying\n this value as part of a call to UpdateAssetModel. However, you can't change the external ID if one is already assigned. For more information, see Using external IDs in the IoT SiteWise User Guide.
" - } } }, "traits": { @@ -1918,6 +1918,18 @@ "com.amazonaws.iotsitewise#AssetModelHierarchyDefinition": { "type": "structure", "members": { + "id": { + "target": "com.amazonaws.iotsitewise#ID", + "traits": { + "smithy.api#documentation": "The ID to assign to the asset model hierarchy, if desired. IoT SiteWise automatically generates a unique ID for you, so this parameter is never required.\n However, if you prefer to supply your own ID instead, you can specify it here in UUID format.\n If you specify your own ID, it must be globally unique.
" + } + }, + "externalId": { + "target": "com.amazonaws.iotsitewise#ExternalId", + "traits": { + "smithy.api#documentation": "An external ID to assign to the asset model hierarchy. The external ID must be unique\n among asset model hierarchies within this asset model. For more information, see Using external IDs in the IoT SiteWise User Guide.
" + } + }, "name": { "target": "com.amazonaws.iotsitewise#Name", "traits": { @@ -1931,18 +1943,6 @@ "smithy.api#documentation": "The ID of an asset model for this hierarchy. This can be either the actual ID in UUID format, or else externalId:
followed by the external ID, if it has one.\n For more information, see Referencing objects with external IDs in the IoT SiteWise User Guide.
The ID to assign to the asset model hierarchy, if desired. IoT SiteWise automatically generates a unique ID for you, so this parameter is never required.\n However, if you prefer to supply your own ID instead, you can specify it here in UUID format.\n If you specify your own ID, it must be globally unique.
" - } - }, - "externalId": { - "target": "com.amazonaws.iotsitewise#ExternalId", - "traits": { - "smithy.api#documentation": "An external ID to assign to the asset model hierarchy. The external ID must be unique\n among asset model hierarchies within this asset model. For more information, see Using external IDs in the IoT SiteWise User Guide.
" - } } }, "traits": { @@ -1970,6 +1970,12 @@ "smithy.api#documentation": "The ID of the asset model property.
\nIf you are callling UpdateAssetModel to create a\n new property: You can specify its ID here, if desired.\n IoT SiteWise automatically generates a unique ID for you, so this parameter is never required.\n However, if you prefer to supply your own ID instead, you can specify it here in UUID format.\n If you specify your own ID, it must be globally unique.
\nIf you are calling UpdateAssetModel to modify an existing\n property: This can be either the actual ID in UUID format, or else externalId:
followed by the external ID, if it has one.\n For more information, see Referencing objects with external IDs in the IoT SiteWise User Guide.
The external ID (if any) provided in the CreateAssetModel or UpdateAssetModel\n operation. You can assign an external ID by specifying\n this value as part of a call to UpdateAssetModel. However, you can't change the external ID if one is already assigned. For more information, see Using external IDs in the IoT SiteWise User Guide.
" + } + }, "name": { "target": "com.amazonaws.iotsitewise#Name", "traits": { @@ -2008,12 +2014,6 @@ "traits": { "smithy.api#documentation": "The structured path to the property from the root of the asset model.
" } - }, - "externalId": { - "target": "com.amazonaws.iotsitewise#ExternalId", - "traits": { - "smithy.api#documentation": "The external ID (if any) provided in the CreateAssetModel or UpdateAssetModel\n operation. You can assign an external ID by specifying\n this value as part of a call to UpdateAssetModel. However, you can't change the external ID if one is already assigned. For more information, see Using external IDs in the IoT SiteWise User Guide.
" - } } }, "traits": { @@ -2023,6 +2023,18 @@ "com.amazonaws.iotsitewise#AssetModelPropertyDefinition": { "type": "structure", "members": { + "id": { + "target": "com.amazonaws.iotsitewise#ID", + "traits": { + "smithy.api#documentation": "The ID to assign to the asset model property, if desired. IoT SiteWise automatically generates a unique ID for you, so this parameter is never required.\n However, if you prefer to supply your own ID instead, you can specify it here in UUID format.\n If you specify your own ID, it must be globally unique.
" + } + }, + "externalId": { + "target": "com.amazonaws.iotsitewise#ExternalId", + "traits": { + "smithy.api#documentation": "An external ID to assign to the property definition. The external ID must be unique among\n property definitions within this asset model. For more information, see Using external IDs in the IoT SiteWise User Guide.
" + } + }, "name": { "target": "com.amazonaws.iotsitewise#Name", "traits": { @@ -2055,18 +2067,6 @@ "smithy.api#documentation": "The property definition type (see PropertyType
). You can only specify one\n type in a property definition.
The ID to assign to the asset model property, if desired. IoT SiteWise automatically generates a unique ID for you, so this parameter is never required.\n However, if you prefer to supply your own ID instead, you can specify it here in UUID format.\n If you specify your own ID, it must be globally unique.
" - } - }, - "externalId": { - "target": "com.amazonaws.iotsitewise#ExternalId", - "traits": { - "smithy.api#documentation": "An external ID to assign to the property definition. The external ID must be unique among\n property definitions within this asset model. For more information, see Using external IDs in the IoT SiteWise User Guide.
" - } } }, "traits": { @@ -2120,6 +2120,12 @@ "smithy.api#documentation": "The ID of the property.
" } }, + "externalId": { + "target": "com.amazonaws.iotsitewise#ExternalId", + "traits": { + "smithy.api#documentation": "The external ID of the property. For more information, see Using external IDs in the IoT SiteWise User Guide.
" + } + }, "name": { "target": "com.amazonaws.iotsitewise#Name", "traits": { @@ -2163,12 +2169,6 @@ "traits": { "smithy.api#documentation": "The structured path to the property from the root of the asset model.
" } - }, - "externalId": { - "target": "com.amazonaws.iotsitewise#ExternalId", - "traits": { - "smithy.api#documentation": "The external ID of the property. For more information, see Using external IDs in the IoT SiteWise User Guide.
" - } } }, "traits": { @@ -2253,6 +2253,12 @@ "smithy.api#required": {} } }, + "externalId": { + "target": "com.amazonaws.iotsitewise#ExternalId", + "traits": { + "smithy.api#documentation": "The external ID of the asset model. For more information, see Using external IDs in the IoT SiteWise User Guide.
" + } + }, "arn": { "target": "com.amazonaws.iotsitewise#ARN", "traits": { @@ -2267,6 +2273,12 @@ "smithy.api#required": {} } }, + "assetModelType": { + "target": "com.amazonaws.iotsitewise#AssetModelType", + "traits": { + "smithy.api#documentation": "The type of asset model.
\n\n ASSET_MODEL – (default) An asset model that you can use to create assets.\n Can't be included as a component in another asset model.
\n\n COMPONENT_MODEL – A reusable component that you can include in the composite\n models of other asset models. You can't create assets directly from this type of asset model.
\nThe type of asset model.
\n\n ASSET_MODEL – (default) An asset model that you can use to create assets.\n Can't be included as a component in another asset model.
\n\n COMPONENT_MODEL – A reusable component that you can include in the composite\n models of other asset models. You can't create assets directly from this type of asset model.
\nThe external ID of the asset model. For more information, see Using external IDs in the IoT SiteWise User Guide.
" + "smithy.api#documentation": "The version number of the asset model.
" } } }, @@ -2329,6 +2335,29 @@ } } }, + "com.amazonaws.iotsitewise#AssetModelVersionFilter": { + "type": "string", + "traits": { + "smithy.api#pattern": "^(LATEST|ACTIVE)$" + } + }, + "com.amazonaws.iotsitewise#AssetModelVersionType": { + "type": "enum", + "members": { + "LATEST": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "LATEST" + } + }, + "ACTIVE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ACTIVE" + } + } + } + }, "com.amazonaws.iotsitewise#AssetProperties": { "type": "list", "member": { @@ -4885,6 +4914,9 @@ { "target": "com.amazonaws.iotsitewise#LimitExceededException" }, + { + "target": "com.amazonaws.iotsitewise#PreconditionFailedException" + }, { "target": "com.amazonaws.iotsitewise#ResourceAlreadyExistsException" }, @@ -4918,18 +4950,18 @@ "smithy.api#required": {} } }, - "parentAssetModelCompositeModelId": { - "target": "com.amazonaws.iotsitewise#CustomID", - "traits": { - "smithy.api#documentation": "The ID of the parent composite model in this asset model relationship.
" - } - }, "assetModelCompositeModelExternalId": { "target": "com.amazonaws.iotsitewise#ExternalId", "traits": { "smithy.api#documentation": "An external ID to assign to the composite model.
\nIf the composite model is a derived composite model, or one nested inside a component\n model, you can only set the external ID using UpdateAssetModelCompositeModel
and\n specifying the derived ID of the model or property from the created model it's a part\n of.
The ID of the parent composite model in this asset model relationship.
" + } + }, "assetModelCompositeModelId": { "target": "com.amazonaws.iotsitewise#ID", "traits": { @@ -4974,6 +5006,27 @@ "traits": { "smithy.api#documentation": "The property definitions of the composite model. For more information, see \n Inline custom composite models in the IoT SiteWise User Guide.
\nYou can specify up to 200 properties per composite model. For more\n information, see Quotas in the IoT SiteWise User Guide.
" } + }, + "ifMatch": { + "target": "com.amazonaws.iotsitewise#ETag", + "traits": { + "smithy.api#documentation": "The expected current entity tag (ETag) for the asset model’s latest or active version (specified using matchForVersionType
). \n The create request is rejected if the tag does not match the latest or active version's current entity tag.\n See Optimistic locking for asset model writes\n in the IoT SiteWise User Guide.
Accepts * to reject the create request if an active version \n (specified using matchForVersionType
as ACTIVE
) already exists for the asset model.
Specifies the asset model version type (LATEST
or ACTIVE
) used in \n conjunction with If-Match
or If-None-Match
headers to determine the target ETag for the create operation.
The type of asset model.
\n\n ASSET_MODEL – (default) An asset model that you can use to create assets.\n Can't be included as a component in another asset model.
\n\n COMPONENT_MODEL – A reusable component that you can include in the composite\n models of other asset models. You can't create assets directly from this type of asset model.
\nThe ID to assign to the asset model, if desired. IoT SiteWise automatically generates a unique ID for you, so this parameter is never required.\n However, if you prefer to supply your own ID instead, you can specify it here in UUID format.\n If you specify your own ID, it must be globally unique.
" + } + }, + "assetModelExternalId": { + "target": "com.amazonaws.iotsitewise#ExternalId", + "traits": { + "smithy.api#documentation": "An external ID to assign to the asset model. The external ID must be unique within your Amazon Web Services account. For more information, see Using external IDs in the IoT SiteWise User Guide.
" + } + }, "assetModelDescription": { "target": "com.amazonaws.iotsitewise#Description", "traits": { @@ -5054,24 +5125,6 @@ "traits": { "smithy.api#documentation": "A list of key-value pairs that contain metadata for the asset model. For more information,\n see Tagging your IoT SiteWise\n resources in the IoT SiteWise User Guide.
" } - }, - "assetModelId": { - "target": "com.amazonaws.iotsitewise#ID", - "traits": { - "smithy.api#documentation": "The ID to assign to the asset model, if desired. IoT SiteWise automatically generates a unique ID for you, so this parameter is never required.\n However, if you prefer to supply your own ID instead, you can specify it here in UUID format.\n If you specify your own ID, it must be globally unique.
" - } - }, - "assetModelExternalId": { - "target": "com.amazonaws.iotsitewise#ExternalId", - "traits": { - "smithy.api#documentation": "An external ID to assign to the asset model. The external ID must be unique within your Amazon Web Services account. For more information, see Using external IDs in the IoT SiteWise User Guide.
" - } - }, - "assetModelType": { - "target": "com.amazonaws.iotsitewise#AssetModelType", - "traits": { - "smithy.api#documentation": "The type of asset model.
\n\n ASSET_MODEL – (default) An asset model that you can use to create assets.\n Can't be included as a component in another asset model.
\n\n COMPONENT_MODEL – A reusable component that you can include in the composite\n models of other asset models. You can't create assets directly from this type of asset model.
\nThe expected current entity tag (ETag) for the asset model’s latest or active version (specified using matchForVersionType
). \n The delete request is rejected if the tag does not match the latest or active version's current entity tag.\n See Optimistic locking for asset model writes\n in the IoT SiteWise User Guide.
Accepts * to reject the delete request if an active version \n (specified using matchForVersionType
as ACTIVE
) already exists for the asset model.
Specifies the asset model version type (LATEST
or ACTIVE
) used in \n conjunction with If-Match
or If-None-Match
headers to determine the target ETag for the delete operation.
The expected current entity tag (ETag) for the asset model’s latest or active version (specified using matchForVersionType
). \n The delete request is rejected if the tag does not match the latest or active version's current entity tag.\n See Optimistic locking for asset model writes\n in the IoT SiteWise User Guide.
Accepts * to reject the delete request if an active version \n (specified using matchForVersionType
as ACTIVE
) already exists for the asset model.
Specifies the asset model version type (LATEST
or ACTIVE
) used in \n conjunction with If-Match
or If-None-Match
headers to determine the target ETag for the delete operation.
The version alias that specifies the latest or active version of the asset model. \n The details are returned in the response. The default value is LATEST
. See \n Asset model versions in the IoT SiteWise User Guide.
Whether or not to exclude asset model properties from the response.
", "smithy.api#httpQuery": "excludeProperties" } + }, + "assetModelVersion": { + "target": "com.amazonaws.iotsitewise#AssetModelVersionFilter", + "traits": { + "smithy.api#documentation": "The version alias that specifies the latest or active version of the asset model. \n The details are returned in the response. The default value is LATEST
. See \n Asset model versions in the IoT SiteWise User Guide.
The external ID of the asset model, if any.
" + } + }, "assetModelArn": { "target": "com.amazonaws.iotsitewise#ARN", "traits": { @@ -7210,6 +7331,12 @@ "smithy.api#required": {} } }, + "assetModelType": { + "target": "com.amazonaws.iotsitewise#AssetModelType", + "traits": { + "smithy.api#documentation": "The type of asset model.
\n\n ASSET_MODEL – (default) An asset model that you can use to create assets.\n Can't be included as a component in another asset model.
\n\n COMPONENT_MODEL – A reusable component that you can include in the composite\n models of other asset models. You can't create assets directly from this type of asset model.
\nThe list of built-in composite models for the asset model, such as those with those of\n type AWS/ALARMS
.
The list of the immediate child custom composite model summaries for the asset\n model.
" + } + }, "assetModelCreationDate": { "target": "com.amazonaws.iotsitewise#Timestamp", "traits": { @@ -7258,22 +7391,17 @@ "smithy.api#required": {} } }, - "assetModelType": { - "target": "com.amazonaws.iotsitewise#AssetModelType", - "traits": { - "smithy.api#documentation": "The type of asset model.
\n\n ASSET_MODEL – (default) An asset model that you can use to create assets.\n Can't be included as a component in another asset model.
\n\n COMPONENT_MODEL – A reusable component that you can include in the composite\n models of other asset models. You can't create assets directly from this type of asset model.
\nThe list of the immediate child custom composite model summaries for the asset\n model.
" + "smithy.api#documentation": "The version of the asset model. See \n Asset model versions in the IoT SiteWise User Guide.
" } }, - "assetModelExternalId": { - "target": "com.amazonaws.iotsitewise#ExternalId", + "eTag": { + "target": "com.amazonaws.iotsitewise#ETag", "traits": { - "smithy.api#documentation": "The external ID of the asset model, if any.
" + "smithy.api#documentation": "The entity tag (ETag) is a hash of the retrieved version of the asset model. It's used to make\n concurrent updates safely to the resource. See Optimistic locking for asset model writes\n in the IoT SiteWise User Guide.\n
\nSee \n Optimistic locking for asset model writes \n in the IoT SiteWise User Guide.
", + "smithy.api#httpHeader": "ETag" } } }, @@ -8823,6 +8951,12 @@ } } }, + "com.amazonaws.iotsitewise#ETag": { + "type": "string", + "traits": { + "smithy.api#pattern": "^[\\w-]{43}$" + } + }, "com.amazonaws.iotsitewise#Email": { "type": "string", "traits": { @@ -10684,6 +10818,13 @@ "smithy.api#documentation": "The maximum number of results to return for each paginated request.
\nDefault: 50
", "smithy.api#httpQuery": "maxResults" } + }, + "assetModelVersion": { + "target": "com.amazonaws.iotsitewise#AssetModelVersionFilter", + "traits": { + "smithy.api#documentation": "The version alias that specifies the latest or active version of the asset model. \n The details are returned in the response. The default value is LATEST
. See \n Asset model versions in the IoT SiteWise User Guide.
Filters the requested list of asset model properties. You can choose one of the following\n options:
\n\n ALL
– The list includes all asset model properties for a given asset\n model ID.
\n BASE
– The list includes only base asset model properties for a given\n asset model ID.
Default: BASE
\n
The version alias that specifies the latest or active version of the asset model. \n The details are returned in the response. The default value is LATEST
. See \n Asset model versions in the IoT SiteWise User Guide.
The type of asset model. If you don't provide an assetModelTypes
, all types of asset models are returned.
\n ASSET_MODEL – An asset model that you can use to create assets.\n \t\tCan't be included as a component in another asset model.
\n\n COMPONENT_MODEL – A reusable component that you can include in the composite\n \t\tmodels of other asset models. You can't create assets directly from this type of asset model.
\nThe type of asset model.
\n\n ASSET_MODEL – (default) An asset model that you can use to create assets.\n Can't be included as a component in another asset model.
\n\n COMPONENT_MODEL – A reusable component that you can include in the composite\n models of other asset models. You can't create assets directly from this type of asset model.
\nThe version alias that specifies the latest or active version of the asset model. \n The details are returned in the response. The default value is LATEST
. See \n Asset model versions in the IoT SiteWise User Guide.
Retrieves a paginated list of associated assets.
\nYou can use this operation to do the following:
\nList child assets associated to a parent asset by a hierarchy that you specify.
\nList an asset's parent asset.
\nRetrieves a paginated list of associated assets.
\nYou can use this operation to do the following:
\n\n CHILD
- List all child assets associated to the asset.
\n PARENT
- List the asset's parent asset.
The ID of the hierarchy by which child assets are associated to the asset.\n (This can be either the actual ID in UUID format, or else externalId:
followed by the external ID, if it has one.\n For more information, see Referencing objects with external IDs in the IoT SiteWise User Guide.) To find a hierarchy ID, use the DescribeAsset or DescribeAssetModel operations. This parameter is required if you choose\n CHILD
for traversalDirection
.
For more information, see Asset hierarchies in the IoT SiteWise User Guide.
", + "smithy.api#documentation": "(Optional) If you don't provide a hierarchyId
, all the immediate assets in the traversalDirection
will be returned.
\n The ID of the hierarchy by which child assets are associated to the asset. (This can be either the actual ID in UUID format, or else externalId:
followed by the external ID, if it has one.\n For more information, see Referencing objects with external IDs in the IoT SiteWise User Guide.)
For more information, see Asset hierarchies in the IoT SiteWise User Guide.
", "smithy.api#httpQuery": "hierarchyId" } }, "traversalDirection": { "target": "com.amazonaws.iotsitewise#TraversalDirection", "traits": { - "smithy.api#documentation": "The direction to list associated assets. Choose one of the following options:
\n\n CHILD
– The list includes all child assets associated to the\n asset. The hierarchyId
parameter is required if you choose\n CHILD
.
\n PARENT
– The list includes the asset's parent asset.
Default: CHILD
\n
The direction to list associated assets. Choose one of the following options:
\n\n CHILD
– The list includes all child assets associated to the\n asset.
\n PARENT
– The list includes the asset's parent asset.
Default: CHILD
\n
Contains a portal summary.
" } }, + "com.amazonaws.iotsitewise#PreconditionFailedException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.iotsitewise#ErrorMessage", + "traits": { + "smithy.api#required": {} + } + }, + "resourceId": { + "target": "com.amazonaws.iotsitewise#ResourceId", + "traits": { + "smithy.api#documentation": "The ID of the resource on which precondition failed with this operation.
", + "smithy.api#required": {} + } + }, + "resourceArn": { + "target": "com.amazonaws.iotsitewise#ResourceArn", + "traits": { + "smithy.api#documentation": "The ARN of the resource on which precondition failed with this operation.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "The precondition in one or more of the request-header fields evaluated to FALSE
.
The property definitions of the composite model. For more information, see \n Inline custom composite models in the IoT SiteWise User Guide.
\nYou can specify up to 200 properties per composite model. For more\n information, see Quotas in the IoT SiteWise User Guide.
" } + }, + "ifMatch": { + "target": "com.amazonaws.iotsitewise#ETag", + "traits": { + "smithy.api#documentation": "The expected current entity tag (ETag) for the asset model’s latest or active version (specified using matchForVersionType
). \n The update request is rejected if the tag does not match the latest or active version's current entity tag.\n See Optimistic locking for asset model writes\n in the IoT SiteWise User Guide.
Accepts * to reject the update request if an active version \n (specified using matchForVersionType
as ACTIVE
) already exists for the asset model.
Specifies the asset model version type (LATEST
or ACTIVE
) used in \n conjunction with If-Match
or If-None-Match
headers to determine the target ETag for the update operation.
An external ID to assign to the asset model. The asset model must not already have an\n external ID. The external ID must be unique within your Amazon Web Services account. For more information, see Using external IDs in the IoT SiteWise User Guide.
" + } + }, "assetModelName": { "target": "com.amazonaws.iotsitewise#Name", "traits": { @@ -14366,10 +14590,25 @@ "smithy.api#idempotencyToken": {} } }, - "assetModelExternalId": { - "target": "com.amazonaws.iotsitewise#ExternalId", + "ifMatch": { + "target": "com.amazonaws.iotsitewise#ETag", "traits": { - "smithy.api#documentation": "An external ID to assign to the asset model. The asset model must not already have an\n external ID. The external ID must be unique within your Amazon Web Services account. For more information, see Using external IDs in the IoT SiteWise User Guide.
" + "smithy.api#documentation": "The expected current entity tag (ETag) for the asset model’s latest or active version (specified using matchForVersionType
). \n The update request is rejected if the tag does not match the latest or active version's current entity tag.\n See Optimistic locking for asset model writes\n in the IoT SiteWise User Guide.
Accepts * to reject the update request if an active version \n (specified using matchForVersionType
as ACTIVE
) already exists for the asset model.
Specifies the asset model version type (LATEST
or ACTIVE
) used in \n conjunction with If-Match
or If-None-Match
headers to determine the target ETag for the update operation.
Contains an asset property value (of a single type only).
" } }, + "com.amazonaws.iotsitewise#Version": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 10 + }, + "smithy.api#pattern": "^(0|([1-9]{1}\\d*))$" + } + }, "com.amazonaws.iotsitewise#WarmTierRetentionPeriod": { "type": "structure", "members": {