Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

IoTSiteWise

import { IoTSiteWise } from "https://aws-api.deno.dev/v0.3/services/iotsitewise.ts?docs=full";
class IoTSiteWise {
constructor(apiFactory: client.ApiFactory);
async associateAssets(params: AssociateAssetsRequest, opts?: client.RequestOptions): Promise<void>;
async associateTimeSeriesToAssetProperty(params: AssociateTimeSeriesToAssetPropertyRequest, opts?: client.RequestOptions): Promise<void>;
async batchAssociateProjectAssets(params: BatchAssociateProjectAssetsRequest, opts?: client.RequestOptions): Promise<BatchAssociateProjectAssetsResponse>;
async batchDisassociateProjectAssets(params: BatchDisassociateProjectAssetsRequest, opts?: client.RequestOptions): Promise<BatchDisassociateProjectAssetsResponse>;
async batchPutAssetPropertyValue(params: BatchPutAssetPropertyValueRequest, opts?: client.RequestOptions): Promise<BatchPutAssetPropertyValueResponse>;
async createAccessPolicy(params: CreateAccessPolicyRequest, opts?: client.RequestOptions): Promise<CreateAccessPolicyResponse>;
async createAsset(params: CreateAssetRequest, opts?: client.RequestOptions): Promise<CreateAssetResponse>;
async createAssetModel(params: CreateAssetModelRequest, opts?: client.RequestOptions): Promise<CreateAssetModelResponse>;
async createDashboard(params: CreateDashboardRequest, opts?: client.RequestOptions): Promise<CreateDashboardResponse>;
async createGateway(params: CreateGatewayRequest, opts?: client.RequestOptions): Promise<CreateGatewayResponse>;
async createPortal(params: CreatePortalRequest, opts?: client.RequestOptions): Promise<CreatePortalResponse>;
async createProject(params: CreateProjectRequest, opts?: client.RequestOptions): Promise<CreateProjectResponse>;
async deleteAccessPolicy(params: DeleteAccessPolicyRequest, opts?: client.RequestOptions): Promise<void>;
async deleteAsset(params: DeleteAssetRequest, opts?: client.RequestOptions): Promise<DeleteAssetResponse>;
async deleteAssetModel(params: DeleteAssetModelRequest, opts?: client.RequestOptions): Promise<DeleteAssetModelResponse>;
async deleteDashboard(params: DeleteDashboardRequest, opts?: client.RequestOptions): Promise<void>;
async deleteGateway(params: DeleteGatewayRequest, opts?: client.RequestOptions): Promise<void>;
async deletePortal(params: DeletePortalRequest, opts?: client.RequestOptions): Promise<DeletePortalResponse>;
async deleteProject(params: DeleteProjectRequest, opts?: client.RequestOptions): Promise<void>;
async deleteTimeSeries(params?: DeleteTimeSeriesRequest, opts?: client.RequestOptions): Promise<void>;
async describeAccessPolicy(params: DescribeAccessPolicyRequest, opts?: client.RequestOptions): Promise<DescribeAccessPolicyResponse>;
async describeAsset(params: DescribeAssetRequest, opts?: client.RequestOptions): Promise<DescribeAssetResponse>;
async describeAssetModel(params: DescribeAssetModelRequest, opts?: client.RequestOptions): Promise<DescribeAssetModelResponse>;
async describeAssetProperty(params: DescribeAssetPropertyRequest, opts?: client.RequestOptions): Promise<DescribeAssetPropertyResponse>;
async describeDashboard(params: DescribeDashboardRequest, opts?: client.RequestOptions): Promise<DescribeDashboardResponse>;
async describeDefaultEncryptionConfiguration(opts?: client.RequestOptions): Promise<DescribeDefaultEncryptionConfigurationResponse>;
async describeGateway(params: DescribeGatewayRequest, opts?: client.RequestOptions): Promise<DescribeGatewayResponse>;
async describeGatewayCapabilityConfiguration(params: DescribeGatewayCapabilityConfigurationRequest, opts?: client.RequestOptions): Promise<DescribeGatewayCapabilityConfigurationResponse>;
async describeLoggingOptions(opts?: client.RequestOptions): Promise<DescribeLoggingOptionsResponse>;
async describePortal(params: DescribePortalRequest, opts?: client.RequestOptions): Promise<DescribePortalResponse>;
async describeProject(params: DescribeProjectRequest, opts?: client.RequestOptions): Promise<DescribeProjectResponse>;
async describeStorageConfiguration(opts?: client.RequestOptions): Promise<DescribeStorageConfigurationResponse>;
async describeTimeSeries(params?: DescribeTimeSeriesRequest, opts?: client.RequestOptions): Promise<DescribeTimeSeriesResponse>;
async disassociateAssets(params: DisassociateAssetsRequest, opts?: client.RequestOptions): Promise<void>;
async disassociateTimeSeriesFromAssetProperty(params: DisassociateTimeSeriesFromAssetPropertyRequest, opts?: client.RequestOptions): Promise<void>;
async getAssetPropertyAggregates(params: GetAssetPropertyAggregatesRequest, opts?: client.RequestOptions): Promise<GetAssetPropertyAggregatesResponse>;
async getAssetPropertyValue(params?: GetAssetPropertyValueRequest, opts?: client.RequestOptions): Promise<GetAssetPropertyValueResponse>;
async getAssetPropertyValueHistory(params?: GetAssetPropertyValueHistoryRequest, opts?: client.RequestOptions): Promise<GetAssetPropertyValueHistoryResponse>;
async getInterpolatedAssetPropertyValues(params: GetInterpolatedAssetPropertyValuesRequest, opts?: client.RequestOptions): Promise<GetInterpolatedAssetPropertyValuesResponse>;
async listAccessPolicies(params?: ListAccessPoliciesRequest, opts?: client.RequestOptions): Promise<ListAccessPoliciesResponse>;
async listAssetModels(params?: ListAssetModelsRequest, opts?: client.RequestOptions): Promise<ListAssetModelsResponse>;
async listAssetRelationships(params: ListAssetRelationshipsRequest, opts?: client.RequestOptions): Promise<ListAssetRelationshipsResponse>;
async listAssets(params?: ListAssetsRequest, opts?: client.RequestOptions): Promise<ListAssetsResponse>;
async listAssociatedAssets(params: ListAssociatedAssetsRequest, opts?: client.RequestOptions): Promise<ListAssociatedAssetsResponse>;
async listDashboards(params: ListDashboardsRequest, opts?: client.RequestOptions): Promise<ListDashboardsResponse>;
async listGateways(params?: ListGatewaysRequest, opts?: client.RequestOptions): Promise<ListGatewaysResponse>;
async listPortals(params?: ListPortalsRequest, opts?: client.RequestOptions): Promise<ListPortalsResponse>;
async listProjectAssets(params: ListProjectAssetsRequest, opts?: client.RequestOptions): Promise<ListProjectAssetsResponse>;
async listProjects(params: ListProjectsRequest, opts?: client.RequestOptions): Promise<ListProjectsResponse>;
async listTagsForResource(params: ListTagsForResourceRequest, opts?: client.RequestOptions): Promise<ListTagsForResourceResponse>;
async listTimeSeries(params?: ListTimeSeriesRequest, opts?: client.RequestOptions): Promise<ListTimeSeriesResponse>;
async putDefaultEncryptionConfiguration(params: PutDefaultEncryptionConfigurationRequest, opts?: client.RequestOptions): Promise<PutDefaultEncryptionConfigurationResponse>;
async putLoggingOptions(params: PutLoggingOptionsRequest, opts?: client.RequestOptions): Promise<void>;
async putStorageConfiguration(params: PutStorageConfigurationRequest, opts?: client.RequestOptions): Promise<PutStorageConfigurationResponse>;
async tagResource(params: TagResourceRequest, opts?: client.RequestOptions): Promise<void>;
async untagResource(params: UntagResourceRequest, opts?: client.RequestOptions): Promise<void>;
async updateAccessPolicy(params: UpdateAccessPolicyRequest, opts?: client.RequestOptions): Promise<void>;
async updateAsset(params: UpdateAssetRequest, opts?: client.RequestOptions): Promise<UpdateAssetResponse>;
async updateAssetModel(params: UpdateAssetModelRequest, opts?: client.RequestOptions): Promise<UpdateAssetModelResponse>;
async updateAssetProperty(params: UpdateAssetPropertyRequest, opts?: client.RequestOptions): Promise<void>;
async updateDashboard(params: UpdateDashboardRequest, opts?: client.RequestOptions): Promise<void>;
async updateGateway(params: UpdateGatewayRequest, opts?: client.RequestOptions): Promise<void>;
async updateGatewayCapabilityConfiguration(params: UpdateGatewayCapabilityConfigurationRequest, opts?: client.RequestOptions): Promise<UpdateGatewayCapabilityConfigurationResponse>;
async updatePortal(params: UpdatePortalRequest, opts?: client.RequestOptions): Promise<UpdatePortalResponse>;
async updateProject(params: UpdateProjectRequest, opts?: client.RequestOptions): Promise<void>;
async waitForAssetActive(params: DescribeAssetRequest, opts?: client.RequestOptions): Promise<DescribeAssetResponse>;
async waitForAssetModelActive(params: DescribeAssetModelRequest, opts?: client.RequestOptions): Promise<DescribeAssetModelResponse>;
async waitForAssetModelNotExists(params: DescribeAssetModelRequest, opts?: client.RequestOptions): Promise<Error | DescribeAssetModelResponse>;
async waitForAssetNotExists(params: DescribeAssetRequest, opts?: client.RequestOptions): Promise<Error | DescribeAssetResponse>;
async waitForPortalActive(params: DescribePortalRequest, opts?: client.RequestOptions): Promise<DescribePortalResponse>;
async waitForPortalNotExists(params: DescribePortalRequest, opts?: client.RequestOptions): Promise<Error | DescribePortalResponse>;
 
static ApiMetadata: client.ApiMetadata;
}

