// Updates an asset's name. For more information, see Updating assets and models
// (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/update-assets-and-models.html)
// in the AWS IoT SiteWise User Guide.
Updates an asset's name. For more information, see Updating assets and models

in the AWS IoT SiteWise User Guide.
// Updates an asset ' s name . For more information see Updating assets and models // ( https : // docs . aws . amazon . com / iot - sitewise / latest / userguide / update - assets - and - models . html ) // in the AWS IoT SiteWise User Guide .
func (c *Client) UpdateAsset(ctx context.Context, params *UpdateAssetInput, optFns ...func(*Options)) (*UpdateAssetOutput, error) {
	if params == nil {
		params = &UpdateAssetInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "UpdateAsset", params, optFns, addOperationUpdateAssetMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*UpdateAssetOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) UpdateAsset ( ctx context . Context , params * UpdateAssetInput , optFns ... func ( * Options ) ) ( * UpdateAssetOutput , error ) { if params == nil { params = & UpdateAssetInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationUpdateAssetMiddlewares ) if err != nil { return nil , err } out := result . ( * UpdateAssetOutput ) out . ResultMetadata = metadata return out , nil }
Updates an asset's name.
Updates an asset ' s name .