amazonka-iotsitewise-2.0: Amazon IoT SiteWise SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.IoTSiteWise.UpdateAssetProperty

Description

Updates an asset property's alias and notification state.

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.

Synopsis

Creating a Request

data UpdateAssetProperty Source #

See: newUpdateAssetProperty smart constructor.

Constructors

UpdateAssetProperty' 

Fields

  • clientToken :: Maybe Text

    A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.

  • propertyAlias :: Maybe Text

    The alias that identifies the property, such as an OPC-UA server data stream path (for example, /company/windfarm/3/turbine/7/temperature). For more information, see Mapping industrial data streams to asset properties in the IoT SiteWise User Guide.

    If you omit this parameter, the alias is removed from the property.

  • propertyNotificationState :: Maybe PropertyNotificationState

    The MQTT notification state (enabled or disabled) for this asset property. When the notification state is enabled, IoT SiteWise publishes property value updates to a unique MQTT topic. For more information, see Interacting with other services in the IoT SiteWise User Guide.

    If you omit this parameter, the notification state is set to DISABLED.

  • propertyUnit :: Maybe Text

    The unit of measure (such as Newtons or RPM) of the asset property. If you don't specify a value for this parameter, the service uses the value of the assetModelProperty in the asset model.

  • assetId :: Text

    The ID of the asset to be updated.

  • propertyId :: Text

    The ID of the asset property to be updated.

Instances

Instances details
ToJSON UpdateAssetProperty Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAssetProperty

ToHeaders UpdateAssetProperty Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAssetProperty

ToPath UpdateAssetProperty Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAssetProperty

ToQuery UpdateAssetProperty Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAssetProperty

AWSRequest UpdateAssetProperty Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAssetProperty

Associated Types

type AWSResponse UpdateAssetProperty #

Generic UpdateAssetProperty Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAssetProperty

Associated Types

type Rep UpdateAssetProperty :: Type -> Type #

Read UpdateAssetProperty Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAssetProperty

Show UpdateAssetProperty Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAssetProperty

NFData UpdateAssetProperty Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAssetProperty

Methods

rnf :: UpdateAssetProperty -> () #

Eq UpdateAssetProperty Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAssetProperty

Hashable UpdateAssetProperty Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAssetProperty

type AWSResponse UpdateAssetProperty Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAssetProperty

type Rep UpdateAssetProperty Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAssetProperty

type Rep UpdateAssetProperty = D1 ('MetaData "UpdateAssetProperty" "Amazonka.IoTSiteWise.UpdateAssetProperty" "amazonka-iotsitewise-2.0-AK8rDlpQ5oPJsrLUUxJgY" 'False) (C1 ('MetaCons "UpdateAssetProperty'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "clientToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "propertyAlias") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "propertyNotificationState") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe PropertyNotificationState)))) :*: (S1 ('MetaSel ('Just "propertyUnit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "assetId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "propertyId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

newUpdateAssetProperty Source #

Create a value of UpdateAssetProperty with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:clientToken:UpdateAssetProperty', updateAssetProperty_clientToken - A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.

UpdateAssetProperty, updateAssetProperty_propertyAlias - The alias that identifies the property, such as an OPC-UA server data stream path (for example, /company/windfarm/3/turbine/7/temperature). For more information, see Mapping industrial data streams to asset properties in the IoT SiteWise User Guide.

If you omit this parameter, the alias is removed from the property.

$sel:propertyNotificationState:UpdateAssetProperty', updateAssetProperty_propertyNotificationState - The MQTT notification state (enabled or disabled) for this asset property. When the notification state is enabled, IoT SiteWise publishes property value updates to a unique MQTT topic. For more information, see Interacting with other services in the IoT SiteWise User Guide.

If you omit this parameter, the notification state is set to DISABLED.

$sel:propertyUnit:UpdateAssetProperty', updateAssetProperty_propertyUnit - The unit of measure (such as Newtons or RPM) of the asset property. If you don't specify a value for this parameter, the service uses the value of the assetModelProperty in the asset model.

UpdateAssetProperty, updateAssetProperty_assetId - The ID of the asset to be updated.

UpdateAssetProperty, updateAssetProperty_propertyId - The ID of the asset property to be updated.

Request Lenses

updateAssetProperty_clientToken :: Lens' UpdateAssetProperty (Maybe Text) Source #

A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.

updateAssetProperty_propertyAlias :: Lens' UpdateAssetProperty (Maybe Text) Source #

The alias that identifies the property, such as an OPC-UA server data stream path (for example, /company/windfarm/3/turbine/7/temperature). For more information, see Mapping industrial data streams to asset properties in the IoT SiteWise User Guide.

If you omit this parameter, the alias is removed from the property.

updateAssetProperty_propertyNotificationState :: Lens' UpdateAssetProperty (Maybe PropertyNotificationState) Source #

The MQTT notification state (enabled or disabled) for this asset property. When the notification state is enabled, IoT SiteWise publishes property value updates to a unique MQTT topic. For more information, see Interacting with other services in the IoT SiteWise User Guide.

If you omit this parameter, the notification state is set to DISABLED.

updateAssetProperty_propertyUnit :: Lens' UpdateAssetProperty (Maybe Text) Source #

The unit of measure (such as Newtons or RPM) of the asset property. If you don't specify a value for this parameter, the service uses the value of the assetModelProperty in the asset model.

updateAssetProperty_assetId :: Lens' UpdateAssetProperty Text Source #

The ID of the asset to be updated.

updateAssetProperty_propertyId :: Lens' UpdateAssetProperty Text Source #

The ID of the asset property to be updated.

Destructuring the Response

data UpdateAssetPropertyResponse Source #

See: newUpdateAssetPropertyResponse smart constructor.

Instances

Instances details
Generic UpdateAssetPropertyResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAssetProperty

Associated Types

type Rep UpdateAssetPropertyResponse :: Type -> Type #

Read UpdateAssetPropertyResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAssetProperty

Show UpdateAssetPropertyResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAssetProperty

NFData UpdateAssetPropertyResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAssetProperty

Eq UpdateAssetPropertyResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAssetProperty

type Rep UpdateAssetPropertyResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAssetProperty

type Rep UpdateAssetPropertyResponse = D1 ('MetaData "UpdateAssetPropertyResponse" "Amazonka.IoTSiteWise.UpdateAssetProperty" "amazonka-iotsitewise-2.0-AK8rDlpQ5oPJsrLUUxJgY" 'False) (C1 ('MetaCons "UpdateAssetPropertyResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newUpdateAssetPropertyResponse :: UpdateAssetPropertyResponse Source #

Create a value of UpdateAssetPropertyResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.