§Constructors

§
new IoTSiteWise(apiFactory: client.ApiFactory)
[src]

§Methods

§
associateAssets(params: AssociateAssetsRequest, opts?: client.RequestOptions): Promise<void>
[src]

Associates a child asset with the given parent asset through a hierarchy defined in the parent asset's model. For more information, see Associating assets in the IoT SiteWise User Guide.

§
associateTimeSeriesToAssetProperty(params: AssociateTimeSeriesToAssetPropertyRequest, opts?: client.RequestOptions): Promise<void>
[src]

Associates a time series (data stream) with an asset property.

§

Associates a group (batch) of assets with an IoT SiteWise Monitor project.

§

Disassociates a group (batch) of assets from an IoT SiteWise Monitor project.

§

Sends a list of asset property values to IoT SiteWise. Each value is a timestamp-quality-value (TQV) data point. For more information, see Ingesting data using the API in the IoT SiteWise User Guide.

To identify an asset property, you must specify one of the following:

  • The assetId and propertyId of an asset property.
  • A propertyAlias, which is a data stream alias (for example, /company/windfarm/3/turbine/7/temperature). To define an asset property's alias, see UpdateAssetProperty.

! IMPORTANT: ! With respect to Unix epoch time, IoT SiteWise accepts only TQVs that have a timestamp of no more than 7 days in the past and no more than 10 minutes in the future. ! IoT SiteWise rejects timestamps outside of the inclusive range of [-7 days, +10 minutes] and returns a TimestampOutOfRangeException error. ! For each asset property, IoT SiteWise overwrites TQVs with duplicate timestamps unless the newer TQV has a different quality. ! For example, if you store a TQV {T1, GOOD, V1}, then storing {T1, GOOD, V2} replaces the existing TQV.

