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

Description

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

Synopsis

Creating a Request

data UpdateAsset Source #

See: newUpdateAsset smart constructor.

Constructors

UpdateAsset' 

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.

  • assetId :: Text

    The ID of the asset to update.

  • assetName :: Text

    A unique, friendly name for the asset.

Instances

Instances details
Eq UpdateAsset Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAsset

Read UpdateAsset Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAsset

Show UpdateAsset Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAsset

Generic UpdateAsset Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAsset

Associated Types

type Rep UpdateAsset :: Type -> Type #

NFData UpdateAsset Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAsset

Methods

rnf :: UpdateAsset -> () #

Hashable UpdateAsset Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAsset

ToJSON UpdateAsset Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAsset

AWSRequest UpdateAsset Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAsset

Associated Types

type AWSResponse UpdateAsset #

ToHeaders UpdateAsset Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAsset

Methods

toHeaders :: UpdateAsset -> [Header] #

ToPath UpdateAsset Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAsset

ToQuery UpdateAsset Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAsset

type Rep UpdateAsset Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAsset

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

Defined in Amazonka.IoTSiteWise.UpdateAsset

newUpdateAsset Source #

Create a value of UpdateAsset 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:UpdateAsset', updateAsset_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:assetId:UpdateAsset', updateAsset_assetId - The ID of the asset to update.

$sel:assetName:UpdateAsset', updateAsset_assetName - A unique, friendly name for the asset.

Request Lenses

updateAsset_clientToken :: Lens' UpdateAsset (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.

updateAsset_assetId :: Lens' UpdateAsset Text Source #

The ID of the asset to update.

updateAsset_assetName :: Lens' UpdateAsset Text Source #

A unique, friendly name for the asset.

Destructuring the Response

data UpdateAssetResponse Source #

See: newUpdateAssetResponse smart constructor.

Constructors

UpdateAssetResponse' 

Fields

  • httpStatus :: Int

    The response's http status code.

  • assetStatus :: AssetStatus

    The status of the asset, which contains a state (UPDATING after successfully calling this operation) and any error message.

Instances

Instances details
Eq UpdateAssetResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAsset

Read UpdateAssetResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAsset

Show UpdateAssetResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAsset

Generic UpdateAssetResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAsset

Associated Types

type Rep UpdateAssetResponse :: Type -> Type #

NFData UpdateAssetResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAsset

Methods

rnf :: UpdateAssetResponse -> () #

type Rep UpdateAssetResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAsset

type Rep UpdateAssetResponse = D1 ('MetaData "UpdateAssetResponse" "Amazonka.IoTSiteWise.UpdateAsset" "libZSservicesZSamazonka-iotsitewiseZSamazonka-iotsitewise" 'False) (C1 ('MetaCons "UpdateAssetResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "assetStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 AssetStatus)))

newUpdateAssetResponse Source #

Create a value of UpdateAssetResponse 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:httpStatus:UpdateAssetResponse', updateAssetResponse_httpStatus - The response's http status code.

$sel:assetStatus:UpdateAssetResponse', updateAssetResponse_assetStatus - The status of the asset, which contains a state (UPDATING after successfully calling this operation) and any error message.

Response Lenses

updateAssetResponse_assetStatus :: Lens' UpdateAssetResponse AssetStatus Source #

The status of the asset, which contains a state (UPDATING after successfully calling this operation) and any error message.