{-# LANGUAGE DisambiguateRecordFields #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
-- Derived from AWS service descriptions, licensed under Apache 2.0.
-- |
-- Module : Amazonka.IoTSiteWise.Types
-- Copyright : (c) 2013-2023 Brendan Hay
-- License : Mozilla Public License, v. 2.0.
-- Maintainer : Brendan Hay
-- Stability : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.IoTSiteWise.Types
( -- * Service Configuration
defaultService,
-- * Errors
_ConflictingOperationException,
_InternalFailureException,
_InvalidRequestException,
_LimitExceededException,
_ResourceAlreadyExistsException,
_ResourceNotFoundException,
_ServiceUnavailableException,
_ThrottlingException,
_TooManyTagsException,
_UnauthorizedException,
-- * AggregateType
AggregateType (..),
-- * AssetErrorCode
AssetErrorCode (..),
-- * AssetModelState
AssetModelState (..),
-- * AssetRelationshipType
AssetRelationshipType (..),
-- * AssetState
AssetState (..),
-- * AuthMode
AuthMode (..),
-- * BatchEntryCompletionStatus
BatchEntryCompletionStatus (..),
-- * BatchGetAssetPropertyAggregatesErrorCode
BatchGetAssetPropertyAggregatesErrorCode (..),
-- * BatchGetAssetPropertyValueErrorCode
BatchGetAssetPropertyValueErrorCode (..),
-- * BatchGetAssetPropertyValueHistoryErrorCode
BatchGetAssetPropertyValueHistoryErrorCode (..),
-- * BatchPutAssetPropertyValueErrorCode
BatchPutAssetPropertyValueErrorCode (..),
-- * CapabilitySyncStatus
CapabilitySyncStatus (..),
-- * ColumnName
ColumnName (..),
-- * ComputeLocation
ComputeLocation (..),
-- * ConfigurationState
ConfigurationState (..),
-- * DetailedErrorCode
DetailedErrorCode (..),
-- * DisassociatedDataStorageState
DisassociatedDataStorageState (..),
-- * EncryptionType
EncryptionType (..),
-- * ErrorCode
ErrorCode (..),
-- * ForwardingConfigState
ForwardingConfigState (..),
-- * IdentityType
IdentityType (..),
-- * ImageFileType
ImageFileType (..),
-- * JobStatus
JobStatus (..),
-- * ListAssetModelPropertiesFilter
ListAssetModelPropertiesFilter (..),
-- * ListAssetPropertiesFilter
ListAssetPropertiesFilter (..),
-- * ListAssetsFilter
ListAssetsFilter (..),
-- * ListBulkImportJobsFilter
ListBulkImportJobsFilter (..),
-- * ListTimeSeriesType
ListTimeSeriesType (..),
-- * LoggingLevel
LoggingLevel (..),
-- * MonitorErrorCode
MonitorErrorCode (..),
-- * Permission
Permission (..),
-- * PortalState
PortalState (..),
-- * PropertyDataType
PropertyDataType (..),
-- * PropertyNotificationState
PropertyNotificationState (..),
-- * Quality
Quality (..),
-- * ResourceType
ResourceType (..),
-- * StorageType
StorageType (..),
-- * TimeOrdering
TimeOrdering (..),
-- * TraversalDirection
TraversalDirection (..),
-- * TraversalType
TraversalType (..),
-- * AccessPolicySummary
AccessPolicySummary (..),
newAccessPolicySummary,
accessPolicySummary_creationDate,
accessPolicySummary_lastUpdateDate,
accessPolicySummary_id,
accessPolicySummary_identity,
accessPolicySummary_resource,
accessPolicySummary_permission,
-- * AggregatedValue
AggregatedValue (..),
newAggregatedValue,
aggregatedValue_quality,
aggregatedValue_timestamp,
aggregatedValue_value,
-- * Aggregates
Aggregates (..),
newAggregates,
aggregates_average,
aggregates_count,
aggregates_maximum,
aggregates_minimum,
aggregates_standardDeviation,
aggregates_sum,
-- * Alarms
Alarms (..),
newAlarms,
alarms_notificationLambdaArn,
alarms_alarmRoleArn,
-- * AssetCompositeModel
AssetCompositeModel (..),
newAssetCompositeModel,
assetCompositeModel_description,
assetCompositeModel_id,
assetCompositeModel_name,
assetCompositeModel_type,
assetCompositeModel_properties,
-- * AssetErrorDetails
AssetErrorDetails (..),
newAssetErrorDetails,
assetErrorDetails_assetId,
assetErrorDetails_code,
assetErrorDetails_message,
-- * AssetHierarchy
AssetHierarchy (..),
newAssetHierarchy,
assetHierarchy_id,
assetHierarchy_name,
-- * AssetHierarchyInfo
AssetHierarchyInfo (..),
newAssetHierarchyInfo,
assetHierarchyInfo_childAssetId,
assetHierarchyInfo_parentAssetId,
-- * AssetModelCompositeModel
AssetModelCompositeModel (..),
newAssetModelCompositeModel,
assetModelCompositeModel_description,
assetModelCompositeModel_id,
assetModelCompositeModel_properties,
assetModelCompositeModel_name,
assetModelCompositeModel_type,
-- * AssetModelCompositeModelDefinition
AssetModelCompositeModelDefinition (..),
newAssetModelCompositeModelDefinition,
assetModelCompositeModelDefinition_description,
assetModelCompositeModelDefinition_properties,
assetModelCompositeModelDefinition_name,
assetModelCompositeModelDefinition_type,
-- * AssetModelHierarchy
AssetModelHierarchy (..),
newAssetModelHierarchy,
assetModelHierarchy_id,
assetModelHierarchy_name,
assetModelHierarchy_childAssetModelId,
-- * AssetModelHierarchyDefinition
AssetModelHierarchyDefinition (..),
newAssetModelHierarchyDefinition,
assetModelHierarchyDefinition_name,
assetModelHierarchyDefinition_childAssetModelId,
-- * AssetModelProperty
AssetModelProperty (..),
newAssetModelProperty,
assetModelProperty_dataTypeSpec,
assetModelProperty_id,
assetModelProperty_unit,
assetModelProperty_name,
assetModelProperty_dataType,
assetModelProperty_type,
-- * AssetModelPropertyDefinition
AssetModelPropertyDefinition (..),
newAssetModelPropertyDefinition,
assetModelPropertyDefinition_dataTypeSpec,
assetModelPropertyDefinition_unit,
assetModelPropertyDefinition_name,
assetModelPropertyDefinition_dataType,
assetModelPropertyDefinition_type,
-- * AssetModelPropertySummary
AssetModelPropertySummary (..),
newAssetModelPropertySummary,
assetModelPropertySummary_assetModelCompositeModelId,
assetModelPropertySummary_dataTypeSpec,
assetModelPropertySummary_id,
assetModelPropertySummary_unit,
assetModelPropertySummary_name,
assetModelPropertySummary_dataType,
assetModelPropertySummary_type,
-- * AssetModelStatus
AssetModelStatus (..),
newAssetModelStatus,
assetModelStatus_error,
assetModelStatus_state,
-- * AssetModelSummary
AssetModelSummary (..),
newAssetModelSummary,
assetModelSummary_id,
assetModelSummary_arn,
assetModelSummary_name,
assetModelSummary_description,
assetModelSummary_creationDate,
assetModelSummary_lastUpdateDate,
assetModelSummary_status,
-- * AssetProperty
AssetProperty (..),
newAssetProperty,
assetProperty_alias,
assetProperty_dataTypeSpec,
assetProperty_notification,
assetProperty_unit,
assetProperty_id,
assetProperty_name,
assetProperty_dataType,
-- * AssetPropertySummary
AssetPropertySummary (..),
newAssetPropertySummary,
assetPropertySummary_alias,
assetPropertySummary_assetCompositeModelId,
assetPropertySummary_id,
assetPropertySummary_notification,
assetPropertySummary_unit,
-- * AssetPropertyValue
AssetPropertyValue (..),
newAssetPropertyValue,
assetPropertyValue_quality,
assetPropertyValue_value,
assetPropertyValue_timestamp,
-- * AssetRelationshipSummary
AssetRelationshipSummary (..),
newAssetRelationshipSummary,
assetRelationshipSummary_hierarchyInfo,
assetRelationshipSummary_relationshipType,
-- * AssetStatus
AssetStatus (..),
newAssetStatus,
assetStatus_error,
assetStatus_state,
-- * AssetSummary
AssetSummary (..),
newAssetSummary,
assetSummary_description,
assetSummary_id,
assetSummary_arn,
assetSummary_name,
assetSummary_assetModelId,
assetSummary_creationDate,
assetSummary_lastUpdateDate,
assetSummary_status,
assetSummary_hierarchies,
-- * AssociatedAssetsSummary
AssociatedAssetsSummary (..),
newAssociatedAssetsSummary,
associatedAssetsSummary_description,
associatedAssetsSummary_id,
associatedAssetsSummary_arn,
associatedAssetsSummary_name,
associatedAssetsSummary_assetModelId,
associatedAssetsSummary_creationDate,
associatedAssetsSummary_lastUpdateDate,
associatedAssetsSummary_status,
associatedAssetsSummary_hierarchies,
-- * Attribute
Attribute (..),
newAttribute,
attribute_defaultValue,
-- * BatchGetAssetPropertyAggregatesEntry
BatchGetAssetPropertyAggregatesEntry (..),
newBatchGetAssetPropertyAggregatesEntry,
batchGetAssetPropertyAggregatesEntry_assetId,
batchGetAssetPropertyAggregatesEntry_propertyAlias,
batchGetAssetPropertyAggregatesEntry_propertyId,
batchGetAssetPropertyAggregatesEntry_qualities,
batchGetAssetPropertyAggregatesEntry_timeOrdering,
batchGetAssetPropertyAggregatesEntry_entryId,
batchGetAssetPropertyAggregatesEntry_aggregateTypes,
batchGetAssetPropertyAggregatesEntry_resolution,
batchGetAssetPropertyAggregatesEntry_startDate,
batchGetAssetPropertyAggregatesEntry_endDate,
-- * BatchGetAssetPropertyAggregatesErrorEntry
BatchGetAssetPropertyAggregatesErrorEntry (..),
newBatchGetAssetPropertyAggregatesErrorEntry,
batchGetAssetPropertyAggregatesErrorEntry_errorCode,
batchGetAssetPropertyAggregatesErrorEntry_errorMessage,
batchGetAssetPropertyAggregatesErrorEntry_entryId,
-- * BatchGetAssetPropertyAggregatesErrorInfo
BatchGetAssetPropertyAggregatesErrorInfo (..),
newBatchGetAssetPropertyAggregatesErrorInfo,
batchGetAssetPropertyAggregatesErrorInfo_errorCode,
batchGetAssetPropertyAggregatesErrorInfo_errorTimestamp,
-- * BatchGetAssetPropertyAggregatesSkippedEntry
BatchGetAssetPropertyAggregatesSkippedEntry (..),
newBatchGetAssetPropertyAggregatesSkippedEntry,
batchGetAssetPropertyAggregatesSkippedEntry_errorInfo,
batchGetAssetPropertyAggregatesSkippedEntry_entryId,
batchGetAssetPropertyAggregatesSkippedEntry_completionStatus,
-- * BatchGetAssetPropertyAggregatesSuccessEntry
BatchGetAssetPropertyAggregatesSuccessEntry (..),
newBatchGetAssetPropertyAggregatesSuccessEntry,
batchGetAssetPropertyAggregatesSuccessEntry_entryId,
batchGetAssetPropertyAggregatesSuccessEntry_aggregatedValues,
-- * BatchGetAssetPropertyValueEntry
BatchGetAssetPropertyValueEntry (..),
newBatchGetAssetPropertyValueEntry,
batchGetAssetPropertyValueEntry_assetId,
batchGetAssetPropertyValueEntry_propertyAlias,
batchGetAssetPropertyValueEntry_propertyId,
batchGetAssetPropertyValueEntry_entryId,
-- * BatchGetAssetPropertyValueErrorEntry
BatchGetAssetPropertyValueErrorEntry (..),
newBatchGetAssetPropertyValueErrorEntry,
batchGetAssetPropertyValueErrorEntry_errorCode,
batchGetAssetPropertyValueErrorEntry_errorMessage,
batchGetAssetPropertyValueErrorEntry_entryId,
-- * BatchGetAssetPropertyValueErrorInfo
BatchGetAssetPropertyValueErrorInfo (..),
newBatchGetAssetPropertyValueErrorInfo,
batchGetAssetPropertyValueErrorInfo_errorCode,
batchGetAssetPropertyValueErrorInfo_errorTimestamp,
-- * BatchGetAssetPropertyValueHistoryEntry
BatchGetAssetPropertyValueHistoryEntry (..),
newBatchGetAssetPropertyValueHistoryEntry,
batchGetAssetPropertyValueHistoryEntry_assetId,
batchGetAssetPropertyValueHistoryEntry_endDate,
batchGetAssetPropertyValueHistoryEntry_propertyAlias,
batchGetAssetPropertyValueHistoryEntry_propertyId,
batchGetAssetPropertyValueHistoryEntry_qualities,
batchGetAssetPropertyValueHistoryEntry_startDate,
batchGetAssetPropertyValueHistoryEntry_timeOrdering,
batchGetAssetPropertyValueHistoryEntry_entryId,
-- * BatchGetAssetPropertyValueHistoryErrorEntry
BatchGetAssetPropertyValueHistoryErrorEntry (..),
newBatchGetAssetPropertyValueHistoryErrorEntry,
batchGetAssetPropertyValueHistoryErrorEntry_errorCode,
batchGetAssetPropertyValueHistoryErrorEntry_errorMessage,
batchGetAssetPropertyValueHistoryErrorEntry_entryId,
-- * BatchGetAssetPropertyValueHistoryErrorInfo
BatchGetAssetPropertyValueHistoryErrorInfo (..),
newBatchGetAssetPropertyValueHistoryErrorInfo,
batchGetAssetPropertyValueHistoryErrorInfo_errorCode,
batchGetAssetPropertyValueHistoryErrorInfo_errorTimestamp,
-- * BatchGetAssetPropertyValueHistorySkippedEntry
BatchGetAssetPropertyValueHistorySkippedEntry (..),
newBatchGetAssetPropertyValueHistorySkippedEntry,
batchGetAssetPropertyValueHistorySkippedEntry_errorInfo,
batchGetAssetPropertyValueHistorySkippedEntry_entryId,
batchGetAssetPropertyValueHistorySkippedEntry_completionStatus,
-- * BatchGetAssetPropertyValueHistorySuccessEntry
BatchGetAssetPropertyValueHistorySuccessEntry (..),
newBatchGetAssetPropertyValueHistorySuccessEntry,
batchGetAssetPropertyValueHistorySuccessEntry_entryId,
batchGetAssetPropertyValueHistorySuccessEntry_assetPropertyValueHistory,
-- * BatchGetAssetPropertyValueSkippedEntry
BatchGetAssetPropertyValueSkippedEntry (..),
newBatchGetAssetPropertyValueSkippedEntry,
batchGetAssetPropertyValueSkippedEntry_errorInfo,
batchGetAssetPropertyValueSkippedEntry_entryId,
batchGetAssetPropertyValueSkippedEntry_completionStatus,
-- * BatchGetAssetPropertyValueSuccessEntry
BatchGetAssetPropertyValueSuccessEntry (..),
newBatchGetAssetPropertyValueSuccessEntry,
batchGetAssetPropertyValueSuccessEntry_assetPropertyValue,
batchGetAssetPropertyValueSuccessEntry_entryId,
-- * BatchPutAssetPropertyError
BatchPutAssetPropertyError (..),
newBatchPutAssetPropertyError,
batchPutAssetPropertyError_errorCode,
batchPutAssetPropertyError_errorMessage,
batchPutAssetPropertyError_timestamps,
-- * BatchPutAssetPropertyErrorEntry
BatchPutAssetPropertyErrorEntry (..),
newBatchPutAssetPropertyErrorEntry,
batchPutAssetPropertyErrorEntry_entryId,
batchPutAssetPropertyErrorEntry_errors,
-- * CompositeModelProperty
CompositeModelProperty (..),
newCompositeModelProperty,
compositeModelProperty_id,
compositeModelProperty_name,
compositeModelProperty_type,
compositeModelProperty_assetProperty,
-- * ConfigurationErrorDetails
ConfigurationErrorDetails (..),
newConfigurationErrorDetails,
configurationErrorDetails_code,
configurationErrorDetails_message,
-- * ConfigurationStatus
ConfigurationStatus (..),
newConfigurationStatus,
configurationStatus_error,
configurationStatus_state,
-- * Csv
Csv (..),
newCsv,
csv_columnNames,
-- * CustomerManagedS3Storage
CustomerManagedS3Storage (..),
newCustomerManagedS3Storage,
customerManagedS3Storage_s3ResourceArn,
customerManagedS3Storage_roleArn,
-- * DashboardSummary
DashboardSummary (..),
newDashboardSummary,
dashboardSummary_creationDate,
dashboardSummary_description,
dashboardSummary_lastUpdateDate,
dashboardSummary_id,
dashboardSummary_name,
-- * DetailedError
DetailedError (..),
newDetailedError,
detailedError_code,
detailedError_message,
-- * ErrorDetails
ErrorDetails (..),
newErrorDetails,
errorDetails_details,
errorDetails_code,
errorDetails_message,
-- * ErrorReportLocation
ErrorReportLocation (..),
newErrorReportLocation,
errorReportLocation_bucket,
errorReportLocation_prefix,
-- * ExpressionVariable
ExpressionVariable (..),
newExpressionVariable,
expressionVariable_name,
expressionVariable_value,
-- * File
File (..),
newFile,
file_versionId,
file_bucket,
file_key,
-- * FileFormat
FileFormat (..),
newFileFormat,
fileFormat_csv,
-- * ForwardingConfig
ForwardingConfig (..),
newForwardingConfig,
forwardingConfig_state,
-- * GatewayCapabilitySummary
GatewayCapabilitySummary (..),
newGatewayCapabilitySummary,
gatewayCapabilitySummary_capabilityNamespace,
gatewayCapabilitySummary_capabilitySyncStatus,
-- * GatewayPlatform
GatewayPlatform (..),
newGatewayPlatform,
gatewayPlatform_greengrass,
gatewayPlatform_greengrassV2,
-- * GatewaySummary
GatewaySummary (..),
newGatewaySummary,
gatewaySummary_gatewayCapabilitySummaries,
gatewaySummary_gatewayPlatform,
gatewaySummary_gatewayId,
gatewaySummary_gatewayName,
gatewaySummary_creationDate,
gatewaySummary_lastUpdateDate,
-- * Greengrass
Greengrass (..),
newGreengrass,
greengrass_groupArn,
-- * GreengrassV2
GreengrassV2 (..),
newGreengrassV2,
greengrassV2_coreDeviceThingName,
-- * GroupIdentity
GroupIdentity (..),
newGroupIdentity,
groupIdentity_id,
-- * IAMRoleIdentity
IAMRoleIdentity (..),
newIAMRoleIdentity,
iAMRoleIdentity_arn,
-- * IAMUserIdentity
IAMUserIdentity (..),
newIAMUserIdentity,
iAMUserIdentity_arn,
-- * Identity
Identity (..),
newIdentity,
identity_group,
identity_iamRole,
identity_iamUser,
identity_user,
-- * Image
Image (..),
newImage,
image_file,
image_id,
-- * ImageFile
ImageFile (..),
newImageFile,
imageFile_data,
imageFile_type,
-- * ImageLocation
ImageLocation (..),
newImageLocation,
imageLocation_id,
imageLocation_url,
-- * InterpolatedAssetPropertyValue
InterpolatedAssetPropertyValue (..),
newInterpolatedAssetPropertyValue,
interpolatedAssetPropertyValue_timestamp,
interpolatedAssetPropertyValue_value,
-- * JobConfiguration
JobConfiguration (..),
newJobConfiguration,
jobConfiguration_fileFormat,
-- * JobSummary
JobSummary (..),
newJobSummary,
jobSummary_id,
jobSummary_name,
jobSummary_status,
-- * LoggingOptions
LoggingOptions (..),
newLoggingOptions,
loggingOptions_level,
-- * Measurement
Measurement (..),
newMeasurement,
measurement_processingConfig,
-- * MeasurementProcessingConfig
MeasurementProcessingConfig (..),
newMeasurementProcessingConfig,
measurementProcessingConfig_forwardingConfig,
-- * Metric
Metric (..),
newMetric,
metric_processingConfig,
metric_expression,
metric_variables,
metric_window,
-- * MetricProcessingConfig
MetricProcessingConfig (..),
newMetricProcessingConfig,
metricProcessingConfig_computeLocation,
-- * MetricWindow
MetricWindow (..),
newMetricWindow,
metricWindow_tumbling,
-- * MonitorErrorDetails
MonitorErrorDetails (..),
newMonitorErrorDetails,
monitorErrorDetails_code,
monitorErrorDetails_message,
-- * MultiLayerStorage
MultiLayerStorage (..),
newMultiLayerStorage,
multiLayerStorage_customerManagedS3Storage,
-- * PortalResource
PortalResource (..),
newPortalResource,
portalResource_id,
-- * PortalStatus
PortalStatus (..),
newPortalStatus,
portalStatus_error,
portalStatus_state,
-- * PortalSummary
PortalSummary (..),
newPortalSummary,
portalSummary_creationDate,
portalSummary_description,
portalSummary_lastUpdateDate,
portalSummary_roleArn,
portalSummary_id,
portalSummary_name,
portalSummary_startUrl,
portalSummary_status,
-- * ProjectResource
ProjectResource (..),
newProjectResource,
projectResource_id,
-- * ProjectSummary
ProjectSummary (..),
newProjectSummary,
projectSummary_creationDate,
projectSummary_description,
projectSummary_lastUpdateDate,
projectSummary_id,
projectSummary_name,
-- * Property
Property (..),
newProperty,
property_alias,
property_notification,
property_type,
property_unit,
property_id,
property_name,
property_dataType,
-- * PropertyNotification
PropertyNotification (..),
newPropertyNotification,
propertyNotification_topic,
propertyNotification_state,
-- * PropertyType
PropertyType (..),
newPropertyType,
propertyType_attribute,
propertyType_measurement,
propertyType_metric,
propertyType_transform,
-- * PutAssetPropertyValueEntry
PutAssetPropertyValueEntry (..),
newPutAssetPropertyValueEntry,
putAssetPropertyValueEntry_assetId,
putAssetPropertyValueEntry_propertyAlias,
putAssetPropertyValueEntry_propertyId,
putAssetPropertyValueEntry_entryId,
putAssetPropertyValueEntry_propertyValues,
-- * Resource
Resource (..),
newResource,
resource_portal,
resource_project,
-- * RetentionPeriod
RetentionPeriod (..),
newRetentionPeriod,
retentionPeriod_numberOfDays,
retentionPeriod_unlimited,
-- * TimeInNanos
TimeInNanos (..),
newTimeInNanos,
timeInNanos_offsetInNanos,
timeInNanos_timeInSeconds,
-- * TimeSeriesSummary
TimeSeriesSummary (..),
newTimeSeriesSummary,
timeSeriesSummary_alias,
timeSeriesSummary_assetId,
timeSeriesSummary_dataTypeSpec,
timeSeriesSummary_propertyId,
timeSeriesSummary_timeSeriesId,
timeSeriesSummary_dataType,
timeSeriesSummary_timeSeriesCreationDate,
timeSeriesSummary_timeSeriesLastUpdateDate,
-- * Transform
Transform (..),
newTransform,
transform_processingConfig,
transform_expression,
transform_variables,
-- * TransformProcessingConfig
TransformProcessingConfig (..),
newTransformProcessingConfig,
transformProcessingConfig_forwardingConfig,
transformProcessingConfig_computeLocation,
-- * TumblingWindow
TumblingWindow (..),
newTumblingWindow,
tumblingWindow_offset,
tumblingWindow_interval,
-- * UserIdentity
UserIdentity (..),
newUserIdentity,
userIdentity_id,
-- * VariableValue
VariableValue (..),
newVariableValue,
variableValue_hierarchyId,
variableValue_propertyId,
-- * Variant
Variant (..),
newVariant,
variant_booleanValue,
variant_doubleValue,
variant_integerValue,
variant_stringValue,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import Amazonka.IoTSiteWise.Types.AccessPolicySummary
import Amazonka.IoTSiteWise.Types.AggregateType
import Amazonka.IoTSiteWise.Types.AggregatedValue
import Amazonka.IoTSiteWise.Types.Aggregates
import Amazonka.IoTSiteWise.Types.Alarms
import Amazonka.IoTSiteWise.Types.AssetCompositeModel
import Amazonka.IoTSiteWise.Types.AssetErrorCode
import Amazonka.IoTSiteWise.Types.AssetErrorDetails
import Amazonka.IoTSiteWise.Types.AssetHierarchy
import Amazonka.IoTSiteWise.Types.AssetHierarchyInfo
import Amazonka.IoTSiteWise.Types.AssetModelCompositeModel
import Amazonka.IoTSiteWise.Types.AssetModelCompositeModelDefinition
import Amazonka.IoTSiteWise.Types.AssetModelHierarchy
import Amazonka.IoTSiteWise.Types.AssetModelHierarchyDefinition
import Amazonka.IoTSiteWise.Types.AssetModelProperty
import Amazonka.IoTSiteWise.Types.AssetModelPropertyDefinition
import Amazonka.IoTSiteWise.Types.AssetModelPropertySummary
import Amazonka.IoTSiteWise.Types.AssetModelState
import Amazonka.IoTSiteWise.Types.AssetModelStatus
import Amazonka.IoTSiteWise.Types.AssetModelSummary
import Amazonka.IoTSiteWise.Types.AssetProperty
import Amazonka.IoTSiteWise.Types.AssetPropertySummary
import Amazonka.IoTSiteWise.Types.AssetPropertyValue
import Amazonka.IoTSiteWise.Types.AssetRelationshipSummary
import Amazonka.IoTSiteWise.Types.AssetRelationshipType
import Amazonka.IoTSiteWise.Types.AssetState
import Amazonka.IoTSiteWise.Types.AssetStatus
import Amazonka.IoTSiteWise.Types.AssetSummary
import Amazonka.IoTSiteWise.Types.AssociatedAssetsSummary
import Amazonka.IoTSiteWise.Types.Attribute
import Amazonka.IoTSiteWise.Types.AuthMode
import Amazonka.IoTSiteWise.Types.BatchEntryCompletionStatus
import Amazonka.IoTSiteWise.Types.BatchGetAssetPropertyAggregatesEntry
import Amazonka.IoTSiteWise.Types.BatchGetAssetPropertyAggregatesErrorCode
import Amazonka.IoTSiteWise.Types.BatchGetAssetPropertyAggregatesErrorEntry
import Amazonka.IoTSiteWise.Types.BatchGetAssetPropertyAggregatesErrorInfo
import Amazonka.IoTSiteWise.Types.BatchGetAssetPropertyAggregatesSkippedEntry
import Amazonka.IoTSiteWise.Types.BatchGetAssetPropertyAggregatesSuccessEntry
import Amazonka.IoTSiteWise.Types.BatchGetAssetPropertyValueEntry
import Amazonka.IoTSiteWise.Types.BatchGetAssetPropertyValueErrorCode
import Amazonka.IoTSiteWise.Types.BatchGetAssetPropertyValueErrorEntry
import Amazonka.IoTSiteWise.Types.BatchGetAssetPropertyValueErrorInfo
import Amazonka.IoTSiteWise.Types.BatchGetAssetPropertyValueHistoryEntry
import Amazonka.IoTSiteWise.Types.BatchGetAssetPropertyValueHistoryErrorCode
import Amazonka.IoTSiteWise.Types.BatchGetAssetPropertyValueHistoryErrorEntry
import Amazonka.IoTSiteWise.Types.BatchGetAssetPropertyValueHistoryErrorInfo
import Amazonka.IoTSiteWise.Types.BatchGetAssetPropertyValueHistorySkippedEntry
import Amazonka.IoTSiteWise.Types.BatchGetAssetPropertyValueHistorySuccessEntry
import Amazonka.IoTSiteWise.Types.BatchGetAssetPropertyValueSkippedEntry
import Amazonka.IoTSiteWise.Types.BatchGetAssetPropertyValueSuccessEntry
import Amazonka.IoTSiteWise.Types.BatchPutAssetPropertyError
import Amazonka.IoTSiteWise.Types.BatchPutAssetPropertyErrorEntry
import Amazonka.IoTSiteWise.Types.BatchPutAssetPropertyValueErrorCode
import Amazonka.IoTSiteWise.Types.CapabilitySyncStatus
import Amazonka.IoTSiteWise.Types.ColumnName
import Amazonka.IoTSiteWise.Types.CompositeModelProperty
import Amazonka.IoTSiteWise.Types.ComputeLocation
import Amazonka.IoTSiteWise.Types.ConfigurationErrorDetails
import Amazonka.IoTSiteWise.Types.ConfigurationState
import Amazonka.IoTSiteWise.Types.ConfigurationStatus
import Amazonka.IoTSiteWise.Types.Csv
import Amazonka.IoTSiteWise.Types.CustomerManagedS3Storage
import Amazonka.IoTSiteWise.Types.DashboardSummary
import Amazonka.IoTSiteWise.Types.DetailedError
import Amazonka.IoTSiteWise.Types.DetailedErrorCode
import Amazonka.IoTSiteWise.Types.DisassociatedDataStorageState
import Amazonka.IoTSiteWise.Types.EncryptionType
import Amazonka.IoTSiteWise.Types.ErrorCode
import Amazonka.IoTSiteWise.Types.ErrorDetails
import Amazonka.IoTSiteWise.Types.ErrorReportLocation
import Amazonka.IoTSiteWise.Types.ExpressionVariable
import Amazonka.IoTSiteWise.Types.File
import Amazonka.IoTSiteWise.Types.FileFormat
import Amazonka.IoTSiteWise.Types.ForwardingConfig
import Amazonka.IoTSiteWise.Types.ForwardingConfigState
import Amazonka.IoTSiteWise.Types.GatewayCapabilitySummary
import Amazonka.IoTSiteWise.Types.GatewayPlatform
import Amazonka.IoTSiteWise.Types.GatewaySummary
import Amazonka.IoTSiteWise.Types.Greengrass
import Amazonka.IoTSiteWise.Types.GreengrassV2
import Amazonka.IoTSiteWise.Types.GroupIdentity
import Amazonka.IoTSiteWise.Types.IAMRoleIdentity
import Amazonka.IoTSiteWise.Types.IAMUserIdentity
import Amazonka.IoTSiteWise.Types.Identity
import Amazonka.IoTSiteWise.Types.IdentityType
import Amazonka.IoTSiteWise.Types.Image
import Amazonka.IoTSiteWise.Types.ImageFile
import Amazonka.IoTSiteWise.Types.ImageFileType
import Amazonka.IoTSiteWise.Types.ImageLocation
import Amazonka.IoTSiteWise.Types.InterpolatedAssetPropertyValue
import Amazonka.IoTSiteWise.Types.JobConfiguration
import Amazonka.IoTSiteWise.Types.JobStatus
import Amazonka.IoTSiteWise.Types.JobSummary
import Amazonka.IoTSiteWise.Types.ListAssetModelPropertiesFilter
import Amazonka.IoTSiteWise.Types.ListAssetPropertiesFilter
import Amazonka.IoTSiteWise.Types.ListAssetsFilter
import Amazonka.IoTSiteWise.Types.ListBulkImportJobsFilter
import Amazonka.IoTSiteWise.Types.ListTimeSeriesType
import Amazonka.IoTSiteWise.Types.LoggingLevel
import Amazonka.IoTSiteWise.Types.LoggingOptions
import Amazonka.IoTSiteWise.Types.Measurement
import Amazonka.IoTSiteWise.Types.MeasurementProcessingConfig
import Amazonka.IoTSiteWise.Types.Metric
import Amazonka.IoTSiteWise.Types.MetricProcessingConfig
import Amazonka.IoTSiteWise.Types.MetricWindow
import Amazonka.IoTSiteWise.Types.MonitorErrorCode
import Amazonka.IoTSiteWise.Types.MonitorErrorDetails
import Amazonka.IoTSiteWise.Types.MultiLayerStorage
import Amazonka.IoTSiteWise.Types.Permission
import Amazonka.IoTSiteWise.Types.PortalResource
import Amazonka.IoTSiteWise.Types.PortalState
import Amazonka.IoTSiteWise.Types.PortalStatus
import Amazonka.IoTSiteWise.Types.PortalSummary
import Amazonka.IoTSiteWise.Types.ProjectResource
import Amazonka.IoTSiteWise.Types.ProjectSummary
import Amazonka.IoTSiteWise.Types.Property
import Amazonka.IoTSiteWise.Types.PropertyDataType
import Amazonka.IoTSiteWise.Types.PropertyNotification
import Amazonka.IoTSiteWise.Types.PropertyNotificationState
import Amazonka.IoTSiteWise.Types.PropertyType
import Amazonka.IoTSiteWise.Types.PutAssetPropertyValueEntry
import Amazonka.IoTSiteWise.Types.Quality
import Amazonka.IoTSiteWise.Types.Resource
import Amazonka.IoTSiteWise.Types.ResourceType
import Amazonka.IoTSiteWise.Types.RetentionPeriod
import Amazonka.IoTSiteWise.Types.StorageType
import Amazonka.IoTSiteWise.Types.TimeInNanos
import Amazonka.IoTSiteWise.Types.TimeOrdering
import Amazonka.IoTSiteWise.Types.TimeSeriesSummary
import Amazonka.IoTSiteWise.Types.Transform
import Amazonka.IoTSiteWise.Types.TransformProcessingConfig
import Amazonka.IoTSiteWise.Types.TraversalDirection
import Amazonka.IoTSiteWise.Types.TraversalType
import Amazonka.IoTSiteWise.Types.TumblingWindow
import Amazonka.IoTSiteWise.Types.UserIdentity
import Amazonka.IoTSiteWise.Types.VariableValue
import Amazonka.IoTSiteWise.Types.Variant
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Sign.V4 as Sign
-- | API version @2019-12-02@ of the Amazon IoT SiteWise SDK configuration.
defaultService :: Core.Service
defaultService =
Core.Service
{ Core.abbrev = "IoTSiteWise",
Core.signer = Sign.v4,
Core.endpointPrefix = "iotsitewise",
Core.signingName = "iotsitewise",
Core.version = "2019-12-02",
Core.s3AddressingStyle = Core.S3AddressingStyleAuto,
Core.endpoint = Core.defaultEndpoint defaultService,
Core.timeout = Prelude.Just 70,
Core.check = Core.statusSuccess,
Core.error = Core.parseJSONError "IoTSiteWise",
Core.retry = retry
}
where
retry =
Core.Exponential
{ Core.base = 5.0e-2,
Core.growth = 2,
Core.attempts = 5,
Core.check = check
}
check e
| Lens.has (Core.hasStatus 502) e =
Prelude.Just "bad_gateway"
| Lens.has (Core.hasStatus 504) e =
Prelude.Just "gateway_timeout"
| Lens.has (Core.hasStatus 500) e =
Prelude.Just "general_server_error"
| Lens.has (Core.hasStatus 509) e =
Prelude.Just "limit_exceeded"
| Lens.has
( Core.hasCode "RequestThrottledException"
Prelude.. Core.hasStatus 400
)
e =
Prelude.Just "request_throttled_exception"
| Lens.has (Core.hasStatus 503) e =
Prelude.Just "service_unavailable"
| Lens.has
( Core.hasCode "ThrottledException"
Prelude.. Core.hasStatus 400
)
e =
Prelude.Just "throttled_exception"
| Lens.has
( Core.hasCode "Throttling"
Prelude.. Core.hasStatus 400
)
e =
Prelude.Just "throttling"
| Lens.has
( Core.hasCode "ThrottlingException"
Prelude.. Core.hasStatus 400
)
e =
Prelude.Just "throttling_exception"
| Lens.has
( Core.hasCode
"ProvisionedThroughputExceededException"
Prelude.. Core.hasStatus 400
)
e =
Prelude.Just "throughput_exceeded"
| Lens.has (Core.hasStatus 429) e =
Prelude.Just "too_many_requests"
| Prelude.otherwise = Prelude.Nothing
-- | Your request has conflicting operations. This can occur if you\'re
-- trying to perform more than one operation on the same resource at the
-- same time.
_ConflictingOperationException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ConflictingOperationException =
Core._MatchServiceError
defaultService
"ConflictingOperationException"
Prelude.. Core.hasStatus 409
-- | IoT SiteWise can\'t process your request right now. Try again later.
_InternalFailureException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InternalFailureException =
Core._MatchServiceError
defaultService
"InternalFailureException"
Prelude.. Core.hasStatus 500
-- | The request isn\'t valid. This can occur if your request contains
-- malformed JSON or unsupported characters. Check your request and try
-- again.
_InvalidRequestException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidRequestException =
Core._MatchServiceError
defaultService
"InvalidRequestException"
Prelude.. Core.hasStatus 400
-- | You\'ve reached the limit for a resource. For example, this can occur if
-- you\'re trying to associate more than the allowed number of child assets
-- or attempting to create more than the allowed number of properties for
-- an asset model.
--
-- For more information, see
-- <https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html Quotas>
-- in the /IoT SiteWise User Guide/.
_LimitExceededException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_LimitExceededException =
Core._MatchServiceError
defaultService
"LimitExceededException"
Prelude.. Core.hasStatus 410
-- | The resource already exists.
_ResourceAlreadyExistsException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ResourceAlreadyExistsException =
Core._MatchServiceError
defaultService
"ResourceAlreadyExistsException"
Prelude.. Core.hasStatus 409
-- | The requested resource can\'t be found.
_ResourceNotFoundException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ResourceNotFoundException =
Core._MatchServiceError
defaultService
"ResourceNotFoundException"
Prelude.. Core.hasStatus 404
-- | The requested service is unavailable.
_ServiceUnavailableException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ServiceUnavailableException =
Core._MatchServiceError
defaultService
"ServiceUnavailableException"
Prelude.. Core.hasStatus 503
-- | Your request exceeded a rate limit. For example, you might have exceeded
-- the number of IoT SiteWise assets that can be created per second, the
-- allowed number of messages per second, and so on.
--
-- For more information, see
-- <https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html Quotas>
-- in the /IoT SiteWise User Guide/.
_ThrottlingException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ThrottlingException =
Core._MatchServiceError
defaultService
"ThrottlingException"
Prelude.. Core.hasStatus 429
-- | You\'ve reached the limit for the number of tags allowed for a resource.
-- For more information, see
-- <https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html#tag-conventions Tag naming limits and requirements>
-- in the /Amazon Web Services General Reference/.
_TooManyTagsException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_TooManyTagsException =
Core._MatchServiceError
defaultService
"TooManyTagsException"
Prelude.. Core.hasStatus 400
-- | You are not authorized.
_UnauthorizedException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_UnauthorizedException =
Core._MatchServiceError
defaultService
"UnauthorizedException"
Prelude.. Core.hasStatus 401