IoT SiteWise authorizes access to each BatchPutAssetPropertyValue entry individually. For more information, see BatchPutAssetPropertyValue authorization in the IoT SiteWise User Guide.

§

Creates an access policy that grants the specified identity (Amazon Web Services SSO user, Amazon Web Services SSO group, or IAM user) access to the specified IoT SiteWise Monitor portal or project resource.

§

Creates an asset from an existing asset model. For more information, see Creating assets in the IoT SiteWise User Guide.

§

Creates an asset model from specified property and hierarchy definitions. You create assets from asset models. With asset models, you can easily create assets of the same type that have standardized definitions. Each asset created from a model inherits the asset model's property and hierarchy definitions. For more information, see Defining asset models in the IoT SiteWise User Guide.

§

Creates a dashboard in an IoT SiteWise Monitor project.

§

Creates a gateway, which is a virtual or edge device that delivers industrial data streams from local servers to IoT SiteWise. For more information, see Ingesting data using a gateway in the IoT SiteWise User Guide.

§

Creates a portal, which can contain projects and dashboards. IoT SiteWise Monitor uses Amazon Web Services SSO or IAM to authenticate portal users and manage user permissions.

Note: Before you can sign in to a new portal, you must add at least one identity to that portal. For more information, see Adding or removing portal administrators in the IoT SiteWise User Guide.

