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

Description

Creates an asset from an existing asset model. For more information, see Creating assets in the IoT SiteWise User Guide.

Synopsis

Creating a Request

data CreateAsset Source #

See: newCreateAsset smart constructor.

Constructors

CreateAsset' 

Fields

Instances

Instances details
Eq CreateAsset Source # 
Instance details

Defined in Amazonka.IoTSiteWise.CreateAsset

Read CreateAsset Source # 
Instance details

Defined in Amazonka.IoTSiteWise.CreateAsset

Show CreateAsset Source # 
Instance details

Defined in Amazonka.IoTSiteWise.CreateAsset

Generic CreateAsset Source # 
Instance details

Defined in Amazonka.IoTSiteWise.CreateAsset

Associated Types

type Rep CreateAsset :: Type -> Type #

NFData CreateAsset Source # 
Instance details

Defined in Amazonka.IoTSiteWise.CreateAsset

Methods

rnf :: CreateAsset -> () #

Hashable CreateAsset Source # 
Instance details

Defined in Amazonka.IoTSiteWise.CreateAsset

ToJSON CreateAsset Source # 
Instance details

Defined in Amazonka.IoTSiteWise.CreateAsset

AWSRequest CreateAsset Source # 
Instance details

Defined in Amazonka.IoTSiteWise.CreateAsset

Associated Types

type AWSResponse CreateAsset #

ToHeaders CreateAsset Source # 
Instance details

Defined in Amazonka.IoTSiteWise.CreateAsset

Methods

toHeaders :: CreateAsset -> [Header] #

ToPath CreateAsset Source # 
Instance details

Defined in Amazonka.IoTSiteWise.CreateAsset

ToQuery CreateAsset Source # 
Instance details

Defined in Amazonka.IoTSiteWise.CreateAsset

type Rep CreateAsset Source # 
Instance details

Defined in Amazonka.IoTSiteWise.CreateAsset

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

Defined in Amazonka.IoTSiteWise.CreateAsset

newCreateAsset Source #

Create a value of CreateAsset 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:CreateAsset', createAsset_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:tags:CreateAsset', createAsset_tags - A list of key-value pairs that contain metadata for the asset. For more information, see Tagging your IoT SiteWise resources in the IoT SiteWise User Guide.

$sel:assetName:CreateAsset', createAsset_assetName - A unique, friendly name for the asset.

$sel:assetModelId:CreateAsset', createAsset_assetModelId - The ID of the asset model from which to create the asset.

Request Lenses

createAsset_clientToken :: Lens' CreateAsset (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.

createAsset_tags :: Lens' CreateAsset (Maybe (HashMap Text Text)) Source #

A list of key-value pairs that contain metadata for the asset. For more information, see Tagging your IoT SiteWise resources in the IoT SiteWise User Guide.

createAsset_assetName :: Lens' CreateAsset Text Source #

A unique, friendly name for the asset.

createAsset_assetModelId :: Lens' CreateAsset Text Source #

The ID of the asset model from which to create the asset.

Destructuring the Response

data CreateAssetResponse Source #

See: newCreateAssetResponse smart constructor.

Constructors

CreateAssetResponse' 

Fields

  • httpStatus :: Int

    The response's http status code.

  • assetId :: Text

    The ID of the asset. This ID uniquely identifies the asset within IoT SiteWise and can be used with other IoT SiteWise APIs.

  • assetArn :: Text

    The ARN of the asset, which has the following format.

    arn:${Partition}:iotsitewise:${Region}:${Account}:asset/${AssetId}
  • assetStatus :: AssetStatus

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

Instances

Instances details
Eq CreateAssetResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.CreateAsset

Read CreateAssetResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.CreateAsset

Show CreateAssetResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.CreateAsset

Generic CreateAssetResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.CreateAsset

Associated Types

type Rep CreateAssetResponse :: Type -> Type #

NFData CreateAssetResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.CreateAsset

Methods

rnf :: CreateAssetResponse -> () #

type Rep CreateAssetResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.CreateAsset

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

newCreateAssetResponse Source #

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

$sel:assetId:CreateAssetResponse', createAssetResponse_assetId - The ID of the asset. This ID uniquely identifies the asset within IoT SiteWise and can be used with other IoT SiteWise APIs.

$sel:assetArn:CreateAssetResponse', createAssetResponse_assetArn - The ARN of the asset, which has the following format.

arn:${Partition}:iotsitewise:${Region}:${Account}:asset/${AssetId}

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

Response Lenses

createAssetResponse_assetId :: Lens' CreateAssetResponse Text Source #

The ID of the asset. This ID uniquely identifies the asset within IoT SiteWise and can be used with other IoT SiteWise APIs.

createAssetResponse_assetArn :: Lens' CreateAssetResponse Text Source #

The ARN of the asset, which has the following format.

arn:${Partition}:iotsitewise:${Region}:${Account}:asset/${AssetId}

createAssetResponse_assetStatus :: Lens' CreateAssetResponse AssetStatus Source #

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