{-# LANGUAGE DisambiguateRecordFields #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.IoTSiteWise.Types
(
defaultService,
_ConflictingOperationException,
_InternalFailureException,
_InvalidRequestException,
_LimitExceededException,
_ResourceAlreadyExistsException,
_ResourceNotFoundException,
_ServiceUnavailableException,
_ThrottlingException,
_TooManyTagsException,
_UnauthorizedException,
AggregateType (..),
AssetErrorCode (..),
AssetModelState (..),
AssetRelationshipType (..),
AssetState (..),
AuthMode (..),
BatchEntryCompletionStatus (..),
BatchGetAssetPropertyAggregatesErrorCode (..),
BatchGetAssetPropertyValueErrorCode (..),
BatchGetAssetPropertyValueHistoryErrorCode (..),
BatchPutAssetPropertyValueErrorCode (..),
CapabilitySyncStatus (..),
ColumnName (..),
ComputeLocation (..),
ConfigurationState (..),
DetailedErrorCode (..),
DisassociatedDataStorageState (..),
EncryptionType (..),
ErrorCode (..),
ForwardingConfigState (..),
IdentityType (..),
ImageFileType (..),
JobStatus (..),
ListAssetModelPropertiesFilter (..),
ListAssetPropertiesFilter (..),
ListAssetsFilter (..),
ListBulkImportJobsFilter (..),
ListTimeSeriesType (..),
LoggingLevel (..),
MonitorErrorCode (..),
Permission (..),
PortalState (..),
PropertyDataType (..),
PropertyNotificationState (..),
Quality (..),
ResourceType (..),
StorageType (..),
TimeOrdering (..),
TraversalDirection (..),
TraversalType (..),
AccessPolicySummary (..),
newAccessPolicySummary,
accessPolicySummary_creationDate,
accessPolicySummary_lastUpdateDate,
accessPolicySummary_id,
accessPolicySummary_identity,
accessPolicySummary_resource,
accessPolicySummary_permission,
AggregatedValue (..),
newAggregatedValue,
aggregatedValue_quality,
aggregatedValue_timestamp,
aggregatedValue_value,
Aggregates (..),
newAggregates,
aggregates_average,
aggregates_count,
aggregates_maximum,
aggregates_minimum,
aggregates_standardDeviation,
aggregates_sum,
Alarms (..),
newAlarms,
alarms_notificationLambdaArn,
alarms_alarmRoleArn,
AssetCompositeModel (..),
newAssetCompositeModel,
assetCompositeModel_description,
assetCompositeModel_id,
assetCompositeModel_name,
assetCompositeModel_type,
assetCompositeModel_properties,
AssetErrorDetails (..),
newAssetErrorDetails,
assetErrorDetails_assetId,
assetErrorDetails_code,
assetErrorDetails_message,
AssetHierarchy (..),
newAssetHierarchy,
assetHierarchy_id,
assetHierarchy_name,
AssetHierarchyInfo (..),
newAssetHierarchyInfo,
assetHierarchyInfo_childAssetId,
assetHierarchyInfo_parentAssetId,
AssetModelCompositeModel (..),
newAssetModelCompositeModel,
assetModelCompositeModel_description,
assetModelCompositeModel_id,
assetModelCompositeModel_properties,
assetModelCompositeModel_name,
assetModelCompositeModel_type,
AssetModelCompositeModelDefinition (..),
newAssetModelCompositeModelDefinition,
assetModelCompositeModelDefinition_description,
assetModelCompositeModelDefinition_properties,
assetModelCompositeModelDefinition_name,
assetModelCompositeModelDefinition_type,
AssetModelHierarchy (..),
newAssetModelHierarchy,
assetModelHierarchy_id,
assetModelHierarchy_name,
assetModelHierarchy_childAssetModelId,
AssetModelHierarchyDefinition (..),
newAssetModelHierarchyDefinition,
assetModelHierarchyDefinition_name,
assetModelHierarchyDefinition_childAssetModelId,
AssetModelProperty (..),
newAssetModelProperty,
assetModelProperty_dataTypeSpec,
assetModelProperty_id,
assetModelProperty_unit,
assetModelProperty_name,
assetModelProperty_dataType,
assetModelProperty_type,
AssetModelPropertyDefinition (..),
newAssetModelPropertyDefinition,
assetModelPropertyDefinition_dataTypeSpec,
assetModelPropertyDefinition_unit,
assetModelPropertyDefinition_name,
assetModelPropertyDefinition_dataType,
assetModelPropertyDefinition_type,
AssetModelPropertySummary (..),
newAssetModelPropertySummary,
assetModelPropertySummary_assetModelCompositeModelId,
assetModelPropertySummary_dataTypeSpec,
assetModelPropertySummary_id,
assetModelPropertySummary_unit,
assetModelPropertySummary_name,
assetModelPropertySummary_dataType,
assetModelPropertySummary_type,
AssetModelStatus (..),
newAssetModelStatus,
assetModelStatus_error,
assetModelStatus_state,
AssetModelSummary (..),
newAssetModelSummary,
assetModelSummary_id,
assetModelSummary_arn,
assetModelSummary_name,
assetModelSummary_description,
assetModelSummary_creationDate,
assetModelSummary_lastUpdateDate,
assetModelSummary_status,
AssetProperty (..),
newAssetProperty,
assetProperty_alias,
assetProperty_dataTypeSpec,
assetProperty_notification,
assetProperty_unit,
assetProperty_id,
assetProperty_name,
assetProperty_dataType,
AssetPropertySummary (..),
newAssetPropertySummary,
assetPropertySummary_alias,
assetPropertySummary_assetCompositeModelId,
assetPropertySummary_id,
assetPropertySummary_notification,
assetPropertySummary_unit,
AssetPropertyValue (..),
newAssetPropertyValue,
assetPropertyValue_quality,
assetPropertyValue_value,
assetPropertyValue_timestamp,
AssetRelationshipSummary (..),
newAssetRelationshipSummary,
assetRelationshipSummary_hierarchyInfo,
assetRelationshipSummary_relationshipType,
AssetStatus (..),
newAssetStatus,
assetStatus_error,
assetStatus_state,
AssetSummary (..),
newAssetSummary,
assetSummary_description,
assetSummary_id,
assetSummary_arn,
assetSummary_name,
assetSummary_assetModelId,
assetSummary_creationDate,
assetSummary_lastUpdateDate,
assetSummary_status,
assetSummary_hierarchies,
AssociatedAssetsSummary (..),
newAssociatedAssetsSummary,
associatedAssetsSummary_description,
associatedAssetsSummary_id,
associatedAssetsSummary_arn,
associatedAssetsSummary_name,
associatedAssetsSummary_assetModelId,
associatedAssetsSummary_creationDate,
associatedAssetsSummary_lastUpdateDate,
associatedAssetsSummary_status,
associatedAssetsSummary_hierarchies,
Attribute (..),
newAttribute,
attribute_defaultValue,
BatchGetAssetPropertyAggregatesEntry (..),
newBatchGetAssetPropertyAggregatesEntry,
batchGetAssetPropertyAggregatesEntry_assetId,
batchGetAssetPropertyAggregatesEntry_propertyAlias,
batchGetAssetPropertyAggregatesEntry_propertyId,
batchGetAssetPropertyAggregatesEntry_qualities,
batchGetAssetPropertyAggregatesEntry_timeOrdering,
batchGetAssetPropertyAggregatesEntry_entryId,
batchGetAssetPropertyAggregatesEntry_aggregateTypes,
batchGetAssetPropertyAggregatesEntry_resolution,
batchGetAssetPropertyAggregatesEntry_startDate,
batchGetAssetPropertyAggregatesEntry_endDate,
BatchGetAssetPropertyAggregatesErrorEntry (..),
newBatchGetAssetPropertyAggregatesErrorEntry,
batchGetAssetPropertyAggregatesErrorEntry_errorCode,
batchGetAssetPropertyAggregatesErrorEntry_errorMessage,
batchGetAssetPropertyAggregatesErrorEntry_entryId,
BatchGetAssetPropertyAggregatesErrorInfo (..),
newBatchGetAssetPropertyAggregatesErrorInfo,
batchGetAssetPropertyAggregatesErrorInfo_errorCode,
batchGetAssetPropertyAggregatesErrorInfo_errorTimestamp,
BatchGetAssetPropertyAggregatesSkippedEntry (..),
newBatchGetAssetPropertyAggregatesSkippedEntry,
batchGetAssetPropertyAggregatesSkippedEntry_errorInfo,
batchGetAssetPropertyAggregatesSkippedEntry_entryId,
batchGetAssetPropertyAggregatesSkippedEntry_completionStatus,
BatchGetAssetPropertyAggregatesSuccessEntry (..),
newBatchGetAssetPropertyAggregatesSuccessEntry,
batchGetAssetPropertyAggregatesSuccessEntry_entryId,
batchGetAssetPropertyAggregatesSuccessEntry_aggregatedValues,
BatchGetAssetPropertyValueEntry (..),
newBatchGetAssetPropertyValueEntry,
batchGetAssetPropertyValueEntry_assetId,
batchGetAssetPropertyValueEntry_propertyAlias,
batchGetAssetPropertyValueEntry_propertyId,
batchGetAssetPropertyValueEntry_entryId,
BatchGetAssetPropertyValueErrorEntry (..),
newBatchGetAssetPropertyValueErrorEntry,
batchGetAssetPropertyValueErrorEntry_errorCode,
batchGetAssetPropertyValueErrorEntry_errorMessage,
batchGetAssetPropertyValueErrorEntry_entryId,
BatchGetAssetPropertyValueErrorInfo (..),
newBatchGetAssetPropertyValueErrorInfo,
batchGetAssetPropertyValueErrorInfo_errorCode,
batchGetAssetPropertyValueErrorInfo_errorTimestamp,
BatchGetAssetPropertyValueHistoryEntry (..),
newBatchGetAssetPropertyValueHistoryEntry,
batchGetAssetPropertyValueHistoryEntry_assetId,
batchGetAssetPropertyValueHistoryEntry_endDate,
batchGetAssetPropertyValueHistoryEntry_propertyAlias,
batchGetAssetPropertyValueHistoryEntry_propertyId,
batchGetAssetPropertyValueHistoryEntry_qualities,
batchGetAssetPropertyValueHistoryEntry_startDate,
batchGetAssetPropertyValueHistoryEntry_timeOrdering,
batchGetAssetPropertyValueHistoryEntry_entryId,
BatchGetAssetPropertyValueHistoryErrorEntry (..),
newBatchGetAssetPropertyValueHistoryErrorEntry,
batchGetAssetPropertyValueHistoryErrorEntry_errorCode,
batchGetAssetPropertyValueHistoryErrorEntry_errorMessage,
batchGetAssetPropertyValueHistoryErrorEntry_entryId,
BatchGetAssetPropertyValueHistoryErrorInfo (..),
newBatchGetAssetPropertyValueHistoryErrorInfo,
batchGetAssetPropertyValueHistoryErrorInfo_errorCode,
batchGetAssetPropertyValueHistoryErrorInfo_errorTimestamp,
BatchGetAssetPropertyValueHistorySkippedEntry (..),
newBatchGetAssetPropertyValueHistorySkippedEntry,
batchGetAssetPropertyValueHistorySkippedEntry_errorInfo,
batchGetAssetPropertyValueHistorySkippedEntry_entryId,
batchGetAssetPropertyValueHistorySkippedEntry_completionStatus,
BatchGetAssetPropertyValueHistorySuccessEntry (..),
newBatchGetAssetPropertyValueHistorySuccessEntry,
batchGetAssetPropertyValueHistorySuccessEntry_entryId,
batchGetAssetPropertyValueHistorySuccessEntry_assetPropertyValueHistory,
BatchGetAssetPropertyValueSkippedEntry (..),
newBatchGetAssetPropertyValueSkippedEntry,
batchGetAssetPropertyValueSkippedEntry_errorInfo,
batchGetAssetPropertyValueSkippedEntry_entryId,
batchGetAssetPropertyValueSkippedEntry_completionStatus,
BatchGetAssetPropertyValueSuccessEntry (..),
newBatchGetAssetPropertyValueSuccessEntry,
batchGetAssetPropertyValueSuccessEntry_assetPropertyValue,
batchGetAssetPropertyValueSuccessEntry_entryId,
BatchPutAssetPropertyError (..),
newBatchPutAssetPropertyError,
batchPutAssetPropertyError_errorCode,
batchPutAssetPropertyError_errorMessage,
batchPutAssetPropertyError_timestamps,
BatchPutAssetPropertyErrorEntry (..),
newBatchPutAssetPropertyErrorEntry,
batchPutAssetPropertyErrorEntry_entryId,
batchPutAssetPropertyErrorEntry_errors,
CompositeModelProperty (..),
newCompositeModelProperty,
compositeModelProperty_id,
compositeModelProperty_name,
compositeModelProperty_type,
compositeModelProperty_assetProperty,
ConfigurationErrorDetails (..),
newConfigurationErrorDetails,
configurationErrorDetails_code,
configurationErrorDetails_message,
ConfigurationStatus (..),
newConfigurationStatus,
configurationStatus_error,
configurationStatus_state,
Csv (..),
newCsv,
csv_columnNames,
CustomerManagedS3Storage (..),
newCustomerManagedS3Storage,
customerManagedS3Storage_s3ResourceArn,
customerManagedS3Storage_roleArn,
DashboardSummary (..),
newDashboardSummary,
dashboardSummary_creationDate,
dashboardSummary_description,
dashboardSummary_lastUpdateDate,
dashboardSummary_id,
dashboardSummary_name,
DetailedError (..),
newDetailedError,
detailedError_code,
detailedError_message,
ErrorDetails (..),
newErrorDetails,
errorDetails_details,
errorDetails_code,
errorDetails_message,
ErrorReportLocation (..),
newErrorReportLocation,
errorReportLocation_bucket,
errorReportLocation_prefix,
ExpressionVariable (..),
newExpressionVariable,
expressionVariable_name,
expressionVariable_value,
File (..),
newFile,
file_versionId,
file_bucket,
file_key,
FileFormat (..),
newFileFormat,
fileFormat_csv,
ForwardingConfig (..),
newForwardingConfig,
forwardingConfig_state,
GatewayCapabilitySummary (..),
newGatewayCapabilitySummary,
gatewayCapabilitySummary_capabilityNamespace,
gatewayCapabilitySummary_capabilitySyncStatus,
GatewayPlatform (..),
newGatewayPlatform,
gatewayPlatform_greengrass,
gatewayPlatform_greengrassV2,
GatewaySummary (..),
newGatewaySummary,
gatewaySummary_gatewayCapabilitySummaries,
gatewaySummary_gatewayPlatform,
gatewaySummary_gatewayId,
gatewaySummary_gatewayName,
gatewaySummary_creationDate,
gatewaySummary_lastUpdateDate,
Greengrass (..),
newGreengrass,
greengrass_groupArn,
GreengrassV2 (..),
newGreengrassV2,
greengrassV2_coreDeviceThingName,
GroupIdentity (..),
newGroupIdentity,
groupIdentity_id,
IAMRoleIdentity (..),
newIAMRoleIdentity,
iAMRoleIdentity_arn,
IAMUserIdentity (..),
newIAMUserIdentity,
iAMUserIdentity_arn,
Identity (..),
newIdentity,
identity_group,
identity_iamRole,
identity_iamUser,
identity_user,
Image (..),
newImage,
image_file,
image_id,
ImageFile (..),
newImageFile,
imageFile_data,
imageFile_type,
ImageLocation (..),
newImageLocation,
imageLocation_id,
imageLocation_url,
InterpolatedAssetPropertyValue (..),
newInterpolatedAssetPropertyValue,
interpolatedAssetPropertyValue_timestamp,
interpolatedAssetPropertyValue_value,
JobConfiguration (..),
newJobConfiguration,
jobConfiguration_fileFormat,
JobSummary (..),
newJobSummary,
jobSummary_id,
jobSummary_name,
jobSummary_status,
LoggingOptions (..),
newLoggingOptions,
loggingOptions_level,
Measurement (..),
newMeasurement,
measurement_processingConfig,
MeasurementProcessingConfig (..),
newMeasurementProcessingConfig,
measurementProcessingConfig_forwardingConfig,
Metric (..),
newMetric,
metric_processingConfig,
metric_expression,
metric_variables,
metric_window,
MetricProcessingConfig (..),
newMetricProcessingConfig,
metricProcessingConfig_computeLocation,
MetricWindow (..),
newMetricWindow,
metricWindow_tumbling,
MonitorErrorDetails (..),
newMonitorErrorDetails,
monitorErrorDetails_code,
monitorErrorDetails_message,
MultiLayerStorage (..),
newMultiLayerStorage,
multiLayerStorage_customerManagedS3Storage,
PortalResource (..),
newPortalResource,
portalResource_id,
PortalStatus (..),
newPortalStatus,
portalStatus_error,
portalStatus_state,
PortalSummary (..),
newPortalSummary,
portalSummary_creationDate,
portalSummary_description,
portalSummary_lastUpdateDate,
portalSummary_roleArn,
portalSummary_id,
portalSummary_name,
portalSummary_startUrl,
portalSummary_status,
ProjectResource (..),
newProjectResource,
projectResource_id,
ProjectSummary (..),
newProjectSummary,
projectSummary_creationDate,
projectSummary_description,
projectSummary_lastUpdateDate,
projectSummary_id,
projectSummary_name,
Property (..),
newProperty,
property_alias,
property_notification,
property_type,
property_unit,
property_id,
property_name,
property_dataType,
PropertyNotification (..),
newPropertyNotification,
propertyNotification_topic,
propertyNotification_state,
PropertyType (..),
newPropertyType,
propertyType_attribute,
propertyType_measurement,
propertyType_metric,
propertyType_transform,
PutAssetPropertyValueEntry (..),
newPutAssetPropertyValueEntry,
putAssetPropertyValueEntry_assetId,
putAssetPropertyValueEntry_propertyAlias,
putAssetPropertyValueEntry_propertyId,
putAssetPropertyValueEntry_entryId,
putAssetPropertyValueEntry_propertyValues,
Resource (..),
newResource,
resource_portal,
resource_project,
RetentionPeriod (..),
newRetentionPeriod,
retentionPeriod_numberOfDays,
retentionPeriod_unlimited,
TimeInNanos (..),
newTimeInNanos,
timeInNanos_offsetInNanos,
timeInNanos_timeInSeconds,
TimeSeriesSummary (..),
newTimeSeriesSummary,
timeSeriesSummary_alias,
timeSeriesSummary_assetId,
timeSeriesSummary_dataTypeSpec,
timeSeriesSummary_propertyId,
timeSeriesSummary_timeSeriesId,
timeSeriesSummary_dataType,
timeSeriesSummary_timeSeriesCreationDate,
timeSeriesSummary_timeSeriesLastUpdateDate,
Transform (..),
newTransform,
transform_processingConfig,
transform_expression,
transform_variables,
TransformProcessingConfig (..),
newTransformProcessingConfig,
transformProcessingConfig_forwardingConfig,
transformProcessingConfig_computeLocation,
TumblingWindow (..),
newTumblingWindow,
tumblingWindow_offset,
tumblingWindow_interval,
UserIdentity (..),
newUserIdentity,
userIdentity_id,
VariableValue (..),
newVariableValue,
variableValue_hierarchyId,
variableValue_propertyId,
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
defaultService :: Core.Service
defaultService :: Service
defaultService =
Core.Service
{ $sel:abbrev:Service :: Abbrev
Core.abbrev = Abbrev
"IoTSiteWise",
$sel:signer:Service :: Signer
Core.signer = Signer
Sign.v4,
$sel:endpointPrefix:Service :: ByteString
Core.endpointPrefix = ByteString
"iotsitewise",
$sel:signingName:Service :: ByteString
Core.signingName = ByteString
"iotsitewise",
$sel:version:Service :: ByteString
Core.version = ByteString
"2019-12-02",
$sel:s3AddressingStyle:Service :: S3AddressingStyle
Core.s3AddressingStyle = S3AddressingStyle
Core.S3AddressingStyleAuto,
$sel:endpoint:Service :: Region -> Endpoint
Core.endpoint = Service -> Region -> Endpoint
Core.defaultEndpoint Service
defaultService,
$sel:timeout:Service :: Maybe Seconds
Core.timeout = forall a. a -> Maybe a
Prelude.Just Seconds
70,
$sel:check:Service :: Status -> Bool
Core.check = Status -> Bool
Core.statusSuccess,
$sel:error:Service :: Status -> [Header] -> ByteStringLazy -> Error
Core.error = Abbrev -> Status -> [Header] -> ByteStringLazy -> Error
Core.parseJSONError Abbrev
"IoTSiteWise",
$sel:retry:Service :: Retry
Core.retry = Retry
retry
}
where
retry :: Retry
retry =
Core.Exponential
{ $sel:base:Exponential :: Double
Core.base = Double
5.0e-2,
$sel:growth:Exponential :: Int
Core.growth = Int
2,
$sel:attempts:Exponential :: Int
Core.attempts = Int
5,
$sel:check:Exponential :: ServiceError -> Maybe Text
Core.check = forall {a}. IsString a => ServiceError -> Maybe a
check
}
check :: ServiceError -> Maybe a
check ServiceError
e
| forall s a. Getting Any s a -> s -> Bool
Lens.has (forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
502) ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"bad_gateway"
| forall s a. Getting Any s a -> s -> Bool
Lens.has (forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
504) ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"gateway_timeout"
| forall s a. Getting Any s a -> s -> Bool
Lens.has (forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
500) ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"general_server_error"
| forall s a. Getting Any s a -> s -> Bool
Lens.has (forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
509) ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"limit_exceeded"
| forall s a. Getting Any s a -> s -> Bool
Lens.has
( forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode ErrorCode
"RequestThrottledException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"request_throttled_exception"
| forall s a. Getting Any s a -> s -> Bool
Lens.has (forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
503) ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"service_unavailable"
| forall s a. Getting Any s a -> s -> Bool
Lens.has
( forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode ErrorCode
"ThrottledException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"throttled_exception"
| forall s a. Getting Any s a -> s -> Bool
Lens.has
( forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode ErrorCode
"Throttling"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"throttling"
| forall s a. Getting Any s a -> s -> Bool
Lens.has
( forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode ErrorCode
"ThrottlingException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"throttling_exception"
| forall s a. Getting Any s a -> s -> Bool
Lens.has
( forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode
ErrorCode
"ProvisionedThroughputExceededException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"throughput_exceeded"
| forall s a. Getting Any s a -> s -> Bool
Lens.has (forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
429) ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"too_many_requests"
| Bool
Prelude.otherwise = forall a. Maybe a
Prelude.Nothing
_ConflictingOperationException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ConflictingOperationException :: forall a. AsError a => Fold a ServiceError
_ConflictingOperationException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ConflictingOperationException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
409
_InternalFailureException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InternalFailureException :: forall a. AsError a => Fold a ServiceError
_InternalFailureException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InternalFailureException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
500
_InvalidRequestException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidRequestException :: forall a. AsError a => Fold a ServiceError
_InvalidRequestException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InvalidRequestException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
_LimitExceededException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_LimitExceededException :: forall a. AsError a => Fold a ServiceError
_LimitExceededException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"LimitExceededException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
410
_ResourceAlreadyExistsException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ResourceAlreadyExistsException :: forall a. AsError a => Fold a ServiceError
_ResourceAlreadyExistsException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ResourceAlreadyExistsException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
409
_ResourceNotFoundException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ResourceNotFoundException :: forall a. AsError a => Fold a ServiceError
_ResourceNotFoundException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ResourceNotFoundException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
404
_ServiceUnavailableException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ServiceUnavailableException :: forall a. AsError a => Fold a ServiceError
_ServiceUnavailableException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ServiceUnavailableException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
503
_ThrottlingException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ThrottlingException :: forall a. AsError a => Fold a ServiceError
_ThrottlingException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ThrottlingException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
429
_TooManyTagsException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_TooManyTagsException :: forall a. AsError a => Fold a ServiceError
_TooManyTagsException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"TooManyTagsException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
_UnauthorizedException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_UnauthorizedException :: forall a. AsError a => Fold a ServiceError
_UnauthorizedException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"UnauthorizedException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
401