§

Creates a project in the specified portal.

Note: Make sure that the project name and description don't contain confidential information.

§
deleteAccessPolicy(params: DeleteAccessPolicyRequest, opts?: client.RequestOptions): Promise<void>
[src]

Deletes an access policy that grants the specified identity access to the specified IoT SiteWise Monitor resource. You can use this operation to revoke access to an IoT SiteWise Monitor resource.

§

Deletes an asset. This action can't be undone. For more information, see Deleting assets and models in the IoT SiteWise User Guide.

Note: You can't delete an asset that's associated to another asset. For more information, see DisassociateAssets.

§

Deletes an asset model. This action can't be undone. You must delete all assets created from an asset model before you can delete the model. Also, you can't delete an asset model if a parent asset model exists that contains a property formula expression that depends on the asset model that you want to delete. For more information, see Deleting assets and models in the IoT SiteWise User Guide.

§
deleteDashboard(params: DeleteDashboardRequest, opts?: client.RequestOptions): Promise<void>
[src]

Deletes a dashboard from IoT SiteWise Monitor.

§
deleteGateway(params: DeleteGatewayRequest, opts?: client.RequestOptions): Promise<void>
[src]

Deletes a gateway from IoT SiteWise. When you delete a gateway, some of the gateway's files remain in your gateway's file system.

§

Deletes a portal from IoT SiteWise Monitor.

§
deleteProject(params: DeleteProjectRequest, opts?: client.RequestOptions): Promise<void>
[src]

Deletes a project from IoT SiteWise Monitor.

§
deleteTimeSeries(params?: DeleteTimeSeriesRequest, opts?: client.RequestOptions): Promise<void>
[src]

Deletes a time series (data stream). If you delete a time series that's associated with an asset property, the asset property still exists, but the time series will no longer be associated with this asset property.

To identify a time series, do one of the following:

  • If the time series isn't associated with an asset property, specify the alias of the time series.
  • If the time series is associated with an asset property, specify one of the following:
    • The alias of the time series.
    • The assetId and propertyId that identifies the asset property.
§

Describes an access policy, which specifies an identity's access to an IoT SiteWise Monitor portal or project.

§

Retrieves information about an asset.

§

Retrieves information about an asset model.

§

Retrieves information about an asset property.

Note: When you call this operation for an attribute property, this response includes the default attribute value that you define in the asset model. If you update the default value in the model, this operation's response includes the new default value.

This operation doesn't return the value of the asset property. To get the value of an asset property, use GetAssetPropertyValue.

§

Retrieves information about a dashboard.

§
describeDefaultEncryptionConfiguration(opts?: client.RequestOptions): Promise<DescribeDefaultEncryptionConfigurationResponse>
[src]

Retrieves information about the default encryption configuration for the Amazon Web Services account in the default or specified Region. For more information, see Key management in the IoT SiteWise User Guide.

§

Retrieves information about a gateway.

§

Retrieves information about a gateway capability configuration. Each gateway capability defines data sources for a gateway. A capability configuration can contain multiple data source configurations. If you define OPC-UA sources for a gateway in the IoT SiteWise console, all of your OPC-UA sources are stored in one capability configuration. To list all capability configurations for a gateway, use DescribeGateway.

§
describeLoggingOptions(opts?: client.RequestOptions): Promise<DescribeLoggingOptionsResponse>
[src]

Retrieves the current IoT SiteWise logging options.

§

Retrieves information about a portal.

§

Retrieves information about a project.

§
describeStorageConfiguration(opts?: client.RequestOptions): Promise<DescribeStorageConfigurationResponse>
[src]

