libZSservicesZSamazonka-iotsitewiseZSamazonka-iotsitewise
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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.

  • 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.

  • 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.

  • assetId :: Text

    The ID of the asset to be updated.

  • propertyId :: Text

    The ID of the asset property to be updated.

Instances

Instances details
Eq UpdateAssetProperty Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAssetProperty

Read UpdateAssetProperty Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAssetProperty

Show UpdateAssetProperty Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAssetProperty

Generic UpdateAssetProperty Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAssetProperty

Associated Types

type Rep UpdateAssetProperty :: Type -> Type #

NFData UpdateAssetProperty Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAssetProperty

Methods

rnf :: UpdateAssetProperty -> () #

Hashable UpdateAssetProperty Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAssetProperty

ToJSON UpdateAssetProperty Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAssetProperty

AWSRequest UpdateAssetProperty Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAssetProperty

Associated Types

type AWSResponse 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

type Rep UpdateAssetProperty Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAssetProperty

type Rep UpdateAssetProperty = D1 ('MetaData "UpdateAssetProperty" "Amazonka.IoTSiteWise.UpdateAssetProperty" "libZSservicesZSamazonka-iotsitewiseZSamazonka-iotsitewise" 'False) (C1 ('MetaCons "UpdateAssetProperty'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "clientToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "propertyNotificationState") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe PropertyNotificationState))) :*: (S1 ('MetaSel ('Just "propertyAlias") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "assetId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "propertyId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))
type AWSResponse UpdateAssetProperty Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAssetProperty

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.

$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:propertyAlias: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:assetId:UpdateAssetProperty', updateAssetProperty_assetId - The ID of the asset to be updated.

$sel:propertyId: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_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_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_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
Eq UpdateAssetPropertyResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAssetProperty

Read UpdateAssetPropertyResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAssetProperty

Show UpdateAssetPropertyResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAssetProperty

Generic UpdateAssetPropertyResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAssetProperty

Associated Types

type Rep UpdateAssetPropertyResponse :: Type -> Type #

NFData 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" "libZSservicesZSamazonka-iotsitewiseZSamazonka-iotsitewise" '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.