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

Description

Deletes an asset model. This action can't be undone. You must delete all assets created from an asset model before you can delete the model. Also, you can't delete an asset model if a parent asset model exists that contains a property formula expression that depends on the asset model that you want to delete. For more information, see Deleting assets and models in the IoT SiteWise User Guide.

Synopsis

Creating a Request

data DeleteAssetModel Source #

See: newDeleteAssetModel smart constructor.

Constructors

DeleteAssetModel' 

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.

  • assetModelId :: Text

    The ID of the asset model to delete.

Instances

Instances details
Eq DeleteAssetModel Source # 
Instance details

Defined in Amazonka.IoTSiteWise.DeleteAssetModel

Read DeleteAssetModel Source # 
Instance details

Defined in Amazonka.IoTSiteWise.DeleteAssetModel

Show DeleteAssetModel Source # 
Instance details

Defined in Amazonka.IoTSiteWise.DeleteAssetModel

Generic DeleteAssetModel Source # 
Instance details

Defined in Amazonka.IoTSiteWise.DeleteAssetModel

Associated Types

type Rep DeleteAssetModel :: Type -> Type #

NFData DeleteAssetModel Source # 
Instance details

Defined in Amazonka.IoTSiteWise.DeleteAssetModel

Methods

rnf :: DeleteAssetModel -> () #

Hashable DeleteAssetModel Source # 
Instance details

Defined in Amazonka.IoTSiteWise.DeleteAssetModel

AWSRequest DeleteAssetModel Source # 
Instance details

Defined in Amazonka.IoTSiteWise.DeleteAssetModel

Associated Types

type AWSResponse DeleteAssetModel #

ToHeaders DeleteAssetModel Source # 
Instance details

Defined in Amazonka.IoTSiteWise.DeleteAssetModel

ToPath DeleteAssetModel Source # 
Instance details

Defined in Amazonka.IoTSiteWise.DeleteAssetModel

ToQuery DeleteAssetModel Source # 
Instance details

Defined in Amazonka.IoTSiteWise.DeleteAssetModel

type Rep DeleteAssetModel Source # 
Instance details

Defined in Amazonka.IoTSiteWise.DeleteAssetModel

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

Defined in Amazonka.IoTSiteWise.DeleteAssetModel

newDeleteAssetModel Source #

Create a value of DeleteAssetModel 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:DeleteAssetModel', deleteAssetModel_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:assetModelId:DeleteAssetModel', deleteAssetModel_assetModelId - The ID of the asset model to delete.

Request Lenses

deleteAssetModel_clientToken :: Lens' DeleteAssetModel (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.

deleteAssetModel_assetModelId :: Lens' DeleteAssetModel Text Source #

The ID of the asset model to delete.

Destructuring the Response

data DeleteAssetModelResponse Source #

See: newDeleteAssetModelResponse smart constructor.

Constructors

DeleteAssetModelResponse' 

Fields

Instances

Instances details
Eq DeleteAssetModelResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.DeleteAssetModel

Read DeleteAssetModelResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.DeleteAssetModel

Show DeleteAssetModelResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.DeleteAssetModel

Generic DeleteAssetModelResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.DeleteAssetModel

Associated Types

type Rep DeleteAssetModelResponse :: Type -> Type #

NFData DeleteAssetModelResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.DeleteAssetModel

type Rep DeleteAssetModelResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.DeleteAssetModel

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

newDeleteAssetModelResponse Source #

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

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

Response Lenses

deleteAssetModelResponse_assetModelStatus :: Lens' DeleteAssetModelResponse AssetModelStatus Source #

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