Retrieves information about the storage configuration for IoT SiteWise.

§

Retrieves information about a time series (data stream).

To identify a time series, do one of the following:

  • If the time series isn't associated with an asset property, specify the alias of the time series.
  • If the time series is associated with an asset property, specify one of the following:
    • The alias of the time series.
    • The assetId and propertyId that identifies the asset property.
§
disassociateAssets(params: DisassociateAssetsRequest, opts?: client.RequestOptions): Promise<void>
[src]

Disassociates a child asset from the given parent asset through a hierarchy defined in the parent asset's model.

§
disassociateTimeSeriesFromAssetProperty(params: DisassociateTimeSeriesFromAssetPropertyRequest, opts?: client.RequestOptions): Promise<void>
[src]

Disassociates a time series (data stream) from an asset property.

§

Gets aggregated values for an asset property. For more information, see Querying aggregates in the IoT SiteWise User Guide.

To identify an asset property, you must specify one of the following:

  • The assetId and propertyId of an asset property.
  • A propertyAlias, which is a data stream alias (for example, /company/windfarm/3/turbine/7/temperature). To define an asset property's alias, see UpdateAssetProperty.
§

Gets an asset property's current value. For more information, see Querying current values in the IoT SiteWise User Guide.

To identify an asset property, you must specify one of the following:

  • The assetId and propertyId of an asset property.
  • A propertyAlias, which is a data stream alias (for example, /company/windfarm/3/turbine/7/temperature). To define an asset property's alias, see UpdateAssetProperty.
§

Gets the history of an asset property's values. For more information, see Querying historical values in the IoT SiteWise User Guide.

To identify an asset property, you must specify one of the following:

  • The assetId and propertyId of an asset property.
  • A propertyAlias, which is a data stream alias (for example, /company/windfarm/3/turbine/7/temperature). To define an asset property's alias, see UpdateAssetProperty.
§

Get interpolated values for an asset property for a specified time interval, during a period of time. If your time series is missing data points during the specified time interval, you can use interpolation to estimate the missing data.

For example, you can use this operation to return the interpolated temperature values for a wind turbine every 24 hours over a duration of 7 days.

To identify an asset property, you must specify one of the following:

  • The assetId and propertyId of an asset property.
  • A propertyAlias, which is a data stream alias (for example, /company/windfarm/3/turbine/7/temperature). To define an asset property's alias, see UpdateAssetProperty.
§

Retrieves a paginated list of access policies for an identity (an Amazon Web Services SSO user, an Amazon Web Services SSO group, or an IAM user) or an IoT SiteWise Monitor resource (a portal or project).

§

Retrieves a paginated list of summaries of all asset models.

§

Retrieves a paginated list of asset relationships for an asset. You can use this operation to identify an asset's root asset and all associated assets between that asset and its root.

§
listAssets(params?: ListAssetsRequest, opts?: client.RequestOptions): Promise<ListAssetsResponse>
[src]

Retrieves a paginated list of asset summaries.

You can use this operation to do the following:

  • List assets based on a specific asset model.
  • List top-level assets.

You can't use this operation to list all assets. To retrieve summaries for all of your assets, use ListAssetModels to get all of your asset model IDs. Then, use ListAssets to get all assets for each asset model.

§

Retrieves a paginated list of associated assets.

You can use this operation to do the following:

  • List child assets associated to a parent asset by a hierarchy that you specify.
  • List an asset's parent asset.
§

Retrieves a paginated list of dashboards for an IoT SiteWise Monitor project.

§

Retrieves a paginated list of gateways.

§
listPortals(params?: ListPortalsRequest, opts?: client.RequestOptions): Promise<ListPortalsResponse>
[src]

Retrieves a paginated list of IoT SiteWise Monitor portals.

§

Retrieves a paginated list of assets associated with an IoT SiteWise Monitor project.

§

Retrieves a paginated list of projects for an IoT SiteWise Monitor portal.

§

Retrieves the list of tags for an IoT SiteWise resource.

§

Retrieves a paginated list of time series (data streams).

§

Sets the default encryption configuration for the Amazon Web Services account. For more information, see Key management in the IoT SiteWise User Guide.

§
putLoggingOptions(params: PutLoggingOptionsRequest, opts?: client.RequestOptions): Promise<void>
[src]

