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

Description

Deletes an asset. This action can't be undone. For more information, see Deleting assets and models in the IoT SiteWise User Guide.

You can't delete an asset that's associated to another asset. For more information, see DisassociateAssets.

Synopsis

Creating a Request

data DeleteAsset Source #

See: newDeleteAsset smart constructor.

Constructors

DeleteAsset' 

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

Instances

Instances details
Eq DeleteAsset Source # 
Instance details

Defined in Amazonka.IoTSiteWise.DeleteAsset

Read DeleteAsset Source # 
Instance details

Defined in Amazonka.IoTSiteWise.DeleteAsset

Show DeleteAsset Source # 
Instance details

Defined in Amazonka.IoTSiteWise.DeleteAsset

Generic DeleteAsset Source # 
Instance details

Defined in Amazonka.IoTSiteWise.DeleteAsset

Associated Types

type Rep DeleteAsset :: Type -> Type #

NFData DeleteAsset Source # 
Instance details

Defined in Amazonka.IoTSiteWise.DeleteAsset

Methods

rnf :: DeleteAsset -> () #

Hashable DeleteAsset Source # 
Instance details

Defined in Amazonka.IoTSiteWise.DeleteAsset

AWSRequest DeleteAsset Source # 
Instance details

Defined in Amazonka.IoTSiteWise.DeleteAsset

Associated Types

type AWSResponse DeleteAsset #

ToHeaders DeleteAsset Source # 
Instance details

Defined in Amazonka.IoTSiteWise.DeleteAsset

Methods

toHeaders :: DeleteAsset -> [Header] #

ToPath DeleteAsset Source # 
Instance details

Defined in Amazonka.IoTSiteWise.DeleteAsset

ToQuery DeleteAsset Source # 
Instance details

Defined in Amazonka.IoTSiteWise.DeleteAsset

type Rep DeleteAsset Source # 
Instance details

Defined in Amazonka.IoTSiteWise.DeleteAsset

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

Defined in Amazonka.IoTSiteWise.DeleteAsset

newDeleteAsset Source #

Create a value of DeleteAsset 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:DeleteAsset', deleteAsset_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:DeleteAsset', deleteAsset_assetId - The ID of the asset to delete.

Request Lenses

deleteAsset_clientToken :: Lens' DeleteAsset (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.

deleteAsset_assetId :: Lens' DeleteAsset Text Source #

The ID of the asset to delete.

Destructuring the Response

data DeleteAssetResponse Source #

See: newDeleteAssetResponse smart constructor.

Constructors

DeleteAssetResponse' 

Fields

  • httpStatus :: Int

    The response's http status code.

  • assetStatus :: AssetStatus

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

Instances

Instances details
Eq DeleteAssetResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.DeleteAsset

Read DeleteAssetResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.DeleteAsset

Show DeleteAssetResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.DeleteAsset

Generic DeleteAssetResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.DeleteAsset

Associated Types

type Rep DeleteAssetResponse :: Type -> Type #

NFData DeleteAssetResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.DeleteAsset

Methods

rnf :: DeleteAssetResponse -> () #

type Rep DeleteAssetResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.DeleteAsset

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

newDeleteAssetResponse Source #

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

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

Response Lenses

deleteAssetResponse_assetStatus :: Lens' DeleteAssetResponse AssetStatus Source #

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