Sets logging options for IoT SiteWise.

§

Configures storage settings for IoT SiteWise.

§
tagResource(params: TagResourceRequest, opts?: client.RequestOptions): Promise<void>
[src]

Adds tags to an IoT SiteWise resource. If a tag already exists for the resource, this operation updates the tag's value.

§
untagResource(params: UntagResourceRequest, opts?: client.RequestOptions): Promise<void>
[src]

Removes a tag from an IoT SiteWise resource.

§
updateAccessPolicy(params: UpdateAccessPolicyRequest, opts?: client.RequestOptions): Promise<void>
[src]

Updates an existing access policy that specifies an identity's access to an IoT SiteWise Monitor portal or project resource.

§

Updates an asset's name. For more information, see Updating assets and models in the IoT SiteWise User Guide.

§

Updates an asset model and all of the assets that were created from the model. Each asset created from the model inherits the updated asset model's property and hierarchy definitions. For more information, see Updating assets and models in the IoT SiteWise User Guide.

! IMPORTANT: ! This operation overwrites the existing model with the provided model. ! To avoid deleting your asset model's properties or hierarchies, you must include their IDs and definitions in the updated asset model payload. ! For more information, see DescribeAssetModel. ! If you remove a property from an asset model, IoT SiteWise deletes all previous data for that property. ! If you remove a hierarchy definition from an asset model, IoT SiteWise disassociates every asset associated with that hierarchy. ! You can't change the type or data type of an existing property.

§
updateAssetProperty(params: UpdateAssetPropertyRequest, opts?: client.RequestOptions): Promise<void>
[src]

Updates an asset property's alias and notification state.

! IMPORTANT: ! This operation overwrites the property's existing alias and notification state. ! To keep your existing property's alias or notification state, you must include the existing values in the UpdateAssetProperty request. ! For more information, see DescribeAssetProperty.

§
updateDashboard(params: UpdateDashboardRequest, opts?: client.RequestOptions): Promise<void>
[src]

Updates an IoT SiteWise Monitor dashboard.

§
updateGateway(params: UpdateGatewayRequest, opts?: client.RequestOptions): Promise<void>
[src]

Updates a gateway's name.

§

Updates a gateway capability configuration or defines a new capability configuration. Each gateway capability defines data sources for a gateway. A capability configuration can contain multiple data source configurations. If you define OPC-UA sources for a gateway in the IoT SiteWise console, all of your OPC-UA sources are stored in one capability configuration. To list all capability configurations for a gateway, use DescribeGateway.

§

Updates an IoT SiteWise Monitor portal.

§
updateProject(params: UpdateProjectRequest, opts?: client.RequestOptions): Promise<void>
[src]

Updates an IoT SiteWise Monitor project.

§
waitForAssetActive(params: DescribeAssetRequest, opts?: client.RequestOptions): Promise<DescribeAssetResponse>
[src]

Checks state up to 20 times, 3 seconds apart (about 1 minutes max wait time).

§
waitForAssetModelActive(params: DescribeAssetModelRequest, opts?: client.RequestOptions): Promise<DescribeAssetModelResponse>
[src]

Checks state up to 20 times, 3 seconds apart (about 1 minutes max wait time).

§
waitForAssetModelNotExists(params: DescribeAssetModelRequest, opts?: client.RequestOptions): Promise<Error | DescribeAssetModelResponse>
[src]

Checks state up to 20 times, 3 seconds apart (about 1 minutes max wait time).

§
waitForAssetNotExists(params: DescribeAssetRequest, opts?: client.RequestOptions): Promise<Error | DescribeAssetResponse>
[src]

Checks state up to 20 times, 3 seconds apart (about 1 minutes max wait time).

§
waitForPortalActive(params: DescribePortalRequest, opts?: client.RequestOptions): Promise<DescribePortalResponse>
[src]

Checks state up to 20 times, 3 seconds apart (about 1 minutes max wait time).

§
waitForPortalNotExists(params: DescribePortalRequest, opts?: client.RequestOptions): Promise<Error | DescribePortalResponse>
[src]

Checks state up to 20 times, 3 seconds apart (about 1 minutes max wait time).

§Static Properties